/* =============================================================
   LochView Boarding Kennels & DayCare — styles.css
   Brand palette taken from the logo (navy loch scene + sage).
   Mobile-first, no framework.
   ============================================================= */

/* ---------- Self-hosted fonts (Cormorant Garamond + Nunito Sans · SIL OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }

:root {
  /* Brand colours */
  --navy:        #20374e;   /* deep brand navy */
  --navy-700:    #2b496a;
  --blue:        #3f6184;   /* steel blue */
  --blue-200:    #cfdceb;
  --sage:        #7e8c5a;   /* olive/sage accent (from "and DayCare") */
  --sage-600:    #6a784b;
  --cream:       #f7f4ee;   /* page background */
  --cream-200:   #efeae0;
  --ink:         #2b2f33;   /* body text */
  --muted:       #5c6670;
  --white:       #ffffff;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(32, 55, 78, 0.10);
  --shadow-sm: 0 4px 14px rgba(32, 55, 78, 0.08);

  /* Motion — gentle ease-out for hovers & reveals (easeOutCubic) */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Keyboard accessibility */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; color: var(--sage-600); margin: 0 0 .6rem;
}
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .22s var(--ease-out), background .2s ease, color .2s ease;
  font-size: 1rem; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-600); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; color: var(--navy); }
.brand-sub  { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sage-600); font-weight: 700; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a { color: var(--navy); font-weight: 600; }
.primary-nav a:hover { color: var(--sage-600); text-decoration: none; }
.nav-cta { color: var(--white) !important; background: var(--navy); border-color: var(--navy); }
.nav-cta:hover { background: var(--sage); border-color: var(--sage); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* graceful fallback before a hero image exists */
.hero-media { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--sage-600) 130%); }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20,32,46,.74) 0%, rgba(20,32,46,.48) 44%, rgba(20,32,46,.16) 72%),
    linear-gradient(180deg, rgba(20,32,46,.28) 0%, rgba(20,32,46,.52) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 3rem; padding-bottom: 3rem; }
.hero-content .eyebrow { color: #d9e3c9; }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-lead { font-size: 1.22rem; max-width: 560px; color: #f2f0ea; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.8); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; color: var(--navy-700); }
.tick { color: var(--white); background: var(--sage); width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; flex: none; margin-top: .1rem; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo { background: linear-gradient(135deg, var(--blue-200), var(--cream-200)); border-radius: var(--radius); }

/* ---------- Services ---------- */
.services { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--cream); border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { margin-bottom: .7rem; color: var(--sage); }
.card-icon svg { width: 44px; height: 44px; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); }
.price { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 700; margin: 1rem 0 0; font-feature-settings: "lnum" 1, "tnum" 1; }
.price span span { color: var(--sage-600); }
.price-unit { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); }

/* ---------- Book online ---------- */
.book-prices { font-family: var(--sans); font-weight: 700; color: var(--sage-600); margin: .2rem 0 0; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.book .card { display: flex; flex-direction: column; }
.book .card .btn { margin-top: auto; align-self: flex-start; }
.book-foot { text-align: center; color: var(--muted); margin: 2rem auto 0; }

/* ---------- Why ---------- */
.why { background: var(--navy); color: var(--cream); }
.why h2, .why .eyebrow { color: var(--white); }
.why .eyebrow { color: #d9e3c9; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-item h3 { color: var(--white); margin-top: .4rem; }
.why-item p { color: #c8d3de; margin: 0; }
.why-num { font-family: var(--serif); font-size: 2rem; color: var(--sage); font-weight: 700; font-feature-settings: "lnum" 1; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery-item { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; background: linear-gradient(135deg, var(--blue-200), var(--cream-200)); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Contact ---------- */
.contact { background: var(--cream-200); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; }
.contact-label { font-weight: 700; color: var(--sage-600); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.socials { display: flex; gap: .8rem; margin-top: 1.4rem; }
.serving { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); }
.serving strong { color: var(--navy-700); font-weight: 700; }
.map-placeholder { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #dfe8f0; display: grid; place-items: center; text-align: center; padding: 2rem; box-shadow: var(--shadow); }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.map-holder { overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #dfe8f0; text-align: center; padding: 1.5rem; }
.map-holder.has-map { padding: 0; background: none; }
.map-holder iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { display: grid; gap: .7rem; place-items: center; }
.map-fallback p { margin: 0 .2rem .2rem; max-width: 22rem; }
.map-fallback .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.map-fallback .btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8d3de; padding: 2.5rem 0; }
.footer-inner { display: grid; gap: .6rem; text-align: center; }
.footer-brand .brand-name { color: var(--white); font-size: 1.4rem; }
.footer-brand .brand-sub { color: var(--sage); display: block; }
.footer-licence { font-size: .85rem; color: #aab8c6; margin: .4rem 0; }
.footer-copy { font-size: .82rem; color: #8ea0b0; margin: 0; }
.footer-links { margin: .5rem 0 0; font-size: .82rem; }
.footer-links a { color: #aab8c6; text-decoration: underline; }
.footer-links a:hover { color: #fff; }

/* ---------- Missing-image placeholder helper ----------
   Any element flagged .img-missing (or whose child img failed) keeps the
   pretty gradient background; we just hide the broken <img> glyph. */
.img-missing, .gallery-item.img-missing img, img.img-missing { visibility: hidden; }
.gallery-item.img-missing { visibility: visible; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15, 24, 34, .94); display: none; align-items: center; justify-content: center; z-index: 100; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox-figure img { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { color: #e9e5dc; font-size: .92rem; text-align: center; max-width: 80vw; }
.lightbox-caption #lightboxCount { color: #9fb0bf; margin-right: .5rem; }
.lightbox-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.lightbox-btn:hover { background: rgba(255,255,255,.26); }
.lightbox-close { top: 1.1rem; right: 1.3rem; font-size: 2rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 680px) {
  .lightbox-prev { left: .4rem; }
  .lightbox-next { right: .4rem; }
  .lightbox-btn { width: 44px; height: 44px; }
}

/* ---------- FAQ ---------- */
.container-narrow { max-width: 820px; }
.faq-list { display: grid; gap: .8rem; }
.faq-list details { background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius); padding: 0 1.3rem; box-shadow: var(--shadow-sm); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--sage-600); line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 0 1.2rem; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Mobile menu scrim ---------- */
.nav-scrim { position: fixed; inset: 0; background: rgba(20,32,46,.55); opacity: 0; visibility: hidden; transition: opacity .28s ease; z-index: 45; }
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* ---------- Cookie consent banner (governs the Google Map only) ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; background: var(--navy); color: #e8eef4; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.32); padding: 1rem 1.2rem; display: flex; gap: 1rem 1.4rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; max-width: 60ch; }
.cookie-banner a { color: #cfe0f0; text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.cookie-banner .btn-ghost:hover { background: #fff; color: var(--navy); }
@media (max-width: 680px) { .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; } }

/* ---------- Floating enquire button (phones only) ---------- */
.float-cta { display: none; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  /* Remove backdrop-filter so the header doesn't become the containing block
     for the fixed mobile menu (which would constrain it to the header height). */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); z-index: 60;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.6rem 2rem; gap: 1.2rem; transform: translateX(100%);
    transition: transform .28s ease; box-shadow: -10px 0 40px rgba(0,0,0,.22);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { font-size: 1.15rem; }
  .nav-cta { width: 100%; text-align: center; }
  body.nav-open { overflow: hidden; }

  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
  .hero { min-height: 76vh; }

  .float-cta { display: inline-flex; align-items: center; gap: .5rem; position: fixed; right: 1rem; bottom: 1rem; z-index: 60; background: var(--sage); color: #fff; font-weight: 700; padding: .8rem 1.15rem; border-radius: 999px; box-shadow: 0 8px 22px rgba(32,55,78,.28); }
  .float-cta:hover { text-decoration: none; }
  .float-cta svg { width: 20px; height: 20px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
