/* ================================
   SAKINA CONCIERGERIE — Design System
   ================================ */

:root {
  /* Colors */
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ivory: #FAF7F2;
  --ivory-2: #F0EAD8;
  --gold: #C9A55C;
  --gold-soft: #D9BB7A;
  --gold-deep: #A88841;
  --emerald: #0F5132;
  --emerald-soft: #1F7A4D;
  --muted: #6b6b66;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.16);

  /* Type */
  --display: 'Playfair Display', 'Times New Roman', serif;
  --body: 'Montserrat', -apple-system, system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ================================ TYPE ================================ */
.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
}
.h-1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.h-2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.h-3 { font-size: 1.4rem; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 60ch;
}

/* ================================ LAYOUT ================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section {
  padding: clamp(70px, 9vw, 130px) 0;
}

.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--gold);
}

/* ================================ BUTTONS ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.4s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-deep);
  color: var(--ivory);
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: currentColor;
}
.btn-ghost:hover span:not(.arrow) { color: var(--ivory); }
.btn-ghost.on-dark:hover { color: var(--ink); }

.btn-link {
  padding: 0;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }

/* ================================ NAV ================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}
.nav.scrolled, .nav.solid {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  transition: filter 0.4s var(--ease);
}
.nav.scrolled .nav-logo-img,
.nav.solid .nav-logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ivory);
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--ink); }
.nav.scrolled .nav-links a.active, .nav.solid .nav-links a.active { color: var(--gold-deep); }

.nav-right {
  display: flex; align-items: center; gap: 20px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ivory);
  transition: all 0.3s;
}
.nav.scrolled .lang-toggle, .nav.solid .lang-toggle { color: var(--ink); }
.lang-toggle:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--ivory);
}
.nav.scrolled .menu-btn, .nav.solid .menu-btn { color: var(--ink); }
.menu-btn span { width: 22px; height: 1.5px; background: currentColor; transition: 0.3s; }

@media (max-width: 1024px) {
  .nav-links, .lang-toggle { display: none; }
  .menu-btn { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul {
  list-style: none;
  text-align: center;
}
.mobile-menu li { margin: 14px 0; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 32px;
  color: var(--ivory);
}
.mobile-menu a:hover { color: var(--gold); }

/* ================================ HERO BLOCKS ================================ */
.page-hero {
  position: relative;
  min-height: 60vh;
  padding: 180px 0 100px;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}
.page-hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero h1 { color: var(--ivory); margin: 16px 0 20px; }
.page-hero .lead { color: rgba(250, 247, 242, 0.85); }

/* ================================ FOOTER ================================ */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--ivory);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a, .footer p {
  color: rgba(250, 247, 242, 0.7);
  font-size: 14px;
  line-height: 1.65;
  transition: color 0.3s;
}
.footer a:hover { color: var(--gold); }

.footer-brand {
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.7);
}
.contact-line svg { flex-shrink: 0; margin-top: 3px; opacity: 0.7; }

.newsletter-form {
  display: flex;
  border: 1px solid rgba(250, 247, 242, 0.2);
  margin-top: 12px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 14px;
  color: var(--ivory);
  font-family: var(--body);
  font-size: 13px;
}
.newsletter-form input::placeholder { color: rgba(250, 247, 242, 0.4); }
.newsletter-form button {
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: var(--gold-deep); color: var(--ivory); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.5);
}
.footer-bottom .legal { display: flex; gap: 24px; }

/* ================================ WHATSAPP WIDGET ================================ */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-widget:hover { transform: scale(1.08); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ================================ REVEAL ANIMATIONS ================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ================================ UTILITIES ================================ */
.text-gold { color: var(--gold-deep); }
.text-muted { color: var(--muted); }
.bg-ink { background: var(--ink); color: var(--ivory); }
.bg-ivory-2 { background: var(--ivory-2); }
