/* ==========================================================================
   Svapas: brand tokens & base styles
   Palette: Peacock Jewel Tones
   ========================================================================== */

/* Headings font: "Svapas Serif", a Latin subset of TeX Gyre Pagella (GUST
   Font License), a Palatino-style serif matching the logo's P052 wordmark.
   Self-hosted; see fonts/README-svapas-serif.txt. */
@font-face { font-family: 'Svapas Serif'; src: url('../fonts/svapas-serif-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Svapas Serif'; src: url('../fonts/svapas-serif-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Svapas Serif'; src: url('../fonts/svapas-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Svapas Serif'; src: url('../fonts/svapas-serif-bolditalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --color-teal: #0f5c57;
  --color-teal-dark: #0a413d;
  --color-pink: #c0447a;
  --color-pink-dark: #9c3363;
  --color-gold: #c89b3c;
  --color-gold-light: #e4c876;
  --color-ivory: #fdf8f1;
  --color-ivory-dim: #f6ede0;
  --color-ink: #26221d;
  --color-ink-soft: #58524a;
  --color-line: #e6dac6;

  --font-display: 'Svapas Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-soft: 0 12px 32px -16px rgba(15, 92, 87, 0.28);
  --shadow-card: 0 6px 20px -8px rgba(38, 34, 29, 0.18);

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-teal-dark);
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); }
h3 { font-size: 1.35rem; }

.hero h1 { font-size: clamp(1.9rem, 3vw + 0.9rem, 3rem); margin-bottom: 0.35em; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-pink);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--color-gold);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-ivory);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-teal-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.btn-ghost:hover { background: var(--color-teal); color: var(--color-ivory); }

.btn-pink {
  background: var(--color-pink);
  color: var(--color-ivory);
  box-shadow: 0 12px 28px -14px rgba(192, 68, 122, 0.55);
}
.btn-pink:hover { background: var(--color-pink-dark); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  color: #A9782B;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; }
/* Full sun + wordmark logo image (brown in the header, yellow in the footer) */
.logo-img { display: block; height: 52px; width: auto; }
.footer-logo .logo-img { height: 48px; }
@media (max-width: 560px) {
  .logo-img { height: 42px; }
  .footer-logo .logo-img { height: 42px; }
}
.logo span.dot { color: var(--color-pink); }
.logo-accent, .footer-logo .logo-accent { color: inherit; }
.logo small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--color-teal-dark); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--color-teal-dark);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-ivory);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid var(--color-line); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 85% 12%, rgba(200, 155, 60, 0.16), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(192, 68, 122, 0.14), transparent 40%),
    var(--color-ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-grid-image-narrow { grid-template-columns: 0.8fr 1.2fr; }
.hero-grid-image-wide-end { grid-template-columns: 0.9fr 1.1fr; }

/* Hero text is much taller than its image; align the image to the top
   of the text block instead of centering it in the (taller) row, which
   left a large empty gap above it. */
.hero .hero-grid { align-items: start; }

/* Between the mobile stack (900px) and the container's own max-width (1180px),
   the hero's stat/button rows don't have room for the wider image column,
   so fall back to the balanced split until there's space again. */
@media (max-width: 1179px) {
  .hero-grid-image-wide-end { grid-template-columns: 1.1fr 0.9fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
}

@media (max-width: 560px) {
  .hero { padding: 32px 0 56px; }
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-pink);
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.9em;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--color-teal);
}
.hero-stat span {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}

/* ---------- Placeholder art tiles (until real photos are added) ---------- */
.art-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: inherit;
  color: var(--color-ivory);
  background:
    linear-gradient(180deg, rgba(15,92,87,0) 40%, rgba(10,20,18,0.55) 100%),
    var(--ph-bg, linear-gradient(135deg, var(--color-teal), var(--color-teal-dark)));
  font-family: var(--font-body);
}
.art-placeholder .ph-motif {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
}
.art-placeholder .ph-label {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.art-placeholder .ph-label small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.72rem;
  margin-top: 2px;
}

.ph-pink   { --ph-bg: linear-gradient(135deg, var(--color-pink), var(--color-pink-dark)); }
.ph-gold   { --ph-bg: linear-gradient(135deg, var(--color-gold), #a97e28); }
.ph-teal   { --ph-bg: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark)); }
.ph-ink    { --ph-bg: linear-gradient(135deg, #4a4038, #26221d); }

/* ---------- Real photo tiles ---------- */
.photo-tile {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--color-ivory-dim);
}
/* A photo on top of a card with text below it (homepage questions) */
.photo-tile.card-photo { height: auto; aspect-ratio: 4 / 3; }
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-tile .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: var(--color-ivory);
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(15,92,87,0) 0%, rgba(10,20,18,0.62) 100%);
}
.photo-tile .photo-caption small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.72rem;
  margin-top: 2px;
}
.card .photo-tile { aspect-ratio: 4/3; border-radius: 0; }

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  width: 62px; height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.55);
  border: 2px solid rgba(253, 248, 241, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.play-badge svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--color-ivory); }
.card:hover .play-badge { background: var(--color-pink); transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Section shells ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--color-ivory-dim); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* A card spanning two grid columns; back to one column on phones, where
   the grid itself is a single column. */
.card-wide { grid-column: span 2; }
@media (max-width: 560px) { .card-wide { grid-column: auto; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card-body { padding: 22px 22px 26px; }
.card .art-placeholder { aspect-ratio: 4/3; border-radius: 0; }

/* ---------- Skills / tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-ivory-dim);
  border: 1px solid var(--color-line);
  color: var(--color-teal-dark);
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.quote-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-pink), var(--color-gold));
  flex-shrink: 0;
}
.quote-author strong { display: block; font-size: 0.92rem; color: var(--color-ink); }
.quote-author span { font-size: 0.78rem; color: var(--color-ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--color-ivory);
  color: var(--color-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 87, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--color-ink-soft); margin-top: 10px; }

/* Checkbox groups (Svapas Circle interest list) */
.choice-group { border: 0; padding: 0; min-width: 0; }
.choice-group legend {
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  margin-bottom: 10px;
}
.field-hint { font-weight: 400; color: var(--color-ink-soft); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.field .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-ivory);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-ink);
  cursor: pointer;
}
.field .choice input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-teal);
}
.field .choice:has(input:checked) { border-color: var(--color-teal); background: rgba(15, 92, 87, 0.06); }
.field .choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(15, 92, 87, 0.12); }
.choice-group.is-invalid .choice { border-color: #b3261e; }
.form-callout {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-ivory);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* ---------- Filter chips (portfolio) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--color-teal); }
.filter-chip.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-ivory);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-teal-dark), var(--color-teal));
  color: var(--color-ivory);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
}
.cta-band h2 { color: var(--color-ivory); }
.cta-band p { color: rgba(253, 248, 241, 0.82); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Timeline (About page) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--color-line); }
.timeline-item { position: relative; padding-bottom: 38px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-pink);
  border: 3px solid var(--color-ivory);
  box-shadow: 0 0 0 2px var(--color-pink);
}
.timeline-item h4 { margin-bottom: 4px; color: var(--color-teal-dark); }
.timeline-item .tl-year { font-size: 0.78rem; color: var(--color-gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-teal-dark);
  color: rgba(253, 248, 241, 0.85);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.95fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--color-ivory);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-gold-light); }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-ivory);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .logo-mark { width: 42px; height: 42px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(253, 248, 241, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--color-pink); border-color: var(--color-pink); }
.footer-bottom {
  border-top: 1px solid rgba(253, 248, 241, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(253, 248, 241, 0.6);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(192, 68, 122, 0.12), transparent 45%),
    var(--color-ivory-dim);
  border-bottom: 1px solid var(--color-line);
}
.page-hero p { max-width: 560px; margin: 0 auto; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 18, 15, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; max-height: 90vh; overflow: auto; }
.lb-photo { text-align: center; }
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lb-video { text-align: center; }
.lb-video video {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}
.lightbox .photo-caption {
  position: static;
  background: none;
  color: var(--color-ivory);
  padding: 14px 4px 0;
}
.lightbox .photo-caption small { opacity: 0.75; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  color: #fff; font-size: 1.8rem; cursor: pointer; background: none; border: none;
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.badge-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.14);
  color: #8a6a1f;
  border: 1px dashed var(--color-gold);
  margin-bottom: 20px;
}
