/* ============================================
   RÉSIDENCE AFRICAINE — Design tokens
   Colors: navy #0e1c2b, gold #c9973f / #e3c88a, cream #f7f3ea, ink #26241f
   Type: Lora (display/serif), Poppins (body/UI)
   ============================================ */

:root {
  --navy: #0e1c2b;
  --navy-light: #16293d;
  --gold: #c9973f;
  --gold-light: #e3c88a;
  --cream: #f7f3ea;
  --paper: #fdfcf9;
  --ink: #26241f;
  --ink-soft: #5a5646;
  --line: #e0d6b8;
  --shadow: 0 20px 50px rgba(14,28,43,0.12);
}

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

html { scroll-behavior:smooth; }

body {
  font-family:'Poppins', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1, h2, h3 { font-family:'Lora', serif; }

a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul { list-style:none; }

.eyebrow {
  font-size:12.5px;
  font-weight:700;
  letter-spacing:3px;
  text-transform:uppercase;
  color: var(--gold);
  margin-bottom:12px;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:15px 30px;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
  letter-spacing:0.3px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor:pointer;
  border:none;
}
.btn:hover { transform:translateY(-2px); }
.btn:focus-visible { outline:3px solid var(--gold-light); outline-offset:2px; }

.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color:#1c1206; box-shadow:0 10px 24px rgba(201,151,63,0.35); }
.btn-ghost { background:rgba(255,255,255,0.08); color:#fff; border:1.5px solid rgba(255,255,255,0.55); }
.btn-outline-light { background:transparent; color:#fff; border:1.5px solid var(--gold-light); }

/* ============ NAV ============ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(14,28,43,0.0);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 22px 0;
}
.nav.scrolled {
  background:rgba(14,28,43,0.92);
  backdrop-filter: blur(8px);
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
  padding:12px 0;
}
.nav-inner {
  max-width:1240px; margin:0 auto; padding:0 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-brand { display:flex; align-items:center; gap:12px; }
.nav-brand img { width:38px; height:38px; object-fit:contain; border-radius:6px; }
.nav-brand span { font-family:'Lora',serif; font-size:16px; font-weight:700; color:#fff; letter-spacing:1px; }
.nav-brand span em { font-style:normal; color: var(--gold-light); font-weight:600; margin-left:5px; }
.nav-links { display:flex; align-items:center; gap:30px; }
.nav-links a { color:#f0eee6; font-size:14.5px; font-weight:500; transition:color .15s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color:#1c1206 !important;
  padding:10px 20px;
  border-radius:7px;
  font-weight:700 !important;
}
.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span { width:24px; height:2px; background:#fff; border-radius:2px; }

/* ============ HERO ============ */
.hero {
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 35%;
}
.hero-bg::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(14,28,43,0.55) 0%, rgba(14,28,43,0.72) 55%, rgba(14,28,43,0.94) 100%);
}
.hero-wave {
  position:absolute; bottom:-2px; left:0; right:0; z-index:2; line-height:0;
}
.hero-wave svg { width:100%; height:90px; display:block; }
.hero-wave path { fill: var(--paper); }
.hero-content {
  position:relative; z-index:3;
  max-width:1240px; margin:0 auto; padding:140px 32px 160px 32px;
  color:#fff;
}
.hero-content h1 {
  font-size:clamp(48px, 8vw, 92px);
  line-height:0.98;
  font-weight:700;
  letter-spacing:-1px;
  margin-bottom:26px;
}
.hero-content h1 em { font-style:italic; color: var(--gold-light); font-weight:600; }
.hero-sub {
  font-size:18px; line-height:1.6; color:#e4e1d8; max-width:560px; margin-bottom:38px; font-weight:300;
}
.hero-actions { display:flex; gap:18px; flex-wrap:wrap; }

/* ============ FACTS STRIP ============ */
.facts { background: var(--navy); padding:0; }
.facts-inner {
  max-width:1240px; margin:0 auto; padding:38px 32px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:28px;
}
.fact { display:flex; align-items:center; gap:16px; color:#fff; }
.fact svg { width:34px; height:34px; color: var(--gold-light); flex-shrink:0; }
.fact strong { display:block; font-family:'Lora',serif; font-size:19px; font-weight:700; }
.fact span { display:block; font-size:12.5px; color:#a9b4c2; margin-top:2px; }

/* ============ SECTION HEADS ============ */
.section-head { text-align:center; max-width:680px; margin:0 auto 56px auto; padding:0 32px; }
.section-head h2 { font-size:clamp(30px,4vw,42px); font-weight:700; color: var(--navy); }
.section-sub { margin-top:14px; color: var(--ink-soft); font-size:16px; }

/* ============ INTRO ============ */
.intro { padding:110px 0 100px 0; }
.intro-inner { max-width:760px; margin:0 auto; padding:0 32px; text-align:center; }
.intro-inner .eyebrow { display:block; }
.intro-inner h2 { font-size:clamp(28px,4vw,38px); color: var(--navy); margin-bottom:22px; font-weight:700; }
.intro-inner p { font-size:17px; line-height:1.75; color: var(--ink-soft); }

/* ============ ROOMS ============ */
.rooms { padding:0 0 110px 0; }
.rooms-grid {
  max-width:1240px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.room-card {
  background:#fff; border-radius:16px; overflow:hidden; box-shadow: var(--shadow);
  transition:transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform:translateY(-6px); box-shadow:0 28px 60px rgba(14,28,43,0.18); }
.room-card img { height:240px; width:100%; object-fit:cover; }
.room-card-body { padding:26px 24px 30px 24px; }
.room-card-body h3 { font-size:20px; color: var(--navy); margin-bottom:10px; font-weight:700; }
.room-card-body .tag { font-size:12px; background: var(--cream); color: var(--gold); padding:3px 10px; border-radius:20px; font-family:'Poppins',sans-serif; font-weight:700; vertical-align:middle; margin-left:6px; }
.room-card-body p { font-size:14.5px; line-height:1.6; color: var(--ink-soft); }

/* ============ RESTAURANT ============ */
.restaurant { background: var(--navy); padding:110px 0; color:#fff; }
.restaurant-inner {
  max-width:1240px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:70px; align-items:center;
}
.restaurant-photos {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  grid-template-rows:160px 160px;
  gap:14px;
}
.restaurant-photos img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
.photo-a { grid-row:1 / 3; }
.restaurant-text h2 { font-size:clamp(28px,4vw,38px); font-weight:700; margin-bottom:20px; }
.restaurant-text p { font-size:16.5px; line-height:1.7; color:#cdd3db; margin-bottom:30px; }

/* ============ POOL / PRICING ============ */
.pool { padding:110px 0; background: var(--cream); }
.pool-gallery {
  max-width:1240px; margin:0 auto 60px auto; padding:0 32px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
.pool-gallery img { height:200px; width:100%; object-fit:cover; border-radius:12px; }

.pricing-grid {
  max-width:1240px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.price-card {
  background:#fff; border-radius:14px; padding:30px 26px;
  border:1px solid var(--line);
}
.price-card.featured { border:2px solid var(--gold); position:relative; }
.price-card h3 { font-family:'Poppins',sans-serif; font-size:15.5px; font-weight:700; color: var(--navy); margin-bottom:14px; min-height:40px; }
.price-card .price { font-family:'Lora',serif; font-size:32px; font-weight:700; color: var(--gold); margin-bottom:12px; }
.price-card .price span { font-family:'Poppins',sans-serif; font-size:13px; font-weight:500; color: var(--ink-soft); }
.price-card .price-note { font-size:12.5px; color: var(--ink-soft); line-height:1.5; }
.pricing-footnote { text-align:center; max-width:1240px; margin:36px auto 0 auto; padding:0 32px; font-size:12.5px; color: var(--ink-soft); }

/* ============ GALLERY ============ */
.gallery { padding:110px 0; }
.gallery-grid {
  max-width:1240px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:230px; gap:16px;
}
.gallery-grid img { width:100%; height:100%; object-fit:cover; border-radius:12px; transition:transform .4s ease; }
.gallery-grid img:hover { transform:scale(1.03); }
.gallery-grid img:nth-child(1) { grid-column:span 2; grid-row:span 2; }

/* ============ LOCATION ============ */
.location { padding:110px 0; background: var(--navy); color:#fff; }
.location-inner {
  max-width:1240px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:0.8fr 1.2fr; gap:60px; align-items:center;
}
.location-text h2 { font-size:clamp(26px,4vw,34px); font-weight:700; margin-bottom:22px; }
.location-text ul li { position:relative; padding-left:22px; margin-bottom:14px; font-size:15.5px; color:#d8dce3; line-height:1.5; }
.location-text ul li::before { content:'—'; position:absolute; left:0; color: var(--gold-light); }
.location-map { border-radius:14px; overflow:hidden; height:360px; box-shadow: var(--shadow); }

/* ============ CONTACT ============ */
.contact { padding:120px 0; text-align:center; }
.contact-inner { max-width:640px; margin:0 auto; padding:0 32px; }
.contact-inner h2 { font-size:clamp(28px,4vw,38px); color: var(--navy); font-weight:700; margin-bottom:16px; }
.contact-sub { color: var(--ink-soft); font-size:16px; margin-bottom:44px; }
.contact-cards { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.contact-card {
  display:flex; align-items:center; gap:16px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:22px 30px; min-width:260px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform:translateY(-3px); box-shadow: var(--shadow); }
.contact-card svg { width:30px; height:30px; color: var(--gold); flex-shrink:0; }
.contact-card span { display:block; font-size:12px; color: var(--ink-soft); letter-spacing:0.5px; }
.contact-card strong { display:block; font-size:16.5px; color: var(--navy); margin-top:2px; }

/* ============ FOOTER ============ */
.footer { background: var(--navy); border-top:1px solid rgba(255,255,255,0.08); padding:50px 0 34px 0; }
.footer-inner { max-width:1240px; margin:0 auto; padding:0 32px; text-align:center; }
.footer-brand { display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:26px; }
.footer-brand img { width:44px; height:44px; object-fit:contain; border-radius:8px; }
.footer-brand strong { display:block; color:#fff; font-family:'Lora',serif; font-size:16px; letter-spacing:0.5px; }
.footer-brand span { display:block; color:#8d97a3; font-size:12px; margin-top:2px; }
.footer-links { display:flex; gap:26px; justify-content:center; margin-bottom:26px; flex-wrap:wrap; }
.footer-links a { color:#c7ccd4; font-size:13.5px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { color:#6b7480; font-size:12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { position:fixed; top:0; right:-100%; width:78%; max-width:340px; height:100vh;
    background: var(--navy); flex-direction:column; align-items:flex-start; justify-content:center;
    padding:40px; gap:26px; transition:right .3s ease; box-shadow:-10px 0 40px rgba(0,0,0,0.3); }
  .nav-links.open { right:0; }
  .nav-toggle { display:flex; }
  .facts-inner { grid-template-columns:repeat(2,1fr); }
  .rooms-grid { grid-template-columns:1fr; }
  .restaurant-inner { grid-template-columns:1fr; gap:36px; }
  .restaurant-photos { grid-template-rows:140px 140px; }
  .pool-gallery { grid-template-columns:repeat(2,1fr); }
  .pricing-grid { grid-template-columns:1fr; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); grid-auto-rows:180px; }
  .gallery-grid img:nth-child(1) { grid-column:span 2; grid-row:span 1; }
  .location-inner { grid-template-columns:1fr; }
  .location-map { height:280px; }
  .contact-cards { flex-direction:column; align-items:center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  * { transition:none !important; animation:none !important; }
}
