/* CAL Events Cooper City - site styles
   Colors and fonts live in :root. Change them here and every page follows. */

:root {
  --cream: #fdfcf7;
  --cream-2: #f5f1e8;
  --sand: #e8e1d4;
  --taupe: #a89b8d;
  --stone: #979189;
  --brown: #7d6b5d;
  --bark: #43311f;
  --ink: #2c2a27;
  --leaf: #2f3b35;
  --leaf-dark: #24302a;
  --white: #ffffff;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bark);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1rem;
}
.lede { font-size: 1.1rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
section.alt { background: var(--cream-2); }
section.dark { background: var(--leaf); color: var(--sand); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--cream); }
section.dark .eyebrow { color: var(--taupe); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border: 1px solid var(--bark);
  border-radius: var(--radius);
  background: var(--bark);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); }
.btn.ghost { background: transparent; color: var(--bark); }
.btn.ghost:hover { background: var(--bark); color: var(--cream); }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--bark); }
.btn.light:hover { background: var(--white); }
.btn.ghost-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn.ghost-light:hover { background: var(--cream); color: var(--bark); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions.center { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--bark);
  padding: .4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--bark); }
.nav a.btn { padding: .6rem 1.2rem; color: var(--cream); border-bottom: 1px solid var(--bark); }
.nav a.btn:hover { color: var(--cream); }
.nav .ig { display: inline-flex; padding: 0; border: 0; }
.nav .ig img { width: 22px; height: 22px; }
.menu-btn {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  color: var(--bark);
}
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand);
    padding: .5rem 1rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--sand); }
  .nav .btn { margin-top: 1rem; text-align: center; }
  .nav .ig { margin-top: 1rem; align-self: flex-start; }
}

/* Hero */
.hero {
  position: relative; min-height: 78vh; display: grid; place-items: center;
  color: var(--cream); text-align: center; padding: 6rem 0;
  isolation: isolate; overflow: hidden;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,24,22,.35) 0%, rgba(20,24,22,.55) 100%);
}
.hero h1 { color: var(--cream); margin-bottom: 1rem; }
.hero p { max-width: 720px; margin-inline: auto; font-size: 1.05rem; color: rgba(253,252,247,.92); }
.hero .actions { margin-top: 2rem; }
.hero.short { min-height: 52vh; }

/* Split layouts */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.split.rev > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split img.wide { aspect-ratio: 4 / 3; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
}

/* Image strips and galleries */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .trio { grid-template-columns: 1fr; } .trio img { aspect-ratio: 4 / 3; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .gallery, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card .body { padding: 1.5rem; }
.card h3 { margin-bottom: .35rem; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.quote {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 2rem 1.75rem; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 4rem; line-height: 1;
  color: var(--taupe); position: absolute; top: .75rem; left: 1.25rem;
}
.quote p { padding-top: 1.75rem; font-size: .98rem; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }

/* Feature rows (enhancements) */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature.rev > :first-child { order: 2; }
.feature .pics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.feature .pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.feature .pics img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.rev > :first-child { order: 0; }
}

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.fact { border-top: 1px solid var(--taupe); padding-top: 1rem; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--bark); font-weight: 400; }
.fact span { font-size: .9rem; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 2rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--taupe); outline-offset: 1px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: .85rem; color: var(--stone); }
.form-status { margin-top: 1rem; font-size: .95rem; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Article (journal) */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.5rem; }
.article h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.article .tip {
  background: var(--cream-2); border-left: 3px solid var(--taupe);
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.article .tip strong { color: var(--bark); }
.post-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.post-list li { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.75rem; }
.post-list a { text-decoration: none; }
.post-list h3 { margin-bottom: .35rem; }
.post-list p { font-size: .95rem; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta p { max-width: 640px; margin-inline: auto; }
.cta .actions { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--leaf-dark); color: var(--taupe); padding: 3.5rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.site-footer img.logo-light { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.site-footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: .75rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,24,22,.94);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer; padding: .75rem;
  font-size: 2rem; line-height: 1;
}
.lightbox .close { top: .75rem; right: 1rem; }
.lightbox .prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: var(--taupe); font-size: .8rem; letter-spacing: .14em; }

.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  .eyebrow { font-size: .68rem; letter-spacing: .16em; }
  .hero p { font-size: .98rem; }
}
