/*
  Layout: full-width banded sections, centered content column (max 1100px)
  Color: slate-blue base, warm amber accent, stone neutrals
  Type: Playfair Display (headings) + Inter (body/UI)
*/

:root {
  --bg:       #f7f6f3;
  --bg-alt:   #ede9e0;
  --surface:  #ffffff;
  --navy:     #1c2a3a;
  --navy-mid: #2c3e52;
  --amber:    #b87333;
  --amber-lt: #d4944a;
  --fg:       #1c2a3a;
  --fg-mid:   #4a5568;
  --fg-muted: #718096;
  --border:   #dbd5c8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:       #111820;
    --bg-alt:   #192130;
    --surface:  #1e2d3d;
    --navy:     #d4c9b4;
    --navy-mid: #b8c8d8;
    --amber:    #d4944a;
    --amber-lt: #e8a85a;
    --fg:       #e8dfd0;
    --fg-mid:   #a8b8c8;
    --fg-muted: #7a8fa0;
    --border:   #2a3d50;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:       #111820;
  --bg-alt:   #192130;
  --surface:  #1e2d3d;
  --navy:     #d4c9b4;
  --navy-mid: #b8c8d8;
  --amber:    #d4944a;
  --amber-lt: #e8a85a;
  --fg:       #e8dfd0;
  --fg-mid:   #a8b8c8;
  --fg-muted: #7a8fa0;
  --border:   #2a3d50;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 145px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Utilities ── */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-left:  max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ── Nav ── */
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 101;
  background: var(--navy);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  padding-left:  max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo svg {
  height: 113px;
  width: auto;
}

/* Invert dark fills to white in nav; keep green accent as-is */
.nav-logo svg [fill="#2a1f1a"] {
  fill: #ffffff;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--amber);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--amber-lt); color: #fff !important; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding-block: 80px 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 480px;
  height: 480px;
  background: var(--amber);
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-lt);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 660px;
  margin-bottom: 24px;
}

.hero h1 em {
  color: var(--amber-lt);
  font-style: normal;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.btn-primary {
  background: var(--amber);
  color: #fff;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--amber-lt); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 13px 28px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.3);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.65); color: #fff; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding-left:  max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.trust-item {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ── Sections ── */
.section {
  padding-block: 80px;
}

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

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

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-dark .section-label {
  color: var(--amber-lt);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 16px;
  color: var(--fg);
}

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

.section-intro {
  font-size: 1.05rem;
  color: var(--fg-mid);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.section-dark .section-intro {
  color: rgba(255,255,255,0.7);
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  border-radius: 6px 6px 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--amber);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--fg-mid);
  line-height: 1.7;
}

/* ── CM Services ── */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cm-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 28px 24px;
}

.cm-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber-lt);
  margin-bottom: 10px;
}

.cm-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ── Who We Serve ── */
.serve-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.serve-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}

.serve-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--amber);
}

/* ── About ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
}

.about-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.about-stat {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 5px;
  border: 1px solid var(--border);
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.about-visual {
  background: var(--navy);
  border-radius: 8px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-visual::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--amber);
  opacity: 0.12;
  border-radius: 50%;
}

.about-visual-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-lt);
  margin-bottom: 20px;
}

.about-visual ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-visual li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.about-visual li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--fg);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--fg-mid);
}

.contact-detail:first-of-type { border-top: 1px solid var(--border); }

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--amber);
}

.contact-detail a {
  color: var(--fg);
  text-decoration: none;
}

.contact-detail strong {
  color: var(--fg);
  margin-right: 6px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

input, select, textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--amber);
}

textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.form-submit:hover { background: var(--amber-lt); }

.form-success {
  background: #d4edda;
  color: #1a5c2a;
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}
.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding-block: 32px;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left:  max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo span { color: var(--amber-lt); }

/* ── Nav mobile ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 20px 20px;
    gap: 14px;
  }
  nav { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}