/* =============================================================================
   LUIS — styles.css
   Playful lime + toe-bean coral on pure white. Rounded, charming, photo-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:            oklch(1 0 0);
  --ink:           oklch(0.24 0.03 150);
  --ink-soft:      oklch(0.43 0.025 150);
  --muted:         oklch(0.52 0.02 150);
  --line:          oklch(0.92 0.012 150);
  --surface:       oklch(0.97 0.03 128);
  --surface-peach: oklch(0.96 0.035 32);

  --primary:       oklch(0.84 0.18 128);
  --primary-bright:oklch(0.88 0.20 126);
  --primary-deep:  oklch(0.55 0.14 134);
  --accent:        oklch(0.70 0.16 30);
  --accent-soft:   oklch(0.91 0.06 32);
  --on-primary:    oklch(0.24 0.06 150);

  --dark:          oklch(0.27 0.04 150);

  --font-display: "Gabarito", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-script:  "Caveat", cursive;

  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px oklch(0.4 0.05 150 / 0.08);
  --shadow-md: 0 14px 34px -14px oklch(0.4 0.08 150 / 0.30);
  --shadow-lg: 0 30px 60px -22px oklch(0.4 0.1 150 / 0.36);

  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-nav: 100;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 3px solid var(--primary-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .6rem 1.1rem; border-radius: var(--radius-pill);
  z-index: 200; transition: top .2s var(--ease-out); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }

.hero__title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
.h2 em { font-style: normal; color: var(--accent); }

.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink); font-weight: 500; }
p { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--primary);
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--on-primary); background: var(--b-bg);
  padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  text-decoration: none; border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  cursor: pointer; white-space: nowrap;
}
.btn::after { content: "🐾"; font-size: .85em; transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--primary-bright); }
.btn:hover::after { transform: translateX(3px) rotate(8deg); }
.btn:active { transform: translateY(-1px); }
.btn--lg { font-size: 1.08rem; padding: 1rem 1.8rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; box-shadow: none; }
.btn--on-dark { color: var(--on-primary); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  /* full-width bar, but content sits in the centered max-width column */
  padding: .85rem max(var(--pad), calc((100% - var(--maxw)) / 2));
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.nav__paw { font-size: 1.15rem; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; color: var(--ink-soft); font-size: .98rem; position: relative; padding: .2rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .25s var(--ease-out); border-radius: 2px; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav .btn--sm { margin-left: .25rem; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn--sm { margin-left: auto; }
}

/* ---------- Layout primitives ---------- */
.section {
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad);
}
.section--wash  { background: var(--surface); }
.section--peach { background: var(--surface-peach); }
.section__head { max-width: var(--maxw); margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section__sub { color: var(--ink-soft); font-size: 1.12rem; margin-top: .75rem; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--primary-deep); margin-bottom: 1rem;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.eyebrow--pulse .dot { box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.70 0.16 30 / 0.55); }
  70%  { box-shadow: 0 0 0 12px oklch(0.70 0.16 30 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.70 0.16 30 / 0); }
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { margin: .2rem 0 1.2rem; }
.hl {
  color: var(--primary-deep);
  position: relative; white-space: nowrap;
}
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.42em;
  background: var(--primary); border-radius: var(--radius-pill);
  z-index: -1; transform: rotate(-1.2deg);
}
.hero__tag { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 40ch; }
.hero__cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 1.8rem 0; }
.hero__socials { display: flex; flex-wrap: wrap; gap: .55rem; }

.facts {
  list-style: none; padding: 1.4rem 0 0; margin: .5rem 0 0;
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; }
.facts .facts__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); letter-spacing: -0.02em; }
.facts .facts__l { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.hero__media { position: relative; }
.hero__badge {
  position: absolute; right: -.5rem; bottom: 1.2rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.15;
  padding: .85rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); transform: rotate(4deg); text-align: center;
}
.hero__badge-em { font-size: 1.7rem; display: inline-block; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.5rem; }
}

/* ---------- Social chips ---------- */
.social {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--ink);
  padding: .55rem .95rem; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: border-color .2s, transform .2s var(--ease-out), background .2s;
}
.social:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }
.social svg { width: 18px; height: 18px; }

/* =============================================================================
   PHOTO / VIDEO SLOTS
   ========================================================================== */
.photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md);
}
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 5; transform: rotate(1.5deg); }
.photo--portrait { aspect-ratio: 4 / 5; }

/* Designed placeholder (when no src yet) */
.placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; place-items: center; gap: .6rem;
  text-align: center; padding: 1.5rem;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(150deg, var(--surface) 0%, oklch(0.95 0.05 128) 100%);
  border: 2px dashed oklch(0.62 0.1 134 / 0.5);
  border-radius: inherit;
  color: var(--primary-deep);
}
.placeholder__paw { font-size: 2.4rem; filter: saturate(1.1); }
.placeholder__label { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.placeholder__hint { font-size: .82rem; color: var(--ink-soft); max-width: 22ch; }
.placeholder__tag {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: oklch(1 0 0 / 0.85); color: var(--primary-deep);
  padding: .25rem .6rem; border-radius: var(--radius-pill);
}
.placeholder__tag--video::before { content: "▶ "; }

/* =============================================================================
   PORTFOLIO GRID
   ========================================================================== */
.grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 230px; grid-auto-flow: row dense; gap: 1rem;
}
.tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tile--tall { grid-row: span 2; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow-lg); }
.tile .placeholder { font-size: .95rem; }

@media (max-width: 520px) {
  .grid { grid-auto-rows: 200px; }
  .tile--tall { grid-row: span 1; }
}

/* =============================================================================
   CONTACT
   ========================================================================== */
.contact { padding: clamp(3rem, 8vw, 6rem) var(--pad); }
.contact__card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(120% 140% at 15% 0%, oklch(0.6 0.14 134 / 0.55) 0%, transparent 50%),
    radial-gradient(120% 140% at 100% 100%, oklch(0.66 0.15 30 / 0.45) 0%, transparent 45%),
    var(--dark);
  color: #fff;
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}
.contact__card .eyebrow { color: var(--primary); }
.contact__card .eyebrow::before { content: ""; }
.contact__title { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.contact__sub { color: oklch(0.9 0.02 150); margin: 1rem auto 2rem; font-size: 1.1rem; max-width: 46ch; }
.contact__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.contact__socials .social { background: oklch(1 0 0 / 0.08); border-color: oklch(1 0 0 / 0.2); color: #fff; }
.contact__socials .social:hover { background: oklch(1 0 0 / 0.16); border-color: var(--primary); }

/* =============================================================================
   FOOTER
   ========================================================================== */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 2.2rem var(--pad); color: var(--muted); font-size: .92rem;
  border-top: 1px solid var(--line);
}
.footer__brand { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.footer__note { font-family: var(--font-script); font-size: 1.25rem; color: var(--primary-deep); }

/* =============================================================================
   SCROLL REVEAL (enhances already-visible content)
   ========================================================================== */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  .btn::after { transition: none; }
  .photo--hero { transform: none; }
}
