/* ═══════════════════════════════════════════════════════════
   Timber & Grace Salon & Suite — Custom Styles
   Earthy · Warm · Organic · Modern
   ═══════════════════════════════════════════════════════════ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-cream:       #FAF6F1;
  --color-warm-white:  #FDF9F4;
  --color-sand:        #E8DDD3;
  --color-taupe:       #C4B5A5;
  --color-sage:        #8B9D83;
  --color-sage-dark:   #6B7F63;
  --color-charcoal:    #2C2C2C;
  --color-dark:        #1A1A1A;
  --color-gold:        #C9A84C;
  --color-gold-light:  #D4B96A;
  --color-gold-dark:   #A68A3A;
  --color-blush:       #D4A89A;

  --font-serif:   'Cormorant Garamond', 'Georgia', serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-sans:    'DM Sans', 'Helvetica Neue', sans-serif;

  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.serif { font-family: var(--font-serif); }

/* ---------- Utility Classes ---------- */
.gold-accent { color: var(--color-gold); }

.divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1.5rem auto;
}

.section-pad { padding: 6rem 1.5rem; }

@media (min-width: 768px) {
  .section-pad { padding: 8rem 2rem; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: all 0.4s var(--ease-smooth);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 0.6rem 2rem;
}

.nav.scrolled .nav-link { color: var(--color-charcoal); }
.nav.scrolled .nav-logo { filter: none; }

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

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

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--color-gold); }

.nav-logo {
  height: 50px;
  transition: all 0.4s var(--ease-smooth);
  filter: brightness(0) invert(1);
}

.nav.scrolled .nav-logo {
  height: 40px;
  filter: none;
}

/* Mobile menu */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

.nav.scrolled .mobile-menu-btn span { background: var(--color-charcoal); }

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { color: var(--color-charcoal); }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(26, 26, 26, 0.65) 50%,
    rgba(44, 44, 44, 0.7) 100%
  );
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5) grayscale(1);
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero-logo {
  width: 180px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
  animation: fadeUp 1s var(--ease-smooth) 0.3s both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s var(--ease-smooth) 0.5s both;
}

.hero .tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-gold-light);
  font-style: italic;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  animation: fadeUp 1s var(--ease-smooth) 0.7s both;
}

.hero .cta-btn {
  animation: fadeUp 1s var(--ease-smooth) 0.9s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: all 0.35s var(--ease-smooth);
  cursor: pointer;
  border: none;
}

.btn-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

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

.btn-filled {
  background: var(--color-gold);
  color: var(--color-dark);
}

.btn-filled:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

/* ---------- About Section ---------- */
.about-img-wrapper {
  position: relative;
  overflow: hidden;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-bottom: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-top: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
}

/* ---------- Services Section ---------- */
.service-card {
  background: var(--color-warm-white);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(196, 181, 165, 0.3);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--color-sand);
}

.service-item:last-child { border-bottom: none; }

.service-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.service-price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--color-warm-white);
  border: 1px solid rgba(196, 181, 165, 0.3);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all 0.4s var(--ease-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.product-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-sand);
  transition: border-color 0.3s;
}

.product-card:hover .product-img-wrap {
  border-color: var(--color-gold);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.1);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--color-taupe);
  line-height: 1.6;
}

/* ---------- Gallery (Abstract Grid) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 280px;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
  }
  .gallery-item:nth-child(1) { grid-row: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
  }
  .gallery-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery-item:nth-child(3) { grid-column: 3; grid-row: 1; }
  .gallery-item:nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
  .gallery-item:nth-child(5) { grid-column: 2; grid-row: 2; }
  .gallery-item:nth-child(6) { grid-column: 3; grid-row: 2; }
  .gallery-item:nth-child(7) { grid-column: 1 / 3; grid-row: 3; }
  .gallery-item:nth-child(8) { grid-column: 3 / 5; grid-row: 3; }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

/* ---------- Aesthetician / Suite Section ---------- */
.suite-section {
  background: var(--color-dark);
  color: #fff;
  position: relative;
}

.suite-section .divider { background: var(--color-blush); }

.suite-img-wrap {
  overflow: hidden;
}

.suite-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
  display: block;
}

.suite-img-wrap:hover img {
  transform: scale(1.05);
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--color-warm-white);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: var(--color-taupe);
  padding: 3rem 2rem;
  text-align: center;
}

.footer a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196, 181, 165, 0.3);
  border-radius: 50%;
  color: var(--color-taupe);
  transition: all 0.3s;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

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

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

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.3s;
}

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

/* ---------- Map ---------- */
.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid var(--color-sand);
  filter: grayscale(40%) contrast(1.05);
  transition: filter 0.4s;
}

.map-container:hover { filter: grayscale(0%); }
