/* ==========================================================================
   MANGALYA BEAUTY PARLOUR - BASE & RESET STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--rosewood-900);
  background-color: var(--bg-main);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--rosewood-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: var(--tracking-tight); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: var(--tracking-tight); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1rem;
  color: var(--rosewood-700);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities & Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (max-width: 991px) {
  .section {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
}

.section-bg-alt {
  background-color: var(--bg-surface-warm);
}

.section-bg-rose {
  background-color: var(--bg-surface-alt);
}

/* Universal Table Responsive Scroller */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
}

/* Section Header Typography & Motifs */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.section-subtitle::after {
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--rosewood-900);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--rosewood-600);
  line-height: var(--leading-relaxed);
}

/* Common Badges & Tags */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: hsla(38, 75%, 68%, 0.15);
  color: var(--gold-700);
  border: 1px solid hsla(35, 72%, 54%, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-featured {
  background: var(--gold-500);
  color: #fff;
}

.badge-popular {
  background: hsla(350, 45%, 45%, 0.12);
  color: hsl(350, 50%, 35%);
  border: 1px solid hsla(350, 45%, 45%, 0.25);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 60, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212, 160, 60, 0); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}
