﻿/* =========================================================
   Akses Kebomas — Redesigned SEO-First Stylesheet
   Brand Palette: #007698 (Primary Teal), #0080a6 (Accent),
                  #072a39 (Deep Navy), #f6f8fa (Surface)
   Typography: Open Sans
   ========================================================= */

:root {
  --brand-teal: #007698;
  --brand-teal-light: #0080a6;
  --brand-teal-dark: #005b76;
  --brand-teal-tint: #eef6f9;
  --brand-navy: #072a39;
  --brand-navy-deep: #041b26;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f6f8fa;
  --border-color: #e2e8f0;
  --accent-amber: #d97706;
  --accent-amber-bg: #fef3c7;
  --accent-emerald: #059669;
  --accent-emerald-bg: #d1fae5;
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --shadow-sm: 0 2px 8px rgba(7, 42, 57, 0.06);
  --shadow-md: 0 10px 30px rgba(7, 42, 57, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 42, 57, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1180px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-teal);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--brand-navy);
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  color: var(--brand-navy);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--brand-teal);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-teal-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 118, 152, 0.28);
}

.btn-whatsapp {
  background-color: var(--wa-green);
  color: #052e16;
}

.btn-whatsapp:hover {
  background-color: var(--wa-green-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--brand-navy);
}

.btn-outline-teal {
  background-color: transparent;
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.btn-outline-teal:hover {
  background-color: var(--brand-teal);
  color: #ffffff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ---------- Top Utility Bar & Sticky Header ---------- */
.topbar {
  background-color: var(--brand-navy-deep);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
}

.topbar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.topbar-info a,
.topbar-info span {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-badge {
  background-color: rgba(0, 128, 166, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
}

.lang-switch a {
  color: #cbd5e1;
  padding: 2px 10px;
  line-height: 1.5;
}

.lang-switch a:hover {
  color: #ffffff;
}

.lang-switch a.active {
  background-color: var(--brand-teal);
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-navy);
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-teal);
  background-color: var(--brand-teal-tint);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-link:hover {
  background-color: var(--brand-teal-tint);
  color: var(--brand-teal);
}

.pill-available {
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.pill-soldout {
  background-color: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.header-cta {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--brand-navy);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: var(--brand-navy-deep);
  background-image:
    linear-gradient(96deg, rgba(4, 27, 38, 0.99) 0%, rgba(4, 27, 38, 0.95) 42%, rgba(7, 42, 57, 0.76) 68%, rgba(0, 118, 152, 0.44) 100%),
    url('../assets/images/hero-kawasan-pergudangan-gresik.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 72px 0 110px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 128, 166, 0.35);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #e0f2fe;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-lead {
  color: #e2e8f0;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 640px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 28px;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f8fafc;
}

.hero-highlights li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--brand-teal-light);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-summary-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--brand-teal);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.hero-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.quick-spec-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.quick-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.875rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.quick-spec-item span {
  color: var(--text-muted);
}

.quick-spec-item strong {
  color: var(--brand-navy);
  text-align: right;
}

/* ---------- Metrics Overlap Strip ---------- */
.metrics-strip {
  margin-top: -54px;
  position: relative;
  z-index: 20;
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.metric-card {
  padding: 24px 22px;
  border-right: 1px solid var(--border-color);
  transition: background-color var(--transition);
}

.metric-card:last-child {
  border-right: none;
}

.metric-card:hover {
  background-color: var(--brand-teal-tint);
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-teal);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Sections Common ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-header {
  max-width: 740px;
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Segment Cards (Royal Pacific / Waringin Inspired) ---------- */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.segment-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-teal);
}

.segment-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--brand-teal-tint);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.segment-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.segment-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.text-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  gap: 10px;
}

/* ---------- Narrative Feature Block (Royal Pacific Harvest Inspired) ---------- */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 540px;
  object-fit: cover;
}

.about-media-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(7, 42, 57, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.about-media-badge strong {
  display: block;
  color: #7dd3fc;
  margin-bottom: 2px;
}

.about-narrative-card {
  background: linear-gradient(155deg, var(--brand-navy) 0%, #0b3c51 100%);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-narrative-card .section-kicker {
  color: #7dd3fc;
}

.about-narrative-card h2 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  margin-bottom: 18px;
}

.about-narrative-card p {
  color: #cbd5e1;
  font-size: 0.9625rem;
  line-height: 1.78;
}

.about-narrative-card a.inline-seo-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-narrative-card a.inline-seo-link:hover {
  color: #ffffff;
}

.narrative-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- Unit Showcase (Tahap 2 Tipe D & Tahap 1 Sold Out) ---------- */
.units-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.unit-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.unit-gallery-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.unit-tab-btn {
  padding: 9px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.unit-tab-btn.active {
  color: var(--brand-teal);
  border-bottom-color: var(--brand-teal);
  background: #ffffff;
  border-radius: 8px 8px 0 0;
}

.unit-preview-wrap {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.unit-preview-img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
  display: none;
}

.photo-tile.contain-img {
  background: #ffffff;
}

.photo-tile.contain-img img {
  object-fit: contain;
  padding: 8px;
}

.unit-preview-img.active {
  display: block;
}

.unit-body {
  padding: 24px;
}

.unit-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 14px 0 20px;
}

.spec-table th,
.spec-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 44%;
}

.spec-table td {
  color: var(--brand-navy);
  font-weight: 700;
}

.soldout-banner {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 5px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Facilities Grid (White Icons Placed in Teal Badges) ---------- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.facility-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.facility-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-teal);
}

.facility-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.facility-icon-box img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.facility-card h3 {
  font-size: 0.925rem;
  margin-bottom: 4px;
}

.facility-card p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.45;
}

/* ---------- Strategic Access Distance List ---------- */
.distances-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.distance-card {
  background: var(--brand-teal-tint);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}

.distance-km {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-teal);
  line-height: 1.1;
  margin-bottom: 6px;
}

.distance-place {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
}

/* ---------- Video & Photo Gallery ---------- */
.gallery-preview-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.video-embed-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}

.video-embed-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.photo-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: #e2e8f0;
  border: none;
  padding: 0;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-tile:hover img {
  transform: scale(1.06);
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  background-color: var(--brand-teal-tint);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--brand-teal);
  font-weight: 700;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
}

.faq-item.open .faq-answer {
  display: block;
  padding-top: 14px;
}

/* ---------- Articles / Guides ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-body p {
  font-size: 0.8875rem;
  flex: 1;
}

/* ---------- Contact & Map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(0, 118, 152, 0.14);
}

.form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-feedback.show {
  display: block;
  background-color: var(--accent-emerald-bg);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.map-box iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.office-info-box {
  padding: 20px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 0.875rem;
}

.office-info-box strong {
  display: block;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

/* ---------- Newsletter Bar (Non-Intrusive Replacement for Popup) ---------- */
.newsletter-band {
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-navy) 100%);
  color: #ffffff;
  padding: 36px 0;
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.newsletter-copy h2 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.newsletter-copy p {
  color: #e0f2fe;
  margin: 0;
  font-size: 0.925rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 260px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
}

/* ---------- Page Banner (For Subpages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--brand-navy-deep) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  padding: 52px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #bae6fd;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: underline;
}

.page-banner h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 10px;
}

.page-banner p {
  color: #e2e8f0;
  max-width: 720px;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--brand-navy-deep);
  color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-wrap {
  background: #ffffff;
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-logo-wrap img {
  height: 44px;
  width: auto;
}

.footer-motto {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  margin-bottom: 10px;
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* ---------- Floating WhatsApp & Back-to-Top ---------- */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-float {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--wa-green);
  color: #052e16;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.38);
}

.wa-float:hover {
  background-color: var(--wa-green-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.scroll-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--brand-navy);
  color: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.scroll-top-btn.visible {
  display: inline-flex;
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 27, 38, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  color: #e2e8f0;
  margin-top: 12px;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Responsive Rules ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .about-split,
  .units-layout,
  .gallery-preview-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card:nth-child(2) {
    border-right: none;
  }

  .metric-card:nth-child(1),
  .metric-card:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }

  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid,
  .distances-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-grid,
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 6px 16px;
  }

  .header-cta {
    margin: 10px 0 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .metrics-grid,
  .segments-grid,
  .facilities-grid,
  .distances-grid,
  .articles-grid,
  .gallery-full-grid,
  .form-grid,
  .office-info-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .metric-card:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 52px 0 88px;
  }

  .about-narrative-card {
    padding: 26px 22px;
  }

  .wa-float span.wa-label {
    display: none;
  }
}

/* ---------- Standalone Articles & Legal Pages ---------- */
.prose-container {
  max-width: 820px;
  margin: 0 auto;
}

.prose-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.prose-cover img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.prose-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-body h3 {
  font-size: 1.125rem;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.prose-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.prose-body ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
  color: var(--text-main);
}

.prose-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose-cta-box {
  margin-top: 32px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--brand-teal-tint);
  border: 1px solid #bae6fd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  color: #cbd5e1;
}

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Brochure Lead-Magnet Notice & Action Buttons ---------- */
.brochure-notice {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-teal-tint);
  border: 1px solid #7dd3fc;
  color: #0c4a6e;
  font-size: 0.9rem;
  line-height: 1.55;
}

.brochure-notice.show {
  display: block;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
