/* ============================================================
   Española (NM) — Candy Red / Midnight / Chrome / Cream
   Hero: split screen, text left, one square photo filling the RIGHT
   half edge-to-edge (no frame, no overlap)
   ============================================================ */

:root {
  --candy: #C0283A;
  --candy-deep: #8C1A2A;
  --candy-pale: #FBEAEC;
  --mid: #1D2233;
  --mid-soft: #2B3148;
  --chrome: #D6DBE2;
  --chrome-deep: #969EAA;
  --sun: #F6B05A;
  --cream: #FBF6EF;
  --white: #FFFFFF;
  --ink: #1B1F2B;
  --muted: #5C6272;
  --muted-2: #9AA0AE;
  --line: #E6E1D8;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 12px;
  --r-lg: 20px;
  --head: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.64; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--mid); line-height: 1.08; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.ce { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.se { padding: 5.5rem 0; }
.se-w { background: var(--white); }
.se-m { background: var(--mid); }
.se-c { background: var(--candy-pale); }
@media (max-width: 860px) { .ce { padding: 0 1.3rem; } .se { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--mid); border-bottom: 3px solid var(--candy); }
.ne { max-width: 1160px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.ne-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ne-logo img { width: 42px; height: 42px; }
.ne-logo span { font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--cream); }
.ne-links { list-style: none; display: flex; gap: 0.4rem; }
.ne-links a { text-decoration: none; font-weight: 500; font-size: 0.93rem; color: rgba(251,246,239,0.74); padding: 0.45rem 0.95rem; border-radius: 999px; transition: background .2s, color .2s; }
.ne-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.ne-links a.active { color: var(--white); background: var(--candy); font-weight: 600; }
.ne-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ne-btn span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
@media (max-width: 860px) {
  .ne { padding: 0.8rem 1.3rem; }
  .ne-links { position: fixed; top: 69px; left: 0; right: 0; background: var(--mid); flex-direction: column; gap: 0.2rem; padding: 0.5rem 1.2rem 1.2rem;
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .ne-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .ne-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.45rem; border-radius: 999px; font-family: var(--body);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-candy { background: var(--candy); color: var(--white); }
.btn-candy:hover { background: var(--candy-deep); }
.btn-mid { background: var(--mid); color: var(--white); }
.btn-mid:hover { background: #10131D; }
.btn-ol { background: transparent; color: var(--mid); border-color: var(--mid); }
.btn-ol:hover { background: var(--mid); color: var(--white); }
.btn-cream { background: var(--cream); color: var(--candy-deep); }
.btn-cream:hover { background: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--candy); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); margin-bottom: 0.9rem; }
.ld { color: var(--muted); max-width: 40rem; }
.hd { margin-bottom: 3rem; }
.hd.c { text-align: center; }
.hd.c .ld { margin: 0 auto; }

/* ---------- Hero: split, photo RIGHT ---------- */
.sp { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(540px, 80vh, 740px); }
.sp-txt { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(2rem, 3.5vw, 3rem) 3rem max(2rem, calc((100vw - 1160px) / 2 + 2.5rem)); background: var(--cream); }
.sp-txt h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); margin-bottom: 1.1rem; }
.sp-txt h1 span { color: var(--candy); }
.sp-txt p { color: var(--muted); font-size: 1.08rem; max-width: 31rem; margin-bottom: 1.8rem; }
.sp-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.sp-img { position: relative; overflow: hidden; background: var(--candy-pale); }
.sp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .sp { grid-template-columns: 1fr; min-height: 0; } .sp-img { order: -1; height: 44vh; } .sp-txt { padding: 2.2rem 1.3rem 2.8rem; } }

/* ---------- Zig-zag steps ---------- */
.zz { display: flex; flex-direction: column; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.zz-r { display: grid; grid-template-columns: 70px 1fr; gap: 1.3rem; align-items: center; background: var(--cream); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; width: 84%; }
.zz-r:nth-child(even) { margin-left: auto; background: var(--candy-pale); }
.zz-r b { width: 70px; height: 70px; border-radius: 50%; background: var(--mid); color: var(--chrome); font-family: var(--head); font-size: 1.7rem; display: flex; align-items: center; justify-content: center; }
.zz-r h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.zz-r p { color: var(--muted); }
@media (max-width: 860px) { .zz-r { width: 100%; grid-template-columns: 54px 1fr; padding: 1.2rem; } .zz-r b { width: 54px; height: 54px; font-size: 1.3rem; } }

/* ---------- Know before you enroll ---------- */
.se-m .ey { color: var(--sun); }
.se-m .h2 { color: var(--white); }
.se-m .ld { color: rgba(255,255,255,0.82); }
.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.kb-c { background: var(--mid-soft); border-radius: var(--r-lg); padding: 1.9rem 1.6rem; border-top: 4px solid var(--candy); }
.kb-c small { display: inline-block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); background: var(--chrome); border-radius: 999px; padding: 0.22rem 0.7rem; margin-bottom: 0.9rem; }
.kb-c h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.kb-c p { color: rgba(255,255,255,0.8); font-size: 0.96rem; }
.kb-c a { color: var(--sun); font-weight: 700; }
.kb-note { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: 1.3rem; }
@media (max-width: 860px) { .kb { grid-template-columns: 1fr; } }

/* ---------- Compare table ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { text-align: left; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; background: var(--mid); color: var(--white); }
.cmp thead th.hl { background: var(--candy); }
.cmp tbody td:first-child { font-weight: 700; color: var(--mid); width: 30%; }
.cmp tbody td.hl { background: var(--candy-pale); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: none; }

/* ---------- Condition search ---------- */
.cs-box { max-width: 900px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 1.8rem; }
.cs-in { width: 100%; font-family: var(--body); font-size: 1.02rem; padding: 0.95rem 1.2rem; border: 2px solid var(--line); border-radius: 999px; outline: none; margin-bottom: 1rem; }
.cs-in:focus { border-color: var(--candy); }
.cs-count { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.cs-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cs-list li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0.42rem 0.9rem; font-size: 0.92rem; font-weight: 500; }
.cs-list li.hide { display: none; }
.cs-none { display: none; color: var(--muted); font-size: 0.95rem; }
.cs-note { text-align: center; margin-top: 1.3rem; color: var(--muted); font-size: 0.95rem; }
.cs-note a { color: var(--candy); font-weight: 700; }

/* ---------- Local ---------- */
.lc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; }
.lc-c { border-radius: var(--r-lg); padding: 2rem; }
.lc-c.a { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--candy); }
.lc-c.b { background: var(--mid); }
.lc-c.b .ey { color: var(--sun); }
.lc-c.b h3 { color: var(--white); }
.lc-c.b p { color: rgba(255,255,255,0.82); }
.lc-c h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 700; color: var(--candy); margin-bottom: 0.7rem; }
.lc-c p { color: var(--muted); }
@media (max-width: 860px) { .lc { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.tq-c { background: var(--white); border-radius: var(--r-lg); padding: 2rem; border-left: 5px solid var(--candy); }
.tq-c p { font-size: 1.06rem; margin-bottom: 1rem; }
.tq-c span { font-weight: 700; font-size: 0.9rem; color: var(--mid); }
@media (max-width: 860px) { .tq { grid-template-columns: 1fr; } }

/* ---------- Numbered FAQ ---------- */
.nq { max-width: 900px; margin: 0 auto; counter-reset: q; }
.nq-i { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.nq-i::before { counter-increment: q; content: counter(q, decimal-leading-zero); font-family: var(--head); font-weight: 700; font-size: 1.8rem; color: var(--candy); line-height: 1; }
.nq-i h3 { font-family: var(--body); font-weight: 700; font-size: 1.04rem; color: var(--ink); margin-bottom: 0.4rem; }
.nq-i p { color: var(--muted); }
.nq-i a { color: var(--candy); font-weight: 700; }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.ov h3:first-of-type { margin-top: 0; }
.ov p { color: var(--muted); line-height: 1.8; }
.ov a { color: var(--candy); font-weight: 700; }
.sr { background: var(--mid); border-radius: var(--r-lg); padding: 1.6rem; }
.sr h4 { font-family: var(--body); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); margin-bottom: 0.8rem; }
.sr a { display: block; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; }
.sr a strong { display: block; color: var(--white); }
.sr a small { color: rgba(255,255,255,0.64); font-size: 0.86rem; }
.sr a:hover strong { color: var(--sun); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cl { background: var(--candy); padding: 4.5rem 0; }
.cl-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cl h2 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 34rem; }
.cl p { color: rgba(255,255,255,0.9); margin-top: 0.4rem; }

/* ---------- Footer ---------- */
footer { background: var(--mid); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fe { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fe p { font-size: 0.92rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.62); }
footer h4 { font-family: var(--body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sun); margin-bottom: 0.9rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
footer a { color: rgba(255,255,255,0.86); text-decoration: none; font-size: 0.94rem; }
footer a:hover { color: var(--sun); }
.fe-b { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fe { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--mid); padding: 3.5rem 0 3rem; border-bottom: 3px solid var(--candy); }
.ph .ey { color: var(--sun); }
.ph h1 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.6rem; }
.ph p { color: rgba(255,255,255,0.8); max-width: 40rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
