:root {
  /* Previous palette reference (keep for rollback): --olive #20392f, --sage #b9c7b2 */
  --sand: #f4efe6;
  --cream: #fbf7f1;
  --charcoal: #1c1f24;
  --slate: #2e3238;
  --olive: #7c0017;
  --olive-rgb: 124, 0, 23;
  --olive-deep-rgb: 74, 0, 14;
  --terracotta: #c76a42;
  --sage: #e2b7c0;
  --sky: #dce8e6;
  --shadow: 0 24px 60px rgba(20, 23, 28, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--charcoal);
  background: radial-gradient(circle at top left, rgba(var(--olive-rgb), 0.08), transparent 55%),
    linear-gradient(135deg, #fdfaf5 0%, #f3eee6 45%, #ece4d8 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(var(--olive-rgb), 0.07) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(var(--olive-rgb), 0.7);
  margin-bottom: 0.8rem;
}

.lead {
  font-size: 1.15rem;
  color: rgba(28, 31, 36, 0.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(28, 31, 36, 0.18);
}

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

.btn-secondary {
  background: var(--olive);
  color: #fff;
}

.btn-ghost {
  border: 1px solid rgba(28, 31, 36, 0.25);
  background: rgba(255, 255, 255, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(28, 31, 36, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  color: #fff;
  background-image: linear-gradient(120deg, rgba(var(--olive-deep-rgb), 0.88), rgba(var(--olive-rgb), 0.4)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 6rem 0 5rem;
}

@media (max-width: 700px) {
  .hero {
    background-image: linear-gradient(120deg, rgba(var(--olive-deep-rgb), 0.88), rgba(var(--olive-rgb), 0.4)),
      var(--hero-image-mobile, var(--hero-image));
  }

  .page-hero {
    background-image: linear-gradient(120deg, rgba(var(--olive-deep-rgb), 0.88), rgba(var(--olive-rgb), 0.45)),
      var(--hero-image-mobile, var(--hero-image));
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4vw, 4.3rem);
}

.hero-text .lead {
  color: rgba(255, 255, 255, 0.8);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

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

.hero-micro {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
}

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

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.9rem;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.highlight {
  background: var(--olive);
  color: #fff;
  padding: 1.4rem;
  border-radius: var(--radius-sm);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-gallery.section {
  padding-top: 1.4rem;
  padding-bottom: 4rem;
}

.page-gallery .section-head {
  margin-bottom: 0.8rem;
}

.page-gallery .section-head .lead {
  margin-bottom: 0.4rem;
}

.carousel {
  position: relative;
  padding: 1.2rem 0 0;
}

.carousel-viewport {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 28vw, 320px);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.5rem;
  padding: 0.6rem 0.5rem 1.6rem;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 100%;
}

.carousel-card a {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  height: 100%;
}

.card-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-link {
  font-weight: 600;
  color: var(--terracotta);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.carousel-hint {
  display: none;
  font-size: 0.85rem;
  color: rgba(28, 31, 36, 0.65);
}

.carousel-progress {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--olive-rgb), 0.15);
  overflow: hidden;
}

.carousel-progress-bar {
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: scaleX(var(--carousel-progress, 0));
  transform-origin: left;
  transition: transform 0.2s ease;
}

.carousel-count {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(28, 31, 36, 0.75);
}

.carousel-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-btn {
  border: 1px solid rgba(var(--olive-rgb), 0.22);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: var(--olive);
  color: #fff;
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.carousel-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  background: #f4efe6;
  color: rgba(var(--olive-rgb), 0.6);
}

.features {
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.features-list h4 {
  margin-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery figcaption {
  padding: 1rem;
  font-weight: 600;
}

.page-gallery figure img {
  height: 220px;
  object-fit: cover;
}

.lightbox-trigger {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  display: block;
}

.lightbox-trigger:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.page-gallery .gallery-card {
  display: block;
  color: inherit;
}

.page-gallery figcaption span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(28, 31, 36, 0.65);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 14, 16, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__panel {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 90vh;
  display: grid;
  place-items: center;
}

.lightbox__figure {
  margin: 0;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: #fff;
}

.lightbox__figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.lightbox__close {
  top: -18px;
  right: -18px;
  font-size: 1.6rem;
}

.lightbox__prev {
  left: -24px;
}

.lightbox__next {
  right: -24px;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lightbox__nav {
    position: static;
    transform: none;
  }

  .lightbox__panel {
    gap: 0.8rem;
  }

  .lightbox__prev,
  .lightbox__next {
    margin-top: 0.4rem;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
  }
}

.process {
  background: var(--olive);
  color: #fff;
}

.process .lead,
.process .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  display: grid;
  gap: 1.4rem;
}

.step {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
}

.step span {
  font-weight: 700;
  color: var(--sage);
}

.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.contact-details {
  display: grid;
  gap: 0.6rem;
  font-weight: 600;
}

.contact-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.page-hero {
  color: #fff;
  background-image: linear-gradient(120deg, rgba(var(--olive-deep-rgb), 0.88), rgba(var(--olive-rgb), 0.45)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.content {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.content ul {
  padding-left: 1.2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.service-card,
.cards-grid .service-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card a {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
}

.site-footer {
  background: var(--slate);
  color: #fff;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .features-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    grid-auto-columns: clamp(240px, 78vw, 320px);
  }

  .carousel-controls {
    align-items: stretch;
  }

  .carousel-hint {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .carousel-count {
    text-align: center;
    width: 100%;
  }

  .carousel-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-panel {
    order: -1;
  }
}

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

  [data-reveal] {
    transition: none;
  }
}
