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

/* ─── Design Tokens ─── */
:root {
  /* Warm neutrals */
  --cream: #faf7f2;
  --warm-white: #fffdf9;
  --charcoal: #2a2420;
  --charcoal-light: #4a4440;
  --charcoal-dark: #1e1a17;

  /* RGB channels for alpha variants (rgba(var(--x-rgb), 0.5)) */
  --cream-rgb: 250, 247, 242;
  --charcoal-rgb: 42, 36, 32;

  /* Accents — terracotta, rose, gold, sage */
  --terracotta: #c17b5a;
  --terracotta-dark: #a8664a;
  --rose: #d4a098;
  --rose-light: #e8cdc8;
  --gold: #c9a96e;
  --gold-light: #dfc9a0;
  --sage: #8a9a7e;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Helvetica Neue', sans-serif;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --nav-height: 72px;

  /* Z-index scale */
  --z-mobile-menu: 99;
  --z-nav: 100;
  --z-lightbox: 200;
  --z-promo: 300;
  --z-preloader: 9999;
  --z-skip: 10000;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Utilities ─── */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-filled {
  color: var(--charcoal);
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.btn-filled:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--cream);
}

/* Section Primitives (used by every section below) */
.section {
  padding: 8rem 6%;
}

.section--warm {
  background: var(--warm-white);
}
.section--dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section--cream {
  background: var(--cream);
}

.section-tag {
  margin-bottom: 1rem;
  color: var(--terracotta);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

/* Dark sections flip tag + title accents to gold for contrast */
.section--dark .section-tag {
  color: var(--gold);
}
.section--dark .section-title {
  color: var(--cream);
}
.section--dark .section-title em {
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 5%;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Skip link — visible only on keyboard focus, first focusable on the page */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Global focus ring for keyboard users — high-contrast gold outline */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Visually hidden but read by screen readers */
.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;
}

/* ─── Preloader ─── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-bg {
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(
      to top,
      rgba(var(--charcoal-rgb), 0.85) 0%,
      rgba(var(--charcoal-rgb), 0.55) 100%
    ),
    url('https://res.cloudinary.com/alphageekdom-dev/image/upload/f_auto,q_auto,w_1600/v1776879726/star-photography/hero-couple-beach-sunset.jpg')
      center / cover no-repeat;
  filter: blur(24px) brightness(0.75);
  transform: scale(1.05);
}

.preloader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--cream);
}

.loading-text {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--gold-light);
}

.sub-text {
  margin: 0;
  color: rgba(var(--cream-rgb), 0.65);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.preloader-indicator {
  position: relative;
  width: 80px;
  height: 1px;
  margin-top: 0.5rem;
  background: rgba(223, 201, 160, 0.2);
  overflow: hidden;
}

.preloader-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: preloaderSweep 1.8s ease-in-out infinite;
}

@keyframes preloaderSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-indicator::after {
    animation: none;
    left: 0;
  }
  #preloader {
    transition: none;
  }
}

/* ─── Navbar ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.5rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(var(--charcoal-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 4%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.85;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(var(--charcoal-rgb), 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(var(--charcoal-rgb), 0.85) 0%,
    rgba(var(--charcoal-rgb), 0.35) 45%,
    rgba(var(--charcoal-rgb), 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 6% 8vh;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.2s forwards;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.hero-desc {
  max-width: 500px;
  margin-bottom: 2.5rem;
  color: rgba(var(--cream-rgb), 0.78);
  font-size: 1.05rem;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.8s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-50%);
  animation: scrollIndicatorFadeUp 0.9s ease 1.1s forwards;
}

.scroll-indicator span:first-child {
  color: rgba(var(--cream-rgb), 0.8);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.scroll-indicator:hover span:first-child {
  color: var(--gold-light);
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 40px;
  background: rgba(var(--cream-rgb), 0.25);
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDown 2.2s ease infinite;
}

/* Hero animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keeps the translateX(-50%) centering while animating Y — a plain heroFadeUp here would override and shift it off-center. */
@keyframes scrollIndicatorFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-desc,
  .hero-cta,
  .scroll-indicator {
    opacity: 1;
    animation: none;
  }
  .scroll-line::after {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-content {
    padding-bottom: 10vh;
  }
}

/* ─── About ─── */
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.about-image-wrap {
  position: relative;
}

/* Offset gold frame behind the portrait */
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold-light);
  z-index: 0;
  pointer-events: none;
}

.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 550px;
  object-fit: cover;
  filter: saturate(0.9);
  display: block;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--charcoal-light);
  font-size: 0.95rem;
}

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

.about-signature {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--terracotta);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrap img {
    height: 400px;
  }

  .about-image-wrap::before {
    top: -12px;
    left: -12px;
  }
}

/* ─── Services ─── */
.services-intro {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 500px;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(0.8);
  transition:
    transform 0.7s var(--ease-out-expo),
    filter 0.7s ease;
}

.service-card:hover img,
.service-card:focus-within img {
  transform: scale(1.05);
  filter: brightness(0.5) saturate(1);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(
    to top,
    rgba(var(--charcoal-rgb), 0.92) 0%,
    rgba(var(--charcoal-rgb), 0) 100%
  );
}

.service-card-title {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
}

.service-card-price {
  margin-bottom: 1.2rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Tighter button inside the card */
.service-card .btn {
  padding: 0.7rem 1.8rem;
  font-size: 0.65rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card:nth-child(3) {
    grid-column: 1 / -1;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card {
    height: 420px;
  }
  .service-card:nth-child(3) {
    grid-column: auto;
    height: 420px;
  }
  .service-card-content {
    padding: 2rem 1.75rem;
  }
}

/* ─── Gallery ─── */
.gallery-intro {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.gallery-grid {
  max-width: 1300px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 1.2rem;
}

.gallery-item {
  /* reset button defaults */
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;

  position: relative;
  overflow: hidden;
}

/* Portrait images get double height; dense flow backfills with landscapes */
.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.85);
  transition:
    transform 0.6s var(--ease-out-expo),
    filter 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(var(--charcoal-rgb), 0.75) 0%,
    rgba(var(--charcoal-rgb), 0.1) 60%,
    rgba(var(--charcoal-rgb), 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  text-align: left;
}

/* Mobile-only CTA shown on the first tile; taps the same button to open the lightbox */
.gallery-overlay-cta {
  display: none;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--tablet-hide {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery-item--tall {
    grid-row: auto;
  }
  .gallery-item img {
    height: auto;
  }

  /* Show only the first image; it acts as a cover that opens the full lightbox */
  .gallery-grid > .gallery-item:not(:first-child) {
    display: none;
  }

  .gallery-grid > .gallery-item:first-child .gallery-overlay {
    opacity: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .gallery-overlay-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
  }
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(var(--charcoal-rgb), 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: flex;
  animation: lightboxFade 0.3s ease;
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox img {
  max-width: 85vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(var(--cream-rgb), 0.75);
  text-align: center;
}

/* Lightbox buttons: shared base */
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--gold);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.75rem;
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
  padding: 0 1rem;
}

.lightbox-prev {
  left: 1.5rem;
}
.lightbox-next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .lightbox-nav {
    font-size: 2.25rem;
    padding: 0 0.5rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-caption {
    bottom: 1.5rem;
    font-size: 0.9rem;
  }
}

/* ─── Reviews ─── */
.reviews-intro {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.reviews-grid {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.review-card {
  position: relative;
  padding: 3rem 2.5rem 2.5rem;
  background: var(--cream);
  border: 1px solid rgba(var(--charcoal-rgb), 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(var(--charcoal-rgb), 0.08);
}

/* Big decorative opening quote */
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--rose-light);
  pointer-events: none;
}

.review-stars {
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.review-quote {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
  color: var(--charcoal-light);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.85);
}

.review-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.review-author-info strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.review-author-info span {
  color: var(--charcoal-light);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .review-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 520px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .review-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .review-card {
    padding: 2.5rem 2rem 2rem;
  }
}

/* ─── Contact ─── */
.contact-intro {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item h3 {
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.contact-info-item p {
  color: rgba(var(--cream-rgb), 0.75);
  font-size: 0.95rem;
}

.contact-info-item a {
  color: rgba(var(--cream-rgb), 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover,
.contact-info-item a:focus-visible {
  color: var(--gold);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form-hp {
  position: absolute;
  left: -9999px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem 1.2rem;
  background: rgba(var(--cream-rgb), 0.06);
  border: 1px solid rgba(var(--cream-rgb), 0.15);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(var(--cream-rgb), 0.65);
  font-weight: 300;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(var(--cream-rgb), 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(var(--cream-rgb), 0.08);
}

/* Invalid state — only after the user has interacted */
.contact-form input:not(:placeholder-shown):invalid,
.contact-form textarea:not(:placeholder-shown):invalid {
  border-color: var(--terracotta);
}

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

.contact-form-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-form-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.85rem;
}

.contact-form-status.is-success {
  color: var(--sage);
}
.contact-form-status.is-error {
  color: var(--rose);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Footer ─── */
.site-footer {
  padding: 4rem 6% 2rem;
  background: var(--charcoal-dark);
  color: rgba(var(--cream-rgb), 0.8);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.08);
}

.footer-brand .nav-logo {
  display: block;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Link columns */
.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-links-col h4 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-links-col a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(var(--cream-rgb), 0.8);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-col a:hover,
.footer-links-col a:focus-visible {
  color: var(--cream);
}

/* Bottom row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
}

/* Socials — circular icon buttons */
.footer-socials {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(var(--cream-rgb), 0.8);
  text-decoration: none;
  border: 1px solid rgba(var(--cream-rgb), 0.25);
  border-radius: 50%;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
  transform: translateY(-2px);
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-links {
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-socials {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ─── Discount Popup ─── */
.promo {
  position: fixed;
  inset: 0;
  z-index: var(--z-promo);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--charcoal-rgb), 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: promoFade 0.4s ease forwards;
}

.promo-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 30px 80px rgba(var(--charcoal-rgb), 0.25);
  transform: translateY(30px);
  opacity: 0;
  animation: promoRise 0.55s var(--ease-out-expo) 0.05s forwards;
}

@keyframes promoFade {
  to {
    opacity: 1;
  }
}
@keyframes promoRise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.promo-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.promo-close:hover,
.promo-close:focus-visible {
  color: var(--terracotta);
}

.promo-state {
  display: contents;
}

.promo-state[hidden] {
  display: none;
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.promo-content {
  padding: 3rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--terracotta);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.promo-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
}

.promo-title em {
  font-style: italic;
  color: var(--terracotta);
}

.promo-desc {
  margin-bottom: 1.5rem;
  color: var(--charcoal-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Form */
.promo-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.promo-form input {
  padding: 0.9rem 1rem;
  background: var(--cream);
  border: 1px solid rgba(var(--charcoal-rgb), 0.15);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
  outline: none;
}

.promo-form input::placeholder {
  color: rgba(var(--charcoal-rgb), 0.4);
}

.promo-form input:focus {
  border-color: var(--gold);
  background: var(--warm-white);
}

.promo-form input.is-invalid {
  border-color: var(--terracotta);
}

.promo-submit {
  width: 100%;
  padding: 1rem 2rem;
}

.promo-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.promo-error {
  min-height: 1rem;
  margin: 0;
  color: var(--terracotta);
  font-size: 0.8rem;
}

.promo-fine {
  margin-top: 1rem;
  color: rgba(var(--charcoal-rgb), 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* Success state */
.promo-success {
  grid-column: 1 / -1;
  padding: 3rem 2.5rem;
  text-align: center;
}

.promo-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--sage);
}

.promo-success-mark svg {
  width: 100%;
  height: 100%;
  /* Subtle draw-in: full dash, animate to 0 */
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: promoCheck 0.7s ease 0.2s forwards;
}

@keyframes promoCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 1.5rem;
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  background: var(--cream);
  border: 1px dashed var(--gold);
}

.promo-code code {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--charcoal);
}

.promo-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--charcoal);
  border: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.promo-copy:hover,
.promo-copy:focus-visible {
  background: var(--terracotta);
}

.promo-copy svg {
  width: 14px;
  height: 14px;
}

.promo-copy.is-copied {
  background: var(--sage);
}

.promo-dismiss {
  margin-top: 0.5rem;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.promo-dismiss:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .promo-backdrop,
  .promo-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .promo-success-mark svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .promo-card {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .promo-image {
    height: 180px;
  }
  .promo-content {
    padding: 2rem 1.75rem;
  }
  .promo-title {
    font-size: 1.6rem;
  }
  .promo-success {
    padding: 2.5rem 1.75rem;
  }
}

/* ─── Footer credit (portfolio projects only) ─── */
.footer-credit {
  display: inline-block;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(var(--cream-rgb), 0.15);
  color: rgba(var(--cream-rgb), 0.6);
}

.footer-credit a {
  color: rgba(var(--cream-rgb), 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--gold);
}

/* Stack credit below copyright on narrow screens */
@media (max-width: 480px) {
  .footer-credit {
    display: block;
    margin: 0.5rem 0 0;
    padding: 0;
    border-left: none;
  }
}
