:root {
  color-scheme: light;
  --bg: #f4f7f4;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #ffffff;
  --text: #1c1b1a;
  --muted: #4a5a51;
  --accent: #223d2e;
  --accent-strong: #16291f;
  --line: rgba(22, 41, 31, 0.12);
  --shadow: 0 20px 60px rgba(34, 61, 46, 0.15);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  opacity: 0.15;
  z-index: -2;
}

.site-header {
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .primary-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.site-hero {
  padding: 3rem 0 5rem;
  background: radial-gradient(circle at top left, rgba(118, 156, 134, 0.35) 0%, rgba(244, 247, 244, 0) 55%),
    radial-gradient(circle at 80% 20%, rgba(34, 61, 46, 0.35), rgba(34, 61, 46, 0));
  position: relative;
  overflow: hidden;
}

.site-hero .hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.primary-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 7.8rem;
  height: 7.8rem;
  object-fit: contain;
  border-radius: 12px;
  border: none;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.nav-links .cta {
  background: var(--accent);
  color: #fff;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 3.75rem);
  margin: 0.4rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
}

.subtext {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.credential-list span {
  border: 1px solid var(--line);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions a {
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero-actions .primary {
  background: var(--accent);
  color: #fff;
}

.hero-actions .secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.hero-visual-mobile {
  display: none;
}

.portrait {
  width: min(420px, 100%);
  height: 600px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
  margin-left: auto;
  border: 1px solid var(--line);
}

.highlight-band {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.8rem 0;
  background: var(--accent);
  color: #fff;
}

.highlight-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.highlight-band span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}

.services {
  padding: 4.5rem 0;
}

.services > header,
.services > .service-stack {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.services header {
  margin-bottom: 3rem;
}

.service-stack {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.service-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  flex-wrap: wrap;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-visual {
  flex: 1 1 380px;
  display: flex;
  max-width: none;
}

.service-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 20px 35px rgba(28, 27, 26, 0.12);
}

.service-content {
  flex: 1 1 380px;
  background: var(--surface-strong);
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 2.2rem;
  box-shadow: 0 20px 35px rgba(28, 27, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.section-cta:hover {
  background: var(--accent);
  color: #fff;
}

.section-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-tagline {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.text-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.case-list {
  list-style: disc;
  padding-left: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.callout {
  padding: 3rem 0;
  background: linear-gradient(120deg, #223d2e 0%, #16291f 80%);
  color: #fff;
}

.callout div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.callout .ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.contact {
  padding: 4.5rem 0 5.5rem;
  background: var(--surface);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.contact-copy ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact-copy ul li a {
  color: var(--accent);
  text-decoration: none;
}

.contact-copy ul li a:hover {
  text-decoration: underline;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: #2f8f62;
}

.form-status[data-state="error"] {
  color: #b6412c;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  resize: vertical;
}

.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
}

.hp-field {
  position: absolute;
  left: -5000px;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

button.primary,
.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
}

button.primary:hover,
.primary:hover {
  background: var(--accent-strong);
}

footer {
  padding: 3rem 0;
  background: linear-gradient(160deg, #16291f 0%, #223d2e 70%);
  color: #f5f1eb;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(22, 41, 31, 0.2);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top:hover {
  background: var(--accent-strong);
}

.scroll-top:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-brand,
.footer-meta,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #f5f1eb;
}


.privacy-note {
  font-size: 0.85rem;
  color: rgba(245, 241, 235, 0.7);
  margin: 0;
}
.footer-brand {
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-brand .brand-logo {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem;
}

.footer-contact p,
footer p {
  margin: 0;
  color: rgba(245, 241, 235, 0.85);
}

footer a {
  color: #b6f0d0;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #e0ffe8;
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.8rem 0;
  }

  .site-header .primary-nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    position: relative;
  }

  .brand-mark {
    gap: 0.6rem;
    flex: 1;
  }

  .brand-mark .brand-logo {
    width: 5.6rem;
    height: 5.6rem;
  }

  .brand-mark p {
    font-size: 0.95rem;
    margin: 0;
  }

  .brand-mark small {
    font-size: 0.7rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0 0;
    margin-top: 0.8rem;
    border: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .cta {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--text);
    text-align: left;
  }

  .site-hero {
    padding: 2.5rem 1rem 4rem;
  }

  .site-hero .hero-grid {
    padding: 0 1rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
    width: 100%;
    margin: 1rem 0;
  }

  .hero-visual-mobile .portrait {
    width: min(420px, 100%);
    height: 500px;
    margin: 0 auto;
  }

  .services {
    padding: 3.5rem 0;
  }

  .services > header,
  .services > .service-stack {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact {
    padding: 3.5rem 0 4rem;
  }

  .contact-inner {
    padding: 0 1rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .service-visual img {
    min-height: 180px;
    width: 100%;
  }

  .service-row,
  .service-row.reverse {
    flex-direction: column;
  }

  .footer-inner {
    padding: 0 1rem;
  }

  .scroll-top {
    width: 42px;
    height: 42px;
    right: 1rem;
    bottom: 1rem;
    font-size: 1rem;
  }
}
