/* =========================================================
   321 Native Photography — styles.css  v2
   Vibe: Surfer / Beach Bum / Punk — but with elegance
   Space Coast · Cocoa Beach · Brevard County
   Fonts: Barlow Condensed (punch) + DM Sans (body) + Cormorant (accent)
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Custom Properties
   --------------------------------------------------------- */
:root {
  /* Core palette — pulled from the actual mood board photos */
  --black:          #07090d;
  --bg-dark:        #090d13;
  --bg-mid:         #0e1420;
  --bg-card:        #111826;

  /* The electric teal from that surfer shot water */
  --teal:           #0ccfbe;
  --teal-dim:       #08a898;
  --teal-glow:      rgba(12, 207, 190, 0.12);

  /* The hot pink/magenta from the palm bridge sunset */
  --pink:           #d94f78;
  --pink-dim:       #b03d60;
  --pink-glow:      rgba(217, 79, 120, 0.1);

  /* Rocket arc gold — warm, Space Coast launch energy */
  --gold:           #e8952a;
  --gold-dim:       #c47820;
  --gold-glow:      rgba(232, 149, 42, 0.12);

  /* Sand, shell — coastal warmth */
  --sand:           #c8a96e;
  --sand-light:     #dfc28d;
  --shell:          #f0ece4;
  --shell-dim:      #b8b0a6;

  /* Text */
  --text:           #cdc8c0;
  --text-muted:     #787068;
  --text-light:     #f0ece4;

  /* Borders */
  --border:         rgba(12, 207, 190, 0.12);
  --border-warm:    rgba(200, 169, 110, 0.15);
  --border-dim:     rgba(255, 255, 255, 0.06);

  /* Fonts */
  --font-display:   'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-accent:    'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 11rem;

  /* Layout */
  --max-width:   1200px;
  --nav-height:  72px;
  --radius:      3px;
  --radius-lg:   10px;

  /* Motion */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay — surf zine print texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   3. Layout
   --------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-sm); }
}

.section {
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--space-lg) 0; }
}

/* ---------------------------------------------------------
   4. Typography
   --------------------------------------------------------- */

/* Display — Barlow Condensed: big, punchy, surf brand energy */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.0;
  color: var(--shell);
}

h1 { font-size: clamp(3.5rem, 10vw, 8rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Cormorant italic — where elegance lives inside the punk shell */
.accent, em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

p {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
}

/* Section label eyebrow */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-label--gold  { color: var(--gold); }
.section-label--pink  { color: var(--pink); }
.section-label--muted { color: var(--text-muted); }
.section-label--light { color: var(--shell-dim); }

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 0.75rem;
  font-weight: 300;
}

/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  transition:
    background   0.22s var(--ease),
    color        0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform    0.18s var(--ease),
    box-shadow   0.22s var(--ease);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: var(--black);
  border: 1.5px solid var(--teal);
  font-weight: 600;
}
.btn-primary:hover {
  background: #1de0ce;
  border-color: #1de0ce;
  box-shadow: 0 8px 30px rgba(12, 207, 190, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover {
  background: var(--teal-glow);
  box-shadow: 0 0 20px rgba(12, 207, 190, 0.15);
}

.btn-ghost-light {
  background: transparent;
  color: var(--shell);
  border: 1.5px solid rgba(240, 236, 228, 0.35);
}
.btn-ghost-light:hover {
  border-color: var(--shell);
  background: rgba(240, 236, 228, 0.05);
}

.btn-sand {
  background: var(--gold);
  color: var(--black);
  border: 1.5px solid var(--gold);
  font-weight: 600;
}
.btn-sand:hover {
  background: #f0a035;
  box-shadow: 0 8px 30px rgba(232, 149, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--sand);
  border: 1.5px solid var(--sand);
}
.btn-outline:hover {
  background: var(--sand);
  color: var(--black);
}

.btn-sm  { padding: 0.5rem 1.2rem;  font-size: 0.68rem; }
.btn-lg  { padding: 1rem 2.8rem;    font-size: 0.78rem; }

/* ---------------------------------------------------------
   6. Cookie Banner
   --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--space-md);            /* ~1.5x larger vertical padding */
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35); /* a touch more prominence */
  transition: transform 0.4s var(--ease);
}

.cookie-banner.hidden { transform: translateY(110%); }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 1.05rem;          /* up from 0.82rem (~1.5x) */
  line-height: 1.5;
  color: var(--shell-dim);
  min-width: 240px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-link {
  font-size: 0.95rem;          /* up from 0.72rem */
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-link:hover { color: #1de0ce; }

/* Cookie banner Accept button — larger, high-contrast, easy to tap */
.cookie-actions .btn {
  background: var(--teal);
  color: var(--black);
  border-color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;          /* up from btn-sm 0.68rem */
  padding: 0.85rem 2.2rem;     /* ~1.5x larger tap target */
}
.cookie-actions .btn:hover {
  background: #1de0ce;
  border-color: #1de0ce;
  color: var(--black);
}

/* Cookie banner — mobile: stack content and enlarge tap targets */
@media (max-width: 600px) {
  .cookie-banner { padding: 1.4rem 1.25rem; }
  .cookie-inner  { gap: 1rem; }
  .cookie-inner p { font-size: 1rem; min-width: 0; }
  .cookie-actions { width: 100%; justify-content: space-between; }
  .cookie-actions .btn { flex: 1; padding: 0.95rem 1rem; min-height: 48px; }
}

/* ---------------------------------------------------------
   7. Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-height);
  transition: background 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(9, 13, 19, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-dim);
}

/* While the mobile menu is open the header itself becomes the overlay
   (see the mobile media query below). At all widths: solid background,
   no backdrop-filter, no transition — a filtered/transitioning ancestor
   can become the containing block for descendants and clip the menu. */
.site-header.menu-open {
  background: var(--bg-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
  transform: none;
  transition: none;
  border-bottom-color: var(--border-dim);
}

/* Scroll-lock while the mobile menu is open. JS stores the scroll offset
   in the --scroll-lock-top custom property and restores it on close.
   position:fixed prevents iOS Safari background scroll + rubber-banding. */
body.mobile-menu-open {
  position: fixed;
  top: var(--scroll-lock-top, 0);
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(12, 207, 190, 0.35);
}

.logo-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell-dim);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(12, 207, 190, 0.72);
  transition: color 0.2s;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1.5px;
  background: var(--shell);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover { color: var(--shell); }
.nav-link.active { color: var(--shell); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-highlight { color: var(--gold) !important; }
.nav-highlight::after { background: var(--gold) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 30px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--shell);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  /* When open, the HEADER is the full-screen overlay. The menu lives
     inside it as position:absolute, so it can never be clipped by, or
     escape from, a transformed/filtered/height-constrained ancestor —
     the failure mode that broke the menu after scrolling. */
  .site-header.menu-open {
    position: fixed;
    inset: 0;
    height: 100vh;        /* fallback */
    height: 100dvh;       /* correct under dynamic mobile browser chrome */
    z-index: 2000;        /* above cookie banner (1000) and all content */
    background: var(--bg-dark);
    overflow: hidden;
  }

  /* Keep the logo + hamburger row at its normal height and alignment
     even while the header is expanded to full screen. */
  .site-header.menu-open .nav-container {
    height: var(--nav-height);
  }

  .nav-menu {
    position: absolute;   /* anchored to the header overlay, not the viewport */
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    min-height: calc(100dvh - var(--nav-height));
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-top: 1px solid var(--border-dim);
    visibility: hidden;          /* fully inert when closed */
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link { font-size: 1rem; letter-spacing: 0.14em; }
}

/* ---------------------------------------------------------
   8. Hero Section
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-image-slot,
.hero-placeholder {
  position: absolute;
  inset: 0;
}

.hero-placeholder {
  background:
    radial-gradient(ellipse at 65% 35%, rgba(12, 207, 190, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 75%, rgba(232, 149, 42, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(217, 79, 120, 0.08) 0%, transparent 40%),
    linear-gradient(170deg, #04080f 0%, #070d18 30%, #0a1525 65%, #070f1a 100%);
}

.hero-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(12, 207, 190, 0.04), transparent);
}

/* Hero crossfade slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
}

.hero-slide:nth-child(1) { animation-delay: -1s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 11s; }
.hero-slide:nth-child(4) { animation-delay: 17s; }

@keyframes heroSlide {
  0%     { opacity: 0; }
  4.17%  { opacity: 1; }
  25%    { opacity: 1; }
  29.17% { opacity: 0; }
  100%   { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 9, 13, 0.15) 0%,
    rgba(7, 9, 13, 0.05) 35%,
    rgba(7, 9, 13, 0.65) 70%,
    rgba(7, 9, 13, 0.94) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-sm);
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--shell);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

/* The elegance lives here — Cormorant italic under the bold */
.hero-title .accent-line {
  display: block;
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--teal);
  line-height: 1.4;
  margin-top: 0.35em;
}

.hero-sub {
  max-width: 480px;
  color: var(--text);
  font-weight: 300;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.8s var(--ease-out) 0.35s both;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  animation: fadeIn 1s var(--ease) 1.2s both;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--teal));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.scroll-label {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------------------------------------------------------
   9. Statement Bar
   --------------------------------------------------------- */
.statement-bar {
  padding: var(--space-lg) 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  overflow: hidden;
}

.statement-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(to right, var(--teal), var(--pink), var(--gold));
}

.statement-text {
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--shell-dim);
  line-height: 1.55;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ---------------------------------------------------------
   10. Gallery Grid
   --------------------------------------------------------- */
.section-header { margin-bottom: var(--space-lg); }
.section-header h2 { margin-bottom: var(--space-xs); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}

.gallery-card--tall { grid-row: span 2; }

.gallery-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.gallery-card-img {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.gallery-card--tall .gallery-card-img { min-height: 420px; }

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform 0.6s var(--ease);
}

.img-placeholder[data-category="beach"]   { background: linear-gradient(155deg, #070f1a 0%, #0d2233 40%, rgba(12,207,190,0.08) 100%); }
.img-placeholder[data-category="launch"]  { background: linear-gradient(155deg, #060a10 0%, #0c1520 45%, rgba(232,149,42,0.10) 100%); }
.img-placeholder[data-category="surf"]    { background: linear-gradient(155deg, #050d18 0%, #0a1e30 45%, rgba(12,207,190,0.12) 100%); }
.img-placeholder[data-category="portrait"]{ background: linear-gradient(155deg, #0e0a08 0%, #1a1210 45%, rgba(217,79,120,0.08) 100%); }

.img-placeholder--portrait {
  background: linear-gradient(155deg, #0e0a08 0%, #1a1210 50%, rgba(200,169,110,0.08) 100%);
  min-height: 480px;
}

.gallery-card:hover .img-placeholder { transform: scale(1.05); }

/* Colored top-border reveal on hover */
.gallery-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 2;
}

.gallery-card:nth-child(1)::before { background: var(--teal); }
.gallery-card:nth-child(2)::before { background: var(--pink); }
.gallery-card:nth-child(3)::before { background: var(--gold); }
.gallery-card:nth-child(4)::before { background: var(--teal); }
.gallery-card:hover::before         { transform: scaleX(1); }

.gallery-card-info {
  padding: 1.25rem var(--space-md) 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
}

.gallery-card-info h3 { font-size: 1.5rem; margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.gallery-card-info p  { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.card-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  transition: color 0.2s, letter-spacing 0.25s;
}
.card-link:hover { color: #1de0ce; letter-spacing: 0.2em; }

.section-cta { margin-top: var(--space-lg); text-align: center; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card--tall { grid-row: span 1; }
}

/* ---------------------------------------------------------
   11. About Intro
   --------------------------------------------------------- */
.about-intro {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-dim);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.about-image-wrap { position: relative; }

/* Corner bracket detail — raw / graphic */
.about-image-wrap::before,
.about-image-wrap::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}
.about-image-wrap::before {
  top: -8px; left: -8px;
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}
.about-image-wrap::after {
  bottom: -8px; right: -8px;
  border-bottom: 2px solid var(--pink);
  border-right: 2px solid var(--pink);
}

.about-image-wrap .img-placeholder--portrait { border-radius: var(--radius); }

.about-content h2 { margin-bottom: var(--space-sm); }
.about-content p  { color: var(--text); margin-bottom: var(--space-sm); }
.about-content p:last-of-type { margin-bottom: var(--space-md); }

/* ---------------------------------------------------------
   12. Brevard ABCs Feature
   --------------------------------------------------------- */
.brevard-abcs-feature {
  position: relative;
  background: var(--black);
  overflow: hidden;
  border-top: 1px solid var(--border-dim);
}

.brevard-abcs-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--pink), transparent);
}

.abcs-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(232,149,42,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 60%, rgba(12,207,190,0.06) 0%, transparent 50%);
}

.abcs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .abcs-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.abcs-content h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.abcs-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--shell-dim);
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.abcs-content p  { color: var(--text); margin-bottom: var(--space-sm); }
.abcs-ctas       { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }

/* Book Cover */
.book-cover-placeholder {
  aspect-ratio: 3/4;
  max-width: 320px;
  margin: 0 auto;
  background: linear-gradient(145deg, #0c1825 0%, #0f2233 50%, #0e1f2e 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232,149,42,0.2);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.5s var(--ease);
}
.book-cover-placeholder:hover { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
}

/* 3D effect wrapper for real book cover images */
.book-cover-3d {
  display: block;
  position: relative;
  max-width: 510px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: perspective(900px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.5s var(--ease);
  box-shadow: -6px 6px 0 rgba(0,0,0,0.35), 0 40px 80px rgba(0,0,0,0.55);
}
.book-cover-3d:hover { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }
.book-cover-3d::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 12px;
  background: linear-gradient(to right, rgba(0,0,0,0.45), transparent);
  z-index: 1;
  pointer-events: none;
}
.book-cover-3d img {
  display: block;
  width: 100%;
  height: auto;
}

.book-cover-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: var(--space-md);
}

.book-cover-title {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.book-cover-sub {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--shell-dim);
  text-transform: none;
}

/* ---------------------------------------------------------
   13. Credibility Grid
   --------------------------------------------------------- */
.credibility {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dim);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

@media (max-width: 900px) { .credibility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .credibility-grid { grid-template-columns: 1fr; } }

.cred-item {
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.cred-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.cred-item:nth-child(1)::before { background: var(--teal); }
.cred-item:nth-child(2)::before { background: var(--gold); }
.cred-item:nth-child(3)::before { background: var(--pink); }
.cred-item:nth-child(4)::before { background: var(--teal); }

.cred-item:hover { background: #151d2a; }
.cred-item:hover::before { transform: scaleX(1); }

.cred-icon { font-size: 1.4rem; margin-bottom: var(--space-sm); }
.cred-item h3 { font-size: 1.3rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; color: var(--shell); }
.cred-item p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ---------------------------------------------------------
   14. Contact CTA
   --------------------------------------------------------- */
.contact-cta {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-dim);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(12,207,190,0.04), transparent 70%);
  pointer-events: none;
}

.contact-cta-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.contact-cta h2 { margin-bottom: var(--space-sm); }
.contact-cta p  { color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ---------------------------------------------------------
   15. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--black);
}

.site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, var(--teal) 0%, var(--pink) 50%, var(--gold) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-dim);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: var(--space-sm); }
.footer-tagline { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-redirect { font-size: 0.8rem; color: var(--text-muted); }
.footer-redirect a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.footer-redirect a:hover { color: #1de0ce; }

/* Social links — footer + contact + about */
.social-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.social-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(12, 207, 190, 0.06);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
/* Inline label variant for contact page */
.social-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(12, 207, 190, 0.72);
  transition: color 0.2s;
}
.social-link-label:hover { color: var(--teal); }
.social-link-label svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.footer-nav-heading {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a  { font-size: 0.85rem; color: var(--shell-dim); transition: color 0.2s; }
.footer-nav a:hover { color: var(--teal); }

.footer-bottom { padding: var(--space-md) 0; }
.footer-bottom p { font-size: 0.72rem; color: var(--text-muted); text-align: center; }

/* ---------------------------------------------------------
   16. Page Header (inner pages)
   --------------------------------------------------------- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg);
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 2px;
  background: var(--teal);
}

.page-header h1 { margin-bottom: var(--space-xs); }
.page-header p  { color: var(--text-muted); max-width: 560px; }

/* ---------------------------------------------------------
   17. Forms
   --------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #0c1520;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 207, 190, 0.08);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------------------------------------------------------
   18. Animations
   --------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.4); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible   { opacity: 1; transform: translateY(0); }
.reveal-delay-1   { transition-delay: 0.1s; }
.reveal-delay-2   { transition-delay: 0.2s; }
.reveal-delay-3   { transition-delay: 0.3s; }
.reveal-delay-4   { transition-delay: 0.4s; }

/* ---------------------------------------------------------
   19. Utility
   --------------------------------------------------------- */
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-pink   { color: var(--pink); }
.text-sand   { color: var(--sand); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm       { margin-top: var(--space-sm); }
.mt-md       { margin-top: var(--space-md); }
.mt-lg       { margin-top: var(--space-lg); }
