/* ============================================================
   Lexa & amigos — warm, playful dog-therapy site
   ============================================================ */

:root {
  --cream: #fff7ea;
  --cream-2: #fdeecd;
  --card: #ffffff;
  --brown: #4a3227;
  --brown-soft: #7a5a48;
  --sun: #f6b13f;
  --sun-deep: #ec9a1e;
  --terra: #e5734d;
  --terra-deep: #d05e39;
  --sky: #7cc7d6;
  --sky-deep: #59b0c1;
  --line: #f0e2c9;

  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --radius: 28px;
  --shadow: 0 24px 48px -26px rgba(74, 50, 39, 0.4);

  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23e5734d'%3E%3Cellipse cx='20' cy='27' rx='9' ry='8'/%3E%3Cellipse cx='9' cy='18' rx='4' ry='5'/%3E%3Cellipse cx='31' cy='18' rx='4' ry='5'/%3E%3Cellipse cx='14' cy='10' rx='3.6' ry='4.6'/%3E%3Cellipse cx='26' cy='10' rx='3.6' ry='4.6'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--brown); }
h1 em, h2 em { font-style: normal; color: var(--terra); }
p { margin: 0 0 1rem; color: var(--brown-soft); }
p:last-child { margin-bottom: 0; }
a { color: var(--terra-deep); text-decoration: none; }
strong { color: var(--brown); font-weight: 800; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--brown); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.7rem; border-radius: 999px; cursor: pointer;
  border: 3px solid transparent; transition: transform .16s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn-sm { padding: .5rem 1.15rem; font-size: .95rem; border-width: 2px; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 12px 22px -12px var(--terra); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-soft { background: #fff; color: var(--terra-deep); border-color: var(--sun); }
.btn-soft:hover { background: var(--cream-2); }
.btn-white { background: #fff; color: var(--terra-deep); }
.btn-white:hover { background: var(--cream-2); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--terra-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 234, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 2px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 22px -20px rgba(74,50,39,.6); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--terra); }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--brown); }
.brand-text span { color: var(--terra); font-weight: 600; }
.brand-paw { display: inline-flex; transform: rotate(-12deg); }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--brown-soft); font-weight: 700; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 3px; background: var(--sun); border-radius: 3px; transition: width .2s; }
.nav a:hover { color: var(--brown); }
.nav a:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.menu-toggle span { width: 24px; height: 3px; background: var(--brown); border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; padding-bottom: clamp(3rem, 8vw, 5rem); }
.eyebrow { display: inline-block; background: var(--cream-2); color: var(--terra-deep); font-weight: 800; font-size: .85rem; padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; margin-bottom: 1.3rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--brown-soft); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1rem; }
.hero-note { font-size: .95rem; color: var(--brown-soft); display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.hero-note::before { content: "🐾"; }

.hero-visual { display: grid; place-items: center; }
.dog-frame {
  width: min(360px, 82vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--sun), var(--sun-deep));
  display: grid; place-items: center; box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.dog { width: 84%; height: 84%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

/* floating paws */
.paw-deco { position: absolute; width: 46px; height: 46px; background: var(--paw); background-size: contain; background-repeat: no-repeat; opacity: .5; }
.p1 { top: 14%; left: 6%; transform: rotate(-20deg); animation: drift 7s ease-in-out infinite; }
.p2 { top: 62%; left: 46%; width: 30px; height: 30px; transform: rotate(15deg); opacity: .35; animation: drift 9s ease-in-out infinite .5s; }
.p3 { top: 22%; right: 8%; width: 36px; height: 36px; transform: rotate(25deg); opacity: .4; animation: drift 8s ease-in-out infinite 1s; }
.p4 { top: 12%; right: 10%; opacity: .25; animation: drift 8s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-15deg); } 50% { transform: translateY(-16px) rotate(10deg); } }

.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; }
.section-sun { background: var(--sun); }
.section-sun h2, .section-sun .section-tag { color: var(--brown); }
.section-sky { background: var(--sky); }
.section-tag { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 800; color: var(--terra-deep); margin-bottom: .7rem; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.section-head { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section-sub { font-size: 1.1rem; color: var(--brown-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; }

/* quote card */
.quote-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.big-quote { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--brown); margin: 0; }
.quote-paw { position: absolute; bottom: -18px; right: 24px; font-size: 2.5rem; transform: rotate(-15deg); }

/* benefit cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 16px 32px -26px rgba(74,50,39,.5); transition: transform .2s, box-shadow .2s; }
.card:nth-child(even) { transform: rotate(-1deg); }
.card:hover { transform: translateY(-6px) rotate(0deg); box-shadow: var(--shadow); }
.card-emoji { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.card p { font-size: .98rem; margin: 0; }

/* programs */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.program { background: rgba(255,255,255,.92); border-radius: var(--radius); padding: 1.7rem; text-align: center; box-shadow: 0 16px 32px -26px rgba(74,50,39,.5); transition: transform .2s; }
.program:hover { transform: translateY(-6px); }
.program h3 { font-size: 1.25rem; margin-bottom: .4rem; color: var(--terra-deep); }
.program p { font-size: .95rem; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.step { background: var(--card); border-radius: var(--radius); padding: 1.7rem; box-shadow: 0 16px 32px -26px rgba(74,50,39,.5); text-align: center; }
.step-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--brown); font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; margin: 0; }

/* dogs */
.dogs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.dog-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.dog-card:hover { transform: translateY(-6px) rotate(-1deg); }
.dog-card.star { outline: 3px solid var(--terra); outline-offset: -3px; }
.dog-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--terra); color: #fff; font-family: var(--display); font-weight: 600; font-size: .8rem; padding: .25rem .9rem; border-radius: 999px; white-space: nowrap; }
.dog-photo { display: grid; place-items: center; width: 96px; height: 96px; margin: .5rem auto 1rem; border-radius: 50%; background: var(--cream-2); font-size: 3rem; }
.dog-card h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.dog-breed { font-weight: 800; color: var(--sky-deep); font-size: .9rem; margin-bottom: .7rem; }
.dog-card p { font-size: .96rem; }

/* CTA */
.section-cta { position: relative; background: var(--terra); color: #fff5ee; padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; overflow: hidden; }
.cta-inner { max-width: 620px; margin-inline: auto; position: relative; z-index: 1; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255,245,238,.9); font-size: 1.15rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin: 2rem 0 1.75rem; }
.cta-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; font-weight: 700; font-size: .92rem; color: rgba(255,245,238,.82); }
.cta-meta li { display: flex; align-items: center; gap: .4rem; }
.cta-meta li:not(:first-child)::before { content: "🐾"; margin-right: 1rem; font-size: .8rem; }
.section-cta .paw-deco { width: 120px; height: 120px; opacity: .12; filter: brightness(0) invert(1); }

/* footer */
.site-footer { background: var(--brown); color: #e8d8cc; padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-credit { color: #e8d8cc; }
.footer-credit:hover { color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .dogs { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .quote-card { transform: none; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); padding: 1.25rem clamp(1.25rem,5vw,2.5rem) 1.75rem; border-bottom: 2px solid var(--line); gap: 1.1rem; }
  .header-inner .btn-sm { display: none; }
  .menu-toggle { display: flex; }
  .cards, .programs, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
