/* =========================================================
   Dean Family Beach House — styles
   Coastal palette: deep teal, sandy neutrals, sunset accent
   ========================================================= */

:root {
  --teal-900: #0d3b40;
  --teal-700: #155e63;
  --teal-500: #2a9d8f;
  --teal-400: #3ab7a6;
  --sand-100: #faf6ef;
  --sand-200: #f1e9db;
  --sand-300: #e4d8c3;
  --ink: #1d2b2c;
  --muted: #5c6b6c;
  --sun: #ffde3a;        /* yellow (brightened) */
  --sun-dark: #f5cd24;   /* yellow hover (brightened) */
  --yellow: #ffde3a;
  --yellow-dark: #f5cd24;
  --sky: #1a6fd5;        /* palette sky blue (overview section) */
  --aqua: #45efe1;       /* palette aqua/turquoise, brightened (facts bar) */
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(13, 59, 64, 0.12);
  --shadow-sm: 0 4px 14px rgba(13, 59, 64, 0.10);
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand-100);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sun); color: #2a1c05; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sun-dark); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.14); }
.btn--light { background: #fff; color: var(--teal-900); }
.btn--light:hover { background: var(--sand-200); }
.btn--block { display: block; width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.74rem; }

/* On light sections, ghost buttons need dark text */
.section .btn--ghost { border-color: var(--teal-700); color: var(--teal-700); }
.section .btn--ghost:hover { background: var(--teal-700); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-900); color: var(--sand-200); font-size: 0.78rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__phone a { color: var(--sun); font-weight: 600; }
@media (max-width: 720px) { .topbar__item:first-child { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  border-bottom: 1px solid var(--yellow-dark);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; display: block; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--teal-900); letter-spacing: 0.5px; }
.brand__sub { font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal-700); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--teal-900); transition: color 0.15s; }
.nav a:hover { color: var(--teal-500); }
.nav__cta { background: var(--teal-700); color: #fff !important; padding: 9px 18px; border-radius: 50px; }
.nav__cta:hover { background: var(--teal-900); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--teal-900); transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url("../images/gulf-shores-beach-house-for-rent.jpg") center / cover no-repeat;
  filter: brightness(1.13) saturate(1.05);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,59,64,0.20) 0%, rgba(13,59,64,0.5) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 60px 24px; max-width: 820px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 600; color: var(--sand-200); margin-bottom: 18px; }
.hero__title { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 700; line-height: 1.02; margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero__tagline { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-style: italic; color: var(--yellow); margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.hero__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 1rem; margin-bottom: 14px; }
.hero__stats strong { color: var(--sun); font-weight: 700; }
.hero__stats .dot { color: rgba(255,255,255,0.5); }
.hero__addr { font-size: 0.95rem; color: var(--sand-200); margin-bottom: 32px; letter-spacing: 0.02em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Facts bar ---------- */
.facts { background: var(--aqua); color: var(--teal-900); }
.facts__grid { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 14px 20px; padding: 26px 24px; }
.fact { display: flex; align-items: center; gap: 10px; font-family: "Quicksand", sans-serif; font-size: 1.08rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.fact__icon { font-size: 1.9rem; }

/* ---------- Sections ---------- */
.section { padding: 42px 0 84px; }
.section--alt { background: var(--sand-200); }
.section__eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem; font-weight: 700; color: var(--teal-500); margin-bottom: 10px; }
.section__eyebrow--light { color: var(--sun); }
.section__title { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; color: var(--teal-900); line-height: 1.1; margin-bottom: 16px; }
.section__title--light { color: #fff; }
.section__lead { max-width: 680px; color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; }
.section__lead em { color: var(--teal-700); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; cursor: pointer; background: var(--sand-300);
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery__cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 14px 10px; font-size: 0.78rem; color: #fff; background: linear-gradient(transparent, rgba(13,59,64,0.7)); opacity: 0; transition: opacity 0.25s; }
.gallery__item:hover .gallery__cap { opacity: 1; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery__item--wide { grid-column: span 2; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery__item--wide { grid-column: span 1; aspect-ratio: 4/3; } }

/* ---------- Overview ---------- */
.overview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.overview__text p { margin-bottom: 18px; color: #34464a; }
.overview__card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--teal-500); position: sticky; top: 100px; }
.overview__card h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-900); margin-bottom: 14px; }
.speclist { list-style: none; }
.speclist li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--sand-200); font-size: 0.9rem; }
.speclist li:last-child { border-bottom: 0; }
.speclist span { color: var(--muted); }
.speclist strong { color: var(--teal-900); }
@media (max-width: 860px) { .overview { grid-template-columns: 1fr; } .overview__card { position: static; } }

/* Overview section uses the palette sky blue */
#overview { background: var(--sky); }
#overview .section__eyebrow { color: #d6e9ff; }
#overview .section__title { color: #fff; }
#overview .overview__text p { color: #eaf3ff; }
#overview .overview__text strong { color: #fff; }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.amen-group { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.amen-group h3 { font-size: 1rem; color: var(--teal-700); margin-bottom: 14px; letter-spacing: 0.02em; }
.amen-group ul { list-style: none; }
.amen-group li { position: relative; padding: 6px 0 6px 22px; font-size: 0.9rem; color: #3a4a4c; }
.amen-group li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-500); font-weight: 700; }
@media (max-width: 960px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- Rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room { background: #fff; border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.room:hover { transform: translateY(-4px); }
.room__icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.room h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--teal-900); margin-bottom: 6px; }
.room p { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rooms { grid-template-columns: 1fr; } }

/* ---------- Rates ---------- */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.rate-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; border: 1px solid var(--sand-300); }
.rate-card--featured { border: 2px solid var(--sun); box-shadow: var(--shadow); transform: scale(1.03); }
.rate-card__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sun); color: #2a1c05; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 16px; border-radius: 50px; }
.rate-card h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--teal-900); }
.rate-card__season { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.rate-card__price { font-size: 2.3rem; font-weight: 700; color: var(--teal-700); font-family: var(--serif); line-height: 1; margin-bottom: 20px; }
.rate-card__price span { font-size: 0.8rem; color: var(--muted); font-family: var(--sans); font-weight: 500; display: block; text-transform: uppercase; letter-spacing: 0.1em; }
.rate-card__price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.rate-card ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.rate-card li { padding: 7px 0 7px 22px; position: relative; font-size: 0.88rem; color: #3a4a4c; }
.rate-card li::before { content: "•"; position: absolute; left: 4px; color: var(--teal-500); font-weight: 700; }
.rates__note { margin-top: 24px; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .rates { grid-template-columns: 1fr; } .rate-card--featured { transform: none; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.review { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); border-left: 5px solid var(--sun); }
.review blockquote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: #2c3d3f; font-style: italic; margin-bottom: 14px; }
.review figcaption { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-500); }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.section--book { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: #fff; }
.book { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.book__intro p { color: var(--sand-200); margin-bottom: 24px; }
.book__intro a { color: var(--sun); font-weight: 600; }
.book__perks { list-style: none; }
.book__perks li { padding: 7px 0; color: #fff; font-size: 0.95rem; }
.book__form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal-900); margin-bottom: 6px; }
.field small { text-transform: none; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--sand-300); border-radius: 9px;
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink); background: var(--sand-100);
  transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(42,157,143,0.18); background: #fff;
}
.field textarea { resize: vertical; }
.book__status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.book__status.is-ok { color: var(--teal-700); }
.book__status.is-err { color: #c0392b; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: stretch; }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.location__info h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--teal-900); margin-bottom: 12px; }
.location__info p { color: #34464a; margin-bottom: 16px; }
.location__info .speclist { margin-bottom: 16px; }
.location__nearby { font-size: 0.92rem; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--sun); color: #2a1c05; text-align: center; padding: 58px 0; }
.cta-strip h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.cta-strip p { margin-bottom: 24px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: var(--sand-200); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer__col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer__col p { font-size: 0.88rem; margin-bottom: 10px; line-height: 1.6; }
.footer__col a { display: block; font-size: 0.88rem; color: var(--sand-200); padding: 4px 0; transition: color 0.15s; }
.footer__col a:hover { color: var(--sun); }
.footer__col .btn { display: inline-block; color: #2a1c05; }
.brand--footer { margin-bottom: 14px; }
.brand--footer .brand__name { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.76rem; color: rgba(255,255,255,0.6); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 30, 32, 0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 20px; right: 28px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 0; color: #fff; font-size: 2.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; transition: background 0.15s; }
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
@media (max-width: 600px) { .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--yellow); border-bottom: 1px solid var(--yellow-dark);
    padding: 10px 24px 20px;
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--yellow-dark); }
  .nav__cta { text-align: center; margin-top: 10px; border-bottom: 0 !important; }
}
