/* =========================================================
   SeaView Devon — shared stylesheet
   Coastal holiday-let, Stoke Fleming, Dartmouth
   ========================================================= */

:root {
  --navy:      #12333d;   /* deep sea — nav, headings, footer */
  --teal:      #2b7d8c;   /* accent — links, buttons */
  --teal-dark: #1d5f6d;
  --teal-soft: #dceb00;   /* not used as bg; kept for reference */
  --sand:      #f4ecdd;   /* warm section background */
  --sand-line: #e7dbc4;
  --cream:     #fbf8f2;   /* page background */
  --ink:       #223338;   /* body text */
  --muted:     #5f7378;
  --white:     #ffffff;
  --gold:      #c9a24b;   /* review stars */
  --shadow:    0 14px 40px rgba(18, 51, 61, .12);
  --shadow-sm: 0 6px 18px rgba(18, 51, 61, .10);
  --maxw: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Marcellus", Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1.1em; }

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d7e4e7; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding: 56px 0; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; background: var(--navy);
  color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- section heading with divider ---------- */
.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.head .eyebrow {
  font-family: "Marcellus", serif;
  color: var(--teal);
  font-size: 1.05rem;
  letter-spacing: .08em;
  margin: 0 0 6px;
}
.divider {
  width: 140px; height: 20px; margin: 14px auto 22px;
  color: var(--teal);
}
.divider svg { width: 100%; height: 100%; display: block; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251, 248, 242, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Marcellus", serif; font-size: 1.6rem; color: var(--navy);
  letter-spacing: .04em;
}
.brand:hover { color: var(--navy); }
.brand img { height: 46px; width: auto; }
.brand .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 1.15rem;
}

.nav-actions { display: flex; align-items: center; gap: 18px; }

.btn {
  display: inline-block; background: var(--teal); color: #fff;
  padding: 13px 28px; border-radius: var(--radius); font-weight: 700;
  letter-spacing: .03em; font-size: .95rem; border: 1px solid var(--teal);
  cursor: pointer; transition: background .2s, transform .2s;
  text-align: center;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--sand); color: var(--navy); }
.btn--lg { padding: 16px 40px; font-size: 1.02rem; }

.nav-cta { display: inline-block; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; padding: 10px; position: relative; z-index: 320;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- full-screen pop-up menu ---- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: linear-gradient(160deg, rgba(18,51,61,.97), rgba(29,95,109,.97));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-panel { text-align: center; padding: 40px 24px; width: 100%; }
.menu-links { list-style: none; margin: 0 0 8px; padding: 0; }
.menu-links li { margin: 2px 0; overflow: hidden; }
.menu-links a {
  display: inline-block; font-family: "Marcellus", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem); color: #fff; letter-spacing: .02em;
  padding: 6px 10px; line-height: 1.25;
  transform: translateY(115%); opacity: 0; transition: color .2s ease;
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: #efe3c9; }
.menu-overlay.open .menu-links a { animation: menuIn .55s cubic-bezier(.19,1,.22,1) forwards; }
.menu-overlay.open .menu-links li:nth-child(1) a { animation-delay: .06s; }
.menu-overlay.open .menu-links li:nth-child(2) a { animation-delay: .12s; }
.menu-overlay.open .menu-links li:nth-child(3) a { animation-delay: .18s; }
.menu-overlay.open .menu-links li:nth-child(4) a { animation-delay: .24s; }
.menu-overlay.open .menu-links li:nth-child(5) a { animation-delay: .30s; }
.menu-overlay.open .menu-links li:nth-child(6) a { animation-delay: .36s; }
.menu-overlay.open .menu-links li:nth-child(7) a { animation-delay: .42s; }
.menu-book { margin-top: 22px; opacity: 0; transform: translateY(16px); }
.menu-overlay.open .menu-book { animation: menuIn .5s ease .5s forwards; }
@keyframes menuIn { to { transform: translateY(0); opacity: 1; } }
body.menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
  position: relative; color: #fff; text-align: center;
  min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(rgba(10,32,40,.5), rgba(10,32,40,.55)),
              url("images/holiday-let-in-dartmouth-stoke-fleming.webp") center/cover no-repeat;
}
.hero h1, .hero h2 { color: #fff; }
.hero .hero-inner { max-width: 820px; margin: 0 auto; padding: 40px 24px; }
.hero .kicker {
  font-family: "Marcellus", serif; font-size: 1.5rem; letter-spacing: .05em;
  margin-bottom: 4px; color: #efe3c9;
}
.hero h1 { margin-bottom: 18px; }
.hero p { font-size: 1.12rem; color: #eef4f5; }
.hero .hero-cta { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .phone-link { color: #fff; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.6); }

/* small page hero for interior pages */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: 96px 0 80px;
  background: linear-gradient(rgba(10,32,40,.5), rgba(10,32,40,.55)),
              url("images/dartmouth-lower-ferry-view.webp") center/cover no-repeat;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .crumbs { margin-top: 12px; color: #dfeaec; font-size: .95rem; }
.page-hero .crumbs a { color: #fff; }

/* ============ FEATURE ICONS ============ */
.features {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  margin-top: 10px;
}
.feature { text-align: center; padding: 24px 12px; }
.feature img { height: 56px; width: auto; margin: 0 auto 14px; }
.feature .big { font-family: "Marcellus", serif; font-size: 1.4rem; color: var(--navy); }
.feature .small { color: var(--muted); font-size: .92rem; }

/* ============ SPLIT (text + intro) ============ */
.prose { max-width: 820px; margin: 0 auto; }
.prose.left { margin: 0; }

/* ============ GALLERY ============ */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery a {
  display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--sand);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.06); }

/* ============ ROOM BLOCKS (accommodation) ============ */
.room { padding: 64px 0; border-bottom: 1px solid var(--sand-line); }
.room:last-child { border-bottom: 0; }
.room-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
}
.room-grid.reverse .room-text { order: 2; }
.room ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.room li {
  position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink);
}
.room li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 12px; border: 2px solid var(--teal);
  border-radius: 50%;
}
.room-pics { display: grid; gap: 12px; }
.room-pics.two { grid-template-columns: 1fr 1fr; }
.room-pics img, .room-pics a {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%;
}

/* anchor offset for sticky header */
.anchor { scroll-margin-top: 96px; }

/* room subnav */
.room-nav {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.room-nav a {
  border: 1px solid var(--sand-line); background: #fff; color: var(--navy);
  padding: 9px 18px; border-radius: 40px; font-weight: 600; font-size: .92rem;
}
.room-nav a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ============ THINGS TO DO cards ============ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card .card-img { aspect-ratio: 16/9; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 26px 28px 30px; }
.card .card-body h3 { margin-bottom: 8px; }
.card .card-body p { color: var(--muted); margin-bottom: 0; }

/* ============ REVIEWS ============ */
.reviews-head { text-align: center; margin-bottom: 34px; }
.rating-row {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.rating-badge { text-align: center; }
.rating-badge .platform { font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.rating-badge .score { font-family: "Marcellus", serif; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.rating-badge .count { color: var(--muted); font-size: .85rem; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: #fff; border: 1px solid var(--sand-line); border-radius: var(--radius);
  padding: 24px 24px 26px;
}
.review .who { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-family: "Marcellus", serif;
}
.review .name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.review .date { color: var(--muted); font-size: .78rem; }
.review .stars { font-size: .95rem; margin-bottom: 8px; }
.review p { font-size: .95rem; margin: 0; color: var(--ink); }
.review .src { margin-top: 12px; font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

/* ============ CTA STRIP ============ */
.cta-strip { text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #cfe0e3; max-width: 640px; margin: 0 auto 26px; }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand-line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 44px 22px 0; font-family: "Marcellus", serif; font-size: 1.18rem;
  color: var(--navy); position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--teal); font-family: "Mulish", sans-serif; transition: transform .3s;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .faq-a-inner { padding: 0 0 22px; color: var(--muted); }

/* ============ LEGAL / long text ============ */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 {
  font-size: 1.35rem; margin-top: 44px; padding-bottom: 8px;
  border-bottom: 2px solid var(--sand-line);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 48px; }
.contact-card {
  text-align: center; background: #fff; border: 1px solid var(--sand-line);
  border-radius: var(--radius); padding: 34px 20px;
}
.contact-card .ic {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  color: var(--teal);
}
.contact-card .ic svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.map-embed {
  width: 100%; aspect-ratio: 16/7; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.address-line { text-align: center; font-size: 1.15rem; color: var(--navy); font-family: "Marcellus", serif; margin-bottom: 26px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: #b9ccd0; padding: 66px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h4 {
  color: #fff; font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 18px;
}
.site-footer .foot-logo { height: 60px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9ccd0; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #93aab0; font-size: .93rem; }
.socials { display: flex; gap: 14px; margin-top: 6px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; color: #cddde0;
}
.socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; padding: 22px 0; font-size: .85rem; color: #8aa3a9;
}
.foot-bottom a { color: #8aa3a9; }

/* ============ LIGHTBOX ============ */
.lb {
  position: fixed; inset: 0; background: rgba(8,24,30,.94); z-index: 900;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 54px; height: 54px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .room-grid { grid-template-columns: 1fr; gap: 26px; }
  .room-grid.reverse .room-text { order: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav-cta { display: none; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery, .gallery.gallery--3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .rating-row { gap: 26px; }
  .room-pics.two { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .menu-links a, .menu-book { animation: none !important; transform: none !important; opacity: 1 !important; }
}
