/* ============================================================
   Denton (TX) — Plum / Mustard / Teal / Cream
   Hero: text left, 3 photos crossfading inside one rounded frame on
   the right (4s each, 12s cycle; only one visible at a time)
   ============================================================ */

:root {
  --plum: #5B3256;
  --plum-deep: #40223C;
  --plum-soft: #F3EAF1;
  --must: #E3B23C;
  --must-deep: #B8891C;
  --must-pale: #FCF4DE;
  --teal: #2A7F7A;
  --teal-soft: #E4F2F1;
  --cream: #FBF6EC;
  --white: #FFFFFF;
  --ink: #241E24;
  --muted: #625A62;
  --muted-2: #A098A0;
  --line: #E7DFE2;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 12px;
  --r-lg: 20px;
  --head: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'DM Sans', -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; font-size: 1.03rem; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; color: var(--plum-deep); line-height: 1.08; letter-spacing: -0.015em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cd { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.sd { padding: 5.5rem 0; }
.sd-w { background: var(--white); }
.sd-p { background: var(--plum); }
.sd-m { background: var(--must-pale); }
@media (max-width: 860px) { .cd { padding: 0 1.3rem; } .sd { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--plum-deep); }
.nd { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.nd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nd-logo img { width: 42px; height: 42px; }
.nd-logo span { font-family: var(--head); font-weight: 800; font-size: 1.12rem; color: var(--cream); }
.nd-links { list-style: none; display: flex; gap: 0.4rem; }
.nd-links a { text-decoration: none; font-weight: 500; font-size: 0.94rem; color: rgba(251,246,236,0.74); padding: 0.45rem 0.95rem; border-radius: 999px; transition: background .2s, color .2s; }
.nd-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nd-links a.active { color: var(--plum-deep); background: var(--must); font-weight: 700; }
.nd-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nd-btn span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
@media (max-width: 860px) {
  .nd { padding: 0.8rem 1.3rem; }
  .nd-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--plum-deep); 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; }
  .nd-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nd-btn { display: flex; }
}

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

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); 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: framed crossfade ---------- */
.hero { padding: 4rem 0 4.5rem; }
.hero-g { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.6rem); margin-bottom: 1.2rem; }
.hero h1 span { color: var(--teal); }
.hero p { color: var(--muted); font-size: 1.07rem; max-width: 31rem; margin-bottom: 2rem; }
.hero-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.frm { position: relative; width: 100%; max-width: 430px; margin-left: auto; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--plum-soft); border: 8px solid var(--white); box-shadow: 12px 12px 0 var(--must); }
.frm-s { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: fade 12s infinite; }
.frm-s:nth-child(1) { animation-delay: 0s; }
.frm-s:nth-child(2) { animation-delay: 4s; }
.frm-s:nth-child(3) { animation-delay: 8s; }
@keyframes fade { 0% { opacity: 0; } 8% { opacity: 1; } 33.33% { opacity: 1; } 41.33% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .frm-s { animation: none; } .frm-s:first-child { opacity: 1; } }
@media (max-width: 860px) { .hero { padding: 2.5rem 0 3.5rem; } .hero-g { grid-template-columns: 1fr; gap: 2.5rem; } .frm { margin: 0 auto; max-width: 330px; } }

/* ---------- Progress steps ---------- */
.pg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.pg-i { background: var(--cream); border-radius: var(--r-lg); padding: 1.6rem 1.4rem; }
.pg-bar { display: flex; gap: 5px; margin-bottom: 1.2rem; }
.pg-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.pg-bar span.on { background: var(--teal); }
.pg-i small { display: block; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.35rem; }
.pg-i h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pg-i p { color: var(--muted); font-size: 0.95rem; }
.nocard { margin-top: 1.5rem; text-align: center; color: var(--muted); }
.nocard b { color: var(--plum-deep); }
@media (max-width: 960px) { .pg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pg { grid-template-columns: 1fr; } }

/* ---------- Students ---------- */
.sd-p .ey { color: var(--must); }
.sd-p .h2 { color: var(--white); }
.sd-p .ld { color: rgba(255,255,255,0.84); }
.stu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.stu-c { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-lg); padding: 1.9rem 1.6rem; }
.stu-c small { display: inline-block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum-deep); background: var(--must); border-radius: 999px; padding: 0.22rem 0.7rem; margin-bottom: 0.9rem; }
.stu-c h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; }
.stu-c p { color: rgba(255,255,255,0.82); font-size: 0.96rem; }
.stu-note { color: rgba(255,255,255,0.62); font-size: 0.88rem; margin-top: 1.3rem; }
@media (max-width: 860px) { .stu { grid-template-columns: 1fr; } }

/* ---------- Hemp vs TCUP table ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; min-width: 620px; 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.84rem; letter-spacing: 0.05em; text-transform: uppercase; background: var(--plum-deep); color: var(--white); }
.cmp thead th.hl { background: var(--teal); }
.cmp tbody td:first-child { font-weight: 700; color: var(--plum-deep); width: 26%; }
.cmp tbody td.hl { background: var(--teal-soft); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp-note { margin-top: 1.2rem; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* ---------- Allowed ---------- */
.al { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.al-c { background: var(--white); border-radius: var(--r-lg); padding: 1.9rem; border: 1px solid var(--line); }
.al-c h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.al-c ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.al-c li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.al-c.yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.al-c.no li::before { content: "\2715"; position: absolute; left: 0; color: var(--plum); font-weight: 800; }
@media (max-width: 760px) { .al { grid-template-columns: 1fr; } }

/* ---------- Conditions ---------- */
.chips-wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.93rem; font-weight: 600; color: var(--plum-deep); }
.chips span.new { border-color: var(--must); background: var(--must-pale); color: var(--must-deep); }
.chips-note { margin-top: 1.3rem; color: var(--muted); font-size: 0.93rem; }
.chips-note a { color: var(--teal); 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-top: 5px solid var(--teal); }
.lc-c.b { background: var(--plum-soft); }
.lc-c h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 700; color: var(--teal); margin-bottom: 0.7rem; }
.lc-c p { color: var(--muted); margin-bottom: 0.7rem; }
.lc-c p:last-child { margin-bottom: 0; }
.lc-c a { color: var(--plum); font-weight: 700; }
@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(--must); }
.tq-c p { font-size: 1.08rem; margin-bottom: 1rem; }
.tq-c span { font-weight: 700; font-size: 0.9rem; color: var(--teal); }
@media (max-width: 860px) { .tq { grid-template-columns: 1fr; } }

/* ---------- Chevron accordion ---------- */
.ac { max-width: 880px; margin: 0 auto; }
.ac details { background: var(--white); margin-bottom: 0.6rem; border: 1px solid var(--line); border-radius: var(--r); }
.ac details[open] { border-color: var(--teal); }
.ac summary { list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.4rem; font-weight: 700; font-size: 1.04rem; color: var(--plum-deep); position: relative; }
.ac summary::-webkit-details-marker { display: none; }
.ac summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ac details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ac details p { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.ac a { color: var(--plum); 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(--plum); font-weight: 700; }
.sr { background: var(--plum-deep); 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(--must); 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(--must); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

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

/* ---------- Footer ---------- */
footer { background: var(--plum-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fd { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fd 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(--must); 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(--must); }
.fd-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) { .fd { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--plum-soft); padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--must); }
.ph h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.6rem; }
.ph p { color: var(--muted); 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; } }
