*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
:root{
  color-scheme: light;
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: rgba(34, 34, 34, 0.12);
  --accent: #200e85;
  --accent-dark: #1a0b6b;
  --accent-soft: rgba(128, 83, 212, 0.12);
  --shadow: 0 24px 60px rgba(0,0,0,0.12);
  --radius: 20px;
  --max: 1140px;
}
html{
  scroll-behavior:smooth;
  background:#1e2846;
}
html, body{
  width:100%;
  overflow-x:hidden;
}
body{
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: linear-gradient(160deg, #ffffff 0%, #d4e5ff 40%, #d4e5ff 70%, #ffffff 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 24px;width:100%}

.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:90;
}
.nav-overlay.active{opacity:1;pointer-events:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(16px);
  background:#1e2846;
  border-bottom:1px solid rgba(255,255,255,0.08);
  transition:all .3s ease;
}
.site-header.scrolled{
  background:#171f38;
  border-bottom-color:rgba(255,255,255,0.12);
  box-shadow:0 2px 20px rgba(0,0,0,0.15);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  min-width:0;
  position:relative;
  z-index:101;
}
.logo{display:flex;align-items:center;gap:12px;color:#ffffff;font-weight:600}
.logo-img{height:44px;width:auto}
.nav-links{display:flex;gap:22px;align-items:center}
.nav-links a{color:rgba(255,255,255,0.85);font-weight:500;padding:8px 12px;border-radius:999px;transition:all .2s ease}
.nav-links a:hover{background:rgba(255,255,255,0.12);color:#ffffff}
.nav-links a.active{background:rgba(255,255,255,0.15);color:#ffffff}
.nav-cta{background:#ffffff;color:#1e2846;padding:10px 18px;border-radius:999px}
.nav-links a.nav-cta{color:#1e2846;background:#ffffff}
.nav-links a.nav-cta:hover{background:rgba(255,255,255,0.9);color:#1e2846}
.nav-toggle{
  display:none;
  border:0;
  background:none;
  cursor:pointer;
  position:relative;
  z-index:120;
  gap:5px;
  flex-direction:column;
}
.nav-toggle span{
  width:22px;
  height:2px;
  background:#ffffff;
  border-radius:999px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.hero{
  padding:120px 0 90px;
  position:relative;
  overflow:hidden;
  background: url('images/texas.jpg') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center calc(50% + var(--hero-parallax, 0px));
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(30,40,70,0.7);
  pointer-events:none;
  z-index:0;
}
.hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:52px;align-items:center;position:relative;z-index:1}
.hero h1{font-size:clamp(28px, 4vw, 44px);line-height:1.1;letter-spacing:-0.02em;max-width:700px;color:#ffffff}
.hero p{color:rgba(255,255,255,0.85);font-size:18px;margin:18px 0 26px;max-width:620px}
.eyebrow{display:inline-flex;font-size:12px;letter-spacing:0.18em;text-transform:uppercase;color:rgba(255,255,255,0.75);font-weight:600}
.accent{color:var(--accent)}
.hero-copy{display:grid;gap:18px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
  background:var(--accent);
  color:#fff;
  border:1px solid transparent;
  transition:all .2s ease;
  box-shadow:0 12px 28px rgba(29,78,216,0.25);
}
.button.secondary{background:transparent;color:var(--text);border-color:var(--line);box-shadow:none}
.button:hover{background:var(--accent-dark)}
.button.secondary:hover{background:rgba(0,0,0,0.04)}
.hero .button.secondary{
  color:#ffffff;
  border-color:rgba(255,255,255,0.7);
  background:rgba(255,255,255,0.08);
}
.hero .button.secondary:hover{
  background:rgba(255,255,255,0.18);
  color:#ffffff;
}

.hero-media{display:flex;justify-content:center}
.hero-card{
  background:#ffffff;
  border-radius:28px;
  padding:28px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  color:var(--text);
  overflow:hidden;
}
.hero-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:0.2em;
  text-transform:uppercase;
}
.hero-toggle{
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  border-radius:999px;
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  cursor:pointer;
}
.hero-toggle .toggle-open{display:none;line-height:1}
.hero-toggle .toggle-closed{display:inline;line-height:1}
.hero-toggle[aria-expanded="true"] .toggle-open{display:inline}
.hero-toggle[aria-expanded="true"] .toggle-closed{display:none}
.hero-card-body{
  margin-top:12px;
  overflow:hidden;
  max-height:520px;
  opacity:1;
  transform:translateY(0);
  background:#ffffff;
  transition:max-height .9s ease, opacity .7s ease, transform .7s ease, margin .7s ease;
}

@media (min-width: 981px){
  .hero-toggle{
    display:none;
  }
}
.hero-card.collapsed .hero-card-body{
  max-height:0;
  opacity:0;
  transform:translateY(-6px);
  margin-top:0;
}
.hero-card h3{font-size:22px;margin-bottom:10px}
.hero-card p{color:var(--muted);margin-bottom:18px}
.hero-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.hero-card-grid strong{display:block;font-size:16px}
.hero-card-grid span{color:var(--muted);font-size:12px}

.section{padding:88px 0;background:rgba(255,255,255,0.85);backdrop-filter:blur(6px)}
.section-alt{background:#f7f8ff;border-top:1px solid rgba(0,0,0,0.04)}
.section + .section{border-top:1px solid rgba(0,0,0,0.04)}
.section-header{margin-bottom:28px}
.section-header::after{content:"";display:block;width:60px;height:3px;background:var(--accent);border-radius:999px;margin-top:14px}
.section-label{color:var(--muted);font-weight:600;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.section-title{font-size:clamp(28px, 4vw, 38px);letter-spacing:-0.02em;margin:10px 0 8px}
.section-description{color:var(--muted);max-width:720px}

.features-grid{display:grid;gap:20px;grid-template-columns:repeat(3,1fr)}
.card{background:var(--surface);border-radius:var(--radius);padding:26px;border:1px solid var(--line);box-shadow:0 10px 26px rgba(0,0,0,0.08);transition:transform .2s ease, box-shadow .2s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(0,0,0,0.12)}
.card h3{margin-bottom:8px;font-size:20px}
.card p{color:var(--muted)}

.portfolio-placeholder{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  background:#f3f5fb;
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
}

.cta-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:32px;
  box-shadow:var(--shadow);
}

.policy-content{
  max-width:900px;
  margin:0 auto;
  display:grid;
  gap:16px;
  color:var(--text);
}
.policy-content h2{
  font-size:22px;
  margin-top:10px;
}
.policy-content p{
  color:var(--muted);
  line-height:1.8;
}

.page-hero{padding:110px 0 40px}
.page-hero .section-header{margin-bottom:0}

.updates-container{
  max-width:860px;
  margin:0 auto 90px;
  display:grid;
  gap:20px;
}
.update-card{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
}
.update-header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.update-avatar-img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.update-meta{display:grid}
.update-author{font-weight:600}
.update-date{color:var(--muted);font-size:13px}
.update-title{font-size:20px;margin:12px 0 8px}
.update-content{color:var(--muted);line-height:1.7}
.update-image{margin-top:14px;border-radius:14px;width:100%}
.no-updates,.loading-updates{color:var(--muted);text-align:center}

.contact-section{max-width:860px;margin:0 auto 80px}
.contact-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:30px;
}
.contact-card{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
}
.contact-card svg{flex-shrink:0}
.contact-card span{font-weight:500}

.contact-form{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,0.06);
  display:grid;
  gap:16px;
}
.form-group{display:grid;gap:8px}
.form-label{font-weight:600;font-size:14px}
.form-input,.form-select,.form-textarea{
  width:100%;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:15px;
  font-family:inherit;
}
.form-textarea{min-height:140px;resize:vertical}
.form-status{margin-top:8px;font-weight:600;text-align:center}
.form-note{font-size:13px;color:var(--muted);text-align:center}
.form-note a{color:var(--accent);font-weight:600}

.footer-classic{
  background:#1e2846;
  color:#ffffff;
  padding:48px 0 32px;
}
.footer-content{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.footer-logo{font-weight:600;font-size:1.1rem}
.footer-links{list-style:none;display:flex;gap:18px;flex-wrap:wrap}
.footer-links a{color:#ffffff;text-decoration:none;font-weight:500}
.footer-links.secondary{flex-direction:row;gap:12px;margin-top:6px;flex-wrap:wrap}
.footer-links.secondary a{color:rgba(255,255,255,0.65);font-size:0.9rem;font-weight:500}
.footer-top{
  width:100%;
}
.footer-links{flex-wrap:nowrap}
.footer-links.secondary{margin-top:6px}
.footer-row{
  width:100%;
  display:grid;
  grid-template-columns:2fr 1fr;
  align-items:center;
  gap:16px;
}
.footer-col-primary,
.footer-col-secondary{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.footer-col-primary{
  justify-content:flex-start;
  align-items:flex-start;
}
.footer-col-secondary{
  justify-content:flex-start;
  align-items:flex-end;
}
.footer-links-group{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  width:100%;
}
.footer-links-group .footer-links{
  flex-wrap:nowrap;
  justify-self:start;
}
.footer-links.secondary{
  justify-content:center;
}
.footer-social{
  margin-top:0;
  justify-self:center;
  margin-left:0;
  margin-right:0;
}
.footer-links-group::after{
  content:"";
  display:block;
}
.footer-copyright{
  text-align:center;
}
.footer-bottom{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-bottom .footer-logo{
  font-size:1rem;
}
.footer-bottom .footer-copyright{
  text-align:right;
}
.footer-social{display:flex;gap:14px;margin-top:14px}
.footer-social .social-link{background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.2);color:#ffffff;width:36px;height:36px;border-radius:50%;display:grid;place-items:center}
.footer-copyright{color:rgba(255,255,255,0.75);font-size:0.95rem}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s ease, transform .8s ease;
  transition-delay:var(--delay, 0s);
}
.reveal.reveal-visible{
  opacity:1;
  transform:translateY(0);
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr 1fr}
  .hero:not(.card-expanded){
    padding-bottom:48px;
  }
  .hero + .section{
    margin-top:-18px;
  }
}

.parallax-js .hero{
  background-attachment: scroll;
  will-change: background-position;
}
@media (max-width: 720px){
  .nav-toggle{display:flex}
  .nav-toggle{margin-right:20px}
  .nav-links{
    position:fixed;
    top:66px;
    right:0;
    left:0;
    background:#ffffff;
    border-radius:0 0 16px 16px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:flex-start;
    padding:16px;
    gap:6px;
    opacity:0;
    transform:translateY(-10px);
    pointer-events:none;
    transition:all .2s ease;
  }
  .nav-links.active{opacity:1;transform:translateY(0);pointer-events:auto}
  .nav-links a{color:var(--text)}
  .nav-links a{width:100%}
  .nav-links a{text-align:left;display:block;padding:10px 12px}
  .nav-links a:hover{background:rgba(0,0,0,0.06);color:var(--text)}
  .nav-links a.active{background:var(--accent-soft);color:var(--accent)}
  .nav-cta{width:100%;text-align:center;background:var(--accent);color:#ffffff}
  .nav-links a.nav-cta{color:#ffffff;background:var(--accent)}
  .hero{
    padding:96px 0 70px;
    background:#d4e5ff;
    background-attachment:scroll;
  }
  .hero::before{
    display:none;
  }
  .hero::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:76vh;
    background:linear-gradient(rgba(30,40,70,0.55), rgba(30,40,70,0.55)), url('images/texas.jpg') center center no-repeat;
    background-position: center calc(50% + var(--hero-parallax, 0px));
    background-size:cover;
    z-index:0;
  }
  .hero-grid{position:relative;z-index:1}
  .hero-card.collapsed{
    margin-bottom:-10px;
  }
  .hero-card:not(.collapsed){
    margin-bottom:28px;
  }
  .hero + .section{
    margin-top:-44px;
  }
  .hero::before{
    display:none;
  }
  .hero{
    background:transparent;
  }
  .hero.card-expanded{
    background:#d4e5ff;
  }
  .hero:not(.card-expanded){
    padding-bottom:20px;
  }
  .section-alt{
    padding-top:64px;
    background:#f1f6ff;
  }
  .hero-card-grid{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .cta-band{padding:22px}
}

@media (min-width: 981px){
  .footer-content{
    align-items:stretch;
    text-align:center;
  }
}

@media (max-width: 980px){
  .footer-row{
    grid-template-columns:1fr;
  }
  .footer-links{
    flex-wrap:wrap;
    justify-content:center;
  }
  .footer-col-primary,
  .footer-col-secondary{
    align-items:center;
  }
  .footer-links-group{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .footer-links-group .footer-links{
    justify-self:center;
  }
  .footer-social{
    justify-self:center;
  }
  .footer-col-secondary{
    align-items:center;
  }
}

@media (max-width: 980px){
  .hero{
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity:1;
    transform:none;
    transition:none;
  }
}
