/* ============================================================
   Bluebird Cottage — bluebirdcottagevt.com
   Palette: Bluebird Blue #2F4F6F · Stone Gray #6B6E70
            Warm Cream #F2F0E9 · Door Orange #C56A3A
   Type: Fraunces (display serif) · Karla (body sans)
   ============================================================ */

:root {
  --cream: #F2F0E9;
  --paper: #FBFAF5;
  --blue: #2F4F6F;
  --ink: #253649;
  --gray: #6B6E70;
  --line: #DAD5C8;
  --orange: #C56A3A;
  --orange-dark: #A85526;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(37, 54, 73, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.65rem;
}

.lead { font-size: 1.1rem; color: var(--gray); max-width: 62ch; }

section { padding: 72px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--blue); }
.btn-light:hover { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--blue);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--orange-dark); text-decoration: none; }
.nav-links a.active { color: var(--orange-dark); }
.nav-links .btn { padding: 10px 22px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--blue);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero (seasonal crossfade) ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.4s ease;
}
.hero-media img.visible { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37,54,73,0.05) 35%, rgba(37,54,73,0.72) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 64px;
}
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero p {
  margin: 16px 0 26px;
  font-size: 1.12rem;
  max-width: 48ch;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.season-tag {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Sub-page hero */
.page-hero { position: relative; padding: 0; color: #fff; }
.page-hero img { width: 100%; height: 46vh; min-height: 320px; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,54,73,0.1) 30%, rgba(37,54,73,0.7) 100%);
}
.page-hero .wrap {
  position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2;
  margin: 0 auto;
}
.page-hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.page-hero p { max-width: 55ch; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

/* ---------- Three bluebirds divider (signature) ---------- */
.birds {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  max-width: 340px;
  padding: 34px 0 0;
}
.birds::before, .birds::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.birds svg { width: 96px; height: 26px; flex-shrink: 0; }
.birds svg path { fill: none; stroke: var(--blue); stroke-linecap: round; }
.birds.on-dark svg path { stroke: var(--cream); }
.birds.on-dark::before, .birds.on-dark::after { background: rgba(242,240,233,0.3); }

/* ---------- Highlights strip ---------- */
.highlights { background: var(--blue); color: var(--cream); padding: 26px 0; }
.highlights ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.highlights li { display: flex; align-items: center; gap: 10px; }
.highlights li::before { content: "●"; color: var(--orange); font-size: 0.6rem; }

/* ---------- Two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.feature-body h2 { margin-bottom: 14px; }
.feature-body p { margin-bottom: 14px; color: var(--gray); }
.feature-body p strong { color: var(--ink); }

/* ---------- Card grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; color: var(--gray); }
.card-body .meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 6px;
}

/* ---------- Amenities ---------- */
.amenities { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 30px; }
.amenities li { padding-left: 26px; position: relative; }
.amenities li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.85;
}

/* ---------- Seasons band ---------- */
.seasons { background: var(--blue); color: var(--cream); }
.seasons h2, .seasons h3 { color: var(--cream); }
.seasons .lead { color: rgba(242,240,233,0.75); }
.seasons .card { background: rgba(255,255,255,0.06); border-color: rgba(242,240,233,0.18); }
.seasons .card-body p { color: rgba(242,240,233,0.8); }
.seasons .card-body .meta { color: var(--orange); }

/* ---------- Gallery ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.filter-btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { background: rgba(47,79,111,0.08); }
.filter-btn.active { background: var(--blue); color: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin: 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(37,54,73,0.75));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
.gallery-grid figure.hidden { display: none; }

/* ---------- Booking page ---------- */
.book-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: start; }
.widget-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.widget-placeholder {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 60px 30px;
  text-align: center;
  color: var(--gray);
}
.widget-placeholder strong { color: var(--blue); display: block; margin-bottom: 8px; font-size: 1.05rem; }
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
}
.side-card h3 { margin-bottom: 12px; }
.side-card ul { list-style: none; }
.side-card li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.side-card li:last-child { border-bottom: none; }
.side-card li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 24px;
}
.faq-list summary {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--blue);
  font-weight: 500;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--orange);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--gray); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 110px 0;
  overflow: hidden;
}
.cta-band > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(37,54,73,0.62);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 52ch; margin: 0 auto 28px; color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: rgba(242,240,233,0.85);
  padding: 56px 0 34px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(242,240,233,0.85); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { width: 60px; height: 60px; }
.footer-brand span { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); }
.footer-note { max-width: 40ch; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(242,240,233,0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(242,240,233,0.6);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Sticky mobile book bar ---------- */
.mobile-book {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(242,240,233,0.96);
  border-top: 1px solid var(--line);
}
.mobile-book .btn { display: block; text-align: center; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature, .book-layout { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 8px; }
  .grid-3, .grid-2, .gallery-grid, .amenities, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; }
  .mobile-book { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-grid img, .btn { transition: none; }
}
