/* ==========================================================================
   ACACIA FAMILY OFFICE ADVISORY — MASTER STYLESHEET
   Handcrafted clean CSS for static deployment (Cloudflare Pages compatible)
   Zero external build steps. Zero Tailwind runtime. Pure semantic styling.
   ========================================================================== */

/* Design Tokens */
:root {
  --forest: #1B382B;
  --forest-dark: #13281F;
  --ivory: #FAF8F4;
  --stone: #EFECE6;
  --stone-dim: #E5E1D8;
  --stone-bar: #E2DDD4;
  --charcoal: #282D2B;
  --muted: #726F68;
  --bronze: #9E743F;
  --deep-bronze: #8A6230;
  --light-bronze: #C4AB86;
  --hairline: #E2DED6;
  --hairline-stone: #DDD8CE;
  --hairline-forest: #3B5D55;
  --hairline-dark: rgba(250, 248, 244, 0.16);
  --field-border: #858A84;
  --error: #9A3324;
  --white: #FFFFFF;

  --font-serif: "EB Garamond", Georgia, serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-content-width: 1200px;
  --header-height: 72px;
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--forest);
  color: var(--ivory);
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--forest);
}

.headline-hero {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--forest);
}

.headline-section {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest);
}

.row-title {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--forest);
}

.statement {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--forest);
}

.lead-paragraph {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--forest);
}

.body-text {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 68ch;
}

.caption-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-bronze);
  display: block;
  margin-bottom: 16px;
}

.eyebrow-light {
  color: var(--light-bronze);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 24px;
  background: var(--forest);
  color: var(--ivory);
  padding: 12px 24px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--bronze);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.bg-forest :focus-visible,
.footer-container :focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-compact {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Band Backgrounds */
.bg-ivory {
  background-color: var(--ivory);
}
.bg-stone {
  background-color: var(--stone);
}
.bg-forest {
  background-color: var(--forest);
  color: var(--ivory);
}
.bg-forest h2,
.bg-forest h3,
.bg-forest h4,
.bg-forest .statement {
  color: var(--ivory);
}
.bg-forest p {
  color: rgba(250, 248, 244, 0.92);
}

.border-b-hairline {
  border-bottom: 1px solid var(--hairline);
}
.border-t-hairline {
  border-top: 1px solid var(--hairline);
}
.border-b-stone {
  border-bottom: 1px solid var(--hairline-stone);
}
.border-t-stone {
  border-top: 1px solid var(--hairline-stone);
}

/* 12-Column Grid & Column Utilities */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-5 {
  grid-column: span 5;
}
.col-6-offset {
  grid-column: 7 / span 6;
}
.col-4 {
  grid-column: span 4;
}
.col-8-offset {
  grid-column: 5 / span 8;
}
.col-6 {
  grid-column: span 6;
}
.col-5-offset {
  grid-column: 8 / span 5;
}
.col-7 {
  grid-column: span 7;
}
.col-5-end {
  grid-column: 8 / span 5;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  width: 100%;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--forest);
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  color: var(--forest);
  letter-spacing: normal;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  transition: color 0.15s ease;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: var(--bronze);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--bronze);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
}

/* Standard Buttons (48px high, square corners, 16px weight 600, sentence case) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-left: 28px;
  padding-right: 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-header {
  height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--forest);
  color: var(--ivory);
}
.btn-primary:hover {
  background-color: var(--forest-dark);
  color: var(--ivory);
}

.btn-outline {
  background-color: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-outline:hover {
  background-color: var(--forest);
  color: var(--ivory);
}

.btn-inverted {
  background-color: var(--ivory);
  color: var(--forest);
}
.btn-inverted:hover {
  background-color: var(--white);
  color: var(--forest);
}

/* Hero Section */
.hero-section {
  position: relative;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background-color: var(--ivory);
}

.hero-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.hero-text-col {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
  padding-right: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 28px;
}

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

.hero-location-rule {
  width: 32px;
  height: 1px;
  background-color: var(--bronze);
  flex-shrink: 0;
}

.hero-image-col {
  grid-column: span 5;
  position: relative;
  height: 100%;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Callout Note with Bronze Bar */
.note-callout {
  border-left: 2px solid var(--bronze);
  padding-left: 20px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.note-callout p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* International Centres 6-cell Grid */
.centres-grid {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 48px;
}

.centre-cell {
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--hairline);
}
.centre-cell:last-child {
  border-right: none;
}

.centre-cell span {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--forest);
  line-height: 1.25;
}

/* Structured List Rows */
.rule-list {
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
}

.rule-list-item {
  border-bottom: 1px solid var(--hairline);
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
}

/* Multi-row layout (4 col title / 7 col description) */
.split-rows {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
}

.split-row {
  border-bottom: 1px solid var(--hairline);
  padding-top: 36px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: baseline;
}

.split-row-title {
  grid-column: span 4;
}

.split-row-desc {
  grid-column: 6 / span 7;
}

/* STRUCTURE SECTION DIAGRAM STYLES */
.structure-diagram {
  margin-top: 48px;
  margin-bottom: 40px;
  position: relative;
}

.diagram-columns {
  display: grid;
  grid-template-columns: 1fr 36px 1.4fr 36px 1.6fr;
  gap: 16px;
  align-items: stretch;
  position: relative;
}

.desktop-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
}

.mobile-connector {
  display: none;
}

.diagram-col-header {
  border-bottom: 1px solid var(--hairline-stone);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.diagram-col-header span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-bronze);
}

.diagram-box {
  border: 1px solid var(--hairline-stone);
  background-color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.diagram-box-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 8px;
}

.diagram-box-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Column 1: Family */
.family-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100% - 40px);
}
.family-boxes .diagram-box {
  flex: 1;
}

/* Column 2: Structure */
.structure-boxes-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  height: calc(100% - 40px);
}

.structure-box-col {
  flex: 1;
  height: 100%;
}
.structure-box-col .diagram-box {
  height: 100%;
}

.structure-arrow-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
}

/* Column 3: Assets */
.assets-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assets-panel {
  border: 1px solid var(--hairline-stone);
  background-color: var(--white);
  padding: 16px 20px;
}

.assets-panel-title {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 12px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-item {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--hairline-stone);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--charcoal);
  background-color: var(--stone);
}

.subsidiary-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subsidiary-branches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  position: relative;
}

.subsidiary-branches::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -2px;
  bottom: 14px;
  width: 1px;
  background-color: var(--hairline-stone);
}

.subsidiary-branches .tag-item {
  position: relative;
}
.subsidiary-branches .tag-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 12px;
  height: 1px;
  background-color: var(--hairline-stone);
}

/* Structure connecting arrows bar & caption */
.structure-bar {
  border: 1px solid var(--bronze);
  background-color: var(--white);
  padding: 20px 24px;
  margin-top: 32px;
  text-align: center;
}

.structure-bar p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--forest);
}

.structure-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 14px;
  text-align: left;
}

/* Ecosystem / Principles List */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-bottom: 1px solid var(--hairline-dark);
  margin-top: 24px;
  margin-bottom: 40px;
}

.principle-item {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.principle-num {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--light-bronze);
  flex-shrink: 0;
  letter-spacing: 0.08em;
}

.principle-text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.92);
}

/* What You Receive Previews (Strict 4:3 Aspect Ratio) */
.previews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 32px;
}

.preview-col {
  display: flex;
  flex-direction: column;
}

.doc-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--white);
  border: 1px solid var(--hairline);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.doc-header {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--forest);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.doc-row {
  margin-bottom: 8px;
}

.doc-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
  margin-bottom: 4px;
}

.doc-bar {
  height: 8px;
  background-color: var(--stone-bar);
}

.doc-bar-sm {
  height: 6px;
  background-color: var(--stone-bar);
  width: 25%;
}

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

.doc-row-flex .doc-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table th {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
}

.doc-table td {
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(226, 222, 214, 0.6);
}

.status-tag {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-bronze {
  border: 1px solid rgba(158, 116, 63, 0.6);
  color: var(--bronze);
}

.status-forest {
  border: 1px solid rgba(27, 56, 43, 0.6);
  color: var(--forest);
}

.status-muted {
  border: 1px solid rgba(114, 111, 104, 0.6);
  color: var(--muted);
}

.preview-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 10px;
}

.preview-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  font-weight: 300;
}

/* Who We Help List */
.who-list {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.who-list-item {
  border-bottom: 1px solid var(--hairline);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 28px;
}
.who-list-item:last-child {
  border-bottom: none;
}

.who-num {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--bronze);
  flex-shrink: 0;
  letter-spacing: 0.08em;
}

.who-text {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
  color: var(--forest);
}

/* Footer (Charcoal #282D2B) */
.site-footer {
  background-color: var(--charcoal);
  color: var(--ivory);
  padding-top: 72px;
  padding-bottom: 48px;
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
}

.footer-brand-wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ivory);
}

.footer-brand-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-bronze);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--light-bronze);
}

.footer-rule {
  width: 100%;
  height: 1px;
  background-color: rgba(250, 248, 244, 0.14);
}

.footer-notes {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-note {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.65);
  max-width: 800px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(250, 248, 244, 0.65);
}

.footer-bottom a {
  color: rgba(250, 248, 244, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.footer-bottom a:hover {
  color: var(--ivory);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .headline-hero {
    font-size: 48px;
    line-height: 1.1;
  }
  .headline-section {
    font-size: 36px;
    line-height: 1.18;
  }
  .col-5,
  .col-6-offset,
  .col-4,
  .col-8-offset,
  .col-6,
  .col-5-offset,
  .col-7,
  .col-5-end {
    grid-column: span 12;
  }
  .previews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .centres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .centre-cell:nth-child(3) {
    border-right: none;
  }
  .centre-cell:nth-child(4),
  .centre-cell:nth-child(5),
  .centre-cell:nth-child(6) {
    border-top: 1px solid var(--hairline);
  }
  .diagram-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .desktop-connector {
    display: none !important;
  }
  .mobile-connector {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
  }
}

@media (max-width: 767.98px) {
  /* Prevent horizontal scrolling at 390px */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* One column */
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .col-5,
  .col-6-offset,
  .col-4,
  .col-8-offset,
  .col-6,
  .col-5-offset,
  .col-7,
  .col-5-end {
    grid-column: span 12 !important;
    width: 100%;
  }

  /* 20px side margins */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* 56px section padding */
  .section-padding {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .section-compact {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* 64px header with wordmark at 24px and Menu button 48px high, no visible links */
  .site-header {
    height: 64px !important;
  }
  .header-inner {
    padding-left: 0;
    padding-right: 0;
  }
  .brand-wordmark {
    font-size: 24px !important;
  }
  .brand-sub {
    font-size: 9px !important;
    letter-spacing: 0.16em !important;
  }
  .nav-group {
    display: none !important;
  }
  .menu-toggle {
    display: inline-flex !important;
  }

  /* Typography scale */
  .headline-hero {
    font-size: 36px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
  }
  .headline-section {
    font-size: 32px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
  }
  .row-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
  .statement {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }
  .body-text {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }
  .lead-paragraph {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }

  /* Buttons full width */
  .btn,
  .hero-actions .btn,
  .form-submit-btn,
  .mobile-menu-cta {
    width: 100% !important;
  }

  /* Every tappable element at least 44px high */
  a.btn,
  button.btn,
  .menu-toggle,
  .menu-close-btn,
  .form-submit-btn {
    min-height: 48px;
    height: 48px;
  }
  .footer-nav a,
  .footer-bottom a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Six place-name cells stack as rows at least 48px high */
  .centres-grid {
    grid-template-columns: 1fr !important;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    margin-top: 32px;
  }
  .centre-cell {
    min-height: 48px !important;
    height: auto !important;
    padding: 14px 0 !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid var(--hairline) !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .centre-cell:last-child {
    border-bottom: none !important;
  }
  .centre-cell span {
    font-size: 20px !important;
  }

  /* Four previews stack one per row */
  .previews-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* Two-column principles list becomes one column */
  .principles-grid {
    grid-template-columns: 1fr !important;
    margin-top: 16px;
    margin-bottom: 32px;
  }
  .principle-item {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* Split rows stack */
  .split-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .split-row-title,
  .split-row-desc {
    grid-column: span 12 !important;
  }

  /* Hero layout */
  .hero-grid {
    grid-template-columns: 1fr !important;
    min-height: auto;
    gap: 0;
  }
  .hero-text-col {
    grid-column: span 12 !important;
    padding-right: 0 !important;
    padding-top: 32px !important;
    padding-bottom: 36px !important;
  }
  .hero-image-col {
    grid-column: span 12 !important;
    min-height: 280px;
    height: 320px;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 28px;
    margin-bottom: 24px;
    gap: 12px;
  }

  /* Structure diagram on mobile */
  .diagram-columns {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .structure-boxes-wrapper {
    flex-direction: column !important;
    gap: 0;
  }
  .structure-arrow-middle {
    transform: rotate(90deg) !important;
    margin: 12px 0 !important;
  }
  .desktop-connector {
    display: none !important;
  }
  .mobile-connector {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
  }

  /* Contact page */
  .contact-info-list {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .form-panel {
    padding: 24px !important;
  }

  /* Footer stacks */
  .site-footer {
    padding-top: 56px !important;
    padding-bottom: 40px !important;
  }
  .footer-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px;
    width: 100% !important;
  }
  .footer-notes {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    padding-top: 24px;
  }
}

/* Mobile Menu Toggle & Full-Screen Overlay */
.menu-toggle {
  display: none;
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--hairline);
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  user-select: none;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: var(--ivory);
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  flex-direction: column;
}

.mobile-menu-overlay.is-open {
  display: flex;
}

.mobile-menu-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.menu-close-btn {
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--hairline);
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  user-select: none;
}

.mobile-menu-body {
  padding: 0 20px 48px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--forest);
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--bronze);
}

.mobile-nav-link svg {
  flex-shrink: 0;
}

.mobile-menu-cta {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 36px;
  margin-bottom: 24px;
}

.mobile-menu-location {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Form Panel & Form Controls (Step 2) */
.form-panel {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  height: 48px;
  background-color: var(--white);
  border: 1px solid var(--field-border);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--charcoal);
  transition: border-color 0.15s ease, outline 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233C4043' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--field-border);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  resize: vertical;
}

.form-helper {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.checkbox-group {
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
}

.checkbox-row {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--hairline);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
  cursor: pointer;
  border: 1px solid var(--field-border);
}

.checkbox-label {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
}

.form-submit-btn {
  width: 100%;
  height: 48px;
  background-color: var(--forest);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease;
  margin-top: 8px;
}

.form-submit-btn:hover {
  background-color: var(--forest-dark);
}

.form-smallprint {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.form-smallprint a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.form-smallprint a:hover {
  color: var(--bronze);
}

/* Contact Page Left Column Info Lines */
.contact-info-list {
  margin-top: 48px;
}

.contact-info-item {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  padding-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
}
.contact-info-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

/* Success state replacement */
.form-success-state {
  padding: 16px 0;
}
.form-success-rule {
  width: 32px;
  height: 1px;
  background-color: var(--bronze);
  margin-bottom: 24px;
}
.form-success-heading {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 16px;
}
.form-success-desc {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 32px;
}

/* ==========================================================================
   LANGUAGE SWITCHER & CHINESE TYPOGRAPHY RULES
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 16px;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lang-link:hover {
  color: var(--forest);
}

.lang-link.is-active {
  color: var(--forest);
  font-weight: 600;
  cursor: default;
}

.lang-sep {
  color: var(--hairline);
  user-select: none;
}

.mobile-lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}

.break-comma {
  display: inline;
}

/* Chinese Typography Hierarchy */
html[lang="zh-Hant"],
html[lang="zh-Hans"] {
  --font-serif: "EB Garamond", "Noto Serif TC", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Noto Sans TC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[lang="zh-Hant"] body,
html[lang="zh-Hans"] body {
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

html[lang="zh-Hant"] p,
html[lang="zh-Hans"] p,
html[lang="zh-Hant"] .body-text,
html[lang="zh-Hans"] .body-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

html[lang="zh-Hant"] .headline-hero,
html[lang="zh-Hans"] .headline-hero {
  font-size: 52px;
  line-height: 1.25;
  text-align: left;
}

html[lang="zh-Hant"] .headline-section,
html[lang="zh-Hans"] .headline-section,
html[lang="zh-Hant"] h2,
html[lang="zh-Hans"] h2 {
  font-size: 38px;
  line-height: 1.3;
  text-align: left;
}

html[lang="zh-Hant"] .row-title,
html[lang="zh-Hans"] .row-title,
html[lang="zh-Hant"] h3,
html[lang="zh-Hans"] h3 {
  font-size: 26px;
  line-height: 1.35;
  text-align: left;
}

html[lang="zh-Hant"] .statement,
html[lang="zh-Hans"] .statement,
html[lang="zh-Hant"] .statement-text,
html[lang="zh-Hans"] .statement-text {
  font-size: 22px;
  line-height: 1.5;
  text-align: left;
}

html[lang="zh-Hant"] .lead-paragraph,
html[lang="zh-Hans"] .lead-paragraph {
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

html[lang="zh-Hant"] .eyebrow,
html[lang="zh-Hans"] .eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* Chinese Mobile Typography */
@media (max-width: 767.98px) {
  html[lang="zh-Hant"] .headline-hero,
  html[lang="zh-Hans"] .headline-hero {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }

  html[lang="zh-Hant"] .headline-section,
  html[lang="zh-Hans"] .headline-section,
  html[lang="zh-Hant"] h2,
  html[lang="zh-Hans"] h2 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  html[lang="zh-Hant"] .row-title,
  html[lang="zh-Hans"] .row-title {
    font-size: 24px !important;
  }

  html[lang="zh-Hant"] .mobile-nav-link span,
  html[lang="zh-Hans"] .mobile-nav-link span {
    font-size: 26px !important;
  }
}



