/* =========================================================
   Floyds Knobs Community Club — redesign
   Palette: baby blue · blue · deep blue · sunny yellow
   ========================================================= */

:root {
  /* Brand palette */
  --baby-blue: #BDE3F5;
  --baby-blue-soft: #E8F5FD;
  --sky: #6EC1E4;
  --blue: #2E84C9;
  --blue-dark: #1E5C9C;
  --deep: #16385B;
  --deep-2: #0F2942;
  --yellow: #F6C23E;
  --yellow-dark: #E2A81F;
  --cream: #FBFDFF;
  --white: #ffffff;
  --ink: #21384d;
  --muted: #5b7895;

  /* Type */
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(22, 56, 91, 0.08);
  --shadow: 0 14px 40px rgba(22, 56, 91, 0.12);
  --shadow-lg: 0 28px 70px rgba(22, 56, 91, 0.18);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--deep); line-height: 1.12; font-weight: 700; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue);
  --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .72em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 20px rgba(46, 132, 201, .25);
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.08rem; padding: .85em 1.8em; }
.btn-block { width: 100%; }
.btn-primary { --bg: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 26px rgba(30, 92, 156, .35); }
.btn-yellow { --bg: var(--yellow); --fg: var(--deep); box-shadow: 0 8px 20px rgba(246, 194, 62, .35); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--deep); }
.btn-ghost {
  background: rgba(255,255,255,.7); color: var(--deep); border-color: rgba(22,56,91,.18);
  box-shadow: none; backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--deep); border-color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 253, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,56,91,.07);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(251,253,255,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--deep); }
.brand-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 8px rgba(22,56,91,.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: .2px; color: var(--deep); }
.brand-sub { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.brand-est { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) {
  font-family: var(--font-display); font-weight: 500; color: var(--deep);
  font-size: 1.02rem; position: relative; padding: .2rem 0;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--yellow); border-radius: 3px; transform: scaleX(0); transition: transform .2s ease;
}
.nav > a:not(.btn):hover { color: var(--blue); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: .3rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 10px;
}
.nav-toggle span { height: 3px; border-radius: 3px; background: var(--deep); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--baby-blue-soft) 0%, var(--baby-blue) 55%, #a9dbf3 100%);
  padding: clamp(3rem, 8vw, 6rem) 0 0;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-sun {
  position: absolute; top: clamp(2rem, 9vw, 7rem); left: 50%; transform: translateX(-50%);
  width: clamp(180px, 30vw, 340px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFE08A 0%, #FBC844 55%, #F4B62C 100%);
  box-shadow: 0 0 0 18px rgba(246,194,62,.18), 0 0 90px 30px rgba(246,194,62,.35);
  opacity: .9;
}
.hero-knobs { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(120px, 22vw, 240px); }

.hero-content { position: relative; padding-bottom: clamp(7rem, 16vw, 13rem); text-align: center; }
.hero-eyebrow {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-size: .82rem; color: var(--blue-dark);
  background: rgba(255,255,255,.6); display: inline-block; padding: .4rem 1rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.5px; margin-bottom: 1rem; color: var(--deep); }
.hero-lede { max-width: 38rem; margin: 0 auto 1.8rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #2c4a66; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  list-style: none; padding: 0; margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  display: flex; gap: clamp(1rem, 5vw, 4rem); justify-content: center; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--deep); line-height: 1; }
.hero-stats span { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue-dark); font-weight: 700; margin-top: .35rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--baby-blue-soft); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  font-size: .8rem; color: var(--blue); margin-bottom: .6rem;
}
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section-intro { color: var(--muted); margin-top: .8rem; font-size: 1.08rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -14px; bottom: -22px; width: 118px; height: 118px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow);
  display: grid; place-items: center; grid-auto-flow: column; gap: .35rem; padding: 8px;
}
.about-badge svg { width: 58px; height: 58px; }
.about-badge span { font-family: var(--font-display); font-weight: 700; color: var(--deep); font-size: .9rem; line-height: 1; text-align: center; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.about-copy p { margin-bottom: 1rem; color: #3a5670; }
.link-arrow { font-family: var(--font-display); font-weight: 600; display: inline-block; margin-top: .4rem; }
.link-arrow:hover { transform: translateX(3px); transition: transform .2s; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,56,91,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card-body p { color: var(--muted); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ticks li {
  font-size: .82rem; font-weight: 700; color: var(--blue-dark);
  background: var(--baby-blue-soft); padding: .35rem .8rem; border-radius: 999px;
}

/* ---------- Rentals ---------- */
.rentals-grid { display: grid; grid-template-columns: 1.2fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rentals-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.rentals-copy > p { color: #3a5670; margin-bottom: 1.4rem; max-width: 34rem; }
.occasions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.occasions span {
  font-family: var(--font-display); font-weight: 500; color: var(--deep);
  background: #fff; border: 1.5px solid var(--baby-blue); padding: .5rem 1rem; border-radius: 999px;
  font-size: .95rem; box-shadow: var(--shadow-sm);
}
.rentals-card {
  background: linear-gradient(160deg, var(--deep) 0%, var(--blue-dark) 100%);
  color: #eaf4fb; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.rentals-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 1.2rem; }
.included { list-style: none; padding: 0; display: grid; gap: .85rem; margin-bottom: 1.4rem; }
.included li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.included .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); flex: none; box-shadow: 0 0 0 4px rgba(246,194,62,.25); }
.rentals-note { font-size: .92rem; color: #bcd8ef; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.1rem; }
.rentals-note a { color: var(--yellow); font-weight: 700; }

/* ---------- Gallery ---------- */
/* Wide building shot as a full-width banner, three interiors in an even row below */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  border: none; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden;
  background: #ddeef9; aspect-ratio: 3 / 2; box-shadow: var(--shadow-sm); position: relative;
}
.gallery-wide { grid-column: 1 / -1; aspect-ratio: 2.5 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after {
  content: "⤢"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; background: rgba(22,56,91,.35); opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.3rem; margin-bottom: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--baby-blue-soft); font-size: 1.3rem; box-shadow: var(--shadow-sm);
}
.contact-list h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); margin-bottom: .15rem; }
.contact-list a { color: var(--deep); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(22,56,91,.08); }
.map iframe { width: 100%; height: 280px; border: 0; }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow); border: 1px solid rgba(22,56,91,.06); }
.form-intro { font-family: var(--font-display); font-weight: 600; color: var(--deep); font-size: 1.15rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--deep); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid #d7e6f1; border-radius: var(--radius-sm); background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,132,201,.15);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 1rem; font-weight: 700; color: var(--blue-dark); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: #c7dcef; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.brand--footer .brand-name { color: #fff; }
.brand--footer .brand-sub { color: var(--sky); }
.brand--footer .brand-est { color: #87a7c4; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; color: #9fbdd8; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .6rem; }
.footer-nav a, .footer-contact a { color: #c7dcef; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-contact p { color: #9fbdd8; }
.footer-contact .btn { align-self: flex-start; margin-top: .4rem; }
.site-footer .btn-yellow,
.site-footer .btn-yellow:hover { color: var(--deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .85rem; color: #87a7c4; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,41,66,.92);
  display: none; place-items: center; padding: 5vw; backdrop-filter: blur(4px);
}
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; text-align: center; max-width: 1000px; }
.lightbox img { max-height: 80vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #dcebf9; margin-top: 1rem; font-family: var(--font-display); font-size: 1.05rem; }
.lightbox-close {
  position: absolute; top: 1.3rem; right: 1.6rem; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: var(--yellow); color: var(--deep); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1.2rem 1.5rem 1.8rem; gap: .3rem;
    box-shadow: var(--shadow); border-bottom: 1px solid rgba(22,56,91,.08);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: .8rem .2rem; border-bottom: 1px solid rgba(22,56,91,.07); font-size: 1.1rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: .8rem 0 0; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin-inline: auto; }
  .about-badge { width: 96px; height: 96px; right: 4px; }
  .about-badge svg { width: 46px; height: 46px; }

  .cards { grid-template-columns: 1fr 1fr; }
  .rentals-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand-sub { font-size: .66rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 40px; height: 40px; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-badge { right: 50%; transform: translateX(50%); bottom: -34px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-wide { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
