/* ==========================================================================
   LADIES BEAUTY SALON WEBSITE - MAIN DESIGN SYSTEM (style.css)
   Color Palette: Deep Burgundy (#5A183E), Soft Gold (#D4A373), Base White (#FFFFFF), Light Rose (#FFF8F7)
   ========================================================================== */

:root {
  /* Core Color Palette (Section 24) */
  --primary-burgundy: #5A183E;
  --primary-dark: #251A20;
  --burgundy-light: #7A2454;
  
  --gold-accent: #D4A373;
  --gold-light: #E6C29D;
  --gold-dark: #B88252;
  --gold-gradient: linear-gradient(135deg, #D4A373 0%, #E6C29D 50%, #B88252 100%);
  --gold-glow: rgba(212, 163, 115, 0.35);

  --bg-base: #FFFFFF;
  --bg-light-rose: #FFF8F7;
  --bg-surface: #FFFDF9;
  --bg-dark-accent: #251A20;

  --text-primary: #111111;
  --text-secondary: #2C2C2C;
  --text-muted: #4A4A4A;
  --text-light: #FFFFFF;

  --border-color: rgba(212, 163, 115, 0.22);
  --border-color-strong: rgba(212, 163, 115, 0.45);

  /* Typography (Section 25) */
  --font-heading: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', 'Poppins', 'Inter', sans-serif;

  /* Shadows & Glassmorphism */
  --card-shadow: 0 10px 30px rgba(90, 24, 62, 0.07);
  --hover-shadow: 0 18px 40px rgba(90, 24, 62, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(212, 163, 115, 0.3);
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-base: #181014;
  --bg-light-rose: #22171D;
  --bg-surface: #281B23;
  --text-primary: #FAF5F8;
  --text-secondary: #D8CCD3;
  --border-color: rgba(212, 163, 115, 0.2);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.gold-text {
  color: #8C4B18;
  font-weight: 800;
  display: inline-block;
}

.burgundy-text {
  color: var(--primary-burgundy);
}

/* --- Container & Utilities --- */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 85px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8C4B18;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-burgundy);
  margin-bottom: 12px;
}

[data-theme="dark"] .section-title {
  color: #FAF5F8;
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Buttons System (Section 26) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-burgundy {
  background: var(--primary-burgundy);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(90, 24, 62, 0.25);
}

.btn-burgundy:hover {
  background: var(--burgundy-light);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(90, 24, 62, 0.35);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #251A20;
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 163, 115, 0.45);
  color: #251A20;
}

.btn-outline {
  background: transparent;
  color: var(--primary-burgundy);
  border: 1.5px solid var(--primary-burgundy);
}

.btn-outline:hover {
  background: var(--primary-burgundy);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--gold-accent);
  color: #251A20;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* --- Navigation Bar (Section 21, 22) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(90, 24, 62, 0.04);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color-strong);
  box-shadow: 0 6px 24px rgba(90, 24, 62, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-burgundy);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  border: 2px solid var(--gold-accent);
  box-shadow: 0 4px 12px rgba(90, 24, 62, 0.2);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-burgundy);
  letter-spacing: 1px;
  line-height: 1;
}

[data-theme="dark"] .logo-text {
  color: #FFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-burgundy);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Offcanvas Drawer */
.mobile-offcanvas {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1050;
  padding: 30px 24px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-offcanvas.active {
  left: 0;
}

.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.offcanvas-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --- Floating Action Buttons (Section 8, 30) --- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.35rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
  color: #FFF;
}

.float-call {
  background: var(--primary-burgundy);
}

.float-whatsapp {
  background: #25D366;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-burgundy);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-accent);
  color: var(--primary-burgundy);
  transform: translateY(-3px);
}

/* --- Modal Backdrop & Appointment Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 26, 32, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  background: var(--bg-surface);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-color-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-backdrop.active .booking-modal {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--primary-burgundy);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color-strong);
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-burgundy);
  box-shadow: 0 0 0 3px rgba(90, 24, 62, 0.12);
}

/* --- Footer (Section 7, 23) --- */
.footer {
  background: var(--primary-dark);
  color: #FFF;
  padding: 70px 0 24px 0;
  border-top: 3px solid var(--gold-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1.25rem;
  color: var(--gold-accent);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #BBB4AB;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--gold-accent);
  color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #BBB4AB;
}
