@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg: #080808;
  --bg-elevated: #111111;
  --bg-card: rgba(0, 48, 16, 0.55);
  --green: #003c10;
  --green-bright: #1f6b3a;
  --green-muted: #3d7a52;
  --white: #ffffff;
  --text: #ececec;
  --text-muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --max-width: 1200px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --radius: 4px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-md);
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
  padding-inline: 0;
}

@media (min-width: 768px) {
  .container,
  .container-wide {
    width: min(100% - 3rem, var(--max-width));
  }

  .container-wide {
    width: min(100% - 3rem, 1320px);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.brand {
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: stretch;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover .brand-title {
  color: var(--text);
}

.brand-logo {
  --brand-title-size: clamp(1rem, 2vw, 1.35rem);
  display: block;
  width: auto;
  height: calc(var(--brand-title-size) * 1.3 + 0.3rem + 0.8125rem * 1.4);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-title {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.3;
}

.brand-tagline {
  display: block;
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 28rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.site-nav a.active {
  color: var(--white);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--green-bright);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--white);
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.5) 0%,
    rgba(8, 8, 8, 0.72) 55%,
    rgba(8, 8, 8, 0.9) 100%
  );
}

@media (min-width: 768px) {
  .hero-bg::after {
    background: linear-gradient(
      100deg,
      rgba(8, 8, 8, 0.88) 0%,
      rgba(8, 8, 8, 0.55) 42%,
      rgba(8, 8, 8, 0.25) 68%,
      rgba(8, 8, 8, 0.45) 100%
    );
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .hero {
    min-height: calc(100svh - 76px);
    min-height: calc(100vh - 76px);
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(2rem, 4vh, 3.5rem) 0;
    min-height: inherit;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 0;
  width: 100%;
  container-type: inline-size;
  container-name: hero-left;
}

.hero-copy {
  flex: 1 1 auto;
  max-width: none;
}

@media (min-width: 768px) {
  .hero-copy {
    padding: 0;
  }
}

.eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-muted);
}

@media (min-width: 768px) {
  .eyebrow {
    margin-bottom: 1.25rem;
  }
}

.hero-title {
  margin: 0;
  width: 80%;
  max-width: 80%;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 9cqw, 3.75rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@supports not (font-size: 1cqw) {
  .hero-title {
    font-size: clamp(1.75rem, 5.2vw, 3.85rem);
  }
}

.hero-title__line {
  display: block;
}

.hero-title__line + .hero-title__line {
  margin-top: 0.06em;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.hero-panel .contact-form--hero {
  width: 100%;
}

.hero-reviews {
  text-align: left;
}

.hero-reviews__text {
  margin: 0 0 0.625rem;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
}

.hero-reviews img {
  width: 130px;
  max-width: 100%;
}

/* Forms */
.callback-form,
.contact-form {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form--hero,
.callback-form--hero {
  background: rgba(0, 36, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

@media (min-width: 480px) {
  .callback-form,
  .contact-form {
    padding: 1.5rem;
  }

  .contact-form--hero,
  .callback-form--hero {
    padding: 1.5rem;
  }
}

.form-heading,
.callback-form h2,
.contact-form h2 {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
}

.contact-form--hero .form-heading,
.contact-form--hero h2,
.callback-form--hero .form-heading,
.callback-form--hero h2 {
  margin-bottom: 1rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form-row {
  display: grid;
  gap: var(--space-md);
}

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

@media (min-width: 480px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  min-width: 0;
}

/* Legacy form-grid support (contact page) */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
}

input,
textarea {
  width: 100%;
  padding: 0.625rem 0;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--white);
  background: transparent;
  transition: border-color var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--green-bright);
}

textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xs);
  padding: 0.8125rem 1.75rem;
  background: var(--green);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--green-bright);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

.btn--full {
  width: 100%;
  margin-top: var(--space-xs);
}

/* Contact cards */
.contact-cards {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .contact-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-card {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.contact-card:hover {
  background: var(--bg-elevated);
}

.contact-card:last-child {
  border-right: none;
}

.contact-card h3 {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.contact-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.contact-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.contact-card a:hover {
  text-decoration-color: var(--green-bright);
  color: var(--white);
}

.icon-circle {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.icon-circle svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  opacity: 0.9;
}

/* Page hero */
.page-hero {
  background: var(--bg);
  padding: var(--space-4xl) 0 var(--space-3xl);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: end;
}

@media (min-width: 900px) {
  .page-hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.page-hero .eyebrow {
  margin-bottom: var(--space-md);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 14ch;
}

.page-hero.services-hero h1,
.about-hero h1 {
  max-width: 20ch;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.page-hero.about-hero .about-hero-grid {
  align-items: start;
}

@media (min-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-3xl);
  }
}

.about-hero-left .page-hero-arrow {
  margin-top: var(--space-2xl);
  width: 100px;
  opacity: 0.5;
}

.about-intro-copy {
  max-width: none;
}

.about-hero {
  padding-bottom: var(--space-3xl);
}

.page-hero-arrow {
  justify-self: end;
  width: min(120px, 30vw);
  opacity: 0.45;
}

.page-hero-arrow svg {
  width: 100%;
  height: auto;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.25;
}

/* Sections */
.section {
  padding: var(--space-4xl) 0;
  background: var(--bg);
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.prose {
  max-width: 58ch;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose .director-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-muted);
  font-weight: 600;
}

.prose .role {
  margin: 0 0 var(--space-lg);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 500;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  width: 3rem;
  margin: 0 0 var(--space-lg);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.two-col img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Services */
.services-hero {
  padding-bottom: var(--space-2xl);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.service-card {
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
  border-right: 1px solid var(--border);
}

.service-card:last-child {
  border-right: none;
}

.service-number {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--green-muted);
  line-height: 1;
}

.service-card h3 {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  line-height: 1.5;
}

.service-card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.service-card p:last-child {
  margin-bottom: 0;
}

/* Contact page */
.contact-page {
  padding: var(--space-4xl) 0;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.contact-details h1 {
  margin: 0 0 var(--space-2xl);
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
}

.contact-block {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.contact-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-block h3 {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-muted);
  font-weight: 600;
}

.contact-block p {
  margin: 0.2rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.contact-block a:hover {
  color: var(--white);
  text-decoration-color: var(--green-bright);
}

.map-wrap {
  margin-top: var(--space-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  filter: grayscale(40%) contrast(1.05) brightness(0.85);
}

.contact-form {
  max-width: none;
}

.contact-form .success-msg,
.callback-form .success-msg,
.form-error {
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.form-error {
  color: #f5a8a8;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 899px) {
  .page-hero-arrow {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-card:last-child {
    border-bottom: none;
  }
}

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

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

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .contact-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .contact-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
  }

  .brand-tagline {
    display: none;
  }

  .brand-logo {
    height: calc(var(--brand-title-size) * 1.3);
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav a {
    text-align: left;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
  }

  .site-nav a.active::after {
    display: none;
  }

  .section,
  .contact-page,
  .page-hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .contact-card {
    padding: var(--space-xl) var(--space-md);
  }
}
