/* assets/css/style.css - Massaji Spa: Restored Original Blue-and-White Zen Identity */

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

:root {
  /* Restored Original Blue-and-White Color Palette */
  --bg-primary: #F0F8FF;         /* Serene Ice Sky Blue */
  --bg-secondary: #E1F0FE;       /* Soft Cerulean Mist */
  --bg-surface: #FFFFFF;         /* Crisp White Card */
  --text-primary: #141E3C;       /* Deep Royal Navy */
  --text-secondary: #475569;     /* Slate Gray Body Text */
  --text-muted: #64748B;         /* Muted Slate Text */
  --brand-navy: #141E3C;         /* Deepest Indigo Navy */
  --brand-royal: #1E3A8A;        /* Royal Sapphire Blue */
  --brand-royal-hover: #172554;  /* Deep Navy Hover */
  --brand-sky: #0284C7;          /* Vibrant Ocean Sky Blue */
  --brand-emerald: #059669;      /* Botanical Emerald (WhatsApp) */
  --border-subtle: #BAE0FD;      /* Delicate Sky Blue Border */
  --border-light: #E2E8F0;       /* Neutral Card Border */

  /* Typography */
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #EBF5FE 0%, #F8FCFF 50%, #E8F4FE 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Ensure no child card or grid pushes layout sideways on small mobile devices (Xiaomi, iPhone SE) */
*, *::before, *::after {
  box-sizing: border-box;
}

.promo-card, .treatment-card, .package-card {
  min-width: 0;
  max-width: 100%;
}

.festive-headline {
  font-size: clamp(1.75rem, 5vw + 0.5rem, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  word-break: break-word;
}

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

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

/* Fluid Hero Headline Clamp */
.hero-headline {
  font-size: clamp(2.35rem, 5.2vw + 1rem, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-headline {
  font-size: clamp(1.95rem, 3.4vw + 0.5rem, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* Eyebrow Tag */
.eyebrow-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

/* Compact Editorial Treatment Card */
.treatment-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(20, 30, 60, 0.12);
  border-color: #7DD3FC;
}

/* Compact Image Frame for Treatment Cards (approx 4:3 ratio with controlled max height) */
.treatment-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 165px;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.treatment-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-img-frame img {
  transform: scale(1.03);
}

/* Editorial Image Container for Hero & About */
.img-editorial-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--bg-secondary);
}

.img-editorial-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Restored Original Navy-Blue Primary Button */
.btn-primary {
  background-color: var(--brand-royal);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px -2px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-royal-hover);
  box-shadow: 0 6px 18px -3px rgba(20, 30, 60, 0.4);
  transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
  background-color: #FFFFFF;
  color: var(--brand-royal);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px -2px rgba(20, 30, 60, 0.05);
}

.btn-secondary:hover {
  background-color: #F0F8FF;
  border-color: var(--brand-royal);
  color: var(--brand-navy);
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-royal);
}

/* Accessible Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-royal);
  outline-offset: 2px;
}
