/* ========================================
   Pure Skin Lab - Custom Styles
   ======================================== */

/* Base */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
  --color-primary: #2c2c2c;
  --color-accent: #b8977e;
  --color-light: #f7f4f0;
  --color-cream: #faf8f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-primary);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography - Serif headings */
.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

/* Prevent iOS zoom on inputs (requires 16px min) */
input, select, textarea {
  font-size: 16px;
}

/* ========================================
   Header Scroll States
   Always transparent overlay - just deepen blur on scroll
   ======================================== */
#site-header.scrolled .header-nav {
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu open/close animation */
.mobile-menu.menu-open {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  height: 100svh;
  min-height: 550px;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ========================================
   Section Styles
   ======================================== */
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.service-card .service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  transition: background 0.5s ease;
}

.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 80%);
}

/* ========================================
   Animations
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* ========================================
   Page Header (Sub-pages)
   ======================================== */
.page-header {
  position: relative;
  height: 45svh;
  min-height: 300px;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

/* ========================================
   Mobile Bottom CTA Bar
   ======================================== */
.mobile-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-bottom-cta.visible {
  transform: translateY(0);
}

/* ========================================
   Responsive - Mobile First Enhancements
   ======================================== */

/* Small phones */
@media (max-width: 374px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* Header sticks on scroll for mobile */
  #site-header.scrolled {
    position: fixed;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }

  /* Reduce section padding on mobile */
  .section-mobile-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Hero adjustments */
  .hero-section {
    min-height: 100svh;
  }

  /* Page header mobile */
  .page-header {
    height: 40svh;
    min-height: 260px;
  }

  /* Bottom padding for fixed CTA bar */
  body {
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* Reduce animation distance on mobile for snappier feel */
  .fade-up {
    transform: translateY(20px);
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .mobile-bottom-cta {
    display: none !important;
  }
}
