/* ==========================================================================
   Henna by Neena — Static Site Core
   ========================================================================== */

:root {
  --color-background: #faf7f1;
  --color-surface: #faf7f1;
  --color-on-surface: #181614;
  --color-on-surface-variant: #6b5c56;
  --color-outline-variant: #dbc1bc;

  --color-primary: #5c1a0d;
  --color-on-primary: #ffffff;
  --color-burnt-sienna: #9E4624;
  --color-amber-glow: #d89947;
  --color-champagne-silk: #f0e7d6;
  --color-deep-maroon: #3a0f0a;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  --container-max: 1200px;
  --gutter: 20px;
  --section-padding-mobile: 20px;
  --section-padding-desktop: 32px;

  --shadow-soft: 0 16px 40px rgba(74, 69, 59, 0.14);
  --shadow-lg: 0 28px 64px rgba(74, 69, 59, 0.18);
}

html { scroll-behavior: smooth; overflow-x: clip; width: 100%; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  animation: pageIn 0.75s ease both;
}

/* Smooth scroll behavior with reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .swiper { transition: none; }
  a, button, .service-card, .contact-pill, .contact-location, .review-card { transition: none !important; }
  .faq-answer, .faq-icon, .faq-item { transition: none !important; }
  .faq-group-panel, .faq-group-icon { transition: none !important; }
  .portfolio-swiper .swiper-slide img { transition: none !important; }
  .service-cards .service-card { transition-delay: 0s !important; }
}

/* Better tap highlight on mobile */
a, button { -webkit-tap-highlight-color: rgba(216,153,71,0.3); }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-amber-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(216, 153, 71, 0.35); color: var(--color-primary); }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ==========================================================================
   Film Grain — REMOVED (unused class, dead code)
   ========================================================================== */

::selection { background: rgba(216, 153, 71, 0.35); color: var(--color-primary); }

/* ==========================================================================
   Helpers
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 768px) {
  .section-title { font-size: 44px; }
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.ornament::before,
.ornament::after {
  content: '';
  width: 52px;
  height: 1px;
  background: var(--color-outline-variant);
}

.ornament-dot {
  width: 7px; height: 7px;
  flex-shrink: 0;
  background: var(--color-amber-glow);
  transform: rotate(45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-burnt-sienna);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.88);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* Cards in a row ease in one after another rather than all at once */
.service-cards .service-card:nth-child(2) { transition-delay: 0.1s; }
.service-cards .service-card:nth-child(3) { transition-delay: 0.2s; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.nav.is-scrolled {
  box-shadow: 0 10px 30px rgba(20,18,14,0.08);
  border-bottom-color: rgba(92, 39, 34, 0.08);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 2px;
}

.nav-links { display: none; gap: 26px; }

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-amber-glow);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-logo-img { transition: transform 0.35s ease; }
.nav-logo:hover .nav-logo-img { transform: rotate(-4deg) scale(1.05); }

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

/* ==========================================================================
   Mobile Nav — hamburger toggle + slide-in drawer
   ========================================================================== */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-toggle:hover { background: rgba(92,26,13,0.06); }
.nav-toggle:active { transform: scale(0.92); }

.nav-toggle-icon {
  font-size: 26px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle.is-open .nav-toggle-icon { transform: rotate(90deg); }

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

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(20,15,12,0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 56;
  width: min(320px, 84vw);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  padding: 108px 30px 32px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -24px 0 60px rgba(20,15,12,0.2);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 15px 0;
  border-bottom: 1px solid rgba(92,26,13,0.08);
  transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-nav a:hover { color: var(--color-burnt-sienna); transform: translateX(4px); }

.mobile-nav-contact { margin-top: 28px; }
.mobile-nav-contact .btn { width: 100%; }

@media (min-width: 768px) {
  .mobile-nav, .mobile-nav-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
  .mobile-nav-backdrop { transition: none; }
  .nav-toggle-icon { transition: none; }
  .nav-logo-img { transition: none; }
}

/* ==========================================================================
   Hero — refined overlay & meta pill
   ========================================================================== */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 var(--gutter) 36px;
  isolation: isolate;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-bg > div {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,8,6,0.85) 0%, rgba(10,8,6,0.5) 35%, rgba(10,8,6,0.3) 65%, rgba(10,8,6,0.4) 100%),
    radial-gradient(ellipse at center, rgba(10,8,6,0.35) 0%, rgba(10,8,6,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Additional scrim behind hero text for readability */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse at center, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.25) 60%, transparent 100%);
  border-radius: 40px;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--color-amber-glow);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.6);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  color: rgba(255,255,255,0.92);
  margin: 0 0 24px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin: 20px auto 0;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  background: rgba(20,18,14,0.28);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.hero-meta .material-symbols-outlined { font-size: 18px; color: var(--color-amber-glow); }

@media (min-width: 768px) {
  .hero {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px var(--gutter) 70px;
  }
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 18px; max-width: 580px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
  padding: 18px var(--gutter);
  background: rgba(92, 26, 13, 0.06);
  border-top: 1px solid rgba(92,39,34,0.08);
  border-bottom: 1px solid rgba(92,39,34,0.08);
}

.trust-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

@media (min-width: 768px) {
  .trust-items { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .trust-num { font-size: 26px; }
  .trust-label { font-size: 12px; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding: var(--section-padding-mobile) var(--gutter); background: var(--color-champagne-silk); }

.about-inner {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about h2 { color: var(--color-primary); }

.quote-block { position: relative; margin-top: 14px; }

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--color-burnt-sienna);
  opacity: 0.28;
  margin-bottom: -10px;
  user-select: none;
}

.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-on-surface-variant);
  margin: 8px 0 18px;
  font-size: 17px;
}

.about-bio {
  color: var(--color-on-surface-variant);
  margin: 0 0 16px;
  font-size: 15px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 18px 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(92,26,13,0.12);
  border-radius: var(--radius-xl);
}

.about-stats .stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-primary);
  display: block;
}

.about-stats .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
}

.about-portrait-wrap { display: flex; justify-content: center; }

.about-portrait {
  position: relative;
  width: 220px; height: 220px;
  border-radius: var(--radius-full);
  padding: 10px;
  background: rgba(255,255,255,0.55);
  box-shadow: var(--shadow-soft);
}

.about-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(92,26,13,0.14);
  border-radius: var(--radius-full);
  transform: translate(10px, 10px);
}

.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .about-inner {
    max-width: var(--container-max);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "header portrait"
      "body portrait";
    column-gap: 64px;
    row-gap: 0;
    text-align: left;
  }
  .about-header { grid-area: header; }
  .about-portrait-wrap {
    grid-area: portrait;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: start;
    position: sticky;
    top: 100px;
  }
  .about-body { grid-area: body; }
  .about-portrait {
    width: 100%;
    height: 480px;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
  .about-portrait::before { display: none; }
  .about-portrait img { border-radius: var(--radius-xl); }
  .quote-mark { font-size: 68px; margin-bottom: -18px; }
  .about-quote {
    font-style: italic;
    font-size: 18px;
    border-left: 4px solid var(--color-primary);
    padding-left: 22px;
    margin: 0 0 18px;
  }
  .about-stats {
    justify-content: flex-start;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(92,26,13,0.1);
    border-radius: 0;
    padding: 20px 0 0;
    margin-top: 18px;
  }
  .about-stats .stat-num { font-size: 30px; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: var(--section-padding-mobile) 0;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(92, 26, 13, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

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

.services-header {
  text-align: center;
  margin-bottom: 36px;
}

.services-lead {
  color: var(--color-on-surface-variant);
  max-width: 560px;
  margin: 10px auto 0;
  font-size: 16px;
}

.service-cards { display: flex; flex-direction: column; gap: 22px; }

.services-cta { display: flex; justify-content: center; margin: 0 0 24px; }

.service-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border-bottom: 4px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
  overflow: clip;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card.inverted {
  background: var(--color-primary);
  border-bottom-color: var(--color-amber-glow);
  color: #fff;
}

.service-card-media {
  aspect-ratio: 4 / 3;
  overflow: clip;
  position: relative;
  background:
    linear-gradient(135deg, rgba(92,26,13,0.08), rgba(216,153,71,0.12)),
    radial-gradient(circle at 1px 1px, rgba(92, 26, 13, 0.07) 1px, transparent 0);
  background-size: 100% 100%, 24px 24px;
}

.service-card-media img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.service-card-body { padding: 22px 22px 26px; }

.service-card-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--color-primary);
}

.service-card.inverted .service-card-body h3 { color: #fff; }

.service-card-body p {
  color: var(--color-on-surface-variant);
  margin: 0 0 14px;
  font-size: 15px;
}

.service-card.inverted .service-card-body p { color: rgba(255,255,255,0.82); }

.service-card-link {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
}

.service-card-link .material-symbols-outlined { transition: transform 0.25s ease; }
.service-card-link:hover .material-symbols-outlined { transform: translateX(4px); }

.service-card.inverted .service-card-link { color: var(--color-amber-glow); }

@media (min-width: 768px) {
  .services { padding: var(--section-padding-desktop) 0; }
  .service-cards { flex-direction: row; gap: 24px; }
  .service-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-2xl);
  }
  .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
  .service-card-media { aspect-ratio: 3 / 4; }
}

/* ==========================================================================
   Portfolio — elevated carousel chrome
   ========================================================================== */

.portfolio {
  background: var(--color-primary);
  padding: 110px 0 var(--section-padding-mobile);
  overflow: hidden;
  color: #fff;
  position: relative;
}

.portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

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

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 var(--gutter);
}

.portfolio-header .eyebrow { color: var(--color-amber-glow); }
.portfolio-header .section-title { color: #fff; }

.portfolio-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.portfolio-nav button {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.04);
}

.portfolio-nav button:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.portfolio-nav button.next {
  background: var(--color-amber-glow);
  border-color: var(--color-amber-glow);
  color: var(--color-primary);
}

.portfolio-nav button.next:hover {
  background: #e6b35a;
  border-color: #e6b35a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216,153,71,0.3);
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px var(--gutter) 18px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

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

.carousel-item {
  flex: none;
  width: 80vw;
  scroll-snap-align: center;
}

.carousel-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
  transform: translateZ(0);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.carousel-item:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-dots button.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

/* The 110px top padding clears the fixed nav; when a page header already does
   that, the carousels just need normal section spacing. */
.portfolio.has-page-header { padding-top: var(--section-padding-mobile); }

/* Gallery collections — one carousel per henna style */
.gallery-collection + .gallery-collection { margin-top: 44px; }

/* Swiper overrides */
.portfolio-swiper {
  overflow: hidden;
}

.portfolio-swiper .swiper-slide {
  width: 80vw;
  height: auto;
  flex-shrink: 0;
}

.portfolio-swiper .swiper-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  /* Slides load on demand, so give one that hasn't arrived yet a soft tint
     rather than a bright empty box, then fade the photo in over it.
     Safe to default to transparent: script.js creates these <img> elements,
     so if it never runs there are no slides to hide. */
  background: rgba(255,255,255,0.05);
  opacity: 0;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
  transform: translateZ(0);
  transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.55s ease;
}

.portfolio-swiper .swiper-slide img.is-loaded { opacity: 1; }

.portfolio-swiper .swiper-slide:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.portfolio .swiper-pagination {
  position: relative;
  margin-top: 18px;
}

.portfolio .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.35);
  opacity: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.portfolio .swiper-pagination-bullet-active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
  .portfolio { padding: 110px 0 40px; }
  .portfolio.has-page-header { padding-top: var(--section-padding-desktop); }
  .carousel-item { width: 400px; }
  .carousel-item img { height: 420px; }
  .portfolio-swiper .swiper-slide { width: 400px; }
  .portfolio-swiper .swiper-slide img { height: 420px; }
}

/* ==========================================================================
   Reviews — elevated cards & navigation
   ========================================================================== */

.reviews {
  padding: var(--section-padding-mobile) 0;
  background: var(--color-surface);
  overflow: hidden;
  position: relative;
}

.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(92, 26, 13, 0.03) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

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

.reviews-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.reviews-carousel { position: relative; }

.reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px var(--gutter) 10px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

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

.review-card {
  background: #fff;
  border: 1px solid rgba(92,39,34,0.06);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: 0 6px 18px rgba(20,18,14,0.03);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-amber-glow), var(--color-burnt-sienna));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.review-card:hover::before { opacity: 1; }

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--color-amber-glow);
  margin-bottom: 16px;
}

.review-stars .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}

.review-text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-on-surface-variant);
  margin: 0 0 18px;
  line-height: 1.6;
  font-size: 15px;
}

.review-author {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.reviews-dots-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.reviews-dots-row button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: rgba(92,26,13,0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.reviews-dots-row button.is-active {
  background: var(--color-primary);
  transform: scale(1.25);
}

/* Swiper review overrides */
.reviews-swiper {
  overflow: hidden;
}

.reviews-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.reviews-swiper .swiper-slide .review-card {
  width: 100%;
  height: 100%;
}

.reviews .swiper-pagination {
  position: relative;
  margin-top: 10px;
}

.reviews .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(92,26,13,0.25);
  opacity: 1;
  transition: background 0.25s ease, width 0.35s ease;
}

.reviews .swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 24px;
}

.reviews-arrow {
  display: none;
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(92,26,13,0.14);
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(20,18,14,0.06);
}

.reviews-arrow:hover {
  background: #fff;
  transform: translateY(-50%) translateY(-3px);
  border-color: rgba(92,26,13,0.22);
  box-shadow: 0 8px 20px rgba(20,18,14,0.1);
}

.reviews-prev { left: 6px; }
.reviews-next { right: 6px; }

@media (min-width: 768px) {
  .reviews { padding: var(--section-padding-desktop) 0; }
  .review-card { padding: 28px; }
  .review-text { font-size: 17px; }
  .reviews-arrow { display: inline-flex; }
}

/* ==========================================================================
   Page Header — compact intro band for secondary pages (FAQ, Stain Progression)
   ========================================================================== */

.page-header {
  padding: 110px var(--gutter) var(--section-padding-mobile);
  background: var(--color-background);
  text-align: center;
}

.page-header .container { max-width: 640px; margin: 0 auto; }

.page-header h1 { color: var(--color-primary); margin: 0; }

.page-header p {
  color: var(--color-on-surface-variant);
  margin: 14px 0 0;
  font-size: 15px;
}

.page-header p a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .page-header { padding: 110px var(--gutter) var(--section-padding-desktop); }
}

/* ==========================================================================
   Page CTA — closing call-to-action band for secondary pages
   ========================================================================== */

.page-cta {
  padding: var(--section-padding-mobile) var(--gutter);
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.page-cta h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
}

.page-cta p {
  color: rgba(255,255,255,0.82);
  margin: 0 0 26px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

@media (min-width: 768px) {
  .page-cta { padding: var(--section-padding-desktop) var(--gutter); }
  .page-cta h2 { font-size: 36px; }
}

/* ==========================================================================
   Stain Progression — stage cards
   ========================================================================== */

.stain-stages { padding: var(--section-padding-mobile) 0; background: var(--color-surface); }

.stain-stages-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
  padding: 0 var(--gutter);
}

.stain-stages-header p {
  color: var(--color-on-surface-variant);
  margin: 10px 0 0;
  font-size: 15px;
}

.stain-stage-carousel { position: relative; padding: 0 var(--gutter); }

.stain-swiper { overflow: hidden; }

.stain-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.stain-stage {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(92,39,34,0.08);
  box-shadow: 0 6px 18px rgba(20,18,14,0.03);
  overflow: clip;
  height: 100%;
}

.stain-stages .swiper-pagination {
  position: relative;
  margin-top: 18px;
}

.stain-stages .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(92,26,13,0.25);
  opacity: 1;
  transition: background 0.25s ease, width 0.35s ease;
}

.stain-stages .swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 24px;
}

.stain-arrow {
  display: none;
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(92,26,13,0.14);
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(20,18,14,0.06);
}

.stain-arrow:hover {
  background: #fff;
  transform: translateY(-50%) translateY(-3px);
  border-color: rgba(92,26,13,0.22);
  box-shadow: 0 8px 20px rgba(20,18,14,0.1);
}

.stain-prev { left: -6px; }
.stain-next { right: -6px; }

.stain-stage-media {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: clip;
  background:
    linear-gradient(135deg, rgba(92,26,13,0.08), rgba(216,153,71,0.14)),
    radial-gradient(circle at 1px 1px, rgba(92, 26, 13, 0.06) 1px, transparent 0);
  background-size: 100% 100%, 24px 24px;
}

.stain-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stain-stage-body { padding: 22px 22px 26px; text-align: center; }

.stain-stage-time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-burnt-sienna);
  margin-bottom: 8px;
}

.stain-stage-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-primary);
  margin: 0 0 10px;
}

.stain-stage-body p {
  color: var(--color-on-surface-variant);
  font-size: 14.5px;
  margin: 0;
}

@media (min-width: 768px) {
  .stain-stages { padding: var(--section-padding-desktop) 0; }
  .stain-arrow { display: inline-flex; }
}

/* ==========================================================================
   FAQ — accordion
   ========================================================================== */

.faq { padding: var(--section-padding-mobile) var(--gutter); background: var(--color-champagne-silk); }

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.faq-group + .faq-group { margin-top: 12px; }

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

.faq-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  background: rgba(92,39,34,0.05);
  border: 1px solid rgba(92,39,34,0.1);
  border-radius: var(--radius-xl);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-group-toggle:hover { background: rgba(92,39,34,0.09); }

.faq-group.is-open .faq-group-toggle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-group.is-open .faq-group-title { color: #fff; }

.faq-group-icon {
  flex-shrink: 0;
  font-size: 26px;
  color: var(--color-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-group.is-open .faq-group-icon {
  transform: rotate(180deg);
  color: var(--color-amber-glow);
}

/* Same 0fr→1fr mechanism as .faq-answer, one level up */
.faq-group-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-group.is-open .faq-group-panel { grid-template-rows: 1fr; }

/* The grid row collapses to 0fr, so this clips its own overflow. Breathing room
   goes on the first item, not as padding here — padding on the grid item would
   survive the collapse and leave a visible sliver. */
.faq-group-panel > .faq-list {
  overflow: hidden;
  min-height: 0;
}

.faq-group-panel .faq-item:first-child { margin-top: 14px; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(92,39,34,0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 18px rgba(20,18,14,0.03);
  overflow: clip;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item.is-open {
  box-shadow: var(--shadow-soft);
  border-color: rgba(216,153,71,0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: rgba(92,39,34,0.06);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: var(--color-amber-glow);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer p {
  margin: 0 22px 20px;
  color: var(--color-on-surface-variant);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Answers with more than one block (e.g. pricing) breathe tighter between them */
.faq-answer p:not(:last-child) { margin-bottom: 10px; }

.faq-answer ul {
  margin: 0 22px 20px;
  padding-left: 20px;
  color: var(--color-on-surface-variant);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-answer li { margin-bottom: 4px; }

@media (min-width: 768px) {
  .faq { padding: var(--section-padding-desktop) var(--gutter); }
  .faq-question { padding: 24px 26px; font-size: 16px; }
  .faq-answer p { margin: 0 26px 22px; font-size: 15px; }
  .faq-answer ul { margin: 0 26px 22px; font-size: 15px; }
  .faq-group-title { font-size: 24px; }
  .faq-group-toggle { padding: 20px 26px; }
  .faq-group + .faq-group { margin-top: 14px; }
}

/* ==========================================================================
   Contact — elevated pills & section polish
   ========================================================================== */

.contact {
  padding: var(--section-padding-mobile) var(--gutter);
  background: linear-gradient(180deg, var(--color-background) 0%, #f5efe4 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(92, 26, 13, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

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

.contact-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.contact-header p {
  color: var(--color-on-surface-variant);
  font-size: 15px;
  margin-top: 10px;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  /* The stylesheet has no global box-sizing reset, so without this the
     percentage flex-basis below resolves against the content box and each
     pill ends up ~50px wider than intended (padding + border). */
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(92,39,34,0.08);
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  position: relative;
  overflow: hidden;
}

.contact-pill::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-amber-glow);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.contact-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(216,153,71,0.35);
}

.contact-pill:hover::before { transform: scaleY(1); }

/* .contact-pill-brand carries an inline SVG (Facebook has no Material Symbol)
   and shares the same round icon treatment */
.contact-pill .material-symbols-outlined,
.contact-pill .contact-pill-brand {
  font-size: 22px;
  color: var(--color-primary);
  border: 1px solid rgba(92,39,34,0.12);
  background: rgba(92,39,34,0.04);
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-pill:hover .material-symbols-outlined,
.contact-pill:hover .contact-pill-brand {
  background: var(--color-primary);
  color: var(--color-amber-glow);
}

.contact-pill .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-on-surface-variant);
  font-weight: 700;
}

.contact-pill .value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(92,39,34,0.08);
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-location:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(216,153,71,0.35);
}

.contact-location-icon {
  font-size: 22px;
  color: var(--color-primary);
  border: 1px solid rgba(92,39,34,0.12);
  background: rgba(92,39,34,0.04);
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-location-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}

.contact-location-arrow {
  font-size: 18px;
  color: var(--color-on-surface-variant);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-location:hover .contact-location-arrow { transform: translateX(4px); }

.contact-page { padding-top: 110px; }

@media (min-width: 768px) {
  .contact { padding: var(--section-padding-desktop) var(--gutter); }
  .contact-page { padding-top: 110px; }
  /* Flex rather than equal columns so an odd count (five contact methods)
     centres its last row instead of leaving a hole. */
  .contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  .contact-pill { flex: 0 1 calc(50% - 9px); min-width: 0; padding: 26px 24px; }
}

@media (min-width: 1024px) {
  .contact-location { padding: 20px 26px; }
  /* Three across, so five pills land 3 + 2 centred. A third of the row is
     comfortably wider than the long email address, so it stays on one line
     without shrinking the type in the others. */
  .contact-pill { flex-basis: calc(33.333% - 12px); }
  .contact-pill .value { white-space: nowrap; overflow-wrap: normal; }
}

/* ==========================================================================
   Footer — refined dark panel
   ========================================================================== */

.footer {
  padding: 52px var(--gutter) 64px;
  background: #140f0c;
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-brand-copyright { color: rgba(255,255,255,0.42); font-size: 13px; margin-top: 12px; }

.footer-cols { display: flex; gap: 48px; }

.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover {
  color: var(--color-amber-glow);
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ==========================================================================
   Mobile Quick Bar — elevated glass pill
   ========================================================================== */

.mobile-quick-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20,15,12,0.18);
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(250,247,241,0.88);
  border: 1px solid rgba(92,26,13,0.08);
}

.mobile-quick-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: background 0.25s ease;
}

.mobile-quick-bar a:active { background: rgba(92,26,13,0.06); }

.mobile-quick-bar .call-btn { border-right: 1px solid rgba(92,26,13,0.08); }

.mobile-quick-bar .material-symbols-outlined { font-size: 18px; }

@media (min-width: 768px) {
  .mobile-quick-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Back to top button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 60;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-burnt-sienna);
  transform: translateY(-2px);
}

.back-to-top .material-symbols-outlined {
  font-size: 22px;
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
  }
}

/* Mobile: adjust position when quick bar is visible */
@media (max-width: 767px) {
  .back-to-top {
    bottom: 80px;
  }
}

/* ==========================================================================
   Polish Pass — high-touch details
   ========================================================================== */

/* Skip to content (accessibility) */
.skip-to-content {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: top 0.25s ease;
}

.skip-to-content:focus { top: 12px; }

/* Scroll progress bar */
.scroll-progress {
  position: absolute;
  top: 0; left: 0;
  height: 5px;
  width: 0%;
  background: var(--color-deep-maroon);
  transition: width 0.1s linear;
  z-index: 1;
}

/* Scroll-spy active nav link */
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--color-primary);
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator .material-symbols-outlined {
  font-size: 28px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; }
}

/* Button press states */
.btn:active,
.portfolio-nav button:active,
.reviews-arrow:active {
  transform: scale(0.97);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: var(--shadow-soft);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: rgba(92,26,13,0.28);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(92,26,13,0.45);
}

/* Staggered service card reveals */
.service-card.reveal:nth-child(1) { transition-delay: 0s; }
.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Service card link arrow slide (already exists, but smoother) */
.service-card-link {
  transition: color 0.25s ease;
}

.service-card-link:hover {
  color: var(--color-burnt-sienna);
}

.service-card.inverted .service-card-link:hover {
  color: #fff;
}

/* Mobile quick-bar press feedback */
.mobile-quick-bar a:active .material-symbols-outlined {
  transform: scale(0.9);
}

/* Subtle image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Contact pill icon subtle rotate on hover */
.contact-pill:hover .material-symbols-outlined {
  transform: rotate(8deg);
}

.contact-pill .material-symbols-outlined {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
