/* ==========================================================================
   Barnacles Resort — brand stylesheet
   Palette (Brand Book, April 2024):
   Shadow #2E3336 | Field #4A614D | Salmon #DE785C | Ochre #B09152
   Lake #82A69C | Wood #8C6138 | Off-White #F2F2ED
   Headlines: Unbounded (Google) · Body: Hubballi (Google)
   ========================================================================== */

:root {
  --shadow: #2E3336;
  --field: #4A614D;
  --salmon: #DE785C;
  --ochre: #B09152;
  --lake: #82A69C;
  --wood: #8C6138;
  --offwhite: #F2F2ED;
  --white: #FFFFFF;
  --shadow-80: rgba(46, 51, 54, .8);
  --maxw: 1160px;
  --radius: 16px;
  --head: "Unbounded", sans-serif;
  --body: "Hubballi", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--shadow);
  background: var(--offwhite);
}

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

a { color: var(--wood); }

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

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.25; color: var(--shadow); }

h1 { font-size: clamp(1.7rem, 4.5vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }

.eyebrow {
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: .8rem;
}

.lead { font-size: 1.25rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--head);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-decoration: none;
  padding: .85em 1.9em;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-salmon { background: var(--salmon); color: var(--offwhite); }
.btn-salmon:hover { background: #c9664c; }

.btn-outline { border: 2px solid var(--offwhite); color: var(--offwhite); }
.btn-outline:hover { background: var(--offwhite); color: var(--shadow); }

.btn-field { background: var(--field); color: var(--offwhite); }
.btn-field:hover { background: #3c5040; }

.btn-ghost { border: 2px solid var(--field); color: var(--field); }
.btn-ghost:hover { background: var(--field); color: var(--offwhite); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--offwhite);
  border-bottom: 1px solid rgba(46,51,54,.12);
}

.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img { height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.site-nav a {
  font-family: var(--head);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--shadow);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--wood); }
.site-nav a.active { border-bottom-color: var(--salmon); color: var(--wood); }
.site-nav a.nav-cta {
  background: var(--salmon);
  color: var(--offwhite);
  border: none;
  border-radius: 999px;
  padding: .6em 1.4em;
}
.site-nav a.nav-cta:hover { background: #c9664c; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--shadow); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid rgba(46,51,54,.12);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 14px;
  }
  .site-nav.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,51,54,.35) 0%, rgba(46,51,54,.55) 100%);
}
.hero > .inner { position: relative; padding: 90px 24px; max-width: 820px; }
.hero .badge { width: min(240px, 46vw); margin: 0 auto 28px; }
.hero h1 { color: var(--offwhite); text-shadow: 0 2px 18px rgba(46,51,54,.45); }
.hero p {
  color: var(--offwhite);
  font-size: 1.3rem;
  margin: 18px auto 30px;
  max-width: 34em;
  text-shadow: 0 1px 10px rgba(46,51,54,.5);
}
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page banner (interior pages) */

.page-banner {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,51,54,.15) 30%, rgba(46,51,54,.62) 100%);
}
.page-banner .inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 42px; }
.page-banner .eyebrow { color: var(--offwhite); opacity: .9; margin-bottom: .4rem; }
.page-banner h1 { color: var(--offwhite); text-shadow: 0 2px 14px rgba(46,51,54,.5); }

/* ---------- Sections ---------- */

section.block { padding: 78px 0; }
section.block.tight { padding: 56px 0; }

.center { text-align: center; }
.center .lead { max-width: 44em; margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(46,51,54,.18); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Stats band */

.stats {
  background: var(--field);
  color: var(--offwhite);
  padding: 54px 0;
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stats .num { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: var(--offwhite); }
.stats .label { font-size: 1.02rem; opacity: .92; letter-spacing: .02em; }
@media (max-width: 720px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* Cards */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(46,51,54,.10);
  display: flex;
  flex-direction: column;
}
.card img { height: 210px; object-fit: cover; width: 100%; }
.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .body p { flex: 1; }
.card .tag {
  align-self: flex-start;
  font-family: var(--head);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--offwhite);
  background: var(--lake);
  border-radius: 999px;
  padding: .35em 1em;
}
.card .tag.salmon { background: var(--salmon); }
.card .tag.ochre { background: var(--ochre); }

/* Amenities */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}
@media (max-width: 900px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr; } }

.amenity {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 6px 22px rgba(46,51,54,.08);
  text-align: left;
}
.amenity .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.amenity .icon svg { width: 30px; height: 30px; stroke: var(--field); }
.amenity h3 { font-size: 1rem; }
.amenity p { font-size: 1.02rem; }

/* Feature bands (photo + text alternating) */

.band { padding: 78px 0; }
.band.alt { background: #E9E9E2; }

/* Mudflats */

.mudflats {
  background: var(--field);
  color: var(--offwhite);
  padding: 84px 0;
  text-align: center;
}
.mudflats img.logo { width: min(420px, 70vw); margin: 0 auto 26px; }
.mudflats h2, .mudflats p { color: var(--offwhite); }
.mudflats p { max-width: 40em; margin: 0 auto 30px; }

/* ---------- Rate tables ---------- */

.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 40px; }

.rate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(46,51,54,.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rate-card .head {
  background: var(--shadow);
  color: var(--offwhite);
  padding: 22px 26px 18px;
}
.rate-card .head.lake-bg { background: var(--lake); }
.rate-card .head.field-bg { background: var(--field); }
.rate-card .head.wood-bg { background: var(--wood); }
.rate-card .head.ochre-bg { background: var(--ochre); }
.rate-card .head h3 { color: var(--offwhite); margin: 0; }
.rate-card .head .sub { font-size: .98rem; opacity: .9; }
.rate-card .price {
  font-family: var(--head);
  font-weight: 600;
  font-size: 2rem;
  color: var(--shadow);
  padding: 22px 26px 0;
}
.rate-card .price span { font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--wood); }
.rate-card ul { list-style: none; padding: 14px 26px 26px; }
.rate-card ul li { padding: 9px 0; border-bottom: 1px solid rgba(46,51,54,.08); font-size: 1.02rem; }
.rate-card ul li:last-child { border-bottom: none; }
.rate-card ul li strong { color: var(--field); }

.note {
  background: rgba(130,166,156,.16);
  border-left: 4px solid var(--lake);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  margin-top: 34px;
  font-size: 1.02rem;
}
.note.salmon { background: rgba(222,120,92,.12); border-left-color: var(--salmon); }

/* Included list */

.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 34px; margin-top: 26px; list-style: none; }
.included li { padding-left: 30px; position: relative; }
.included li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--salmon);
}
@media (max-width: 640px) { .included { grid-template-columns: 1fr; } }

/* Downloads */

.downloads { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid rgba(46,51,54,.15);
  border-radius: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: var(--shadow);
  font-size: 1rem;
  transition: border-color .15s ease, transform .15s ease;
}
.download:hover { border-color: var(--salmon); transform: translateY(-2px); }
.download svg { width: 20px; height: 20px; stroke: var(--salmon); flex-shrink: 0; }

/* ---------- Rules ---------- */

.rule-group { margin-top: 44px; }
.rule-group h2 { display: flex; align-items: center; gap: 14px; }
.rule-group h2::after { content: ""; flex: 1; height: 2px; background: rgba(46,51,54,.12); border-radius: 2px; }
.rule-group ul { list-style: none; margin-top: 14px; }
.rule-group li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid rgba(46,51,54,.07); }
.rule-group li::before {
  content: "";
  position: absolute; left: 4px; top: 1.35em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lake);
}
.rule-group li strong { color: var(--field); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 860px; margin: 40px auto 0; }
.faq-list details {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(46,51,54,.08);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  font-family: var(--head);
  font-size: .98rem;
  font-weight: 400;
  color: var(--shadow);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--body);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--salmon);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--wood); }
.faq-list .answer { padding: 0 26px 22px; }
.faq-list .answer p { margin-bottom: .6em; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ---------- Photo note ---------- */

.photo-note {
  position: absolute;
  right: 14px;
  top: 14px;
  max-width: 80vw;
  text-align: right;
  z-index: 2;
  font-size: .85rem;
  color: var(--offwhite);
  background: rgba(46,51,54,.55);
  border-radius: 999px;
  padding: .3em 1em;
  letter-spacing: .02em;
}

/* ---------- Contact / location ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid rgba(46,51,54,.1); font-size: 1.1rem; }
.contact-list li span {
  display: block;
  font-family: var(--head);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 2px;
}
.contact-list a { color: var(--shadow); text-decoration: none; }
.contact-list a:hover { color: var(--salmon); }

.map-embed {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(46,51,54,.15);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--shadow); color: var(--offwhite); padding: 70px 0 30px; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

.site-footer img.badge { width: 150px; }
.site-footer h4 {
  color: var(--offwhite);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--offwhite); opacity: .85; text-decoration: none; }
.site-footer a:hover { opacity: 1; color: var(--salmon); }
.site-footer p { opacity: .85; font-size: 1rem; }

.site-footer .base {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(242,242,237,.15);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .92rem;
  opacity: .7;
}
