/* ==========================================================================
   StayBaddeck — Design System
   Palette inspired by the Cape Breton Highlands, Bras d'Or Lake and the
   working harbours of Atlantic Canada.
   ========================================================================== */

:root {
  /* --- Core palette ------------------------------------------------- */
  --deep-tide:      #0E3A45;   /* deep evening water / headline ink */
  --harbour:        #123F4C;   /* darker panel */
  --bras-dor:       #2E7C8C;   /* lake blue */
  --bras-dor-light: #6AA9B0;
  --highland:       #3F6B4F;   /* spruce / highland green */
  --highland-dark:  #2B4B37;
  --driftwood:      #8C6E52;   /* warm wood brown */
  --driftwood-dark: #5C4A38;
  --rust:           #BE5B39;   /* lighthouse red / rust accent */
  --rust-dark:      #9C4529;
  --sand:           #F4EDE0;   /* warm cream background */
  --sand-deep:      #EADFC8;
  --fog:            #E4EEEC;   /* pale sea-fog panel */
  --ink:            #1D2B2A;   /* body text */
  --ink-soft:       #4C5C5A;
  --white:          #FFFDF8;

  /* --- Semantic ------------------------------------------------------ */
  --bg:             var(--sand);
  --bg-alt:         var(--fog);
  --text:           var(--ink);
  --text-soft:      var(--ink-soft);
  --brand:          var(--deep-tide);
  --accent:         var(--rust);
  --link:           var(--bras-dor);

  /* --- Type ------------------------------------------------------------ */
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Layout ---------------------------------------------------------- */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(14, 58, 69, 0.28);
  --shadow-sm: 0 4px 14px -6px rgba(14, 58, 69, 0.22);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--rust);
  display: inline-block;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 62ch;
}
.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.section--brand {
  background: var(--deep-tide);
  color: #DDEAE7;
}
.section--brand h2, .section--brand h3 { color: #F4EDE0; }
.section--brand .lede { color: #B7CBC7; }

/* --- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rust-dark); color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(244,237,224,0.55); color: inherit; }
.btn-ghost:hover { background: rgba(244,237,224,0.12); color: inherit; }
.btn-outline { background: transparent; border-color: var(--deep-tide); color: var(--deep-tide); }
.btn-outline:hover { background: var(--deep-tide); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(14,58,69,0.08);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile nav and collapse it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 237, 224, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--brand);
}
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-head);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--deep-tide);
}
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 1px;
}
.nav {
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  color: var(--deep-tide);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-color: var(--rust); color: var(--deep-tide); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--deep-tide); padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav { position: fixed; inset: 66px 0 0 0; background: var(--sand);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 24px 24px; border-top: 1px solid rgba(14,58,69,0.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(14,58,69,0.08); }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-toggle { display: inline-flex; }
}

/* --- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #124451 0%, #0E3A45 62%, #0B2E38 100%);
  color: var(--white);
  padding: 84px 0 0;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-bottom: 64px;
}
.hero h1 { color: var(--white); }
.hero .lede { color: #C7DBD6; font-size: 1.18rem; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: #DCEAE6; }
.hero-badge svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.45);
  max-width: 380px; margin-left: auto;
}
.hero-card .rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-card .rating strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--deep-tide); }
.hero-card .stars { color: var(--rust); letter-spacing: 2px; }
.hero-skyline {
  width: 100%; height: auto; display: block;
}
.hero-photo {
  width: 100%; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; display: block;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 64px; display: block; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-card { margin: 0; max-width: 100%; }
}

/* --- Cards ------------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(14,58,69,0.06);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.card-media svg { width: 46%; height: 46%; opacity: 0.92; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin-bottom: 2px; font-size: 1.18rem; }
.card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bras-dor);
}
.card-foot { margin-top: auto; padding-top: 10px; }
.card-link { font-weight: 600; font-size: 0.94rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; }

/* palette rotations for card media backgrounds */
.media-tide { background: linear-gradient(135deg, var(--deep-tide), var(--bras-dor)); }
.media-highland { background: linear-gradient(135deg, var(--highland-dark), var(--highland)); }
.media-rust { background: linear-gradient(135deg, var(--rust-dark), var(--rust)); }
.media-wood { background: linear-gradient(135deg, var(--driftwood-dark), var(--driftwood)); }

/* --- Section headers ---------------------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .lede { margin-bottom: 0; }

/* --- Amenity / feature list ------------------------------------------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.feature-list svg { width: 20px; height: 20px; color: var(--highland); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

/* --- Stat strip ---------------------------------------------------------- */
.stat-strip { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { min-width: 120px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--deep-tide); }
.section--brand .stat strong { color: var(--white); }
.stat span { font-size: 0.86rem; color: var(--text-soft); }
.section--brand .stat span { color: #B7CBC7; }

/* --- Forms --------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--deep-tide); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #D8CFBB; background: var(--sand); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bras-dor); background: var(--white);
}
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.86rem; color: var(--text-soft); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.94rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E4F0E1; color: var(--highland-dark); }
.form-status.err { background: #FBE7E0; color: var(--rust-dark); }

/* --- Blog / guide -------------------------------------------------------- */
.post-card .card-media { aspect-ratio: 16/10; }
.post-meta { font-size: 0.82rem; color: var(--text-soft); display: flex; gap: 10px; align-items: center; }
.post-hero {
  padding: 60px 0 40px;
  background: var(--fog);
  border-bottom: 1px solid rgba(14,58,69,0.08);
}
.post-hero .eyebrow { margin-bottom: 14px; }
.article {
  max-width: 74ch; margin: 0 auto; padding: 52px 24px 90px;
  font-size: 1.08rem;
}
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; color: var(--highland-dark); }
.article p { color: var(--text); }
.article blockquote {
  margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rust);
  font-family: var(--font-head); font-size: 1.25rem; color: var(--deep-tide); font-style: italic;
}
.article figure { margin: 2em 0; }
.article .cap-media {
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.article .cap-media svg { width: 34%; }
.article figcaption { font-size: 0.85rem; color: var(--text-soft); margin-top: 10px; text-align: center; }
.article ul li, .article ol li { margin-bottom: 0.5em; }
.pull-fact {
  background: var(--fog); border-radius: var(--radius); padding: 22px 26px; margin: 2em 0;
  border-left: 4px solid var(--bras-dor);
}
.pull-fact strong { color: var(--deep-tide); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.tag { background: var(--fog); color: var(--deep-tide); font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 74ch; margin: 0 auto; padding: 0 24px 60px; flex-wrap: wrap; }

/* --- Filter chips (attractions/guide index) --------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  border: 1.5px solid rgba(14,58,69,0.18); background: var(--white); color: var(--deep-tide);
  padding: 8px 18px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.chip.active, .chip:hover { background: var(--deep-tide); color: var(--white); border-color: var(--deep-tide); }

/* --- Attraction list item ------------------------------------------------ */
.attraction {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  margin-bottom: 16px; border: 1px solid rgba(14,58,69,0.06);
}
.attraction-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white);
}
.attraction-icon svg { width: 30px; height: 30px; }
.attraction h3 { margin-bottom: 4px; font-size: 1.1rem; }
.attraction .meta { font-size: 0.82rem; color: var(--rust); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.attraction p { margin-bottom: 8px; color: var(--text-soft); }
@media (max-width: 560px) { .attraction { grid-template-columns: 48px 1fr; } .attraction-icon { width: 48px; height: 48px; } .attraction-icon svg { width: 22px; height: 22px; } }

/* --- Reviews -------------------------------------------------------------- */
.review-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; border: 1px solid rgba(14,58,69,0.06); }
.review-card .stars { color: var(--rust); letter-spacing: 2px; margin-bottom: 10px; display: block; }
.review-placeholder {
  border: 1.5px dashed rgba(14,58,69,0.28); border-radius: var(--radius);
  padding: 26px; color: var(--text-soft); font-size: 0.95rem;
  display: flex; align-items: flex-start; gap: 12px;
}
.review-placeholder svg { width: 22px; height: 22px; color: var(--bras-dor); flex-shrink: 0; }

/* --- Callout / CTA band -------------------------------------------------- */
.cta-band {
  background: var(--highland-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2, .cta-band h3 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #D9E6DC; margin-bottom: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--deep-tide); color: #B7CBC7; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); }
.site-footer p { color: #A9C0BB; font-size: 0.94rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #CBDAD6; text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: #8FA9A3; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .cta-band { padding: 32px; } }

/* --- Misc ------------------------------------------------------------------ */
.divider-mtn { line-height: 0; }
.divider-mtn svg { width: 100%; height: auto; display: block; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--rust); color: var(--white);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge { background: var(--fog); color: var(--deep-tide); font-size: 0.8rem; font-weight: 700; padding: 7px 14px; border-radius: 100px; }
