/* ═══════════════════════════════════════
   MAGIC SPA — Shared Styles
   Palette: Terracotta · Gold · Ivory · Chocolate
═══════════════════════════════════════ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Magic Spa signature palette — airy, gold, warm */
  --gold:         #C9A876;   /* signature gold (logo) */
  --gold-deep:    #AE8C5C;   /* hover / deeper gold */
  --gold-light:   #D4B88A;   /* borders/details */
  --gold-pale:    #EDDFC4;   /* soft accent */
  --sage:         #A8B89A;   /* wellness touch — sparingly */
  --ivory:        #FAF6EF;   /* main bg — soft ivory cream */
  --ivory-dark:   #F0E9DC;   /* warm sand — alt sections */
  --cream:        #FAF6EF;
  --pure:         #FFFFFF;
  --choco:        #2E2620;   /* warm charcoal (primary text) */
  --choco-mid:    #5A4E42;
  --choco-light:  #7A6D5E;   /* soft taupe (secondary text) */
  --brown:        #3D342A;   /* footer / dark sections */
  --brown-mid:    #4A4035;
  /* legacy aliases — map old names to new palette */
  --terra:        #C9A876;
  --terra-deep:   #AE8C5C;
  --terra-light:  #D4B88A;
  --gold-dark:    #AE8C5C;
  --whatsapp:     #25D366;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--choco);
  font-size: 15px;
  line-height: 1.65;
}

/* ── ARABESQUE PATTERN ── */
.arabesque-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23D4A574' stroke-width='0.5' opacity='0.18'%3E%3Cpolygon points='30,4 36,14 48,14 39,22 43,34 30,27 17,34 21,22 12,14 24,14'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Cline x1='30' y1='0' x2='30' y2='60'/%3E%3Cline x1='0' y1='30' x2='60' y2='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ── NAVBAR ── */
nav.main-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250,246,239,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid rgba(201,168,118,.25);
  box-shadow: 0 2px 20px rgba(46,38,32,.05);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 50px; width: auto; display: block; }
.nav-logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(201,168,118,.25);
}
.nav-logo-icon svg { width: 24px; height: 24px; }
.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--choco); letter-spacing: .5px;
}

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--choco); text-decoration: none;
  font-size: .8rem; font-weight: 500; letter-spacing: .6px;
  text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-deep); }
.nav-links a.btn-book {
  background: var(--gold); color: var(--ivory) !important;
  padding: 9px 22px; border-radius: 30px;
  font-weight: 600; transition: background .2s, transform .15s !important;
  box-shadow: 0 3px 12px rgba(201,168,118,.35);
}
.nav-links a.btn-book:hover { background: var(--gold-deep); transform: translateY(-1px); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--choco); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, rgba(46,38,32,.65), rgba(201,168,118,.35)), var(--brown);
  padding: 90px 5% 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23C9A876' stroke-width='0.5' opacity='0.30'%3E%3Cpolygon points='30,4 36,14 48,14 39,22 43,34 30,27 17,34 21,22 12,14 24,14'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Cline x1='30' y1='0' x2='30' y2='60'/%3E%3Cline x1='0' y1='30' x2='60' y2='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: .75rem; color: rgba(255,255,255,.5);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500;
  color: #fff; line-height: 1.15; margin-bottom: .8rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p { color: rgba(255,255,255,.65); font-size: .95rem; max-width: 500px; margin: 0 auto; }

/* ── DIVIDER ── */
.gold-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 1.5rem auto;
}
.gold-divider::before, .gold-divider::after {
  content: ''; flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-divider span { color: var(--gold); font-size: .9rem; }

/* ── SECTION BASE ── */
.section { padding: 90px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .7rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: .5rem; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 500;
  color: var(--choco); line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--gold-deep); }
.section-sub { color: var(--choco-light); font-size: .9rem; margin-top: .7rem; max-width: 520px; }

/* ── BUTTONS ── */
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: none; font-family: 'Outfit', sans-serif; transition: all .2s; }
.btn-terra {
  background: var(--gold); color: var(--ivory);
  padding: 13px 34px; border-radius: 40px;
  font-size: .82rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(201,168,118,.35);
}
.btn-terra:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(174,140,92,.45); }
.btn-outline-terra {
  background: transparent; color: var(--gold-deep);
  padding: 13px 34px; border-radius: 40px; border: 2px solid var(--gold);
  font-size: .82rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
}
.btn-outline-terra:hover { background: var(--gold); color: var(--ivory); }
.btn-outline-gold {
  background: transparent; color: #fff;
  padding: 13px 34px; border-radius: 40px; border: 1.5px solid var(--gold);
  font-size: .82rem; font-weight: 500; letter-spacing: .8px; text-transform: uppercase;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--choco); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--choco);
  padding: 13px 34px; border-radius: 40px;
  font-size: .82rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ── SERVICE CARDS ── */
.service-card {
  background: #fff; border-radius: 18px;
  box-shadow: 0 2px 24px rgba(43,29,20,.08);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  border: 1.5px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(43,29,20,.14); border-color: var(--gold-pale); }

.card-top {
  padding: 2rem 1.6rem 1rem;
  display: flex; flex-direction: column; gap: .8rem; flex: 1;
}
.card-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--ivory); display: flex; align-items: center; justify-content: center;
}
.card-icon-wrap svg { width: 28px; height: 28px; }

.card-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
}
.badge-dur { background: var(--ivory-dark); color: var(--choco-light); }
.badge-price { background: var(--gold); color: var(--ivory); }
.badge-pack { background: linear-gradient(135deg, var(--gold-pale), var(--gold)); color: var(--choco); }
.badge-pop { background: var(--choco); color: var(--gold); }

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 500; color: var(--choco); line-height: 1.2;
}
.card-desc { font-size: .83rem; color: var(--choco-light); line-height: 1.6; }
.card-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.card-tag {
  font-size: .66rem; background: var(--ivory-dark); color: var(--gold-deep);
  padding: 3px 9px; border-radius: 20px; font-weight: 500;
}

.card-bottom { padding: .8rem 1.6rem 1.6rem; }
.card-bottom .btn-terra { width: 100%; text-align: center; padding: 11px; display: block; }

/* ── TABS ── */
.tab-nav {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.tab-btn {
  padding: 10px 30px; border-radius: 30px;
  border: 2px solid var(--gold-pale);
  background: transparent; color: var(--choco-light);
  font-family: 'Outfit', sans-serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ivory);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem; max-width: 1200px; margin: 0 auto;
}

/* ── FOOTER ── */
footer.main-footer {
  background: var(--brown);
  padding: 70px 5% 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem; max-width: 1200px; margin: 0 auto 3rem;
}
.footer-brand-text {
  font-size: .82rem; color: rgba(255,255,255,.5);
  line-height: 1.7; margin-top: 1rem;
}
.footer-logo-wrap { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.footer-logo-wrap span { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold-light); letter-spacing: .5px; }
.footer-logo-svg { flex-shrink: 0; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .83rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact-row { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-contact-row .ico { color: var(--gold); font-size: .85rem; flex-shrink: 0; margin-top: .15rem; }
.footer-contact-row span { font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-contact-row a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-contact-row a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: .78rem; font-weight: 700;
  transition: background .2s;
}
.social-link:hover { background: var(--gold); color: var(--ivory); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.35); }

/* ── FLOATING BUTTONS ── */
.fab {
  position: fixed; bottom: 28px;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; z-index: 900;
  box-shadow: 0 4px 18px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.fab-phone { left: 24px; background: var(--gold); color: var(--ivory); }
.fab-wa { right: 24px; background: var(--whatsapp); color: #fff; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .73rem; font-weight: 600;
  color: var(--choco-mid); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  border: 1.5px solid var(--ivory-dark); background: var(--ivory);
  font-family: 'Outfit', sans-serif; font-size: .88rem; color: var(--choco);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,118,.18);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--choco); color: var(--gold);
  padding: 10px 18px; border-radius: 6px;
  font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 600;
  text-decoration: none; z-index: 10000;
  transition: top .15s ease-in;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--ivory); flex-direction: column; align-items: flex-start; padding: 1.5rem 5%; gap: 1.1rem; z-index: 999; border-bottom: 1px solid rgba(201,168,118,.25); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 5% 55px; }
}
