/* ============================================================
   Insite Landscape — Landscape Architecture & Sustainable Site Design
   styles.css — Complete standalone stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400&family=DM+Sans:wght@400;500&family=DM+Serif+Display&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #F5F1EB;
  --bg-alt: #E8E4DD;
  --bg-card: #FFFFFF;
  --bg-dark: #1E1E1C;
  --text: #3D3D3B;
  --text-muted: #6B7B8D;
  --text-faint: #9A9590;
  --primary: #4A6741;
  --primary-rgb: 74, 103, 65;
  --primary-light: #E8F0E6;
  --primary-dark: #2C4A28;
  --accent: #8B5E3C;
  --accent-light: #F0E6DA;
  --clay: #C4A882;
  --border: #E8E4DD;
  --border-light: #F0EDE8;
}

html.dark {
  --bg: #1A1A18;
  --bg-alt: #242422;
  --bg-card: #2A2A28;
  --bg-dark: #0E0E0C;
  --text: #E8E4DD;
  --text-muted: #9A9898;
  --text-faint: #6A6868;
  --primary: #6A8760;
  --primary-rgb: 106, 135, 96;
  --primary-light: #1A2A18;
  --primary-dark: #4A6741;
  --accent: #C4885A;
  --accent-light: #2A2018;
  --clay: #8A7A6A;
  --border: #353530;
  --border-light: #2A2A25;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

ul ul, ul ol, ol ul, ol ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Touch targets */
a,
button,
input[type="submit"],
input[type="checkbox"],
select {
  min-height: 44px;
  min-width: 44px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--text);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
}

p + p {
  margin-top: 1em;
}

/* Caption / Data text */
.caption,
.il-caption {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* "Site Reading" typography — long-form project/about text */
.site-reading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 2.0;
  color: var(--text-muted);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .site-reading {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1400px;
}

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* Section label — small mono text above headings */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.section-intro {
  max-width: 36rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
}

.btn--primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn--primary:hover {
  background-color: var(--primary-dark);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.875rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn--ghost:hover {
  color: var(--primary-dark);
}

.btn--ghost::after {
  content: '\2192';
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--light {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--light:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Navigation (Sticky) --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .nav__inner {
    height: 4.5rem;
  }
}

.nav__logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav__logo span {
  color: var(--primary);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle */
.nav__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__theme-toggle:hover {
  color: var(--text);
}

.nav__theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Dark mode icon swap */
.nav__theme-toggle .icon-sun { display: none; }
.nav__theme-toggle .icon-moon { display: block; }
html.dark .nav__theme-toggle .icon-sun { display: block; }
html.dark .nav__theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}

.nav__mobile.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .nav__mobile {
    display: none !important;
  }
}

.nav__mobile a {
  display: flex;
  align-items: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s ease;
  min-height: 44px;
}

.nav__mobile a:last-child {
  border-bottom: none;
}

.nav__mobile a:hover {
  color: var(--text);
}

/* --- Hero (Framed Image) --- */
.hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

.hero__layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Framed image — NOT full-bleed */
.hero__image-frame {
  margin: 0 40px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

@media (max-width: 767px) {
  .hero__image-frame {
    margin: 0 20px;
  }
}

@media (min-width: 1024px) {
  .hero__image-frame {
    margin: 0 60px 0 0;
  }
}

.hero__image-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --- Philosophy / Narrative (Alternating Rows) --- */
.narrative {
  background-color: var(--bg);
}

.narrative__row {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.narrative__row:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .narrative__row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
  }

  .narrative__row--reverse .narrative__text {
    order: -1;
  }
}

.narrative__image {
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.narrative__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.narrative__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.narrative__text h2 {
  margin-bottom: 1.25rem;
}

.narrative__text p {
  color: var(--text-muted);
  max-width: 30rem;
}

.narrative__text .btn--ghost {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* --- Portfolio Grid (3-col) --- */
.portfolio {
  background-color: var(--bg-alt);
}

.portfolio__header {
  margin-bottom: 3rem;
}

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

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--bg-card);
}

.portfolio__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio__item:hover img {
  transform: scale(1.03);
}

.portfolio__item-info {
  padding: 1.25rem 1.5rem;
}

.portfolio__item-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.portfolio__item-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* --- Services (2-col text, moss top border) --- */
.services {
  background-color: var(--bg);
}

.services__header {
  margin-bottom: 3rem;
}

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

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.services__item {
  border-top: 2px solid var(--primary);
  padding-top: 1.5rem;
}

.services__item h3 {
  margin-bottom: 0.75rem;
}

.services__item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Process (Dark green bg, DM Mono step numbers) --- */
.process {
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

html.dark .process {
  background-color: #1A2A18;
}

.process__header {
  margin-bottom: 3rem;
}

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

.process__header .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.process__header h2 {
  color: #FFFFFF;
}

.process__header p {
  color: rgba(255, 255, 255, 0.65);
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

@media (min-width: 1024px) {
  .process__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.process__step {
  display: flex;
  flex-direction: column;
}

.process__number {
  font-family: 'DM Mono', monospace;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.25rem;
}

.process__step h3 {
  color: #FFFFFF;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.process__step p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Testimonial (Centered) --- */
.testimonial {
  background-color: var(--bg);
  text-align: center;
}

.testimonial__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.testimonial__quote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial__quote::before {
  content: '\201C';
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 1rem;
  font-style: normal;
}

.testimonial__author {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.testimonial__role {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* --- CTA (Dark overlay) --- */
.cta {
  position: relative;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 28, 0.85) 0%,
    rgba(30, 30, 28, 0.92) 100%
  );
  z-index: 1;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0 auto;
}

.cta__content .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.cta__content h2 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.cta__content p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Material Palette Strip --- */
.material-palette {
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.material-palette::-webkit-scrollbar {
  height: 4px;
}

.material-palette::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.material-palette__track {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .material-palette__track {
    padding: 0 2.5rem;
    gap: 1.25rem;
  }
}

.material-palette__swatch {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
}

@media (min-width: 768px) {
  .material-palette__swatch {
    width: 160px;
  }
}

.material-palette__swatch img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 0.625rem;
}

.material-palette__swatch span {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* --- Contact Form --- */
.contact {
  background-color: var(--bg-alt);
}

.contact__layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact__layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact__info h2 {
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28rem;
}

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

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.contact__detail-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 2px;
}

.contact__detail-icon svg {
  width: 100%;
  height: 100%;
}

.contact__detail a {
  transition: color 0.2s ease;
}

.contact__detail a:hover {
  color: var(--primary);
}

.contact__form-wrap {
  background-color: var(--bg-card);
  border-radius: 4px;
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact__form-wrap {
    padding: 2.5rem;
  }
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__group:last-of-type {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--primary);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-faint);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7B8D' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

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

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.form__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form__turnstile {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.form__error {
  display: none;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

html.dark .form__error {
  background-color: #2A1818;
  border-color: #5A2020;
  color: #FCA5A5;
}

.form__error.is-visible {
  display: block;
}

.form__success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form__success.is-visible {
  display: block;
}

.form__success h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.form__success p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.form__submit {
  width: 100%;
}

.form__submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form__submit.is-loading .spinner {
  display: block;
}

.form__submit.is-loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Footer (Dark) --- */
.footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 20rem;
  margin-top: 0.75rem;
}

.footer__logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer__logo span {
  color: var(--primary);
}

.footer__col h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.footer__bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.footer__credit a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Disclaimer Banner --- */
.disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem 1rem;
  line-height: 1.4;
}

.disclaimer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer a:hover {
  color: #FFFFFF;
}

/* --- Cards (Very subtle shadow only) --- */
.card {
  background-color: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.dark .card {
  box-shadow: none;
  border: 1px solid var(--border);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print --- */
@media print {
  .nav,
  .disclaimer,
  .nav__mobile,
  .cta,
  .form__turnstile {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  section {
    page-break-inside: avoid;
  }
}
