/* ========================================================================
   SAIVILLA HOTEL — design tokens
   Palette drawn from Iringa's hilltop setting: red-laterite hills at dusk,
   cool highland evenings, savanna gold light, acacia green, whitewashed
   plaster walls.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --clay:        #7a2b26;   /* deep maroon — from the Saivilla logo mark   */
  --clay-dark:   #4f1c19;
  --dusk:        #3a1613;   /* mid warm dark, mostly unused directly       */
  --dusk-deep:   #1c0d0b;   /* near-black maroon — replaces navy sections  */
  --gold:        #f7941e;   /* vivid orange-gold — from the logo roofline  */
  --ridge:       #c86e1e;   /* deeper orange accent                        */
  --ivory:       #f6ede1;   /* whitewashed plaster                         */
  --ivory-2:     #eee1d2;
  --ink:         #2a1712;

  --display: 'Fraunces', serif;
  --body:    'Work Sans', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --edge: 1px solid rgba(33,26,20,0.12);
  --container: 1180px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 28px; }

h1,h2,h3{ font-family:var(--display); font-weight:600; line-height:1.08; letter-spacing:-0.01em; }
.eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold); display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
/* .eyebrow::before{ content:""; width:22px; height:1px; background:var(--clay); display:inline-block; } */

/* ---------- header ---------- */
.topbar{
  background:var(--dusk-deep); color:var(--ivory-2); font-family:var(--mono); font-size:12.5px;
}
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:8px 28px; flex-wrap:wrap; gap:6px;}
.topbar a{ opacity:.85; }
.topbar a:hover{ opacity:1; color:var(--gold); }
.topbar .social{ display:flex; gap:16px; }

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,237,225,0.94); backdrop-filter:blur(6px);
  border-bottom:var(--edge);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; }
.brand{ display:flex; align-items:center; }
.brand img{ height:46px; width:auto; display:block; }
footer .brand-mark img{ height:52px; width:auto; margin-bottom:18px; }
nav.primary{ display:flex; align-items:center; gap:36px; }
nav.primary ul{ display:flex; gap:30px; font-size:14.5px; font-weight:500; }
nav.primary a{ position:relative; padding:4px 0; }
nav.primary a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--clay);
  transition:width .25s ease;
}
nav.primary a:hover::after, nav.primary a.active::after{ width:100%; }
nav.primary a.active{ color:var(--clay-dark); }
.btn{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:12.5px;
  letter-spacing:.06em; text-transform:uppercase; padding:12px 22px; border-radius:2px;
  background:var(--clay); color:var(--ivory); transition:background .2s ease, transform .2s ease;
}
.btn:hover{ background:var(--clay-dark); transform:translateY(-1px); }
.btn.ghost{ background:transparent; border:1px solid var(--ivory); color:var(--ivory); }
.btn.ghost:hover{ background:var(--ivory); color:var(--dusk-deep); }
.menu-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; }
.menu-toggle span{ width:24px; height:2px; background:var(--ink); }

/* ---------- ridge divider (signature element) ---------- */
.ridge{ display:block; width:100%; height:auto; }
.ridge path{ fill:var(--ivory); }
.ridge.dark path{ fill:var(--dusk-deep); }
.ridge.clay path{ fill:var(--clay-dark); }

/* ---------- hero ---------- */
.hero{
  position:relative; background:var(--dusk-deep); color:var(--ivory); overflow:hidden;
}
.hero-media{
  position:absolute; inset:0; background-size:cover; background-position:center;
}
.hero-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(28,13,11,.5) 0%, rgba(28,13,11,.7) 55%, var(--dusk-deep) 100%);
}

/* ---------- homepage hero slideshow ---------- */
.hero-slideshow{ position:absolute; inset:0; }
.hero-slideshow .slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.6s ease;
}
.hero-slideshow .slide.active{ opacity:1; }
.hero-slideshow .hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(28,13,11,.5) 0%, rgba(28,13,11,.7) 55%, var(--dusk-deep) 100%);
}
.hero-dots{
  position:absolute; right:28px; bottom:130px; z-index:2; display:flex; flex-direction:column; gap:10px;
}
.hero-dots button{
  width:9px; height:9px; border-radius:50%; border:1px solid rgba(246,237,225,.7); background:transparent;
  padding:0; cursor:pointer; transition:background .25s ease;
}
.hero-dots button.active{ background:var(--gold); border-color:var(--gold); }
@media (max-width:900px){
  .hero-dots{ right:16px; bottom:110px; flex-direction:row; }
}
.hero-inner{ position:relative; padding:150px 28px 130px; max-width:var(--container); margin:0 auto; }
.hero .eyebrow{ color:var(--gold); }
.hero .eyebrow::before{ background:var(--gold); }
.hero h1{ font-size:clamp(38px,6vw,68px); max-width:820px; color:#fff; }
.hero h1 em{ font-style:italic; color:var(--gold); }
.hero p.lead{ margin-top:22px; max-width:540px; font-size:17px; color:rgba(246,237,225,.85); }
.hero .cta-row{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.hero .ridge{ position:absolute; left:0; right:0; bottom:-1px; }

/* ---------- stat strip ---------- */
.stats{ background:var(--dusk-deep); color:var(--ivory); }
.stats .wrap{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding:34px 28px 46px;
}
.stat{ padding:0 24px; border-left:1px solid rgba(246,237,225,.16); }
.stat:first-child{ border-left:0; padding-left:0; }
.stat .n{ font-family:var(--mono); font-size:26px; color:var(--gold); }
.stat .l{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; opacity:.65; margin-top:4px; }

/* ---------- section spacing ---------- */
section{ padding:96px 0; }
section.tight{ padding:72px 0; }

/* ---------- welcome / split ---------- */
.split{ display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }
.split.reverse{ grid-template-columns:.95fr 1.05fr; }
.split.reverse .split-media{ order:2; }
.split h2{ font-size:clamp(28px,3.6vw,42px); margin-bottom:20px; }
.split p{ color:#3d332a; font-size:15.5px; margin-bottom:16px; max-width:52ch; }
.split-media{ position:relative; }
.split-media img{ border-radius:2px; }
.split-media .frame{
  position:absolute; inset:18px -18px -18px 18px; border:1px solid var(--clay); z-index:-1; border-radius:2px;
}

/* ---------- features ---------- */
.features-band{ background:var(--ivory-2); }
.feature-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(33,26,20,.12); border:1px solid rgba(33,26,20,.12); margin-top:44px;}
.feature{ background:var(--ivory-2); padding:34px 28px; }
.feature .num{ font-family:var(--mono); font-size:12px; color:var(--clay); }
.feature h3{ font-size:18px; margin:14px 0 8px; }
.feature p{ font-size:14px; color:#5a4f43; }

/* ---------- gallery ---------- */
.gal-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:44px; }
.gal-grid a{ display:block; overflow:hidden; position:relative; border-radius:2px; aspect-ratio:4/3.4; }
.gal-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gal-grid a:hover img{ transform:scale(1.06); }
.gal-grid a::after{
  content:"View →"; position:absolute; right:12px; bottom:12px; font-family:var(--mono); font-size:11px;
  letter-spacing:.08em; color:#fff; background:rgba(28,13,11,.55); padding:6px 10px; opacity:0; transition:opacity .25s;
}
.gal-grid a:hover::after{ opacity:1; }

/* ---------- curated triptych (used where we have a small set of real photos) ---------- */
.triptych{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:44px; }
.triptych figure{ display:flex; flex-direction:column; }
.triptych a{ display:block; overflow:hidden; border-radius:2px; aspect-ratio:3/4; position:relative; }
.triptych img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.triptych a:hover img{ transform:scale(1.05); }
.triptych figcaption{ margin-top:14px; }
.triptych figcaption .t-title{ font-family:var(--display); font-size:17px; }
.triptych figcaption .t-sub{ font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; color:var(--clay); margin-top:3px; text-transform:uppercase; }
@media (max-width:900px){
  .triptych{ grid-template-columns:1fr; }
}

/* ---------- attraction ---------- */
.attraction{ background:var(--dusk-deep); color:var(--ivory); }
.attraction .eyebrow{ color:var(--gold); }
.attraction .eyebrow::before{ background:var(--gold); }
.attraction h2{ color:#fff; }
.attraction p{ color:rgba(246,237,225,.82); max-width:60ch; }
.attraction .split{ align-items:start; }
.facts{ display:flex; flex-direction:column; gap:18px; border-left:1px solid rgba(246,237,225,.2); padding-left:24px; }
.facts .f-label{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); }
.facts .f-val{ font-size:15px; margin-top:4px; }

/* ---------- CTA banner ---------- */
.cta-banner{ background:var(--clay); color:var(--ivory); text-align:center; }
.cta-banner h2{ color:#fff; font-size:clamp(26px,4vw,40px); }
.cta-banner p{ max-width:50ch; margin:14px auto 30px; color:rgba(246,237,225,.9); }

/* ---------- footer ---------- */
footer{ background:var(--dusk-deep); color:rgba(246,237,225,.8); padding:64px 0 28px; }
.foot-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(246,237,225,.12); }
footer h3{ font-family:var(--display); color:#fff; font-size:20px; margin-bottom:14px; }
footer .brand-line{ font-family:var(--mono); font-size:11px; letter-spacing:.12em; color:var(--gold); text-transform:uppercase; margin-bottom:10px; }
footer p{ font-size:14px; max-width:36ch; }
footer .flinks{ display:flex; flex-direction:column; gap:10px; font-size:14px; margin-top:2px;}
footer .flinks a:hover{ color:var(--gold); }
.foot-bottom{ display:flex; justify-content:space-between; padding-top:22px; font-family:var(--mono); font-size:12px; opacity:.6; flex-wrap:wrap; gap:8px;}

/* ---------- page hero (interior pages) ---------- */
.page-hero{ background:var(--dusk-deep); color:var(--ivory); position:relative; }
.page-hero .wrap{ padding:120px 28px 70px; position:relative; z-index:1; }
.page-hero h1{ font-size:clamp(34px,5vw,54px); color:#fff; }
.page-hero p{ margin-top:14px; color:rgba(246,237,225,.8); max-width:50ch; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:start; }
.c-card{ display:flex; gap:16px; padding:20px 0; border-top:var(--edge); }
.c-card:last-child{ border-bottom:var(--edge); }
.c-card .c-label{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--clay); width:100px; flex-shrink:0; padding-top:2px;}
.c-card .c-val a:hover{ color:var(--clay); }
form.contact-form{ display:flex; flex-direction:column; gap:18px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
label{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#5a4f43; display:block; margin-bottom:8px; }
input, textarea{
  width:100%; border:1px solid rgba(33,26,20,.22); background:#fff; padding:12px 14px; font-family:var(--body);
  font-size:14.5px; border-radius:2px; color:var(--ink);
}
input:focus, textarea:focus{ outline:2px solid var(--clay); outline-offset:1px; }
textarea{ resize:vertical; min-height:130px; }

/* ---------- services page ---------- */
.room-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
.room-card{ background:#fff; border:var(--edge); border-radius:2px; overflow:hidden; }
.room-card .rc-media{ aspect-ratio:4/3; overflow:hidden; }
.room-card .rc-media img{ width:100%; height:100%; object-fit:cover; }
.room-card .rc-body{ padding:22px; }
.room-card h3{ font-size:18px; margin-bottom:8px; }
.room-card p{ font-size:14px; color:#5a4f43; }

/* ---------- responsive ---------- */
@media (max-width:900px){
  nav.primary ul, .topbar{ display:none; }
  .menu-toggle{ display:flex; }
  .split, .split.reverse{ grid-template-columns:1fr; }
  .split.reverse .split-media{ order:0; }
  .stats .wrap{ grid-template-columns:repeat(2,1fr); row-gap:26px; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .gal-grid{ grid-template-columns:repeat(2,1fr); }
  .foot-grid{ grid-template-columns:1fr; gap:30px; }
  .contact-grid{ grid-template-columns:1fr; }
  .room-cards{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:520px){
  .feature-grid, .gal-grid{ grid-template-columns:1fr; }
  .hero-inner{ padding:120px 22px 100px; }
}

/* mobile nav drawer */
.mobile-nav{
  position:fixed; inset:0; background:var(--dusk-deep); color:var(--ivory); z-index:80;
  display:flex; flex-direction:column; padding:28px; transform:translateX(100%); transition:transform .3s ease;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav .close{ align-self:flex-end; background:none; border:0; color:var(--ivory); font-size:26px; cursor:pointer; }
.mobile-nav ul{ margin-top:40px; display:flex; flex-direction:column; gap:26px; font-family:var(--display); font-size:26px; }
.mobile-nav .btn{ margin-top:40px; align-self:flex-start; }

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