/* ==========================================================================
   Windward Harbor Hotel — Stylesheet
   Palette: deep navy + emerald, warm gold accent, cream white
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --navy-light: #123a63;
  --emerald: #0d3b2e;
  --emerald-light: #145c46;
  --gold: #c9a227;
  --gold-light: #e2c15a;
  --cream: #f8f5ef;
  --cream-dim: #efe9dc;
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --white: #ffffff;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Mulish", "Segoe UI", Verdana, Arial, sans-serif;

  --shadow-soft: 0 10px 30px rgba(11, 37, 69, 0.12);
  --shadow-lift: 0 20px 45px rgba(11, 37, 69, 0.22);
  --radius: 10px;
  --container-w: 1180px;

  --nav-height: 92px;
}

/* ---- Reset ---- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 18px;
  z-index: 2000;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--cream);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
.btn-dark-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-dark-outline:hover, .btn-dark-outline:focus-visible {
  background: var(--navy);
  color: var(--cream);
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 37, 69, 0.96);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
/* The blur lives on a pseudo-element rather than .site-header itself.
   backdrop-filter/filter/transform on an element makes it the containing
   block for any position:fixed descendant — .nav-links (the mobile menu)
   is fixed and nested inside this header, so putting the filter directly
   on .site-header trapped the menu inside the header's own small box
   instead of the full viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  background: rgba(7, 26, 51, 0.98);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  transition: height 0.3s ease;
}
.site-header.scrolled .nav-inner { height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-serif);
}
.brand-mark {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-loc { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--gold-light); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--cream);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-light); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); font-weight: 700; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(248,245,239,0.35);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin-left: 0; margin-top: 10px; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background: linear-gradient(160deg, var(--navy-deep), var(--emerald) 130%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,51,0.55) 0%, rgba(7,26,51,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 18px;
  display: inline-block;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.5; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,26,51,0.6) 0%, rgba(7,26,51,0.82) 100%);
}
.page-hero .hero-content { max-width: 640px; }
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.page-hero p.lead { margin-bottom: 0; color: var(--cream-dim); }
.breadcrumb {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--cream-dim); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 92px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--cream-dim); }
.section-dark { background: var(--navy-deep); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-emerald { background: linear-gradient(135deg, var(--emerald), var(--navy-deep)); color: var(--cream); }
.section-emerald h2, .section-emerald h3 { color: var(--cream); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}
.section-dark .section-eyebrow, .section-emerald .section-eyebrow { color: var(--gold-light); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--ink-soft); }
.section-dark .section-head p, .section-emerald .section-head p { color: var(--cream-dim); }

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold);
  font-weight: 700;
  display: block;
}
.stat .stat-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--cream-dim);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}

/* ---- Cards: rooms ---- */
.grid-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.room-card-media { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover .room-card-media img { transform: scale(1.08); }
.room-card-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.room-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-card-body h3 { margin-bottom: 0; font-size: 1.3rem; }
.room-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); }
.room-meta strong { color: var(--navy); }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.amenity-tags span {
  font-size: 0.76rem;
  background: var(--cream-dim);
  color: var(--emerald);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(13,59,46,0.15);
}
.room-card-footer { margin-top: auto; display: flex; gap: 10px; }

/* ---- Promotions ---- */
.grid-promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.promo-card {
  background: var(--white);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 30px;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.promo-badge {
  display: inline-block;
  background: var(--emerald);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.promo-card h3 { font-size: 1.2rem; }
.promo-price { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); font-weight: 700; margin: 10px 0; }

/* ---- Promo banner (home) ---- */
.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr;
  isolation: isolate;
}
.promo-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo-banner::after { content: ""; position: absolute; inset: 0; background: rgba(7,26,51,0.72); z-index: -1; }
.promo-banner-inner { padding: 56px; text-align: center; }
.promo-banner-inner h2 { color: var(--cream); }
.promo-banner-inner p { color: var(--cream-dim); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Feature / icon cards (amenities) ---- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feature-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--emerald));
  color: var(--gold-light);
  margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }
.feature-list { margin-top: 12px; font-size: 0.86rem; color: var(--emerald); }
.feature-list li { padding: 3px 0; }

/* ---- Menu highlight ---- */
.menu-highlight {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}
.menu-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 20px;
}
.menu-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(11,37,69,0.15); }
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 700; color: var(--navy); }
.menu-item-desc { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.menu-item-price { font-family: var(--font-serif); color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ---- Testimonials ---- */
.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  min-height: 220px;
}
.testimonial-slide {
  display: none;
  text-align: center;
  animation: fadeSlide 0.6s ease;
}
.testimonial-slide.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 20px;
}
.testimonial-stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; color: var(--gold-light); }
.testimonial-role { font-size: 0.85rem; color: var(--cream-dim); }
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.carousel-arrow {
  background: transparent;
  border: 1px solid rgba(248,245,239,0.4);
  color: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { background: rgba(248,245,239,0.15); transform: scale(1.05); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(248,245,239,0.35); border: none; padding: 0; }
.carousel-dot.active { background: var(--gold); }

/* ---- Team cards ---- */
.grid-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lift); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 22px; }
.team-body h3 { margin-bottom: 2px; font-size: 1.15rem; }
.team-role { color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.team-years { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.team-bio { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Story / about ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px;
  background: linear-gradient(0deg, rgba(7,26,51,0.85), transparent);
  color: var(--cream);
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  background: var(--white);
  border: 1px solid rgba(11,37,69,0.2);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { background: var(--cream-dim); }
.filter-btn.active { background: var(--navy); color: var(--cream); }

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.form-field .required { color: var(--gold); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid rgba(11,37,69,0.25);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}
.form-field input.invalid, .form-field select.invalid, .form-field textarea.invalid {
  border-color: #b3261e;
}
.field-error {
  font-size: 0.78rem;
  color: #b3261e;
  min-height: 16px;
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- Contact info blocks ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; flex-shrink: 0; }
.info-card p { color: var(--ink-soft); margin-bottom: 4px; }
.map-embed {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid rgba(11,37,69,0.15);
  overflow: hidden;
  position: relative;
  background: var(--cream-dim);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ---- CTA banner ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--emerald));
  color: var(--cream);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream-dim); max-width: 560px; margin: 0 auto 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream-dim);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248,245,239,0.12);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-col h4 { color: var(--cream); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(248,245,239,0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.footer-social svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* ==========================================================================
   Scroll animation utility (used with JS IntersectionObserver / AOS fallback)
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* No-JS graceful degradation: content is always visible without JS */
.no-js [data-animate] { opacity: 1; transform: none; }

/* ==========================================================================
   404 page
   ========================================================================== */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.not-found h1 { font-size: clamp(4rem, 12vw, 7rem); color: var(--gold); margin-bottom: 0; }
.not-found p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 28px; }

/* ==========================================================================
   Chat widget
   ========================================================================== */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  border: none;
  box-shadow: 0 12px 30px rgba(11,37,69,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-launcher:hover { transform: scale(1.06); box-shadow: 0 16px 36px rgba(11,37,69,0.45); }
.chat-launcher svg { width: 28px; height: 28px; stroke: var(--navy-deep); fill: none; }
.chat-launcher .chat-close-icon { display: none; }
.chat-launcher.open .chat-open-icon { display: none; }
.chat-launcher.open .chat-close-icon { display: block; }

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 1500;
  width: min(360px, calc(100vw - 32px));
  height: min(500px, calc(100vh - 160px));
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--emerald));
  color: var(--cream);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.chat-header-text { flex: 1; }
.chat-header-text strong { display: block; font-size: 0.95rem; }
.chat-header-text span { font-size: 0.74rem; color: var(--cream-dim); }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; margin-right: 5px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream-dim);
}
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; animation: fadeSlide 0.3s ease; }
.chat-msg.bot { background: var(--white); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.chat-msg.user { background: var(--navy); color: var(--cream); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.error { background: #fbeaea; color: #8a2c25; align-self: flex-start; }

.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: var(--white); border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); opacity: 0.5; animation: typingBounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(11,37,69,0.1);
  background: var(--white);
}
.chat-input-row input {
  flex: 1;
  border: 1px solid rgba(11,37,69,0.2);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.88rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--gold); }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.chat-send:hover { background: var(--gold); color: var(--navy-deep); }
.chat-send svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.chat-disclaimer { font-size: 0.68rem; color: var(--ink-soft); text-align: center; padding: 6px 10px 10px; background: var(--white); }

@media (max-width: 480px) {
  .chat-panel { right: 16px; bottom: 90px; width: calc(100vw - 32px); }
  .chat-launcher { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.form-submit { margin-top: 16px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
