/* Ribble Valley Lodge Retreat
   Colours and fonts come from the build guide. Change them here and the whole site follows. */
:root {
  --oatmeal: #F6F1E9;
  --white: #FFFFFF;
  --forest: #2F3E33;
  --sage: #8A9A7B;
  --sage-soft: #E4E9DD;
  --amber: #D08A4E;
  --amber-dark: #B87538;
  --charcoal: #2B2B2B;
  --muted: #5E5A54;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(47, 62, 51, .10);
  --serif: "Playfair Display", Lora, Georgia, serif;
  --sans: "Nunito Sans", Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--oatmeal);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-white { background: var(--white); }
.section-head { text-align: center; margin: 0 auto 48px; }
.section-head.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--sage); margin-bottom: .4em;
}
.aside { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--forest); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.9); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--forest); }
.btn-sm { padding: .55em 1.2em; font-size: .95rem; }
.text-link { font-weight: 700; color: var(--forest); text-underline-offset: 4px; }

/* Offer bar */
.offer-bar { background: var(--forest); color: var(--white); text-align: center; font-size: .95rem; padding: 8px 16px; }
.offer-bar p { margin: 0; }
.offer-bar a { color: #F3C9A3; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--forest); text-decoration: none; line-height: 1.15; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--charcoal); }
.main-nav a:hover { color: var(--amber-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 980px) {
  .logo { font-size: 1.05rem; max-width: 9.5em; }
  .header-inner { gap: 10px; }
  .header-book { margin-left: auto; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white);
    box-shadow: 0 12px 20px rgba(0,0,0,.08); display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 18px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--sage-soft); font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,22,.35) 0%, rgba(20,28,22,.55) 60%, rgba(20,28,22,.7) 100%); }
.hero-content { position: relative; padding-top: 60px; padding-bottom: 120px; max-width: 900px; margin-left: max(20px, calc((100vw - 1180px) / 2 + 20px)); }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-bottom: .5em; color: #F3E3D0; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 4rem); margin-bottom: .4em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; margin-bottom: 1.8em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  position: absolute; right: 20px; bottom: 24px; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); color: var(--charcoal); text-decoration: none;
  padding: 10px 16px 10px 10px; border-radius: 12px; font-size: .9rem; line-height: 1.3; box-shadow: var(--shadow);
}
.hero-badge .score, .footer-badge span {
  background: var(--amber); color: var(--white); font-weight: 700; border-radius: 8px 8px 8px 0; padding: 8px 10px; font-size: 1.1rem;
}
@media (min-width: 1240px) { .hero-badge { right: calc((100vw - 1180px) / 2 + 20px); } }
@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: center; padding: 48px 0 32px; }
  .hero-content { padding-top: 0; padding-bottom: 28px; margin-left: 0; }
  .hero-badge { position: relative; right: auto; bottom: auto; align-self: flex-start; margin-left: 20px; }
}

/* Trust strip */
.trust-strip { background: var(--forest); color: var(--white); padding: 20px 0; }
.trust-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: .98rem; line-height: 1.35; }
.trust-list svg { width: 30px; height: 30px; flex: none; fill: #C9D3BE; stroke: #C9D3BE; }
.trust-list li:nth-child(2) svg, .trust-list li:nth-child(4) svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) { .trust-list { grid-template-columns: 1fr 1fr; gap: 18px 14px; } .trust-list li { font-size: .92rem; } }

/* At a glance */
.glance { background: var(--sage-soft); padding: 40px 0; text-align: center; }
.glance p { margin: 0; font-size: 1.05rem; color: var(--forest); }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: .97rem; line-height: 1.45; }
.features li { position: relative; padding-left: 30px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Room cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card { background: var(--oatmeal); border-radius: var(--radius); overflow: hidden; }
.room-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-card > div { padding: 20px 22px 24px; }
.room-card h3 { margin-bottom: .3em; }
.room-card p { margin: 0; font-size: .98rem; color: var(--muted); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* Outdoor */
.outdoor-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; height: clamp(420px, 52vw, 620px); }
.outdoor-grid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.outdoor-main { grid-row: span 2; }
@media (max-width: 700px) {
  .outdoor-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .outdoor-main { grid-column: span 2; grid-row: auto; }
  .outdoor-grid img { aspect-ratio: 4 / 3; }
  .outdoor-grid > img { aspect-ratio: 3 / 4; }
}

/* Gallery (masonry using columns) */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; border-radius: 10px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 20, 16, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #e8e8e8; font-size: .95rem; padding: 0 70px; margin: 0; }

/* Reviews */
.reviews-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.reviews-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.score-panel { display: flex; gap: 22px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: 24px; }
.score-big { background: var(--amber); color: var(--white); border-radius: 14px 14px 14px 0; padding: 14px 18px; text-align: center; flex: none; }
.score-big span { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.score-big small { font-weight: 700; font-size: .85rem; }
.score-count { font-weight: 700; margin-bottom: .4em; }
.subscores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; font-size: .95rem; }
.subscores li { display: flex; justify-content: space-between; gap: 10px; }
.subscores b { color: var(--forest); }
@media (max-width: 860px) { .reviews-top { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .score-panel { flex-direction: column; align-items: flex-start; } }

.quotes { columns: 3 280px; column-gap: 20px; margin-bottom: 28px; }
.quote { break-inside: avoid; margin: 0 0 20px; background: var(--white); border-radius: var(--radius); padding: 26px 24px 22px; box-shadow: 0 4px 16px rgba(47,62,51,.06); border-top: 4px solid var(--sage); }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--forest); }
.quote figcaption { font-weight: 700; font-size: .95rem; }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.quote-photo { padding: 0; overflow: hidden; border-top: 0; }
.quote-photo img { width: 100%; }

/* Area */
.banner img { width: 100%; height: clamp(240px, 40vw, 520px); object-fit: cover; }
.area-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.area-side { background: var(--oatmeal); border-radius: var(--radius); padding: 28px; align-self: start; }
.distances { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: .98rem; }
.distances th, .distances td { padding: 9px 0; border-bottom: 1px solid #E3DCCF; text-align: left; font-weight: 400; }
.distances td { text-align: right; font-weight: 700; color: var(--forest); white-space: nowrap; }
.map { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-soft); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Dogs */
.dogs-panel { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; background: var(--sage-soft); border-radius: 20px; padding: 32px; max-width: 920px; margin: 0 auto; }
.dogs-panel img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 6px solid var(--white); }
.dogs-panel p:last-child { margin: 0; }
@media (max-width: 640px) { .dogs-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; } .dogs-panel img { width: 170px; height: 170px; } }

/* About */
.rounded-photo { border-radius: 24px !important; }
.signature { font-family: "Caveat", cursive; font-size: 2.2rem; color: var(--forest); margin-top: .3em; }

/* Book */
.book { position: relative; background: var(--forest); color: var(--white); padding: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.book-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.book-inner { position: relative; }
.book h2, .book h3 { color: var(--white); }
.book-tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: #F3E3D0; }
.book-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.book-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; backdrop-filter: blur(4px); }
.book-card p { flex: 1; color: #E5EAE1; }
.book-card .btn { align-self: flex-start; }
@media (max-width: 860px) { .book-options { grid-template-columns: 1fr; } }
.vouchers { text-align: center; margin: 36px 0 0; color: #E5EAE1; }

.enquiry { background: var(--white); color: var(--charcoal); border-radius: var(--radius); padding: 30px; margin-top: 28px; }
.enquiry h3 { color: var(--forest); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid #D6D0C4; border-radius: 10px; background: var(--oatmeal); color: var(--charcoal); width: 100%;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.form-note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .enquiry { padding: 22px; } }

/* FAQs */
.faq-list details { background: var(--white); border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(47,62,51,.05); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--forest); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--amber); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; margin: 0; }

/* Footer */
.site-footer { background: var(--forest); color: #DCE3D6; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #DCE3D6; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.logo-light { color: var(--white); font-size: 1.35rem; margin-bottom: .4em; }
.footer-badge { display: flex; align-items: center; gap: 10px; }
.footer-badge span { font-size: .95rem; padding: 5px 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 96px; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* Gentle reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Privacy page */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
