/* ============================================================
   Andi Kate / Andrea Hecklinger — shared site styles
   Palette + type per Andrea's "Andi Kate Website Content 2026" doc
   and Design Brief v2. Teal is now the dominant structural color;
   navy is scaled back to accent / small-print use only, per her
   confirmed direction.
   ============================================================ */

:root {
  --teal:        #81cfdb; /* primary brand color, from her Instagram */
  --teal-deep:    #2a6f7b; /* darker teal for text-on-cream contrast (headings, links) — deepened for WCAG AA (was #4fa9b8, too low-contrast on cream) */
  --teal-dark:   #458EB7; /* was a deep teal (#215960); now set to the royal blue per request — used for dark-background sections/badges/footer */
  --navy:        #4E6E81; /* accent / small print only, per her note */
  --blue:        #458EB7; /* "royal blue" from her Instagram — confirmed via reference swatch. Not yet applied anywhere; available for future use. */
  --cream:       #FAF6EE; /* background */
  --warm-cream:  #F3E4B3; /* alternate cream — confirmed but not currently in use */
  --border:      #D6E8EE; /* dividers / card borders */
  --gold:        #C4A35A; /* highlight — CTAs, badges */
  --periwinkle:  #6B7FD4; /* secondary highlight option */
  --ink:         #2B3A45; /* body text — dark enough for AA contrast on cream */
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Real photos (replacing placeholders as assets arrive) ── */
.photo {
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo.contain img { object-fit: contain; }

/* ── Placeholder blocks for assets not yet on hand ───────── */
.placeholder {
  border: 2px dashed var(--teal-deep);
  border-radius: 12px;
  background: rgba(129, 207, 219, 0.08);
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  line-height: 1.5;
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { height: 64px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
.brand-name .amp { color: var(--teal-deep); font-style: italic; }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.main-nav a.current,
.main-nav a:hover { color: var(--teal-deep); }
.main-nav a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(196,163,90,0.35); }
.btn-secondary { background: transparent; border-color: var(--teal); color: var(--teal-deep); }
.btn-secondary:hover { background: rgba(129,207,219,0.12); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn[disabled], .btn.btn-pending {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* ── Sections ─────────────────────────────────────────────── */
section { padding-block: clamp(3rem, 8vh, 6rem); }
.section-alt { background: var(--white); }
.section-deep {
  background: var(--teal-dark);
  color: var(--white);
}
.section-deep .eyebrow { color: var(--teal); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.15;
  font-weight: 700;
}
.section-deep h2, .section-deep h3 { color: var(--white); }

h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }

/* ── Headlines that need to stay on one line at typical widths ── */
.h1-tight { font-size: clamp(1.6rem, 4.6vw, 3rem); white-space: nowrap; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink);
  max-width: 60ch;
}
.section-deep p.lede { color: var(--white); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--teal-dark);
  color: var(--white);
  padding-block: 3rem;
}
.site-footer a { text-decoration: none; color: var(--white); }
.site-footer a:hover { color: var(--teal); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-social { display: flex; gap: 1rem; margin-top: 0.75rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
}

/* ── Utility layout ───────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .main-nav { display: none; } /* mobile nav simplified; not built out yet */
}

.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ── Review banner (rolling / marquee-style) ─────────────── */
.review-banner {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vh, 4rem);
}
.review-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.review-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--teal-deep);
  max-width: 70ch;
}
.review-attribution {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 500;
}

/* ── Floating dots (ambient background motion, matches andikate.com) ── */
.floating-dots {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.floating-dots .dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: var(--white);
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.85), 0 0 2px rgba(255,255,255,0.9);
  animation-name: dot-float;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@keyframes dot-float {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  12%  { opacity: 0.9; transform: translate(2px, -8px) scale(1); }
  25%  { opacity: 0.25; }
  38%  { opacity: 1; transform: translate(6px, -22px) scale(1.15); }
  52%  { opacity: 0.3; }
  65%  { opacity: 0.9; transform: translate(10px, -45px) scale(1); }
  80%  { opacity: 0.4; }
  92%  { opacity: 0.7; }
  100% { transform: translate(-10px, -70px) scale(0.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-dots { display: none; }
}

/* ── Photo gallery + lightbox (click a thumbnail to enlarge) ── */
.gallery-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.gallery-row a {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(43,58,69,0.15);
  transition: transform 0.15s ease;
}
.gallery-row a:hover { transform: translateY(-2px) scale(1.03); }
.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 26, 30, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox:target { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: var(--font-body);
  text-decoration: none;
  line-height: 1;
}
