/*
Theme Name: Cedar Transitional Capital
Theme URI: https://cedartransitionalcapital.com
Author: Cedar Transitional Capital
Description: Premium institutional real estate finance theme - structured capital solutions where timing and complexity matter.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cedar-tc
Tags: business, finance, real-estate, professional
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --cream:        #F5F2EC;
  --cream-dark:   #EDEAD3;
  --white:        #FFFFFF;
  --ink:          #1A1A18;
  --ink-mid:      #2E2E2C;
  --ink-light:    #5A5A56;
  --ink-faint:    #8A8A84;
  --border:       #E2DDD6;
  --border-dark:  #C8C3B8;
  --forest:       #2C3E2D;
  --forest-mid:   #3D5C3F;

  --font-serif:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', 'DM Sans', system-ui, sans-serif;

  --nav-h:        64px;
  --max-w:        1200px;
  --max-w-text:   640px;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  display: block;
  margin-bottom: 0.875rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; }

p { color: var(--ink-light); line-height: 1.75; font-size: 0.9375rem; }

/* =============================================
   LAYOUT
   ============================================= */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.wrap--narrow {
  max-width: 780px;
}

.wrap--text {
  max-width: var(--max-w-text);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--sm {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

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

.section--dark .t-eyebrow { color: rgba(255,255,255,0.45); }

.section--white { background: var(--white); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

@media (max-width: 960px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 900;
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.nav-logo__mark {
  width: 28px;
  height: 28px;
  background: var(--forest);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo__mark svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.85); }
.nav-logo__text {}
.nav-logo__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
.nav-logo__sub {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  line-height: 1;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-light);
  padding: 0.375rem 0.75rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.current-menu-item {
  color: var(--ink);
  background: rgba(0,0,0,0.05);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 899;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-arrow::after {
  content: '→';
  font-size: 0.875rem;
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink-mid);
  color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-dark);
}
.btn--outline-light:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost {
  color: var(--ink-light);
  background: transparent;
  border-color: var(--border);
  font-size: 0.8125rem;
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink-light);
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.page-header .t-eyebrow { margin-bottom: 0.75rem; }
.page-header h1 { margin-bottom: 1rem; max-width: 600px; }
.page-header p { max-width: 540px; font-size: 1rem; }

/* =============================================
   HERO (Homepage)
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,24,0.2) 0%,
    rgba(26,26,24,0.55) 60%,
    rgba(26,26,24,0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  padding-block: clamp(5rem, 10vw, 8rem);
  max-width: 640px;
}

.hero .t-eyebrow { color: rgba(255,255,255,0.5); }

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* =============================================
   FRAMEWORK CARDS (5 pillars)
   ============================================= */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.framework-card {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.framework-card:last-child { border-right: none; }
.framework-card:hover { background: var(--white); }

.framework-card__num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 1rem;
}

.framework-card__title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.framework-card__text {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .framework-grid { grid-template-columns: repeat(3, 1fr); }
  .framework-card { border-bottom: 1px solid var(--border); }
}
@media (max-width: 540px) {
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   MANDATE / DARK BAND
   ============================================= */
.mandate-band {
  background: var(--ink);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.mandate-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.mandate-band h2 { color: var(--white); }
.mandate-band .t-eyebrow { color: rgba(255,255,255,0.4); }

.mandate-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.mandate-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.mandate-list li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-top: 0.6em;
}

@media (max-width: 640px) {
  .mandate-band__inner { grid-template-columns: 1fr; }
}

/* =============================================
   TWO PATHWAYS CARDS
   ============================================= */
.pathway-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.pathway-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.pathway-card .t-eyebrow { margin-bottom: 0.5rem; }
.pathway-card h3 { margin-bottom: 0.875rem; }
.pathway-card p { margin-bottom: 1.75rem; font-size: 0.875rem; }

.pathway-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  transition: gap 0.2s;
}
.pathway-link:hover { gap: 0.7rem; }
.pathway-link::after { content: '→'; }

/* =============================================
   MANDATE CHARACTERISTICS
   ============================================= */
.characteristics-section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.char-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.char-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.char-list h5 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.875rem;
}

.char-list ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.char-list li {
  font-size: 0.8125rem;
  color: var(--ink-light);
  padding-left: 0.875rem;
  position: relative;
}

.char-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-dark);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .char-grid { grid-template-columns: 1fr; }
  .char-lists { grid-template-columns: 1fr; }
}

/* =============================================
   THREE COLUMN FEATURE
   ============================================= */
.feature-col {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.feature-col__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.625rem;
}

.feature-col__text {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* =============================================
   SPLIT CONTENT (Approach page)
   ============================================= */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 768px) {
  .content-split { grid-template-columns: 1fr; }
}

/* Bullet list */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.bullet-list li::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* Check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-light);
}

.check-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='none' stroke='%23C8C3B8'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%232C3E2D' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* Blockquote / pullout */
.pullout {
  border-left: 2px solid var(--border-dark);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.75;
}

/* =============================================
   WHO WE WORK WITH / WHAT WE AVOID
   ============================================= */
.dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.panel-box {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.panel-box__title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .dual-panel { grid-template-columns: 1fr; }
}

/* =============================================
   BORROWERS PAGE
   ============================================= */
.solution-card {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.solution-card__num {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--border-dark);
  margin-bottom: 0.75rem;
}

.solution-card h3 { margin-bottom: 0.625rem; }
.solution-card p { font-size: 0.875rem; }

/* Dark documentation band */
.doc-band {
  background: var(--ink);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.doc-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.doc-band h2 { color: var(--white); margin-bottom: 1rem; }
.doc-band .t-eyebrow { color: rgba(255,255,255,0.4); }
.doc-band p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }

.doc-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.75rem;
}

.doc-card__icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.doc-card__icon svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.7); fill: none; }

.doc-card h4 { color: var(--white); font-family: var(--font-serif); margin-bottom: 0.25rem; }
.doc-card__meta { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.doc-card p { font-size: 0.8125rem; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; }

@media (max-width: 640px) {
  .doc-band__inner { grid-template-columns: 1fr; }
}

/* =============================================
   CAPITAL PARTNERS PAGE
   ============================================= */
.principles-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.principle-item {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-light);
}
.principle-item:first-child { border-top: 1px solid var(--border); }

.access-feature {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.access-feature:last-child { border-bottom: none; }
.access-feature h4 { color: var(--white); margin-bottom: 0.375rem; font-family: var(--font-serif); }
.access-feature p { font-size: 0.8125rem; color: rgba(255,255,255,0.55); }

@media (max-width: 640px) {
  .principles-split { grid-template-columns: 1fr; }
}

/* =============================================
   INVESTMENTS PAGE (Eligibility Gate)
   ============================================= */
.eligibility-gate {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.eligibility-gate__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--ink-light);
}

.eligibility-gate h2 { margin-bottom: 0.75rem; }
.eligibility-gate p { margin-bottom: 2rem; }

.eligibility-checkbox {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.eligibility-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--ink);
}

.eligibility-checkbox label {
  font-size: 0.8125rem;
  color: var(--ink-light);
  line-height: 1.65;
  cursor: pointer;
}

/* =============================================
   INSIGHTS / BLOG
   ============================================= */
.insights-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink-light);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.insight-card {}
.insight-card .t-eyebrow { margin-bottom: 0.375rem; }
.insight-card__date { font-size: 0.75rem; color: var(--ink-faint); }
.insight-card h3 { margin-bottom: 0.625rem; font-size: 1.15rem; line-height: 1.3; }
.insight-card p { font-size: 0.875rem; margin-bottom: 1rem; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 500;
  transition: gap 0.2s, color 0.2s;
}
.read-more::after { content: '→'; }
.read-more:hover { gap: 0.65rem; color: var(--ink); }

/* Subscribe band */
.subscribe-band {
  background: var(--ink);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.subscribe-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.subscribe-band p { color: rgba(255,255,255,0.55); margin-bottom: 2rem; max-width: 420px; margin-inline: auto; margin-bottom: 2rem; }

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 380px;
  margin-inline: auto;
}
.subscribe-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: 2px 0 0 2px;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.35); }
.subscribe-form input:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.subscribe-form button {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.subscribe-form button:hover { background: rgba(255,255,255,0.88); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  gap: 0;
}

.contact-tab {
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: var(--white);
}
.contact-tab:hover { color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Contact form */
.enquiry-form {
  max-width: 620px;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-light);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  border-radius: 2px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-faint);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-upload {
  border: 1px dashed var(--border-dark);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--ink-light);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1rem;
}
.form-upload:hover { border-color: var(--ink-light); background: var(--white); }
.form-upload input[type="file"] { display: none; }
.form-upload svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--ink-faint); }

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--cream);
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { margin-bottom: 2rem; max-width: 440px; margin-inline: auto; margin-bottom: 2rem; }

/* Important notice box */
.notice-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1.5rem 2rem;
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice-box__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.notice-box h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.notice-box p { font-size: 0.8125rem; color: rgba(255,255,255,0.55); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
}

.footer-brand {}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
.footer-brand__logo-mark {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.footer-brand__logo-name {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1rem;
}
.footer-brand__logo-sub {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.3);
  display: block;
}

.footer-brand__desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col__heading {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  padding: 0.275rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col a.footer-highlight {
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   UTILITIES
   ============================================= */
.mt-xs  { margin-top: 0.5rem; }
.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 2rem; }
.mt-lg  { margin-top: 3rem; }
.mb-sm  { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.hidden { display: none !important; }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 580px;
  margin-inline: auto;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 2.25rem;
  margin-bottom: 0.625rem;
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 0.875rem;
}

.legal-content ul {
  margin: 0.75rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-content ul li {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}

.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-dark);
  font-size: 0.75rem;
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--forest);
}

.legal-content strong {
  font-weight: 600;
  color: var(--ink);
}

.legal-date {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem !important;
  color: var(--ink-faint) !important;
}

/* Risk notice dark box */
.risk-notice {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 1.75rem 2rem;
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  border-radius: 2px;
}

/* WordPress core alignment */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--ink-faint); text-align: center; margin-top: 0.5rem; }
