/* ==========================================================
   Agape Beauty Salon & Spa
   Brand colours from the Agape brand kit: sky blue + sand.
   ========================================================== */

:root {
  /* Brand */
  --sky: #A8D6F3;
  --sand: #F3D5A5;
  --white: #FFFFFF;

  /* Tints and deeper tones for text, buttons and backgrounds */
  --ivory: #FFFDF9;
  --sky-soft: #EEF7FD;
  --sand-soft: #FCF4E7;
  --sand-line: #EBD3AC;
  --accent: #3D7399;        /* buttons, links: white text passes AA */
  --accent-dark: #2E5C7D;
  --heading: #3D7399;
  --eyebrow: #8C6735;
  --ink: #34404B;
  --ink-soft: #5E6A75;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(46, 92, 125, .35);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[lang="ar"] {
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Tajawal", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; position: relative; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }
.narrow { max-width: 860px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-lg { width: 2.2rem; height: 2.2rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--white); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Decorative line-art flowers from the brand kit */
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; }

/* ---------- Logo ---------- */
.logo { display: block; aspect-ratio: 186.45 / 63.52; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: var(--white); color: var(--accent-dark); }
.btn-light:hover { background: var(--sky-soft); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
  color: var(--white);
}
.site-header.scrolled {
  background: rgba(255, 253, 249, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--sand-line);
  color: var(--ink);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand .logo { height: 30px; width: auto; transition: color .4s var(--ease); }
.site-header.scrolled .brand .logo,
.site-header.menu-open .brand .logo { color: #7DB9E2; }
.brand-sub { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; opacity: .85; white-space: nowrap; }
html[lang="ar"] .brand-sub { letter-spacing: 0; font-size: .78rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  position: relative; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0;
}
html[lang="ar"] .nav a:not(.btn) { letter-spacing: 0; font-size: 1rem; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--sand);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-book { padding: .7em 1.5em; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; opacity: .9;
  transition: background .3s, color .3s, border-color .3s;
}
.lang-toggle:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }

.menu-toggle {
  display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; color: inherit;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span { width: 24px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 4px; padding: 20px 16px 28px;
    background: var(--ivory); color: var(--ink);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 1rem; }
  .nav-book { margin-top: 10px; }
  .site-header.menu-open { background: var(--ivory); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; color: var(--white);
  display: flex; align-items: center;
}
.slides, .slide, .hero-overlay { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  background:
    radial-gradient(ellipse at center, rgba(34,48,60,.42) 0%, rgba(34,48,60,.12) 70%),
    linear-gradient(180deg, rgba(34,48,60,.55) 0%, rgba(34,48,60,.22) 35%, rgba(34,48,60,.3) 60%, rgba(46,92,125,.6) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; color: var(--eyebrow);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 1rem; }
.hero .eyebrow { color: var(--sand); }
.hero-title { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: clamp(240px, 46vw, 520px); height: auto; aspect-ratio: 186.45 / 63.52;
  color: var(--white); filter: drop-shadow(0 4px 24px rgba(0,0,0,.25));
}
.hero-tagline { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 400; margin-top: 18px; }
.hero-text { max-width: 540px; margin: 18px auto 34px; font-size: 1.1rem; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
  transition: background .3s;
}
.slider-arrow:hover { background: rgba(255,255,255,.22); }
.slider-arrow.prev { inset-inline-start: 24px; }
.slider-arrow.next { inset-inline-end: 24px; }
.slider-arrow.next .icon { transform: scaleX(-1); }
[dir="rtl"] .slider-arrow .icon { transform: scaleX(-1); }
[dir="rtl"] .slider-arrow.next .icon { transform: none; }
@media (max-width: 700px) { .slider-arrow { display: none; } }

.slider-dots { position: absolute; bottom: 34px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider-dots button {
  width: 34px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .3s, width .3s;
}
.slider-dots button[aria-selected="true"] { background: var(--white); width: 54px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; overflow: hidden; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--heading); }
.divider {
  display: flex; align-items: center; gap: 14px; color: var(--sand);
  margin: 22px auto; max-width: 220px;
}
.divider .icon { color: #D9B57E; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--sand-line); }

/* About */
.about { background: var(--ivory); }
.deco-hanging {
  width: clamp(110px, 11vw, 160px); top: -150px; inset-inline-start: max(0px, calc(50% - 640px));
}
[dir="rtl"] .deco-hanging { transform: scaleX(-1); }
@media (max-width: 899px) { .deco-hanging { width: 90px; top: -120px; opacity: .7; } }

.about-grid { display: grid; gap: 70px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 90px; } }
.about-media { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
  outline: 1px solid var(--sand); outline-offset: 12px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.about-badge {
  position: absolute; bottom: -34px; inset-inline-end: -14px; max-width: 240px;
  background: var(--white); color: var(--ink-soft);
  padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--sky-soft);
  display: flex; flex-direction: column; gap: 6px; font-size: .88rem; line-height: 1.5;
}
.about-badge .logo { height: 34px; width: auto; color: var(--sky); }
.about-badge .phonetic { color: #8A949D; font-size: .82rem; }
.about-badge .phonetic b { font-weight: 500; color: var(--ink-soft); }
.about-text { position: relative; z-index: 1; }
.about-text .divider { margin-inline: 0; }
.about-text p { color: var(--ink-soft); }
.about-text em { font-family: var(--font-display); font-size: 1.2em; color: var(--accent); }
@media (max-width: 899px) { .about-text { text-align: center; } .about-text .divider { margin-inline: auto; } }
@media (max-width: 480px) { .about-badge { inset-inline-end: 0; } }

.values { display: grid; gap: 22px; margin-top: 100px; position: relative; z-index: 1; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  background: var(--white); border-radius: var(--radius); padding: 40px 30px; text-align: center;
  border: 1px solid var(--sand-soft);
  box-shadow: 0 1px 0 var(--sand-line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value .icon { width: 2.4rem; height: 2.4rem; color: #7DB9E2; }
.value h3 { font-size: 1.8rem; color: var(--heading); margin: 14px 0 8px; }
.value p { margin: 0; color: var(--ink-soft); }

/* Booking banner: sand with the blue flower, as in the brand kit */
.book-banner {
  background: var(--sand);
  color: var(--ink); text-align: center; padding: 90px 0;
  position: relative; overflow: hidden;
}
.deco-side {
  width: clamp(380px, 42vw, 620px); top: 50%; inset-inline-start: -14%;
  transform: translateY(-50%);
}
@media (max-width: 760px) { .deco-side { opacity: .4; inset-inline-start: -40%; } }
[dir="rtl"] .deco-side { transform: translateY(-50%) scaleX(-1); }
.book-inner { position: relative; z-index: 1; }
.book-banner h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; color: var(--accent-dark); }
.book-banner p { margin: 10px 0 30px; color: var(--ink); }
.book-banner .btn-light { background: var(--accent); color: var(--white); }
.book-banner .btn-light:hover { background: var(--accent-dark); }

/* Location */
.location { background: var(--sand-soft); }
.location-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1.6fr 1fr; align-items: stretch; } }
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--sky-soft); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8); }
.location-card {
  background: var(--white); border-radius: var(--radius); padding: 44px 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  border: 1px solid var(--sand-line);
}
.location-card .icon { color: #7DB9E2; }
.location-card h3 { font-size: 1.9rem; color: var(--heading); }
.location-card p { margin: 0 0 14px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ivory); }
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-card {
  background: var(--white); border: 1px solid var(--sky-soft); border-radius: var(--radius);
  padding: 38px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sky); }
.contact-card .icon { color: var(--accent); margin-bottom: 8px; }
.contact-card h3 { font-size: 1.6rem; color: var(--heading); }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.contact-details {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px;
}
.contact-details li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.contact-details a:hover { color: var(--accent); }
.contact-details .icon { color: #D9B57E; }

/* Terms */
.terms { background: var(--sky-soft); }
.terms-intro { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: var(--white); border: 1px solid rgba(168, 214, 243, .6); border-radius: 14px;
  transition: border-color .3s;
}
.accordion details[open] { border-color: var(--sky); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-size: 1.35rem; color: var(--heading);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: #7DB9E2;
  transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }
.accordion details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Privacy policy page ---------- */
.page-hero {
  background: var(--sky-soft); text-align: center; position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 7vw, 84px);
}
.page-hero .container { z-index: 1; }
.page-hero .deco-side { opacity: .35; }
.page-hero .section-title { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
.page-intro { color: var(--ink-soft); max-width: 600px; margin: 0 auto; }
.page-updated { margin: 18px 0 0; font-size: .85rem; color: var(--eyebrow); }

.policy { padding-top: clamp(56px, 7vw, 90px); }
.policy-block { padding: 34px 0; border-bottom: 1px solid var(--sand-line); }
.policy-block:first-child { padding-top: 0; }
.policy-block:last-child { border-bottom: 0; }
.policy-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--heading); margin-bottom: 14px; }
.policy-block p, .policy-block li { color: var(--ink-soft); }
.policy-block p { margin: 0 0 12px; }
.policy-block ul { margin: 0 0 12px; padding-inline-start: 1.3em; }
.policy-block li { margin-bottom: 6px; }
.policy-block li::marker { color: #D9B57E; }
.policy-block strong { font-weight: 500; color: var(--ink); }
.policy-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy-back { text-align: center; margin: 40px 0 0; }

/* Footer: sky blue with the white wordmark, as in the brand kit */
.site-footer {
  background: var(--sky); color: var(--ink);
  padding: 80px 0 34px; text-align: center; position: relative; overflow: hidden;
}
.deco-top { width: clamp(380px, 55vw, 760px); top: 0; inset-inline-end: -6%; opacity: .9; }
[dir="rtl"] .deco-top { transform: scaleX(-1); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; }
.brand-light { align-items: center; color: var(--white); }
.brand-light .logo { height: 56px; }
.brand-light .brand-sub { color: var(--ink); opacity: .8; }
.footer-quote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--accent-dark); }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(52,64,75,.25); color: var(--ink);
  display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s;
}
.socials a:hover { background: var(--white); border-color: var(--white); color: var(--accent); }
.site-footer .btn-light:hover { background: var(--sky-soft); }
.copyright { margin: 14px 0 0; font-size: .82rem; opacity: .75; }
.copyright a { text-decoration: underline; text-underline-offset: 3px; }
.copyright a:hover { color: var(--accent-dark); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  transition: transform .3s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: opacity .6s; transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .value:hover, .contact-card:hover { transform: none; }
}
