/* The Barn at Five Star Stables — Sophisticated Wedding Theme */

/* ===== Palette & tokens ===== */
:root{
  --bg:#FFFBF7;                 /* warm ivory */
  --surface:#FFFFFF;            /* card surface */
  --ink:#1C1C1C;                /* primary text */
  --muted:#6B6B6B;              /* secondary text */
  --brand:#D7C4A3;              /* champagne */
  --brand-2:#6E8B74;            /* soft sage (accents) */
  --line:#EDE7DE;               /* hairline */
  --nav-bg:rgba(255,255,255,.72); /* glass nav bg */
  --nav-ink:#1C1C1C;
  --shadow-sm:0 6px 18px rgba(0,0,0,.06);
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --hero-overlay: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.25));
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:var(--ink); background:var(--bg); line-height:1.65; -webkit-font-smoothing:antialiased;
}
img,video{max-width:100%; height:auto; display:block}
.container{width:min(1180px, 92%); margin:0 auto}

/* Type */
h1,h2,h3,h4{font-family:"Playfair Display", Georgia, "Times New Roman", serif; letter-spacing:.2px}
h1{font-weight:700}
h2{font-size:clamp(2.1rem, 1rem + 3vw, 3rem); margin:0 0 10px; text-align:center}
h3{font-size:clamp(1.3rem, .9rem + 1.2vw, 1.8rem); margin:0 0 8px; text-align:center}
h4{font-size:1.15rem; margin:0}
.subtle{color:var(--muted); margin:0 0 28px; max-width:860px; text-align:center; margin-inline:auto}

/* ===== Glassy Sticky Nav (logo | links | toggle) ===== */
nav{position:sticky; top:0; z-index:30; backdrop-filter:saturate(160%) blur(10px); background:var(--nav-bg); border-bottom:1px solid rgba(0,0,0,.06)}
nav .container{
  display:grid; grid-template-columns:auto 1fr auto; /* brand | links | toggle */
  align-items:center; gap:16px; padding:10px 0;
}
/* brand as circular image logo */
.brand{ display:flex; align-items:center; text-decoration:none; }
.brand img{
  height: clamp(72px, 8vw, 120px);
  width:  clamp(72px, 8vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}
/* menu links */
nav ul{ display:flex; gap:22px; list-style:none; margin:0; padding:0; justify-self:center; }
nav a{ color:var(--nav-ink); text-decoration:none; font-weight:600; letter-spacing:.02em; padding:8px 6px; border-radius:8px }
nav a:hover{ background:rgba(0,0,0,.04) }
/* mobile toggle button */
#nav-check{ display:none; }
.nav-toggle{
  display:none; justify-self:end; color:var(--nav-ink);
  background:transparent; border:1px solid var(--line);
  padding:6px 10px; border-radius:8px; font-weight:700; cursor:pointer;
}
@media (max-width: 1200px){ nav ul{ gap:16px } nav a{ padding:8px 4px } }
@media (max-width: 1000px){ nav ul{ gap:12px } nav a{ font-size:.95rem } }
/* mobile menu behavior */
@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }
  nav ul{
    display:none; position:relative; flex-direction:column; gap:0; width:100%;
    background:var(--nav-bg); border-top:1px solid rgba(0,0,0,.08); border-radius:0 0 14px 14px; justify-self:stretch;
  }
  #nav-check:checked + label + ul{ display:flex; }
  nav a{ padding:12px 14px; }
  nav a:not(:last-child){ border-bottom:1px solid rgba(0,0,0,.06); }
}

/* ===== Hero header via page classes ===== */
header.hero{
  position:relative; isolation:isolate;
  min-height: clamp(360px, 58dvh, 720px);
  display:grid; place-items:center; text-align:center;
  background: center/cover no-repeat var(--hero-img, url("../images/barn-hero.jpg"));
}
header.hero::after{content:""; position:absolute; inset:0; background:var(--hero-overlay); z-index:0}
header.hero .container{position:relative; z-index:1; color:#fff; padding:48px 0}
header.hero h1{margin:0 0 12px; letter-spacing:.5px; text-transform:uppercase; font-size:clamp(1.9rem, 1rem + 4vw, 3.6rem)}
header.hero p{margin:0; font-style:italic; font-size:clamp(1rem, .9rem + .6vw, 1.15rem); background:rgba(0,0,0,.32); padding:10px 16px; border-radius:10px; display:inline-block}

/* Per-page hero images */
body.home    { --hero-img: url("../images/barn-hero.jpg"); }
body.about   { --hero-img: url("../images/open-pasture.jpg"); }
body.gallery { --hero-img: url("../images/barn-hero.jpg"); }
body.info    { --hero-img: url("../images/stables-exterior.jpg"); }
body.contact { --hero-img: url("../images/stables-exterior.jpg"); }
body.tour    { --hero-img: url("../images/open-pasture.jpg"); }
body.inquiry { --hero-img: url("../images/arena-sunset.jpg"); }

/* ===== Main / Sections ===== */
main{padding:60px 0}
.section{margin:42px 0}
.section.highlight{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px;
  text-align:center; box-shadow:var(--shadow-sm);
}
hr{border:0; border-top:1px solid var(--line); margin:28px 0}

/* ===== Cards & Grid ===== */
.card-grid{display:grid; gap:28px; margin-top:24px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:var(--shadow-sm); transform:translateZ(0);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{transform:translateY(-4px); box-shadow:var(--shadow); border-color:#E4DED4}
.card img{width:100%; height:230px; object-fit:cover}
.card .pad{padding:16px}
.card h4{font-size:1.12rem; margin:6px 0 8px}
.card p{color:var(--muted); margin:0}

/* Gallery bigger thumbs */
.gallery .card img{height:260px}

/* ===== Buttons ===== */
.button, .back-button, button[type=submit]{
  display:inline-block; background:linear-gradient(135deg, var(--brand), #E6D6B7);
  color:#1C1C1C; font-weight:700; border:1px solid rgba(0,0,0,.08); padding:12px 18px;
  border-radius:12px; text-decoration:none; box-shadow:var(--shadow-sm);
  transition:transform .02s ease-in, filter .2s ease, box-shadow .2s ease;
}
.button:hover, .back-button:hover, button[type=submit]:hover{filter:brightness(.98); box-shadow:var(--shadow)}
.button:active, .back-button:active, button[type=submit]:active{transform:scale(.98)}
.button.alt{background:linear-gradient(135deg, var(--brand-2), #88A68F); color:#fff}

/* ===== Forms ===== */
form{
  background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px;
  display:grid; gap:16px; box-shadow:var(--shadow-sm);
}
label{font-weight:700}
input, textarea, select{
  width:100%; padding:12px 14px; font:inherit; border:1px solid var(--line); border-radius:12px; background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus{outline:none; border-color:#D9CBB1; box-shadow:0 0 0 4px rgba(215,196,163,.18)}
textarea{min-height:140px; resize:vertical}
@media (min-width: 860px){
  .form-cols{grid-template-columns:1fr 1fr; display:grid; gap:16px}
  .form-cols .full{grid-column:1 / -1}
}

/* ===== Reviews strip (carousel) ===== */
.reviews{display:grid;gap:18px}
.reviews-track{display:flex;gap:18px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:10px}
.review{min-width:min(480px,90%);scroll-snap-align:start;background:var(--surface);
  border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow-sm)}
.review .who{font-weight:700;margin-top:10px;color:var(--muted)}

/* ===== Amenities & checklist ===== */
.amenities{display:grid;gap:22px;margin-top:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.amenity{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px; box-shadow:var(--shadow-sm)}
.amenity h4{margin:0 0 6px}
.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.badge{background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 10px; font-weight:600;font-size:.92rem}
.checks{display:grid;gap:18px}
@media (min-width:900px){.checks{grid-template-columns:1fr 1fr}}
.checks ul{margin:0;padding-left:0;list-style:none}
.checks li{padding:8px 0 8px 28px;position:relative;border-bottom:1px dashed var(--line)}
.checks li::before{content:"✓";position:absolute;left:0;top:8px;font-weight:800;color:var(--brand-2)}

/* ===== FAQ ===== */
.faq{max-width:880px;margin:18px auto 0}
.faq details{border:1px solid var(--line);border-radius:12px;background:var(--surface);
  padding:12px 16px;margin-bottom:12px;box-shadow:var(--shadow-sm)}
.faq summary{cursor:pointer;font-weight:700;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq p{margin:10px 0 0;color:var(--muted)}

/* ===== Sticky CTA bar ===== */
/* ===== Sticky CTA (side-docked on desktop, centered on mobile) ===== */
.cta-stick{ position:fixed; z-index:40; pointer-events:none; }
.cta-inner{
  pointer-events:auto; display:flex; gap:10px;
  background:rgba(255,255,255,.88); border:1px solid var(--line);
  box-shadow:var(--shadow); backdrop-filter:blur(8px);
  padding:10px 12px;
}

/* Desktop/tablet: float on bottom-right, vertical stack */
@media (min-width: 900px){
  .cta-stick{ right:24px; bottom:24px; left:auto; }
  .cta-inner{ flex-direction:column; border-radius:16px; }
}

/* Mobile: keep centered pill, but add footer space so it never covers FB */
@media (max-width: 899px){
  .cta-stick{
    left:0; right:0; bottom:16px;
    display:flex; justify-content:center;
  }
  .cta-inner{ flex-direction:row; border-radius:999px; }
  footer{ padding-bottom:84px; } /* space for the pill so it won't overlap */
}


/* ===== Lightbox (gallery) ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.lb-btn {
  pointer-events: all; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25);
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-size: 24px; cursor: pointer; margin: 0 14px;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px;
  background: rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.25);
  border-radius: 999px; display:grid; place-items:center; font-size: 22px; cursor:pointer;
}
.lb-close:hover { background: rgba(255,255,255,.22); }

/* ===== Motion polish ===== */
.reveal{opacity:0; transform:translateY(10px); animation:fadeUp .6s ease forwards}
.reveal.d1{animation-delay:.08s} .reveal.d2{animation-delay:.16s} .reveal.d3{animation-delay:.24s}
@keyframes fadeUp{to{opacity:1; transform:none}}

/* ——— Social / Facebook button ——— */
.social { display:flex; justify-content:center; margin:14px 0 0; }
.fb-btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:999px; text-decoration:none;
  background:#1877F2; color:#fff; font-weight:800; letter-spacing:.2px;
  border:1px solid rgba(0,0,0,.08); box-shadow:var(--shadow-sm);
  transition:filter .2s ease, transform .02s ease;
}
.fb-btn:hover{ filter:brightness(.96); }
.fb-btn:active{ transform:scale(.98); }
.fb-btn svg{ width:18px; height:18px; display:block; }
/* ===== Pricing / Packages ===== */
.price-grid{display:grid;gap:22px;margin-top:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.price-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden}
.price-card header{background:linear-gradient(135deg,var(--brand),#E6D6B7);padding:14px 16px}
.price-card header h4{margin:0;font-size:1.05rem;color:#1C1C1C;text-transform:uppercase;letter-spacing:.4px}
.price-card .pad{padding:16px}

/* Rate tables */
.rate{width:100%;border-collapse:collapse}
.rate th,.rate td{padding:10px 0;border-bottom:1px dashed var(--line);text-align:left}
.rate th{font-weight:800;color:var(--ink)}
.rate td:last-child{text-align:right;font-weight:800}

/* Highlight callouts */
.callout{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow-sm)}
.callout h4{margin:0 0 6px}
.callout .note{color:var(--muted);font-size:.95rem;margin-top:6px}

/* Inclusion checklist (3 columns on wide) */
.inclusions{display:grid;gap:14px;margin-top:10px}
@media (min-width:1000px){.inclusions{grid-template-columns:repeat(3,1fr)}}
.inclusions ul{list-style:none;margin:0;padding:0}
.inclusions li{padding:8px 0 8px 28px;border-bottom:1px dashed var(--line);position:relative}
.inclusions li::before{content:"✓";position:absolute;left:0;top:8px;font-weight:900;color:var(--brand-2)}

/* Contact panel */
.contact-panel{display:grid;gap:10px;justify-items:center}
.contact-panel a.tel,.contact-panel a.mail{
  text-decoration:none;font-weight:800
}


