/* ==========================================================================
   Belle Atlantic — coastal vacation rental
   ========================================================================== */

:root {
  /* Palette */
  --sand:        #faf5ea;
  --sand-deep:   #f1e6cb;
  --foam:        #eaf3f7;
  --sea-50:      #dbeaf1;
  --sea-200:     #8fc0d4;
  --sea-500:     #2b7fa6;
  --sea-700:     #1f4f66;
  --sea-900:     #0e2c3b;
  --coral:       #e2785b;
  --coral-deep:  #c25a3f;
  --sun:         #f5c66b;
  --ink:         #18242e;
  --ink-soft:    #3a4a56;
  --muted:       #7a8a96;
  --line:        #e1d8c5;
  --white:       #ffffff;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max:    1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,40,55,.06), 0 2px 6px rgba(15,40,55,.04);
  --shadow-md: 0 6px 24px rgba(15,40,55,.10);
  --shadow-lg: 0 24px 60px rgba(15,40,55,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

a { color: var(--sea-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--coral-deep); text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea-500);
  margin: 0 0 .5rem;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--sea-900);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2.display { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; color: var(--sea-700); }
h4 { font-size: .95rem; font-family: var(--sans); font-weight: 700; color: var(--sea-900); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }

p { margin: 0 0 1rem; }
p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
p.tagline { font-family: var(--serif); font-style: italic; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(225, 216, 197, .6);
}
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .85rem; padding-bottom: .85rem;
  gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  color: var(--sea-900); text-decoration: none; letter-spacing: -.01em;
}
.brand:hover { color: var(--sea-700); text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sea-500), var(--sea-700));
  box-shadow: var(--shadow-sm);
}
.site-header nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.site-header nav a:hover {
  background: var(--foam);
  color: var(--sea-700);
  text-decoration: none;
}

main { display: block; }
main > .wrap { padding-top: 2rem; padding-bottom: 4rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: clamp(520px, 80vh, 760px);
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,44,59,.15) 0%, rgba(14,44,59,.05) 30%, rgba(14,44,59,.55) 75%, rgba(14,44,59,.78) 100%),
    linear-gradient(90deg, rgba(14,44,59,.45) 0%, rgba(14,44,59,0) 50%);
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 1.5rem 6rem;
  max-width: var(--max); margin: 0 auto;
  color: var(--white);
  z-index: 2;
}
.hero-content .eyebrow { color: var(--sun); }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  margin: 0 0 .5rem;
  max-width: 18ch;
}
.hero-content .tagline {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: rgba(255,255,255,.95);
  font-style: italic;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px; z-index: 3;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 4px 14px rgba(226,120,91,.4); }
.btn-primary:hover { background: var(--coral-deep); color: var(--white); box-shadow: 0 6px 20px rgba(226,120,91,.5); }

.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--sea-900); }

/* ==========================================================================
   Sections
   ========================================================================== */

section { margin: 4rem 0; }
section:first-child { margin-top: 3rem; }

.intro { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.intro h2 { margin: .5rem 0 1.25rem; }
.intro .lead { margin: 0 auto; }

.page-head {
  margin: 2rem 0 2.5rem;
  text-align: left;
}
.page-head .lead { margin-top: .25rem; }

/* ==========================================================================
   Amenities
   ========================================================================== */

.amenities { margin-top: 3rem; }
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.amenity {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.amenity:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sea-200);
}
.amenity-icon {
  width: 56px; height: 56px;
  margin: 0 auto .75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--foam);
  color: var(--sea-700);
}
.amenity-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sea-900);
  line-height: 1;
  min-height: 1rem;
}
.amenity-num:empty { display: none; }
.amenity-label {
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: .25rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery .eyebrow,
.gallery h2 { text-align: center; }
.gallery h2 { margin-bottom: 2rem; }

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
}
.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.photo:hover img { transform: scale(1.05); }
.photo.big { grid-row: 1 / span 2; }
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: 240px 240px 240px; }
  .photo.big { grid-row: auto; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  margin: 5rem -1.5rem 3rem;
  padding: 0 1.5rem;
}
.cta-card {
  background: linear-gradient(135deg, var(--sea-700), var(--sea-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, transparent 65%);
  opacity: .35;
}
.cta-card .eyebrow { color: var(--sun); }
.cta-card h2,
.cta-card .display { color: var(--white); }
.cta-card p { color: rgba(255,255,255,.92); }
.cta-card a { color: var(--sun); }
.cta-card .btn-primary { margin-top: .5rem; }

/* ==========================================================================
   Guest info cards
   ========================================================================== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.info-card.wide { grid-column: 1 / -1; }
.info-card.emergency { border-left: 6px solid var(--coral); }
.info-card h2 {
  font-size: 1.4rem;
  margin-top: 0;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sand-deep);
  margin-bottom: 1rem;
}

.kv { list-style: none; padding: 0; margin: .5rem 0 0; }
.kv li {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}
.kv li:last-child { border-bottom: none; }
.kv li > span:first-child { color: var(--muted); font-size: .92rem; }
.kv li > span:last-child  { color: var(--ink); }

@media (max-width: 540px) {
  .kv li { grid-template-columns: 1fr; gap: .15rem; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-col h3.ok { color: #2f7d4f; }
.two-col h3.no { color: #b54a2c; }
.two-col h3 { padding-bottom: .5rem; border-bottom: 2px solid var(--sand-deep); }
.two-col ul { margin: .75rem 0 0; padding-left: 1.25rem; }
.two-col li { margin-bottom: .25rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* ==========================================================================
   Forms (guestbook + login)
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 580px; }
.form.narrow { max-width: 420px; }
.form label {
  display: flex; flex-direction: column; gap: .4rem;
  font-weight: 600; font-size: .95rem;
  color: var(--sea-900);
}
.form input,
.form textarea {
  font: inherit;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--sand);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  font-weight: 400;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--sea-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(43,127,166,.12);
}
.form button {
  align-self: flex-start;
  margin-top: .5rem;
}

/* Honeypot — invisible to humans, irresistible to bots */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.flash {
  background: #e6f4ea;
  border: 1px solid #a8d4b6;
  color: #1e5a32;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.errors {
  background: #fdecea;
  border: 1px solid #e6b1a9;
  color: #7a1f1f;
  padding: 1rem 1.25rem 1rem 2.5rem;
  border-radius: 10px;
  margin: 0 0 1.5rem;
  list-style: disc;
}
.errors.single { list-style: none; padding-left: 1.25rem; }

/* ==========================================================================
   Admin comment list
   ========================================================================== */

.comments { list-style: none; padding: 0; }
.comments li { margin-bottom: 1rem; }
.comments .meta { font-size: .92rem; margin-bottom: .5rem; }
.comments .body { white-space: pre-wrap; color: var(--ink); }
.inline-form { display: inline; }
.link-btn {
  background: none; border: none;
  color: var(--coral-deep);
  cursor: pointer; padding: 0;
  font: inherit; font-size: .9rem;
  text-decoration: underline;
  margin-top: .75rem;
}
.link-btn:hover { color: #8c3520; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--sea-900);
  color: rgba(255,255,255,.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.site-footer .footer-wave {
  position: absolute; left: 0; right: 0; top: -1px;
  width: 100%; height: 80px;
  color: var(--sand);
  transform: translateY(-99%);
}
.site-footer h4 { color: var(--sun); }
.site-footer a { color: var(--sea-200); }
.site-footer a:hover { color: var(--white); }
.site-footer .muted { color: rgba(255,255,255,.55); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  font-size: .85rem;
  text-align: center;
}
