/* ============================================================
   GINGERBREAD AESTHETIC — style.css
   Site-wide styles + home page components.
   Foundation variables, reset and base components are in
   foundation.css — link that BEFORE this file.
   ============================================================ */


/* ============================================================
   SITE HEADER
   Fixed to the top. Becomes more opaque as you scroll.
   That scroll behaviour is handled in drawer.js.
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);

  /* Starts slightly transparent over the hero photo */
  background-color: rgba(46, 31, 14, 0.85);
  backdrop-filter: blur(8px);               /* frosted glass effect */
  -webkit-backdrop-filter: blur(8px);       /* Safari */
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);

  transition: background-color var(--transition-base);
}

/* When page is scrolled, header becomes fully solid */
.site-header.scrolled {
  background-color: var(--espresso);
  border-bottom-color: rgba(201, 168, 76, 0.3);
}

.site-header-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
}

.site-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Desktop nav links — hidden on mobile */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.desktop-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gold);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Hamburger button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--transition-fast);
}

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


/* ============================================================
   SIDE DRAWER NAVIGATION
   The drawer slides in from the left.
   .nav-open is toggled on <body> by drawer.js.
   ============================================================ */

/* Dark overlay behind the drawer */
.nav-overlay {
  position: fixed;
  inset: 0;                   /* covers the whole viewport */
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.55);

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;        /* can't be clicked when invisible */
  transition: opacity var(--transition-base);
}

/* When drawer is open, overlay becomes visible and clickable */
.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: all;
}

/* The drawer panel itself */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 300;
  width: 300px;

  background-color: var(--espresso);
  border-right: 1px solid rgba(201, 168, 76, 0.2);

  display: flex;
  flex-direction: column;
  padding: var(--space-6);

  /* Starts off-screen to the left */
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

/* When .nav-open is on body, drawer slides in */
.nav-open .nav-drawer {
  transform: translateX(0);
}

/* Drawer header — logo and close button */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-drawer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

/* Close button — X shape made from two spans */
.nav-close-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-close-btn span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.6);
}

.nav-close-btn span:first-child { transform: rotate(45deg); }
.nav-close-btn span:last-child  { transform: rotate(-45deg); }

.nav-close-btn:hover span {
  background-color: var(--gold);
}

/* Drawer nav links */
.nav-drawer-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-drawer-links a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--transition-fast),
              background-color var(--transition-fast),
              border-color var(--transition-fast);
}

.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  color: var(--gold);
  background-color: rgba(201, 168, 76, 0.07);
  border-left-color: var(--gold);
}

/* Drawer footer — book button and phone */
.nav-drawer-footer {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-drawer-footer .btn {
  width: 100%;
  justify-content: center;
}

.nav-drawer-contact {
  text-align: center;
  font-size: var(--text-sm);
}

.nav-drawer-contact a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.nav-drawer-contact a:hover {
  color: var(--gold);
}


/* ============================================================
   HERO — Full screen photo
   ============================================================ */

.hero-photo {
  /* ============================================
     IMPORTANT: replace hero.jpg with your photo
     ============================================ */
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* Full viewport height minus nothing — goes edge to edge */
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  position: relative;
  overflow: hidden;

  /* Push content below fixed header */
  padding-top: var(--nav-height);
}

/* Dark overlay so text is readable over the photo */
/* Increase the last value (0.45) to make it darker */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 31, 14, 0.55) 0%,
    rgba(46, 31, 14, 0.35) 50%,
    rgba(46, 31, 14, 0.65) 100%
  );
  z-index: 1;
}

.hero-photo-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-8) var(--space-6);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.hero-photo-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  margin-bottom: var(--space-4);
}

.hero-photo-heading em {
  font-style: italic;
  color: var(--gold);
}

.hero-rule-center {
  width: 50px;
  height: 1px;
  background-color: var(--gold);
  margin: var(--space-5) auto;
}

.hero-photo-sub {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
  line-height: var(--leading-snug);
  max-width: 100%;
}

/* Scroll hint at the bottom of the hero */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero-scroll-hint span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.6), transparent);
}


/* ============================================================
   INTRODUCTION STRIP
   ============================================================ */

.intro-strip {
  background-color: var(--espresso);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.intro-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.intro-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.intro-strip-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.intro-strip-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--weight-heading);
  color: var(--gold);
}

.intro-strip-value a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.intro-strip-value a:hover {
  color: var(--gold-light);
}

.intro-strip-divider {
  width: 1px;
  height: 32px;
  background-color: rgba(201, 168, 76, 0.2);
}


/* ============================================================
   SECTION HEADER — shared between sections
   ============================================================ */

.section-header {
  margin-bottom: var(--space-12);
  max-width: 600px;
}

.section-header h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
}

.section-header .lead {
  margin-top: var(--space-4);
}

.section-cta {
  margin-top: var(--space-10);
  text-align: center;
}


/* ============================================================
   TREATMENT CARDS
   Extends the base .treatment-card from foundation.css.
   Cards are also anchor tags so the whole card is clickable.
   ============================================================ */

.treatment-card {
  display: block;               /* makes the <a> behave like a block */
  text-decoration: none;
  color: inherit;
}

.treatment-card-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gold);
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-fast),
              transform var(--transition-fast);
}

.treatment-card:hover .treatment-card-link {
  color: var(--gold-dark);
  transform: translateX(4px);
}


/* ============================================================
   ABOUT TEASER — split layout
   ============================================================ */

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

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

/* Decorative gold border offset behind the image */
.about-teaser-image::before {
  content: '';
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  right: calc(var(--space-5) * -1);
  bottom: calc(var(--space-5) * -1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  z-index: 0;
}

.about-teaser-image img,
.about-image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;         /* portrait crop */
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Placeholder shown until you have Natalia's photo */
.about-image-placeholder {
  background-color: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-mid);
  border: 1px solid var(--color-border);
}

.about-teaser-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-teaser-content h2 {
  margin-top: var(--space-2);
}

.about-teaser-content .lead {
  margin-top: 0;
}

.about-teaser-content p {
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.about-teaser-content .btn {
  align-self: flex-start;       /* button doesn't stretch full width */
  margin-top: var(--space-2);
}


/* ============================================================
   BLOG / SKIN TIPS CARDS
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base),
              transform var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-dark);
  background-color: var(--champagne);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  color: var(--espresso);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  max-width: 100%;
}

.blog-card-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gold);
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-fast),
              transform var(--transition-fast);
  display: inline-block;
}

.blog-card:hover .blog-card-link {
  color: var(--gold-dark);
  transform: translateX(4px);
}


/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background-color: var(--espresso);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.cta-banner-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.cta-banner-heading em {
  font-style: italic;
  color: var(--gold);
}

.cta-banner-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  max-width: 100%;
}

.cta-banner-actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
}


/* ============================================================
   FOOTER — extends foundation.css footer styles
   ============================================================ */

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-top: calc(var(--space-1) * -1);
}

.footer-address {
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: var(--leading-loose);
}

.footer-phone a,
.footer-instagram a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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


/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  /* Hide desktop nav links, rely on hamburger */
  .desktop-nav {
    display: none;
  }

  /* About section stacks vertically */
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Image max width when stacked */
  .about-teaser-image {
    max-width: 480px;
  }

  /* Blog cards: 2 columns */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA banner stacks */
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-actions {
    justify-content: center;
  }

}


/* ============================================================
   RESPONSIVE — Mobile (max 640px)
   ============================================================ */

@media (max-width: 640px) {

  /* Hero text smaller on phone */
  .hero-photo-heading {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero-photo-sub {
    font-size: var(--text-base);
  }

  /* Hero buttons stack */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Intro strip: 2 columns */
  .intro-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .intro-strip-divider {
    display: none;
  }

  /* Treatment cards: 1 column */
  .treatment-grid {
    grid-template-columns: 1fr;
  }

  /* Blog cards: 1 column */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* About image: portrait crop shorter on phone */
  .about-teaser-image::before {
    display: none;
  }

  /* Book now button full width on phone */
  .cta-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer: single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

}
