:root {
  --bg: #0f1c1a;
  --bg-elevated: #162824;
  --surface: #faf7f2;
  --surface2: #f0ebe3;
  --text: #0d1210;
  --text-muted: #3d4f4a;
  --accent: #2d9b6a;
  --accent-dark: #1f6f4b;
  --sun: #e07a3a;
  --sun-soft: rgba(224, 122, 58, 0.15);
  --border: rgba(13, 18, 16, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --radius: 12px;
  --shadow: 0 24px 60px rgba(15, 28, 26, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.nav-cta {
  padding: 0.45rem 1rem;
  background: var(--text);
  color: var(--surface) !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background: var(--bg);
  color: var(--surface);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(45, 155, 106, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 60%, rgba(224, 122, 58, 0.2), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(250, 247, 242, 0.06), transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 247, 242, 0.65);
  margin: 0 0 0.75rem;
}

.hero-copy h1 {
  color: var(--surface);
}

.lead {
  font-size: 1.125rem;
  color: rgba(250, 247, 242, 0.82);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--surface);
  border-color: rgba(250, 247, 242, 0.35);
}

.btn-ghost:hover {
  border-color: var(--surface);
  color: var(--surface);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.7);
}

.hero-badges li::before {
  content: "◆";
  color: var(--accent);
  margin-right: 0.35rem;
  font-size: 0.55rem;
  vertical-align: middle;
}

.hero-panel {
  background: var(--bg-elevated);
  border: 1px solid rgba(250, 247, 242, 0.1);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-card {
  background: linear-gradient(135deg, rgba(45, 155, 106, 0.2), transparent);
  border: 1px solid rgba(45, 155, 106, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.panel-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.55);
}

.panel-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--surface);
  line-height: 1.1;
}

.panel-sub {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.65);
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.35rem;
  justify-content: center;
}

.flow-node {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(250, 247, 242, 0.15);
  border-radius: 8px;
  color: rgba(250, 247, 242, 0.92);
}

.flow-node.accent {
  background: var(--sun-soft);
  border-color: rgba(224, 122, 58, 0.45);
  color: #ffc8a8;
}

.flow-line {
  font-family: var(--font-display);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 242, 0.45);
  width: 100%;
  text-align: center;
}

@media (min-width: 420px) {
  .flow-line {
    width: auto;
  }
}

/* Trust strip */
.strip {
  border-block: 1px solid var(--border);
}

.trust-inner {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .trust-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.trust-item strong {
  font-family: var(--font-display);
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.trust-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

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

.section-head {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
}

.section-head p {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(45, 155, 106, 0.35);
  box-shadow: 0 16px 40px rgba(15, 28, 26, 0.08);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--bg);
  color: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(250, 247, 242, 0.12);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.7);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-card.wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .price-card.wide {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
  }

  .price-card.wide .btn {
    margin-left: auto;
  }
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(45, 155, 106, 0.12);
}

.ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--sun);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.price-range {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text);
  margin: 0.35rem 0 0.5rem;
}

.price-range span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-note {
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Architecture */
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 640px;
  margin: 0 auto;
}

.arch-layer {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.arch-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(160deg, var(--bg) 0%, #1a332e 100%);
  color: var(--surface);
}

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .cta-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.cta-section h2 {
  color: var(--surface);
}

.cta-section p {
  color: rgba(250, 247, 242, 0.78);
  margin-bottom: 0;
}

.cta-inner .contact-column > p {
  margin-bottom: 0.85rem;
}

.contact-email-lead {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

.contact-mailto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(45, 155, 106, 0.6);
}

.contact-mailto:hover {
  color: #c8f5e0;
  border-bottom-color: var(--accent);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.1);
  color: rgba(250, 247, 242, 0.92);
  border: 1px solid rgba(250, 247, 242, 0.2);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-offices {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .contact-offices {
    grid-template-columns: 1fr 1fr;
  }
}

.office-card {
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.office-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.55);
  margin: 0 0 0.5rem;
}

.office-lines {
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.82);
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.office-lines:last-child {
  margin-bottom: 0;
}

.office-lines a {
  color: #b8ebd4;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 235, 212, 0.35);
}

.office-lines a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.contact-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.85);
}

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

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  background: rgba(250, 247, 242, 0.08);
  color: var(--surface);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(250, 247, 242, 0.4);
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(250, 247, 242, 0.75);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.15fr 1fr 0.95fr 0.95fr;
    align-items: start;
  }
}

.footer-brand .small a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 155, 106, 0.45);
}

.footer-brand .small a:hover {
  color: #7dd4a8;
  border-bottom-color: #7dd4a8;
}

.footer-social {
  margin-top: 1rem;
  margin-bottom: 0;
}

.footer-address {
  line-height: 1.5;
}

.footer-logo {
  color: var(--surface);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

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

.footer-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.5);
  margin: 0 0 0.65rem;
}

.site-footer a {
  display: block;
  color: rgba(250, 247, 242, 0.85);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.small {
  font-size: 0.92rem;
  margin: 0;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.45);
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  margin: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
    justify-self: stretch;
  }
}

.site-header {
  position: relative;
}
