/*
Theme Name: Besindo Medi Sistem
Theme URI: https://besindoms.com/
Author: Codex
Author URI: https://openai.com/
Description: Custom company profile theme for PT Besindo Medi Sistem, built from the approved website preview. Includes editable company details, services, products, projects, and WhatsApp inquiry CTA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: besindo-medi-sistem
*/

:root {
  --bms-navy: #162050;
  --bms-deep: #17224f;
  --bms-blue: #1f55a8;
  --bms-cyan: #62c9dc;
  --bms-soft: #f7fbfc;
  --bms-border: #d8edf2;
  --bms-text: #405064;
  --bms-muted: #5f6d7c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bms-soft);
  color: var(--bms-navy);
  font-family: Arial, Helvetica, sans-serif;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-main {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--bms-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 2px;
  background: var(--bms-blue);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.brand__name {
  display: block;
  color: var(--bms-blue);
  font-size: 14px;
  font-weight: 800;
}

.brand__tagline {
  display: block;
  margin-top: 2px;
  color: var(--bms-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #34445a;
  font-size: 14px;
  font-weight: 700;
}

.nav-menu ul,
ul.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--bms-blue);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--bms-blue);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 14px 22px;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover {
  background: #173f81;
  color: #fff;
}

.button--outline {
  border: 1px solid var(--bms-blue);
  background: transparent;
  color: var(--bms-blue);
}

.button--outline:hover {
  background: #eef8fb;
  color: var(--bms-blue);
}

.button--cyan {
  background: var(--bms-cyan);
  color: var(--bms-deep);
}

.button--cyan:hover {
  background: #86d8e6;
  color: var(--bms-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  transform: skewX(-28deg);
}

.hero::before {
  top: 0;
  right: -12vw;
  width: 54vw;
  height: 100%;
  background: var(--bms-cyan);
}

.hero::after {
  right: 0;
  bottom: 0;
  width: 45vw;
  height: 60%;
  background: var(--bms-deep);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 44px;
  padding-block: 88px;
}

@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr 0.85fr;
  }
}

.eyebrow {
  margin: 0 0 16px;
  color: #5bc4d8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  color: var(--bms-navy);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero p {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--bms-text);
  font-size: 18px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  min-height: 520px;
  box-shadow: 0 30px 70px rgba(18, 32, 71, 0.24);
}

.hero__visual img,
.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.stats {
  background: var(--bms-deep);
  color: #fff;
  padding-block: 30px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat {
  border-left: 1px solid var(--bms-cyan);
  padding-left: 18px;
}

.stat strong {
  display: block;
  color: var(--bms-cyan);
  font-size: 34px;
  font-weight: 900;
}

.stat span {
  color: #d9e7ef;
  font-size: 14px;
}

.section {
  padding-block: 82px;
}

.section--white {
  background: #fff;
}

.section--dark {
  background: var(--bms-deep);
  color: #fff;
}

.two-column {
  display: grid;
  gap: 44px;
}

@media (min-width: 980px) {
  .two-column {
    grid-template-columns: 0.85fr 1fr;
    align-items: center;
  }

  .two-column--reverse {
    grid-template-columns: 1fr 0.9fr;
  }
}

.image-panel {
  min-height: 520px;
  overflow: hidden;
  background: #dff3f7;
}

.content-block h2,
.section-heading h2 {
  margin: 0;
  color: var(--bms-navy);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.content-block p,
.section-heading p {
  color: var(--bms-text);
  font-size: 18px;
  line-height: 1.75;
}

.section--dark .section-heading p {
  color: rgba(255, 255, 255, 0.84);
}

.value-grid,
.product-grid,
.scope-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .value-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card,
.product-card {
  border-left: 4px solid var(--bms-cyan);
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 32, 71, 0.06);
  color: var(--bms-navy);
  font-size: 15px;
  font-weight: 800;
  padding: 20px;
}

.services-grid {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border: 1px solid var(--bms-border);
  background: var(--bms-soft);
  padding: 28px;
}

.service-card__number {
  color: var(--bms-cyan);
  font-size: 54px;
  font-weight: 900;
}

.service-card h3 {
  margin: 18px 0 0;
  color: var(--bms-navy);
  font-size: 26px;
  font-weight: 900;
}

.service-card p {
  min-height: 96px;
  color: var(--bms-text);
  line-height: 1.7;
}

.service-card ul,
.project-group ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  color: #34445a;
  font-size: 14px;
  font-weight: 700;
}

.service-card li::before {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--bms-blue);
  content: "";
  flex: 0 0 auto;
}

.product-images {
  display: grid;
  gap: 20px;
}

.product-images img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 24px 48px rgba(18, 32, 71, 0.18);
}

.section-head-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 800px) {
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.project-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.project-row {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.project-row:last-child {
  border-bottom: 0;
}

@media (min-width: 800px) {
  .project-row {
    grid-template-columns: 0.8fr 0.55fr 1fr;
    align-items: center;
  }
}

.project-row strong {
  color: var(--bms-cyan);
  font-weight: 900;
}

.project-row span {
  color: #d9e7ef;
  font-size: 14px;
}

.project-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.project-groups {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 980px) {
  .project-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-group,
.scope-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 26px;
}

.project-group h3 {
  color: var(--bms-cyan);
  font-size: 20px;
  font-weight: 900;
}

.project-group li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
  padding-block: 10px;
}

.project-group li:last-child {
  border-bottom: 0;
}

.scope-panel {
  margin-top: 40px;
}

.scope-grid {
  margin-top: 20px;
}

@media (min-width: 740px) {
  .scope-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scope-item {
  border-left: 4px solid var(--bms-cyan);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
}

.contact-list {
  margin-top: 30px;
}

.contact-list p {
  color: var(--bms-navy);
  font-size: 18px;
  font-weight: 900;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  background: var(--bms-soft);
  box-shadow: 0 10px 30px rgba(18, 32, 71, 0.08);
  padding: 28px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: #34445a;
  font-size: 14px;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--bms-border);
  background: #fff;
  color: var(--bms-navy);
  font: inherit;
  outline: none;
  padding: 13px 14px;
}

.inquiry-form textarea {
  min-height: 132px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--bms-blue);
}

.site-footer {
  background: #111936;
  color: rgba(255, 255, 255, 0.78);
  padding-block: 28px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

@media (min-width: 760px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
  }
}

.page-content {
  padding-block: 72px;
}

.page-content h1 {
  color: var(--bms-navy);
  font-size: 46px;
  line-height: 1.1;
}

.page-content p,
.page-content li {
  color: var(--bms-text);
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-menu {
    display: none;
  }

  .hero__visual,
  .image-panel {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1280px);
  }

  .brand__tagline {
    display: none;
  }

  .site-header .button {
    padding-inline: 14px;
  }

  .hero__inner,
  .section {
    padding-block: 58px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .hero::before {
    right: -42vw;
    width: 80vw;
  }

  .hero::after {
    width: 64vw;
  }
}
