/* ============================================================
   Hope Creek Coconut Hideaway — site styles
   ============================================================ */

:root {
  --sea:        #0d7a8c;
  --sea-deep:   #075c6b;
  --sea-light:  #e0f2f4;
  --sand:       #faf5ec;
  --sand-warm:  #f1e7d5;
  --sunset:     #d9714a;
  --jungle:     #2f5d3a;
  --dark:       #16272a;
  --gray:       #4d6165;
  --gray-soft:  #74898d;
  --border:     #dfe7e7;
  --white:      #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand .mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
}

img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────────────── */
.topbar {
  background: var(--sea-deep);
  color: var(--white);
  padding: 9px 0;
  font-size: 14.5px;
  letter-spacing: 0.3px;
}
.topbar .wrap {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; text-align: center;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.brand {
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 12px;
}
.brand img { width: 46px; height: auto; flex-shrink: 0; }
@media (max-width: 480px) { .brand img { width: 38px; } }
.brand .mark { font-size: 21px; color: var(--sea); letter-spacing: 0.4px; line-height: 1.15; }
.brand .sub {
  font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--gray-soft); margin-top: 3px;
}
nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--gray); text-decoration: none;
  font-size: 15px; letter-spacing: 0.2px; transition: color 0.15s;
}
.nav-links a:hover { color: var(--sea); }
@media (max-width: 940px) { .nav-links { display: none; } }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--sunset); color: var(--white);
  text-decoration: none; padding: 12px 26px;
  border-radius: 7px; font-size: 16px; font-weight: 600; letter-spacing: 0.3px;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap; border: none; cursor: pointer;
}
.btn:hover { background: #c2603b; transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-sea { background: var(--sea); }
.btn-sea:hover { background: var(--sea-deep); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.8);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,40,45,0.24) 0%, rgba(11,40,45,0.46) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 96px; }
.hero h1 {
  font-size: clamp(32px, 5.6vw, 54px);
  line-height: 1.18; letter-spacing: -0.4px;
  max-width: 19ch; margin: 0 auto 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 1px 30px rgba(0,0,0,0.4);
}
.hero .lede {
  font-size: clamp(17px, 2.3vw, 20.5px);
  max-width: 60ch; margin: 0 auto 34px;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 1px 24px rgba(0,0,0,0.45);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 26px; font-size: 14.5px;
  color: rgba(255,255,255,0.94); letter-spacing: 0.4px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ── Sections ────────────────────────────────────── */
section { padding: 78px 0; }
section.tint { background: var(--white); border-block: 1px solid var(--border); }
section.warm { background: var(--sand-warm); }
section.deep { background: var(--sea-deep); color: var(--white); }
section.deep h2, section.deep .eyebrow { color: var(--white); }
section.deep .section-lede { color: rgba(255,255,255,0.88); }

.eyebrow {
  font-size: 11.5px; letter-spacing: 2.8px; text-transform: uppercase;
  color: var(--sunset); margin-bottom: 13px; text-align: center; font-weight: 600;
}
h2 {
  font-size: clamp(26px, 3.7vw, 36px);
  line-height: 1.26; text-align: center; margin-bottom: 16px; letter-spacing: -0.3px;
}
.section-lede {
  text-align: center; color: var(--gray); font-size: 17.5px;
  max-width: 62ch; margin: 0 auto 50px;
}

/* ── Intro split ─────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 54px; align-items: center; max-width: 1000px; margin: 0 auto;
}
.split img { border-radius: 14px; box-shadow: 0 16px 44px rgba(22,39,42,0.16); }
.split h2 { text-align: left; }
.split .section-lede { text-align: left; margin: 0 0 20px; }
.split p { color: var(--gray); font-size: 17px; margin-bottom: 16px; }
.split p:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split h2, .split .section-lede { text-align: center; }
}

/* ── Units ───────────────────────────────────────── */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 820px) { .units { grid-template-columns: 1fr; } }
.unit {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.unit:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,39,42,0.12); }
.unit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.unit .body { padding: 24px 26px 26px; }
.unit h3 { font-size: 22px; color: var(--sea-deep); margin-bottom: 10px; }
.unit p { color: var(--gray); font-size: 16px; margin-bottom: 14px; }
.unit ul { list-style: none; margin-bottom: 18px; }
.unit li {
  font-size: 15.5px; color: var(--gray); padding-left: 22px;
  position: relative; margin-bottom: 5px;
}
.unit li::before {
  content: '✦'; position: absolute; left: 0; color: var(--sunset); font-size: 13px;
}

/* ── Rates ───────────────────────────────────────── */
.rate-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 34px 34px 32px;
  box-shadow: 0 12px 34px rgba(22,39,42,0.07);
}
.rate-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 18px; padding: 14px 0; text-align: left;
  border-bottom: 1px solid var(--border);
}
.rate-line:first-child { padding-top: 0; }
.rate-label { color: var(--gray); font-size: 16.5px; }
.rate-label em { color: var(--gray-soft); font-style: normal; font-size: 14.5px; }
.rate-amount {
  font-family: Georgia, serif; font-size: 26px;
  color: var(--sea-deep); white-space: nowrap;
}
.rate-amount small { font-size: 13px; color: var(--gray-soft); letter-spacing: 0.6px; }
.rate-line:nth-child(3) .rate-amount {
  font-size: 15.5px; font-family: inherit; color: var(--gray-soft); font-style: italic;
}
.rate-note {
  font-size: 15.5px; color: var(--gray); margin: 20px 0 24px; line-height: 1.6;
}
@media (max-width: 520px) {
  .rate-card { padding: 26px 22px 24px; }
  .rate-amount { font-size: 22px; }
}

/* ── Amenities ───────────────────────────────────── */
.amenities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; max-width: 980px; margin: 0 auto;
}
.amenity {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 20px; text-align: center;
}
section.warm .amenity { background: var(--white); }
.amenity .icon { font-size: 26px; margin-bottom: 10px; }
.amenity h3 { font-size: 17.5px; color: var(--sea-deep); margin-bottom: 5px; }
.amenity p { font-size: 15px; color: var(--gray-soft); }

/* ── Attractions ─────────────────────────────────── */
.attractions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .attractions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .attractions { grid-template-columns: 1fr; } }
.attraction {
  border-radius: 13px; overflow: hidden; position: relative;
  background: var(--white); border: 1px solid var(--border);
}
.attraction img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.attraction .body { padding: 18px 20px 20px; }
.attraction h3 { font-size: 18.5px; color: var(--sea-deep); margin-bottom: 6px; }
.attraction p { font-size: 15.5px; color: var(--gray); }

/* ── Gallery ─────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery figure:hover {
  transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,39,42,0.14);
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
  text-align: center; padding: 11px 8px 12px;
  font-size: 15px; color: var(--sea-deep); letter-spacing: 0.3px;
}
.gallery-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  border: 1px dashed var(--border); border-radius: 12px;
  color: var(--gray-soft); font-style: italic;
}
.gallery-more { text-align: center; margin-top: 38px; }

/* ── CTA ─────────────────────────────────────────── */
.cta {
  position: relative; text-align: center; color: var(--white);
  padding: 92px 0; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,92,107,0.80), rgba(11,40,45,0.86));
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: var(--white); margin-bottom: 14px; }
.cta p {
  color: rgba(255,255,255,0.9); font-size: 18px;
  max-width: 56ch; margin: 0 auto 32px;
}
.cta .phone-lg {
  display: block; margin-top: 24px; font-size: 24px;
  color: var(--white); text-decoration: none; letter-spacing: 0.5px;
}
.cta .phone-lg:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.72);
  padding: 54px 0 38px; font-size: 15px;
}
footer .cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 34px;
}
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 28px; } }
footer h4 {
  color: var(--white); font-size: 12px; letter-spacing: 2.2px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 13px;
}
footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px; text-align: center;
  font-size: 13.5px; color: rgba(255,255,255,0.55);
}

/* ── Gallery page header ─────────────────────────── */
.page-hero {
  background: linear-gradient(168deg, var(--sea-light) 0%, var(--sand) 64%);
  padding: 62px 0 54px; text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.22;
  margin: 0 auto 14px; max-width: 20ch;
}
.page-hero p { font-size: 17.5px; color: var(--gray); max-width: 58ch; margin: 0 auto; }

/* ── Guide links ─────────────────────────────────── */
.guide-link {
  display: inline-block; margin-top: 10px;
  font-size: 14.5px; color: var(--sunset);
  text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent;
}
.guide-link:hover { border-bottom-color: var(--sunset); }

/* ── Rooftop list ────────────────────────────────── */
.rooftop-list { list-style: none; margin-top: 6px; }
.rooftop-list li {
  font-size: 16.5px; color: var(--gray); padding-left: 26px;
  position: relative; margin-bottom: 9px;
}
.rooftop-list li::before {
  content: '✦'; position: absolute; left: 0; top: 1px;
  color: var(--sunset); font-size: 14px;
}
