/* Club presentation (sbs.config.json → "stylePreset": "club"): the overrides on top of base.css
   for a dive club's site, first made for DoubleD Divers. Colors and fonts come from theme.css. */
:root {
  --abyss: #101113;
  --deep: #d00305;
  --sea: #a80204;
  --teal: #d00305;
  --teal-ink: #a80204;
  --glow: #ffe9ea; /* highlight text on the red bar, banners and black footer, 4.6:1+ on each */
  --sand: #f4f4f4;
  --paper: #ffffff;
  --ink: #171719;
  --muted: #4b4c50;
  --line: #d9dadd;
  --orange: #d00305;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --display: "Alfa Slab One", Georgia, serif; /* headings and brand name: the CMS "Heading font" */
  --label: "Barlow Condensed", "Arial Narrow", sans-serif; /* small headings and prices */
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
/* Where this site differs from sbs-pkg's base.css (loaded first). Kept so switching to base.css
   changed nothing visible; drop a line here to take base.css's version instead. */
body {
  display: block; /* base: a flex column that keeps the footer at the bottom of short pages */
  min-height: 0;
}
.site-header {
  color: inherit;
}
.nav-row {
  gap: normal;
  padding: 0;
}
.brand {
  font-family: inherit;
  font-size: inherit;
}
.nav .btn {
  font-weight: 600; /* base's .nav a is 500 */
}
.lede {
  opacity: 1;
}
.shop-embed-frame iframe {
  border-radius: 0;
  min-height: 0;
}
html {
  scroll-padding-top: 76px;
}
body {
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
}
[hidden] {
  display: none !important;
}
h1, h2, h3 {
  font-family: var(--label);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h1, h2 {
  font-family: var(--display);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
}
h3 {
  font-size: 1.5rem;
}
.wrap {
  width: min(1160px, 100% - 32px);
}
.skip {
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
}
/* Buttons */
.btn {
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border-radius: 8px;
  transition:
  transform 0.15s,
  box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 25%, transparent);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.btn-sm {
  padding: 0.5em 1em;
  font-size: 0.9rem;
}
.btn-light, .site-header .btn:not(.btn-ghost), .hero .btn:not(.btn-ghost) {
  background: #fff;
  color: var(--deep);
  border-color: #fff;
}
/* Header */
.site-header {
  z-index: 50;
  background: color-mix(in srgb, var(--deep) 97%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.nav-row {
  height: 76px;
}
.brand-mark {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
}
.brand-text {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: none;
  letter-spacing: 0.01em;
}
.brand-case {
  text-transform: none;
}
.nav {
  gap: 22px;
}
.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:not(.btn):hover, .nav a[aria-current] {
  color: #fff;
}
.nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
}
/* Hero */
.hero {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
  background:
  linear-gradient(110deg, color-mix(in srgb, var(--deep) var(--hero-shade, 92%), transparent), color-mix(in srgb, var(--sea) var(--hero-shade, 92%), transparent)),
  var(--hero-image, none) center/cover, /* data/theme.json → heroImage */
  var(--deep);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 56ch;
}
.hero-facts span {
  color: rgba(255, 255, 255, 0.95); /* base's 0.75 is 3.5:1 on the red hero */
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  fill: var(--paper);
}
/* Sections */
.section {
  padding: 80px 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head p {
  margin: 0;
}
/* Gear shop */
.shop-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shop-category {
  padding: 24px 26px 24px 0;
}
.shop-category + .shop-category {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.shop-category h3 {
  margin-bottom: 8px;
  text-transform: uppercase;
}
.shop-category p {
  margin: 0;
  color: var(--muted);
}
.shop-embed-frame {
  width: 100%;
  height: 1180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.shop-embed-frame iframe {
  display: block;
  height: 100%;
  border: 0;
  background: var(--paper);
}
.shop-status {
  max-width: 760px;
  padding: 28px;
  border-left: 4px solid var(--teal);
  background: var(--paper);
}
.shop-status h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.shop-status p {
  margin: 0;
  color: var(--muted);
}
/* Prices */
.price {
  margin: 0;
  color: var(--muted);
}
.price span {
  font-family: var(--label);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
/* Policies */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  padding: 26px;
}
.card h3 {
  text-transform: uppercase;
}
.card p {
  margin: 0;
}
/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 68%;
}
.about .role {
  font-weight: 600;
  color: var(--teal-ink);
  margin-top: -6px;
}
.about p {
  color: var(--muted);
}
/* CTA */
.cta {
  background: linear-gradient(135deg, var(--deep), var(--sea));
  padding: 80px 0;
}
.cta-grid {
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.cta p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 52ch;
}
.visit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.visit h3 {
  text-transform: uppercase;
}
.visit address {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.visit p {
  font-size: 0.92rem;
}
.contact-list {
  margin: 14px 0 16px;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.contact-list li {
  justify-content: space-between;
  flex-wrap: wrap;
}
.contact-list span {
  color: rgba(255, 255, 255, 0.9);
}
.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}
/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.foot-row {
  gap: 20px;
}
.foot-row .page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.foot-row img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
/* Social links (data/business.json → business.social); empty ones aren't rendered */
.social a {
  color: rgba(255, 255, 255, 0.85);
}
.social a:hover {
  color: #fff;
}
/* Announcement bar (data/business.json → announcement.text) */
.announce {
  background: var(--abyss);
}
.foot-row a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
/* Links page */
.links-page {
  min-height: 100vh;
  color: #fff;
  background:
  radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--deep) 80%, transparent), transparent 70%),
  linear-gradient(180deg, color-mix(in srgb, var(--abyss) 66%, var(--muted)), var(--abyss)) fixed;
}
.links-avatar {
  margin: 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  object-fit: contain;
  object-position: 50% 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.links-profile h1 {
  font-size: 2.1rem;
  text-transform: uppercase;
  margin: 14px 0 6px;
}
.link-btn.featured span {
  color: rgba(255, 255, 255, 0.9);
}
.link-btn.featured:hover {
  background: var(--sea);
}
/* Content pages (posts and articles; built by generate.mjs) */
.article {
  padding: 56px 0 72px;
  background: var(--paper);
}
.article-wrap {
  width: min(760px, 100% - 32px);
  display: grid;
  gap: 28px;
}
.article-head h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.article-head .eyebrow {
  margin-bottom: 10px;
}
.article .lede {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0;
}
.article-hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero img {
  width: 100%;
  height: auto;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose:empty {
  display: none;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p, .prose ul {
  margin: 0 0 1.1em;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 1.6em 0 0.5em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose a {
  font-weight: 600;
}
.gallery {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--deep);
}
.gallery img {
  height: 100%;
  transition: transform 0.25s;
}
.gallery a:hover img {
  transform: scale(1.04);
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sand);
}
.article-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.article-cta p {
  margin: 0;
  color: var(--muted);
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Responsive */
@media (max-width: 960px) {
  .cta-grid, .about-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.open {
    display: flex;
  }
  .nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav a[aria-current] {
    box-shadow: none;
    color: var(--glow);
  }
  .nav .btn {
    margin-top: 12px;
    justify-content: center;
  }
}
@media (max-width: 620px) {
  .hero {
    padding: 56px 0 96px;
  }
  .section {
    padding: 56px 0;
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .brand-mark {
    width: 56px;
    height: 56px;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .shop-categories {
    grid-template-columns: 1fr;
  }
  .shop-category, .shop-category + .shop-category {
    padding: 18px 0;
    border-left: 0;
  }
  .shop-category + .shop-category {
    border-top: 1px solid var(--line);
  }
  .shop-status {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
