/* Coastal Cardinal — coastal Cape Cod theme: airy sky blue & cardinal red */
:root {
  --sand: #edf5fc;
  --sand-deep: #d8e9f8;
  --white: #ffffff;
  --sky: #55A9DC;
  --sky-dark: #337cae;
  --cardinal: #C41E3A;
  --cardinal-dark: #9c162e;
  --ink: #2b3a44;
  --muted: #5f7688;
  --line: #c2ddf1;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(30, 60, 90, 0.10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
a { color: var(--sky-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--sky-dark); text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand span { color: var(--sky); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 9px; border-radius: 8px; font-size: 0.92rem; white-space: nowrap; }
.nav a:hover { background: var(--sand-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 6px 12px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--cardinal);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--sans);
}
.btn:hover { background: var(--cardinal-dark); }
.btn.secondary { background: var(--white); color: var(--sky-dark) !important; border: 1px solid var(--sky-dark); }
.btn.secondary:hover { background: var(--sand-deep); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Hero */
.hero { position: relative; color: #fff; }
.hero img { width: 100%; height: auto; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 48, 72, 0.78), rgba(18, 48, 72, 0.10) 55%);
  display: flex; align-items: flex-end;
}
.hero-text { padding: 40px 0; }
.hero-text h1 { margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-text p { margin: 0 0 18px; font-size: 1.15rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.badge {
  background: rgba(255,255,255,.92); color: var(--sky-dark);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 600;
}

/* Sections & cards */
.section { padding: 56px 0; }
.section.alt { background: var(--white); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 18px 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 28px 0; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 1.8rem; color: var(--sky-dark); }
.stat .lbl { font-size: 0.85rem; color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.strip img { height: 150px; width: 100%; object-fit: cover; border-radius: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); padding: 6px 2px; }
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 35, 55, 0.92);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 10px; }
.lightbox .cap { position: absolute; bottom: 26px; color: #fff; font-size: 0.95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 16px; top: 50%; }
.lightbox .next { right: 16px; top: 50%; }

/* Booking */
.steps { display: flex; gap: 8px; margin: 20px 0 28px; flex-wrap: wrap; }
.step { flex: 1; min-width: 140px; text-align: center; padding: 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.step.active { border-color: var(--sky); color: var(--sky-dark); font-weight: 600; background: #e4f1fb; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cal { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cal h4 { text-align: center; margin: 4px 0 10px; font-family: var(--serif); }
.cal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cal th { color: var(--muted); font-weight: normal; font-size: 0.75rem; padding: 4px; }
.cal td { text-align: center; padding: 0; }
.cal button.day { width: 100%; border: none; background: none; padding: 8px 4px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.cal button.day:hover:not(:disabled) { background: var(--sand-deep); }
.cal button.day:disabled { color: #c4c9c9; cursor: not-allowed; text-decoration: line-through; }
.cal button.day.in-range { background: #cfe7fa; border-radius: 0; }
.cal button.day.selected { background: var(--sky); color: #fff; border-radius: 8px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: var(--sans); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.quote-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.quote-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.quote-table td:last-child { text-align: right; white-space: nowrap; }
.quote-table tr.total td { font-weight: bold; font-size: 1.15rem; border-bottom: none; color: var(--sky-dark); }
.estimate-flag {
  display: inline-block; background: #fff7e0; border: 1px solid #ecd27a; color: #8a6d1a;
  border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; margin-bottom: 12px;
}
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 0.95rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.alert { border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.alert.error { background: #fdecea; border: 1px solid #f5b5ac; color: #8c2f26; }
.alert.ok { background: #e9f6f1; border: 1px solid #9ed3c3; color: #2f5f57; }
.alert.info { background: #eaf3fb; border: 1px solid #b3d2ec; color: #2c5a86; }

/* Admin */
.booking-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: #fff; }
.booking-card .status { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.status.pending { background: #fff3d6; color: #8a6d1a; }
.status.approved { background: #e0f0ff; color: #2c5a86; }
.status.awaiting_payment { background: #e8e4fb; color: #4a3f8c; }
.status.confirmed { background: #ddf3e7; color: #256b45; }
.status.declined, .status.conflict, .status.expired { background: #f3e2e2; color: #8c2f26; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-actions .btn { padding: 9px 18px; font-size: 0.9rem; }
.adjust-form { background: var(--sand); border-radius: 10px; padding: 16px; margin-top: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; color: var(--sky-dark); }
.faq summary:hover { color: var(--sky); }
.faq details p { margin: 10px 0 4px; color: var(--ink); }

/* Reviews */
.rating-big { font-family: var(--serif); font-size: 3.4rem; color: var(--sky-dark); }
.stars { color: #e8a13d; font-size: 1.3rem; letter-spacing: 2px; }
.score-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; max-width: 460px; }
.score-row .lbl { width: 130px; font-size: 0.95rem; }
.score-row .bar { flex: 1; height: 8px; background: var(--sand-deep); border-radius: 4px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: var(--sky); border-radius: 4px; }
.score-row .val { width: 36px; text-align: right; font-weight: 600; }

/* Footer */
.site-footer { background: #1d4b70; color: #eaf3f1; margin-top: 40px; }
.site-footer .wrap { padding: 40px 20px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h4 { font-family: var(--serif); margin: 0 0 10px; font-weight: normal; }
.site-footer a { color: #cfe3f2; }
.site-footer p, .site-footer li { font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0; font-size: 0.8rem; color: #a9c6de; }
.footer-base .wrap { display: block; padding-top: 0; padding-bottom: 0; }

.how-it-works { counter-reset: step; }
.how-it-works li { margin-bottom: 14px; }
.note { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 1100px) {
  .nav { display: none; flex-direction: column; align-items: stretch; width: 100%; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
}
