/* ============================================================
   LOI PHOTOS — Styles
   Editorial luxury photography aesthetic
   ============================================================ */

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

:root {
  /* Colors */
  --color-bg: #faf9f7;
  --color-bg-warm: #f5f0eb;
  --color-text: #1a1714;
  --color-text-soft: #6b6560;
  --color-text-muted: #a09890;
  --color-border: #e8e2dc;
  --color-accent: #c8a882;
  --color-white: #ffffff;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: 7rem 2rem;
  --max-width: 1400px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

/* --- Screen Reader Only --- */
.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;
}

/* --- Shared Components --- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
  position: relative;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

/* --- Placeholders --- */
.placeholder-img {
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 30), 30%, 82%) 0%,
    hsl(calc(var(--hue, 30) + 12), 25%, 75%) 40%,
    hsl(calc(var(--hue, 30) - 5), 20%, 70%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, hsla(var(--hue, 30), 40%, 90%, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, hsla(calc(var(--hue, 30) + 15), 30%, 60%, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.placeholder-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: hsla(var(--hue, 30), 15%, 40%, 0.5);
  z-index: 1;
  letter-spacing: 0.05em;
}

.slide-placeholder {
  background: linear-gradient(
    135deg,
    hsl(var(--hue-start, 28), 35%, 78%) 0%,
    hsl(var(--hue-end, 42), 28%, 68%) 50%,
    hsl(var(--hue-start, 28), 22%, 60%) 100%
  );
}

.slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, hsla(var(--hue-start, 28), 45%, 88%, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, hsla(var(--hue-end, 42), 30%, 55%, 0.25) 0%, transparent 45%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), height 0.5s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(245, 240, 235, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 20px rgba(0,0,0,0.06);
  height: 64px;
}

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

.logo {
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo img {
  height: 69px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.5s var(--ease-out), height 0.5s var(--ease-out);
}

.site-header.scrolled .logo img {
  filter: brightness(0) opacity(0.85);
  height: 56px;
}

.main-nav {
  display: none;
  gap: 2.5rem;
}

.main-nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color 0.5s var(--ease-out), opacity 0.3s;
  position: relative;
}

.site-header.scrolled .main-nav a {
  color: var(--color-text);
}

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

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.5s var(--ease-out);
}

.site-header.scrolled .hamburger .bar {
  background: var(--color-text);
}

.hamburger.active .bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.hamburger.active .bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-menu-overlay.open .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.open .mobile-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.open .mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.open .mobile-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.open .mobile-nav a:nth-child(4) { transition-delay: 0.25s; }

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

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

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s linear;
}

.slide.active .slide-bg {
  transform: scale(1);
}

/* Subtle vignette overlay */
.slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, transparent 35%),
    linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, transparent 35%);
  pointer-events: none;
  z-index: 1;
}

/* --- Slideshow Controls --- */
.slideshow-controls {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.slideshow-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s, transform 0.4s var(--ease-out);
  padding: 0;
}

.dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.25);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* --- Scroll Hint --- */
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

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

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.portfolio .section-eyebrow,
.portfolio .section-heading {
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.portfolio-card {
  display: block;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card.visible:nth-child(1) { transition-delay: 0s; }
.portfolio-card.visible:nth-child(2) { transition-delay: 0.12s; }
.portfolio-card.visible:nth-child(3) { transition-delay: 0.24s; }

.portfolio-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.portfolio-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.portfolio-arrow {
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease-out);
  color: var(--color-text-muted);
}

@media (hover: hover) {
  .portfolio-card:hover .portfolio-image img,
  .portfolio-card:hover .placeholder-img {
    transform: scale(1.04);
  }

  .portfolio-card:hover .portfolio-arrow {
    transform: translateX(4px);
    color: var(--color-text);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-padding);
  background: var(--color-bg-warm);
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-portrait-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
}

.placeholder-circle {
  border-radius: 50%;
}

.about-portrait-accent {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
}

.about-text {
  text-align: center;
}

.about-bio {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.about-signature {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* ============================================================
   BOOKING CTA (homepage contact section)
   ============================================================ */
.booking-cta {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.booking-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.booking-cta-body {
  color: var(--color-text-soft);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.booking-cta .contact-form {
  text-align: left;
  margin-top: 3rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  position: relative;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-form input:focus {
  border-bottom-color: var(--color-text);
}

.newsletter-form .btn {
  margin-top: 2.5rem;
  width: 100%;
}

/* ============================================================
   INSTAGRAM FEED
   ============================================================ */
.instagram-feed {
  padding: 5rem 0;
  background: var(--color-bg);
}

.instagram-feed .section-inner {
  max-width: var(--max-width);
}

.instagram-cta {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.instagram-cta-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.instagram-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.instagram-cta-body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-soft);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.instagram-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
  transition: color 0.3s, border-color 0.3s;
}

.instagram-cta-btn:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 5rem 2rem 3rem;
  background: var(--color-bg-warm);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-nav a {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  transition: color 0.3s;
}

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

.footer-divider {
  color: var(--color-border);
  font-size: 0.7rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  transition: color 0.3s, border-color 0.3s;
}

.social-icons a:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.footer-email {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  transition: color 0.3s;
}

.footer-email:hover {
  color: var(--color-text);
}

.copyright {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.about-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.about-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --header-height: 90px;
  }

  .main-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .about-inner {
    flex-direction: row;
    gap: 5rem;
    text-align: left;
    align-items: flex-start;
  }

  .about-text {
    text-align: left;
  }

  .about-bio {
    margin: 0 0 1.25rem;
  }

  .about-portrait {
    width: 320px;
    height: 320px;
  }

  .form-row {
    flex-direction: row;
    gap: 2rem;
  }

  .form-group {
    flex: 1;
  }

  .booking-cta .btn {
    width: auto;
  }

  .hero-scroll-hint {
    display: flex;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .site-header {
    padding: 0 4rem;
  }

  .portfolio-grid {
    gap: 3rem;
  }

  .about-portrait {
    width: 360px;
    height: 360px;
  }

}

/* Small mobile */
@media (max-width: 767px) {
  .hero-scroll-hint {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 374px) {
  body {
    font-size: 14px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .slide-bg {
    transform: none !important;
    transition: none !important;
  }

  .portfolio-card {
    opacity: 1;
    transform: none;
  }

  .about-inner {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   FOCUS STYLES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */
.main-nav a.nav-active {
  opacity: 0.6;
  pointer-events: none;
}

.main-nav a.nav-active::after {
  width: 100%;
}

/* ============================================================
   PAGE HERO (non-slideshow pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-height) + 5rem) 2rem 5rem;
  background: var(--color-bg-warm);
  text-align: center;
}

.page-hero .section-eyebrow {
  margin-bottom: 0.75rem;
}

.page-hero .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-text);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-bio {
  padding: var(--section-padding);
  background: var(--color-bg-warm);
}

.about-page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-page-inner .about-portrait {
  width: 280px;
  height: 280px;
}

.about-page-inner .about-text {
  text-align: center;
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-inner .section-eyebrow,
.faq-inner .section-heading {
  text-align: center;
}

.faq-list {
  list-style: none;
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--color-text-soft);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-soft);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.faq-icon::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--color-text-soft);
}

/* Contact Form on About Page */
.contact-section {
  padding: var(--section-padding);
  background: var(--color-bg-warm);
}

.contact-inner {
  max-width: 620px;
  margin: 0 auto;
}

.contact-inner .section-eyebrow,
.contact-inner .section-heading {
  text-align: center;
}

.contact-form {
  margin-top: 0.5rem;
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form select {
  cursor: pointer;
}

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

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-text);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-text-soft);
  border-bottom: 1px solid var(--color-text-soft);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.contact-form .btn {
  margin-top: 2.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .contact-form .btn {
    width: auto;
  }

  .about-page-inner {
    flex-direction: row;
    gap: 5rem;
    text-align: left;
    align-items: flex-start;
  }

  .about-page-inner .about-text {
    text-align: left;
  }

  .about-page-inner .about-portrait {
    width: 320px;
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .about-page-inner .about-portrait {
    width: 360px;
    height: 360px;
  }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-intro {
  padding: calc(var(--header-height) + 5rem) 2rem 4rem;
  background: var(--color-bg-warm);
  text-align: center;
}

.services-grid-section {
  padding: 0 2rem 7rem;
  background: var(--color-bg-warm);
}

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  transition: background 0.4s var(--ease-out);
}

.service-card-label {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

.service-card-label h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.service-card-label span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

@media (hover: hover) {
  .service-card:hover .service-card-img {
    transform: scale(1.04);
  }

  .service-card:hover .service-card-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.05) 100%
    );
  }
}

.services-cta {
  padding: 5rem 2rem;
  background: var(--color-bg);
  text-align: center;
}

.services-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.services-cta p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
}

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

  .service-card {
    aspect-ratio: 3 / 4;
  }
}

/* ============================================================
   PORTFOLIO LANDING PAGE
   ============================================================ */
.portfolio-page-intro {
  padding: calc(var(--header-height) + 5rem) 2rem 2rem;
  background: var(--color-bg);
  text-align: center;
}

.portfolio-page-intro p.intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-soft);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.portfolio-page-grid {
  padding: 3rem 2rem 7rem;
  background: var(--color-bg);
}

/* ============================================================
   GALLERY PAGES (portfolio sub-pages)
   ============================================================ */
.gallery-page-header {
  padding: calc(var(--header-height) + 4rem) 2rem 3rem;
  background: var(--color-bg);
}

.gallery-page-header .section-eyebrow {
  text-align: center;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-text);
  text-align: center;
}

.gallery-section {
  padding: 0 1rem 5rem;
  background: var(--color-bg);
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  column-count: 1;
  column-gap: 6px;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery-item img,
.gallery-item .gallery-placeholder {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.gallery-placeholder {
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 30), 30%, 82%) 0%,
    hsl(calc(var(--hue, 30) + 12), 25%, 75%) 40%,
    hsl(calc(var(--hue, 30) - 5), 20%, 70%) 100%
  );
  aspect-ratio: var(--ratio, 3/2);
  position: relative;
}

.gallery-placeholder::after {
  content: 'REPLACE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
}

@media (hover: hover) {
  .gallery-item:hover img,
  .gallery-item:hover .gallery-placeholder {
    transform: scale(1.02);
  }
}

@media (min-width: 600px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 3;
    column-gap: 8px;
  }

  .gallery-item {
    margin-bottom: 8px;
  }
}

/* Gallery Prev/Next Navigation */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid var(--color-border);
}

.gallery-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-nav-link.next {
  align-items: flex-end;
  text-align: right;
}

.gallery-nav-link .nav-direction {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.gallery-nav-link .nav-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text);
  transition: color 0.3s;
}

.gallery-nav-link:hover .nav-label {
  color: var(--color-accent);
}

.gallery-nav-back {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s;
  padding: 0.5rem;
}

.gallery-nav-back:hover {
  color: var(--color-text);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 8, 6, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: opacity 0.25s;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--color-white);
}

.lightbox-close svg {
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-white);
}

@media (max-width: 767px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ============================================================
   SERVICE CARD REVEAL (matches portfolio-card pattern)
   ============================================================ */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.visible:nth-child(1) { transition-delay: 0s; }
.service-card.visible:nth-child(2) { transition-delay: 0.12s; }
.service-card.visible:nth-child(3) { transition-delay: 0.24s; }

/* Non-slideshow pages: header starts scrolled (dark) — filter handled above */
