/* ==========================================================
   Llano Security Holdings — styles.css
   ========================================================== */

   :root{
    --color-bg:#F4EFE2;
    --color-surface:#FFFDF7;
    --color-surface-2:#ECE3CE;
    --color-ink:#1B2033;
    --color-ink-soft:#5B5F70;
    --color-border:#DED2B4;
    --color-accent:#B4864A;
    --color-accent-ink:#FBF5E9;
    --color-accent-2:#8C2635;
    --color-gold:#C79A54;
    --color-navy:#16223D;
    --color-navy-deep:#0D1526;
    --color-navy-ink:#F4EFE2;
    --color-navy-ink-soft:#A9AEC2;
    --color-navy-border:#2E3A5C;
    --shadow-soft:0 18px 40px -22px rgba(20,20,15,0.35);
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --color-bg:#11131F;
      --color-surface:#191C2C;
      --color-surface-2:#212540;
      --color-ink:#F1EBDA;
      --color-ink-soft:#ACA692;
      --color-border:#333756;
      --color-accent:#CB9A5C;
      --color-accent-ink:#171422;
      --color-accent-2:#C15264;
      --color-gold:#E7BD7C;
      --color-navy:#0B0D18;
      --color-navy-deep:#07080F;
      --color-navy-ink:#F1EBDA;
      --color-navy-ink-soft:#8D90A8;
      --color-navy-border:#262A44;
      --shadow-soft:0 18px 40px -22px rgba(0,0,0,0.6);
    }
  }
  :root[data-theme="dark"]{
    --color-bg:#11131F;
    --color-surface:#191C2C;
    --color-surface-2:#212540;
    --color-ink:#F1EBDA;
    --color-ink-soft:#ACA692;
    --color-border:#333756;
    --color-accent:#CB9A5C;
    --color-accent-ink:#171422;
    --color-accent-2:#C15264;
    --color-gold:#E7BD7C;
    --color-navy:#0B0D18;
    --color-navy-deep:#07080F;
    --color-navy-ink:#F1EBDA;
    --color-navy-ink-soft:#8D90A8;
    --color-navy-border:#262A44;
    --shadow-soft:0 18px 40px -22px rgba(0,0,0,0.6);
  }

  /* ---------- Base ---------- */
  *{box-sizing:border-box;}
  body{
    margin:0;
    background:var(--color-bg);
    color:var(--color-ink);
    font-family:"Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size:16px;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3{
    font-family:"Fraunces", Georgia, "Iowan Old Style", serif;
    font-weight:600;
    line-height:1.08;
    text-wrap:balance;
    margin:0;
  }
  em{font-style:italic; color:inherit;}
  p{margin:0;}
  a{color:inherit;}
  ul{margin:0; padding:0; list-style:none;}
  button{font-family:inherit;}

  .wrap{
    max-width:1100px;
    margin-inline:auto;
    padding-inline:24px;
  }
  .prose{max-width:640px;}

  /* Skip link: hidden until a keyboard user tabs to it */
  .skip-link{
    position:absolute;
    left:16px;
    top:-100px;
    z-index:100;
    padding:10px 16px;
    border-radius:3px;
    background:var(--color-gold);
    color:#0D1526;
    font-weight:700;
    font-size:0.9rem;
    text-decoration:none;
  }
  .skip-link:focus{top:12px;}
  main:focus{outline:none;}

  .eyebrow{
    font-family:"Libre Franklin", sans-serif;
    font-weight:700;
    font-size:0.72rem;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color:var(--color-accent);
  }
  .band-dark .eyebrow{color:var(--color-gold);}

  /* ---------- Nav ---------- */
  .site-nav{
    background:var(--color-navy-deep);
    color:var(--color-navy-ink);
    padding-block:16px;
  }
  .site-nav .wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }
  .wordmark-lockup{display:flex; align-items:center; gap:10px;}
  a.wordmark-lockup{text-decoration:none; color:inherit;}
  a.wordmark-lockup:focus-visible{outline:2px solid var(--color-gold); outline-offset:4px; border-radius:2px;}
  .tx-icon{flex:none; display:block;}
  .wm-llano{
    font-family:"Rye", "Fraunces", serif;
    font-weight:400;
    font-size:1.4rem;
    line-height:1;
    color:var(--color-navy-ink);
    letter-spacing:0.01em;
  }
  .wm-sub{
    display:block;
    font-family:"Libre Franklin", sans-serif;
    font-weight:700;
    font-size:0.58rem;
    letter-spacing:0.17em;
    text-transform:uppercase;
    color:var(--color-gold);
    margin-top:3px;
  }
  .nav-links{display:flex; gap:24px; flex-wrap:wrap;}
  .nav-links a{
    font-size:0.85rem;
    font-weight:600;
    letter-spacing:0.02em;
    text-decoration:none;
    color:var(--color-navy-ink-soft);
    transition:color .15s ease;
  }
  .nav-links a:hover, .nav-links a:focus-visible{color:var(--color-navy-ink);}

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    background:
      radial-gradient(ellipse 820px 460px at 50% 82%, rgba(246,199,120,0.55), transparent 62%),
      linear-gradient(180deg, #10142A 0%, #2C2A46 20%, #6B3654 40%, #B15239 58%, #DE8B45 75%, #F0B968 90%, #F6D28C 100%);
    color:#FBF5E9;
    overflow:hidden;
  }
  .hero-inner{
    position:relative;
    z-index:2;
    padding-top:64px;
    padding-bottom:8px;
  }
  .hero .eyebrow{color:#E7BD7C;}
  .hero h1{
    font-size:clamp(2.1rem, 1.4rem + 3.2vw, 3.7rem);
    font-weight:600;
    max-width:14ch;
    margin-top:14px;
  }
  .hero h1 em{
    font-weight:500;
    font-style:italic;
    color:#FBF5E9;
    text-decoration:underline;
    text-decoration-color:rgba(251,245,233,0.4);
    text-underline-offset:0.08em;
  }
  .hero p.lede{
    margin-top:22px;
    max-width:56ch;
    font-size:1.06rem;
    color:rgba(251,245,233,0.92);
  }
  .hero-ctas{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:32px;
  }
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 24px;
    border-radius:3px;
    font-weight:600;
    font-size:0.92rem;
    text-decoration:none;
    border:1px solid transparent;
    cursor:pointer;
    transition:transform .12s ease, background .15s ease, border-color .15s ease;
  }
  .btn:hover{transform:translateY(-1px);}
  .btn-primary{
    background:#FBF5E9;
    color:#16223D;
  }
  .btn-primary:hover{background:#FFFDF7;}
  .btn-ghost{
    border-color:rgba(251,245,233,0.55);
    color:#FBF5E9;
    background:transparent;
  }
  .btn-ghost:hover{border-color:#FBF5E9; background:rgba(251,245,233,0.08);}
  .value-pillars{
    margin-top:34px;
    font-family:"Libre Franklin", sans-serif;
    font-weight:700;
    font-size:0.76rem;
    letter-spacing:0.22em;
    text-transform:uppercase;
    color:rgba(244,239,226,0.78);
  }
  .value-pillars span{color:#E7BD7C; margin:0 8px;}
  .badge-strong{
    display:inline-block;
    margin-left:10px;
    padding:3px 11px;
    border:1px solid var(--color-accent);
    border-radius:999px;
    font-size:0.62rem;
    font-weight:700;
    letter-spacing:0.1em;
    color:var(--color-accent);
    vertical-align:middle;
    text-transform:uppercase;
  }

  /* Horizon skyline */
  .skyline{
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:auto;
    margin-top:44px;
  }
  @keyframes turbineSpin{ to{ transform:rotate(360deg); } }
  .turbine-blades{
    transform-box:view-box;
    animation:turbineSpin 9s linear infinite;
  }

  /* ---------- Section shells ---------- */
  section{padding-block:76px;}
  .band-light{background:var(--color-bg);}
  .band-dark{background:var(--color-navy); color:var(--color-navy-ink);}
  .band-dark .ink-soft{color:var(--color-navy-ink-soft);}
  .ink-soft{color:var(--color-ink-soft);}

  .section-head{max-width:640px; margin-bottom:44px;}
  .section-head h2{
    font-size:clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
    margin-top:10px;
  }
  .section-head p{margin-top:14px; color:var(--color-ink-soft); font-size:1.02rem;}
  .band-dark .section-head p{color:var(--color-navy-ink-soft);}

  /* ---------- Cards: three ways ---------- */
  .grid-3{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
    gap:22px;
  }
  .path-card{
    background:var(--color-surface);
    border:1px solid var(--color-border);
    border-radius:4px;
    padding:28px 26px;
    box-shadow:var(--shadow-soft);
  }
  .path-card .tag{
    font-family:"Fraunces", serif;
    font-weight:600;
    font-style:italic;
    font-size:0.95rem;
    color:var(--color-accent);
  }
  .path-card h3{font-size:1.28rem; margin-top:8px;}
  .path-card p{margin-top:12px; color:var(--color-ink-soft); font-size:0.96rem;}

  /* ---------- Credibility band ---------- */
  .credibility{
    display:grid;
    grid-template-columns:1fr;
    gap:28px;
  }
  .credibility .section-head{margin-bottom:8px;}
  .credibility p{font-size:1.08rem; max-width:66ch;}
  .credibility p + p{margin-top:18px;}

  /* ---------- Reflective band ---------- */
  .reflect{
    background:var(--color-surface-2);
    border-top:1px solid var(--color-border);
    border-bottom:1px solid var(--color-border);
  }
  .reflect .wrap{max-width:760px;}
  .reflect h2{font-size:clamp(1.6rem,1.3rem + 1.2vw,2.2rem);}
  .reflect p{margin-top:18px; font-size:1.08rem; color:var(--color-ink-soft);}

  /* ---------- Process ---------- */
  .process-list{
    display:flex;
    flex-direction:column;
    border-top:1px solid var(--color-border);
  }
  .process-item{
    display:grid;
    grid-template-columns:64px 1fr;
    gap:20px;
    padding-block:24px;
    border-bottom:1px solid var(--color-border);
  }
  .process-item .num{
    font-family:"Fraunces", serif;
    font-weight:300;
    font-size:2rem;
    color:var(--color-gold);
    line-height:1;
  }
  .process-item h3{font-size:1.1rem; font-weight:600; font-family:"Libre Franklin",sans-serif;}
  .process-item p{margin-top:6px; color:var(--color-ink-soft); font-size:0.96rem; max-width:56ch;}

  /* ---------- Contact ---------- */
  .contact-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);
    gap:48px;
    align-items:start;
  }
  @media (max-width:820px){
    .contact-grid{grid-template-columns:1fr;}
  }
  .contact-title{
    margin-top:10px;
    font-size:clamp(1.6rem,1.3rem + 1.2vw,2.3rem);
  }
  .contact-note{font-size:1.02rem; color:var(--color-navy-ink-soft); margin-top:16px; max-width:44ch;}
  .contact-email{
    display:inline-block;
    margin-top:24px;
    font-family:"Fraunces", serif;
    font-style:italic;
    font-weight:500;
    font-size:1.1rem;
    color:var(--color-gold);
    text-decoration:none;
    border-bottom:1px solid color-mix(in srgb, var(--color-gold) 40%, transparent);
  }

  /* Jotform embed */
  .jotform-embed{min-width:0;}
  .jotform-embed iframe{
    display:block;
    width:100% !important;
    min-width:100% !important;
    border:0;
    background:transparent;
  }

  /* ---------- Footer ---------- */
  footer{
    background:var(--color-navy-deep);
    color:var(--color-navy-ink-soft);
    padding-block:28px;
    font-size:0.82rem;
  }
  footer .wrap{
    display:flex;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce){
    .turbine-blades{animation:none;}
    .btn{transition:none;}
  }

/* ---------- West Texas: pinned city stepper ---------- */
.wt-scroller{
  position:relative;
  padding:0;
  background:var(--color-bg);
  overflow:hidden;
}
.wt-stage{
  position:relative;
  height:100vh;
  height:100svh;
  min-height:560px;
  display:flex;
  align-items:center;
}
.wt-map{
  position:absolute;
  top:6%;
  right:-2%;
  width:62%;
  height:88%;
  pointer-events:none;
}

.wt-land{fill:color-mix(in srgb, var(--color-surface-2) 70%, var(--color-bg)); stroke:var(--color-border); stroke-width:2; stroke-linejoin:round;}
.wt-focus{fill:var(--color-border); opacity:.6;}
.wt-route{fill:none; stroke:var(--color-accent-2); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; opacity:.7;}

.wt-dot-core{
  fill:var(--color-bg);
  stroke:var(--color-ink-soft);
  stroke-width:2.5;
  transition:fill .3s ease, stroke .3s ease;
}
.wt-dot.is-active .wt-dot-core{fill:var(--color-accent-2); stroke:var(--color-accent-2);}
.wt-dot-pulse{fill:var(--color-accent-2); opacity:0; transform-box:fill-box; transform-origin:center;}
.wt-dot.is-active .wt-dot-pulse{animation:wtPulse 2s ease-out infinite;}
@keyframes wtPulse{
  0%{opacity:.35; transform:scale(1);}
  100%{opacity:0; transform:scale(3.4);}
}

.wt-inner{
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  gap:clamp(16px, 3svh, 32px);
}
.wt-head h2{
  font-size:clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem);
  margin-top:10px;
}
.wt-cities{margin:0; padding:0; list-style:none;}
.wt-name{
  display:block;
  font-family:"Fraunces", Georgia, serif;
  font-weight:600;
  font-size:clamp(2.4rem, min(10vw, 11.5svh), 6.25rem);
  line-height:1.02;
  letter-spacing:-0.01em;
  color:var(--color-ink);
}
/* dim + highlight only once the script is running */
.wt-scroller.is-ready .wt-name{
  color:color-mix(in srgb, var(--color-ink) 20%, transparent);
  transition:color .35s ease;
}
.wt-scroller.is-ready .wt-city.is-active .wt-name{color:var(--color-gold);}

/* Accordion: description opens under the active city */
.wt-detail{
  display:grid;
  grid-template-rows:1fr;
}
.wt-detail-inner{overflow:hidden; max-width:44ch;}
.wt-detail-inner .wt-hwy{padding-top:8px;}
.wt-detail-inner p + p{margin-top:6px; padding-bottom:14px; font-size:0.98rem; color:var(--color-ink-soft);}
.wt-scroller.is-ready .wt-detail{
  grid-template-rows:0fr;
  opacity:0;
  transition:grid-template-rows .45s ease, opacity .35s ease;
}
.wt-scroller.is-ready .wt-detail.is-active{
  grid-template-rows:1fr;
  opacity:1;
}
.wt-hwy{
  font-weight:700;
  font-size:0.7rem;
  letter-spacing:0.1em;
  color:var(--color-accent-2);
}

/* Static layout (reduced motion, mobile, or no JS):
   no pinning, every city open, whole route and all stops lit */
.wt-scroller:not(.is-ready) .wt-stage{height:auto; min-height:0; padding-block:76px;}
.wt-scroller:not(.is-ready) .wt-dot-core{fill:var(--color-accent-2); stroke:var(--color-accent-2);}
.wt-scroller:not(.is-ready) .wt-dot-pulse{display:none;}

/* ---------- Mobile: stack text, then map ---------- */
@media (max-width:820px){
  .wt-stage{
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    gap:clamp(8px, 2svh, 20px);
    padding-block:clamp(20px, 4svh, 40px);
    min-height:0;
  }
  .wt-inner{gap:clamp(10px, 2svh, 18px);}
  .wt-head .eyebrow{display:flex; flex-wrap:wrap; align-items:center; gap:8px;}
  .wt-head .badge-strong{margin-left:0;}
  .wt-head h2{font-size:clamp(1.15rem, 4.8vw, 1.5rem); margin-top:8px;}
  .wt-name{font-size:clamp(2rem, min(10.5vw, 7svh), 3.25rem); line-height:1.05;}
  .wt-detail-inner .wt-hwy{padding-top:4px;}
  .wt-detail-inner p + p{font-size:0.9rem; line-height:1.5; padding-bottom:8px;}

  .wt-map{
    order:2;
    position:relative;
    top:auto; right:auto;
    flex:1 1 0;
    min-height:140px;
    max-height:38svh;
    width:100%;
    height:auto;
    padding-inline:24px;
  }
  .wt-scroller:not(.is-ready) .wt-stage{padding-block:56px; gap:24px;}
  .wt-scroller:not(.is-ready) .wt-map{flex:none; height:38svh;}
}
@media (max-width:820px) and (max-height:620px){
  .wt-map{display:none;}   /* very short screens: keep the list readable */
}

@media (prefers-reduced-motion: reduce){
  .wt-dot.is-active .wt-dot-pulse{animation:none;}
  .wt-scroller.is-ready .wt-name, .wt-scroller.is-ready .wt-detail, .wt-dot-core{transition:none;}
}