/* =========================================================
   TOKENS
========================================================= */
:root{
  --charcoal: #14171A;
  --charcoal-soft: #1E2226;
  --off-white: #F7F6F3;
  --paper: #FFFFFF;
  --lime: #D6FF3F;
  --lime-dim: #B9DE2E;
  --court-blue: #1F3A5C;
  --slate: #5B6169;
  --slate-light: #8A8F97;
  --line: #E4E2DC;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.02;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2{ font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3{ font-size: 1.35rem; font-weight: 700; }

p{ margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

ul, ol, dl{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: var(--charcoal);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{
  outline: 3px solid var(--court-blue);
  outline-offset: 2px;
}

.eyebrow{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--court-blue);
  margin: 0 0 0.6em;
}
.hero .eyebrow{ color: var(--lime); }

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--lime);
  color: var(--charcoal);
}
.btn-primary:hover{ background: var(--lime-dim); }

.btn-ghost{
  background: transparent;
  color: var(--off-white);
  border-color: rgba(247,246,243,0.35);
}
.btn-ghost:hover{ border-color: var(--off-white); }

.btn-small{ padding: 10px 20px; font-size: 0.875rem; }
.btn-wide{ width: 100%; }

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 23, 26, 0.94);
  backdrop-filter: blur(6px);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo-mark{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after{
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--charcoal);
}

.logo-text{
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.15;
  color: var(--off-white);
  font-weight: 500;
}
.logo-text strong{ font-weight: 900; letter-spacing: 0.02em; }

.main-nav ul{
  display: flex;
  gap: 28px;
}
.main-nav a{
  color: rgba(247,246,243,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.main-nav a:hover{
  color: var(--off-white);
  border-color: var(--lime);
}

.header-cta{ flex-shrink: 0; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  background: var(--charcoal);
  color: var(--off-white);
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero-lines{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-lines svg{ width: 100%; height: 100%; }
.hero-lines line{
  stroke: rgba(214, 255, 63, 0.16);
  stroke-width: 2;
}
.hero-lines line:nth-child(2){ stroke: rgba(214, 255, 63, 0.09); }
.hero-lines line:nth-child(3){ stroke: rgba(31, 58, 92, 0.5); stroke-width: 3; }
.hero-court-edge{ fill: none; }

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1{
  font-size: clamp(2.75rem, 6.2vw, 4.6rem);
  color: var(--off-white);
}

.hero-lede{
  color: rgba(247,246,243,0.72);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 56px;
}

.hero-stats{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(247,246,243,0.18);
  padding-top: 28px;
}
.hero-stats dt{
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}
.hero-stats dd{
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: rgba(247,246,243,0.65);
}

/* =========================================================
   ABOUT
========================================================= */
.about{ padding: 96px 0; background: var(--paper); }

.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-media-frame{
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--court-blue);
}
.about-media-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2{ color: var(--charcoal); }

.about-facts{
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.about-facts li{
  font-size: 0.9rem;
  color: var(--slate);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.about-facts li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--lime-dim);
}

/* =========================================================
   SERVICES
========================================================= */
.services{ padding: 96px 0; background: var(--off-white); }
.services h2{ max-width: 20ch; margin-bottom: 48px; }

.service-ladder{
  border-top: 1px solid var(--line);
}

.service-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.service-row:hover{ background: rgba(31,58,92,0.03); }

.service-num{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--slate-light);
  line-height: 1;
}

.service-body h3{ margin-bottom: 0.35em; color: var(--charcoal); }
.service-body p{ margin: 0; max-width: 58ch; }

/* =========================================================
   WHY US
========================================================= */
.why-us{
  padding: 96px 0 120px;
  background: var(--court-blue);
  color: var(--off-white);
  position: relative;
}

.why-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
}

.why-us .eyebrow{ color: var(--lime); }
.why-us h2{ color: var(--off-white); max-width: 12ch; }
.why-intro p{ color: rgba(247,246,243,0.72); }

.why-items{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(247,246,243,0.16);
  border: 1px solid rgba(247,246,243,0.16);
}

.why-item{
  background: var(--court-blue);
  padding: 28px;
}
.why-item h3{ color: var(--off-white); margin-bottom: 0.4em; }
.why-item p{ color: rgba(247,246,243,0.68); margin: 0; font-size: 0.95rem; }

/* =========================================================
   CONTACT
========================================================= */
.contact{ padding: 96px 0; background: var(--paper); }

.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-info h2{ color: var(--charcoal); max-width: 14ch; }

.contact-details{ margin-top: 28px; }
.contact-details > div{
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-details dt{
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-light);
  margin-bottom: 4px;
}
.contact-details dd{ margin: 0; color: var(--charcoal); }
.contact-details a{ color: var(--court-blue); font-weight: 500; }
.contact-details a:hover{ text-decoration: underline; }

.contact-form{
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row{
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-row label{
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-row .optional{ font-weight: 400; color: var(--slate-light); }

.form-row input,
.form-row textarea{
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--charcoal);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--court-blue);
  box-shadow: 0 0 0 3px rgba(31,58,92,0.15);
}
.form-row textarea{ resize: vertical; min-height: 110px; }

.form-row.has-error input,
.form-row.has-error textarea{
  border-color: #C0392B;
}

.field-error{
  display: block;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 5px;
}

.form-status{
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--court-blue);
}
.form-status.success{ color: #1F7A3D; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{ background: var(--charcoal); color: rgba(247,246,243,0.7); }

.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
  align-items: start;
}

.footer-brand{ display: flex; gap: 12px; align-items: flex-start; }
.footer-name{ color: var(--off-white); font-weight: 600; margin: 0; }
.footer-legal{ margin: 4px 0 0; font-size: 0.82rem; color: var(--slate-light); }

.footer-nav{ display: flex; flex-direction: column; gap: 10px; }
.footer-nav a{ font-size: 0.9rem; transition: color 0.18s var(--ease); }
.footer-nav a:hover{ color: var(--lime); }

.footer-address p{ margin: 0 0 8px; font-size: 0.9rem; color: rgba(247,246,243,0.7); }
.footer-address a:hover{ color: var(--lime); }

.footer-bottom{
  border-top: 1px solid rgba(247,246,243,0.12);
  padding: 20px 0;
}
.footer-bottom p{ margin: 0; font-size: 0.8rem; color: var(--slate-light); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px){
  .about-grid,
  .why-grid,
  .contact-grid{ grid-template-columns: 1fr; }

  .about-media{ order: 2; }
  .about-media-frame{ aspect-ratio: 16 / 9; }

  .why-items{ grid-template-columns: 1fr; }

  .footer-inner{ grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--charcoal);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    border-bottom: 1px solid rgba(247,246,243,0.1);
  }
  .main-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul{
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a{
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(247,246,243,0.08);
  }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }

  .service-row{ grid-template-columns: 56px 1fr; }
  .service-num{ font-size: 1.5rem; }
}

@media (max-width: 520px){
  .hero{ padding: 72px 0 64px; }
  .hero-stats{ gap: 28px; }
  .contact-form{ padding: 24px; }
  .about, .services, .why-us, .contact{ padding: 64px 0; }
}
