/* Palette taken from the original bigskyvalley.com: navy #111622, teal #1ABEC9, light grays #E1E4E7 / #F4F6F9, white. */
:root {
  --navy: #111622;
  --navy-2: #1b2232;
  --navy-3: #262f43;
  --teal: #1abec9;
  --teal-bright: #00ecff;
  --teal-ink: #0b6f77;      /* teal dark enough for text on light backgrounds (AA) */
  --paper: #f4f6f9;
  --gray: #e1e4e7;
  --card: #ffffff;
  --ink: #111622;
  --muted: #4a5466;
  --line: #d3d8de;
  --on-navy: #f4f6f9;
  --on-navy-muted: #b4bdcb;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--navy); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.35em; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-teal { background: var(--teal); color: var(--navy); box-shadow: 0 6px 20px -8px rgba(26,190,201,.8); }
.btn-teal:hover { background: #33d3dd; box-shadow: 0 10px 28px -8px rgba(26,190,201,.9); transform: translateY(-2px); }
.btn-teal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 4.5s 2s infinite; }
@keyframes shimmer { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { border-color: rgba(244,246,249,.55); color: var(--on-navy); background: rgba(17,22,34,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--on-navy); }
.btn-dark { background: var(--navy); color: var(--on-navy); }
.btn-dark:hover { background: var(--navy-3); }

/* Header */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 50; transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled { background: rgba(17,22,34,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -12px rgba(0,0,0,.6); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 70px; transition: min-height .3s var(--ease); }
.scrolled .header-row { min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; line-height: 1.1; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 8px; background: #fff; transition: width .3s var(--ease), height .3s var(--ease); }
.scrolled .brand img { width: 40px; height: 40px; }
.brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; text-decoration: none; color: var(--on-navy-muted); font-weight: 600; font-size: .95rem; }
.nav-desktop .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-desktop .nav-links a:hover { color: var(--on-navy); }
.nav-desktop .nav-links a:hover::after { transform: scaleX(1); }
.header-phone { text-decoration: none; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; }
.header-phone .label { margin-left: 6px; }
.header-cta { display: inline-flex; }
.menu { position: relative; display: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid rgba(244,246,249,.5); border-radius: 8px; font-weight: 700; }
.menu > summary::-webkit-details-marker { display: none; }
.nav-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(280px, calc(100vw - 32px)); background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); transform-origin: top right; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.nav-panel .nav-links { flex-direction: column; gap: 0; }
.nav-panel .nav-links a { display: block; padding: 12px 10px; font-size: 1.05rem; color: var(--on-navy); border-radius: 6px; }
.nav-panel .nav-links a:active { background: var(--navy-3); }
.nav-panel .btn { width: 100%; margin-top: 8px; }

@media (max-width: 960px) { .nav-desktop .nav-links { gap: 14px; } .nav-desktop .nav-links a { font-size: .88rem; } }
@media (max-width: 760px) {
  .header-row { gap: 10px; }
  .brand small { display: none; }
  .brand span { font-size: .95rem; }
  .header-cta, .nav-desktop { display: none; }
  .menu { display: block; }
  .header-phone { justify-content: center; width: 44px; height: 44px; border: 2px solid rgba(244,246,249,.5); border-radius: 8px; }
  .header-phone .label { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--on-navy); background: var(--navy); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: kenburns 24s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.18) translate3d(2%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17,22,34,.94) 0%, rgba(17,22,34,.82) 42%, rgba(17,22,34,.35) 100%), linear-gradient(0deg, rgba(17,22,34,.9) 0%, transparent 45%); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, rgba(17,22,34,.72) 0%, rgba(17,22,34,.88) 55%, rgba(17,22,34,.97) 100%); } }
.hero .wrap { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(130px, 17vw, 200px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 0 rgba(0,236,255,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0,236,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,236,255,0); } }
.hero h1 { max-width: 16ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; color: var(--teal); }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } }
.hero .lede, .hero-actions, .hero-values { animation: fadeup .8s var(--ease) both; }
.hero .lede { animation-delay: .5s; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--on-navy-muted); max-width: 44ch; }
.hero-actions { animation-delay: .65s; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-values { animation-delay: .8s; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-values li { padding: 6px 14px; border: 1px solid rgba(26,190,201,.5); border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgba(17,22,34,.45); }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } }

.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 14vw, 170px); z-index: 0; }
.ridge .current { fill: none; stroke: var(--teal-bright); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 140 1900; animation: current 5s linear infinite; filter: drop-shadow(0 0 6px rgba(0,236,255,.9)); }
.ridge .current.two { stroke-dasharray: 60 1980; animation-duration: 7s; animation-delay: -3s; opacity: .7; }
@keyframes current { from { stroke-dashoffset: 2040; } to { stroke-dashoffset: 0; } }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 64px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.alt { background: var(--gray); }

.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -20px rgba(17,22,34,.45); border-color: transparent; }
.card:hover::before, .card.in::before { transform: scaleX(1); }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg path, .card .icon svg circle { stroke-dasharray: 80; stroke-dashoffset: 0; }
.card.in .icon svg path, .card.in .icon svg circle { animation: draw 1.4s var(--ease) both; animation-delay: inherit; }
@keyframes draw { from { stroke-dashoffset: 80; } }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card ul li { margin-bottom: .3em; }
.card ul li::marker { color: var(--teal-ink); }
.card p { color: var(--muted); }

.also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.also strong { margin-right: 6px; }
.also span { background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; }

/* Feature (panel image) */
.feature { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(17,22,34,.55); }
.feature figure img { width: 100%; transition: transform 1.2s var(--ease); }
.feature figure:hover img { transform: scale(1.04); }

.steps { position: relative; counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--teal); font-weight: 800; margin-bottom: 14px; box-shadow: 0 0 0 4px rgba(26,190,201,.18); }
.steps p { color: var(--muted); margin: 0; }

.dark { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.dark .section-head p, .dark p { color: var(--on-navy-muted); }
.dark .kicker { color: var(--teal); }
.dark .grid-bg { position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: linear-gradient(rgba(26,190,201,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(26,190,201,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); animation: gridmove 18s linear infinite; }
@keyframes gridmove { to { background-position: 44px 44px; } }
.dark .wrap { position: relative; }
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.values li { background: rgba(255,255,255,.04); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 24px; }
.values .num { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--teal); margin-bottom: 8px; }
.values strong { display: block; color: var(--on-navy); font-size: 1.25rem; margin-bottom: 8px; }
.license-line { margin-top: 32px; font-size: .95rem; }

.about { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: 1.05fr .95fr; } }
.about figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(17,22,34,.55); }

/* Towns marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.towns { display: flex; gap: 10px; list-style: none; padding: 0 10px 0 0; margin: 0; }
.towns li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; white-space: nowrap; }
.towns li::before { content: "●"; color: var(--teal-ink); margin-right: 8px; font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

blockquote { margin: 0; max-width: 780px; position: relative; }
blockquote::before { content: "“"; position: absolute; left: -6px; top: -48px; font-size: 7rem; line-height: 1; color: var(--teal); opacity: .35; font-family: Georgia, serif; }
blockquote p { font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.45; font-weight: 600; color: var(--ink); }
blockquote footer { color: var(--muted); }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: 0 10px 30px -18px rgba(17,22,34,.45); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); animation: fadeup .35s var(--ease); }

.contact-strip { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.contact-strip a { font-weight: 700; }
.contact-strip .label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }

.site-footer { background: #0a0e17; color: var(--on-navy-muted); padding: 36px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer .motto { color: var(--teal); font-weight: 700; }

/* Estimate page */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: clamp(40px, 7vw, 72px) 0; isolation: isolate; }
.page-hero .hero-bg { opacity: .28; }
.page-hero p { color: var(--on-navy-muted); max-width: 56ch; }
.page-hero h1, .page-hero p, .page-hero .eyebrow { animation: fadeup .7s var(--ease) both; }
.page-hero p { animation-delay: .15s; }
.estimate-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .estimate-layout { grid-template-columns: 1.4fr .8fr; } }
form.estimate { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.field { margin-bottom: 20px; }
.field-row { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #a3240a; }
.hint { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #98a1ae; border-radius: 8px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgba(26,190,201,.25); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .9rem; color: var(--muted); }
.aside-box { background: var(--gray); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.aside-box ol { padding-left: 1.2em; margin: 0; }
.aside-box li { margin-bottom: .6em; }
.big-phone { font-size: 1.5rem; font-weight: 800; text-decoration: none; }

/* Scroll reveal: only hides content once JS has confirmed it can reveal it again. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: auto; }
  .marquee .towns { flex-wrap: wrap; }
  .marquee .towns[aria-hidden] { display: none; }
}

/* Form status + success state */
.form-status { margin: 12px 0 0; font-weight: 600; color: #a3240a; min-height: 1.4em; }
.btn[disabled] { opacity: .7; cursor: progress; }
.form-success { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 44px); text-align: center; animation: fadeup .6s var(--ease); }
.form-success:focus { outline: none; }
.form-success .check { display: grid; place-items: center; margin-bottom: 14px; }
.form-success .check circle { stroke-dasharray: 160; animation: drawc .7s var(--ease) both; }
.form-success .check path { stroke-dasharray: 160; animation: drawc .6s .5s var(--ease) both; }
@keyframes drawc { from { stroke-dashoffset: 160; } }

/* Design/Build chips on the navy section */
.dark .also span { background: rgba(26,190,201,.1); border-color: rgba(26,190,201,.45); color: var(--on-navy); }
.dark .also span.in { box-shadow: 0 0 0 0 rgba(0,236,255,.6); animation: chipglow 1.2s var(--ease) var(--d, 0s) 1 both; }
@keyframes chipglow { 0% { box-shadow: 0 0 0 0 rgba(0,236,255,.6); } 100% { box-shadow: 0 0 0 10px rgba(0,236,255,0); } }
