/* April Facility Management - Modern 2026 static site
   Brand: orange and black from logo; clean, professional facility/cleaning company. */

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-accent: #c45a11;
  --color-accent-hover: #a04a0e;
  --color-accent-light: #fef5ef;
  --color-border: #e8e8e8;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --space-4xl: 6rem;
  --max-width: 1120px;
  --header-height: 64px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --focus-ring: 2px solid var(--color-accent);
  --focus-offset: 2px;
  --section-title-underline: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  transition: left 0.2s ease;
}

.skip-link:focus {
  left: 0;
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

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

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  gap: var(--space-lg);
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.625rem 0;
  text-decoration: none;
  background: var(--color-surface);
  border: none;
  box-shadow: none;
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  border: none;
  outline: none;
  box-shadow: none;
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nav a {
    transition: none;
  }
}

.nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  transition: opacity 0.2s ease;
  gap: 5px;
  padding: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-sm);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }

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

  .nav a {
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
}

/* Hero - full-bleed background image with overlay (inspired by consulting sites e.g. jethromc.co.za) */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f0a070;
  margin: 0 0 var(--space-sm);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-xl);
  max-width: 38ch;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

.cta-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }
  .cta-button:hover {
    transform: none;
  }
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.hero-img-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;
}

@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    background-position: center center;
  }

  .hero-content {
    padding: var(--space-xl) var(--space-md);
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
  }

  .hero-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero .cta-button {
    width: 100%;
    text-align: center;
  }
}

/* Trust strip (stats bar) */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
}

.trust-strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trust-strip-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trust-strip-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.trust-strip-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
  .trust-strip {
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
  }

  .trust-strip-number {
    font-size: 1.25rem;
  }

  .trust-strip-divider {
    height: 2rem;
  }
}

@media (max-width: 400px) {
  .trust-strip-divider {
    display: none;
  }

  .trust-strip {
    flex-direction: column;
  }
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
  scroll-margin-top: var(--header-height);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--space-sm);
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--section-title-underline);
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 2px;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  max-width: 60ch;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-xl) 0;
  }
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
}

/* About - image + copy layout inspired by Diamond Shine style */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-tagline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.about-copy {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.about-highlights {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.about-highlight {
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-highlight:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.about-highlight-value {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 0.15rem;
}

.about-highlight-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-media {
    order: -1;
  }

  .about-tagline {
    font-size: 1.25rem;
  }

  .about-highlights {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .about-highlights {
    flex-direction: column;
  }

  .about-highlight {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
  }
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--color-border) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  position: relative;
  padding: var(--space-xl);
  padding-top: calc(var(--space-xl) + 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  border-left: 4px solid var(--color-accent);
}

.service-card-icon {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 10px;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  border-left-color: var(--color-accent-hover);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
  .service-card:hover {
    transform: none;
  }
}

.services-grid h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}

.services-grid p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.services .section-title,
.services .section-intro {
  opacity: 0;
  transform: translateY(16px);
}

.services.in-view .section-title {
  animation: fade-in-up 0.5s ease forwards;
}

.services.in-view .section-intro {
  animation: fade-in-up 0.5s ease 0.1s forwards;
}

.services .service-card {
  opacity: 0;
  transform: translateY(20px);
}

.services.in-view .service-card {
  animation: fade-in-up 0.45s ease forwards;
}

.services.in-view .service-card:nth-child(1) { animation-delay: 0.15s; }
.services.in-view .service-card:nth-child(2) { animation-delay: 0.25s; }
.services.in-view .service-card:nth-child(3) { animation-delay: 0.35s; }
.services.in-view .service-card:nth-child(4) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .services .section-title,
  .services .section-intro,
  .services .service-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card {
    padding: var(--space-lg);
    padding-top: calc(var(--space-lg) + 2.25rem);
  }

  .service-card-icon {
    top: var(--space-md);
    left: var(--space-md);
    width: 42px;
    height: 42px;
  }

  .service-card-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Gallery */
.gallery {
  background: var(--color-surface);
  box-shadow: 0 -1px 0 var(--color-border);
}

.gallery .section-intro {
  max-width: 52ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.gallery .section-title,
.gallery .section-intro {
  opacity: 0;
  transform: translateY(16px);
}

.gallery.in-view .section-title {
  animation: fade-in-up 0.5s ease forwards;
}

.gallery.in-view .section-intro {
  animation: fade-in-up 0.5s ease 0.1s forwards;
}

.gallery-grid figure,
.gallery-grid .gallery-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
}

.gallery-figure-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.gallery-figure-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.gallery-figure-btn img {
  display: block;
  width: 100%;
}

.gallery.in-view .gallery-grid figure {
  animation: fade-in-up 0.45s ease forwards;
}

.gallery.in-view .gallery-grid figure:nth-child(1) { animation-delay: 0.1s; }
.gallery.in-view .gallery-grid figure:nth-child(2) { animation-delay: 0.18s; }
.gallery.in-view .gallery-grid figure:nth-child(3) { animation-delay: 0.26s; }
.gallery.in-view .gallery-grid figure:nth-child(4) { animation-delay: 0.34s; }
.gallery.in-view .gallery-grid figure:nth-child(5) { animation-delay: 0.42s; }
.gallery.in-view .gallery-grid figure:nth-child(6) { animation-delay: 0.5s; }

.gallery-grid figure:hover,
.gallery-figure:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .gallery .section-title,
  .gallery .section-intro,
  .gallery-grid figure {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .gallery-grid figure {
    transition: none;
  }
  .gallery-grid figure:hover {
    transform: none;
  }
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-border);
}

.gallery-grid figcaption {
  padding: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Lightbox (native dialog) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  border: none;
  background: transparent;
  max-width: none;
  max-height: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox--open,
.lightbox[open] {
  opacity: 1;
  visibility: visible;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius);
}

.lightbox-close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-close:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

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

/* CTA banner - background image with overlay for visual depth */
.cta-banner {
  position: relative;
  padding: var(--space-3xl) 0;
  color: #fff;
  text-align: center;
  background-color: #1a1a1a;
  background-image: url("images/gallery-5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-banner-text {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin: 0 0 var(--space-xl);
  line-height: 1.6;
}

.cta-banner-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
}

.cta-banner-btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: var(--space-2xl) 0;
  }
}

/* Contact - left intro + right form card; uses site tokens to blend with other sections */
.contact {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
  padding-top: var(--space-xl);
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-blob {
  position: absolute;
  left: -10rem;
  bottom: -10rem;
  width: 28rem;
  height: 28rem;
  background: var(--color-accent-light);
  opacity: 0.4;
  border-radius: 50%;
  pointer-events: none;
}

.contact-container {
  position: relative;
  z-index: 1;
}

/* Two-column layout matching About us */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 32rem;
  margin-top: var(--space-xl);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-tagline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.contact-copy {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-form-card {
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.contact-form {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form-card .contact-form-input {
  padding: 0.6rem 0.9rem;
  background: var(--color-bg);
  border-color: var(--color-border);
}

.contact-form-card .contact-form-input:focus {
  background: var(--color-surface);
  border-color: var(--color-accent);
}

.contact-form-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  display: block;
}

.contact-form-label .required {
  color: var(--color-accent);
}

.contact-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 90, 17, 0.2);
}

.contact-form-input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 90, 17, 0.25);
}

.contact-form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.contact-form-textarea {
  min-height: 80px;
  resize: vertical;
}

.contact-form-status {
  font-size: 0.9375rem;
  margin: 0;
}

.contact-form-status--success {
  color: #0d6b5c;
}

.contact-form-status--error {
  color: #b91c1c;
}

.contact-form-submit {
  margin-top: var(--space-xs);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 10rem;
  padding: 0.875rem 1.5rem;
}

.contact-form-submit-icon {
  flex-shrink: 0;
}

.contact-form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.contact-form-spinner {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
}

.contact-form-spinner:not([hidden]) {
  display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
  .contact-form-spinner {
    animation: none;
    border-top-color: #fff;
  }
}

@media (max-width: 768px) {
  .contact {
    padding-top: var(--space-xl);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-intro {
    order: -1;
    max-width: none;
  }

  .contact-tagline {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .contact {
    padding-top: var(--space-lg);
  }

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

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

  .contact-form-submit {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer p {
  margin: 0;
}

.site-footer-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-footer-link {
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
