/* ==========================================================================
   Core reset & variables
   ========================================================================== */
   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   :root {
     --clr-primary: #2563eb;
     --clr-primary-dark: #1e40af;
     --clr-secondary: #10b981;
     --clr-bg: #ffffff;
     --clr-bg-dark: #0f172a;
     --clr-text: #1f2937;
     --clr-text-dark: #e2e8f0;
     --radius-lg: 1rem;
     --shadow-lg: 0 15px 25px rgba(0,0,0,0.06);
   }
   html { scroll-behavior: smooth; }
   body {
     font-family: 'Inter', sans-serif;
     line-height: 1.6;
     background: var(--clr-bg);
     color: var(--clr-text);
     transition: background 0.3s, color 0.3s;
   }
   [data-theme="dark"] {
     --clr-bg: var(--clr-bg-dark);
     --clr-text: var(--clr-text-dark);
   }
   
   /* ==========================================================================
      Utilities
      ========================================================================== */
   .container { width: min(90%, 70rem); margin-inline: auto; padding-block: 4rem; scroll-margin-top: 6rem; }
   .section__title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
   .btn {
     display: inline-block; padding: 0.8rem 1.6rem; font-weight: 600;
     border: none; border-radius: var(--radius-lg); cursor: pointer; transition: 0.2s;
   }
   .btn--primary { background: var(--clr-primary); color: var(--clr-bg); }
   .btn--primary:hover { background: var(--clr-primary-dark); }
   .btn--secondary { background: var(--clr-secondary); color: var(--clr-bg); }
   .btn--small { padding: 0.4rem 1rem; }
   .theme-toggle { background: none; border: none; font-size: 1.25rem; cursor: pointer; }
   
   /* ==========================================================================
      Navigation
      ========================================================================== */
   .nav {
     position: sticky; top: 0; z-index: 999;
     display: flex; align-items: center; justify-content: space-between;
     padding: 1rem 2rem; background: var(--clr-bg); box-shadow: 0 1px 4px rgba(0,0,0,0.05);
   }
   .nav__brand { font-size: 1.75rem; font-weight: 700; color: var(--clr-primary); }
   .nav__links { display: flex; align-items: center; gap: 1rem; }
   .nav__links a { text-decoration: none; font-weight: 500; color: var(--clr-text); }
   .nav__links a:hover { color: var(--clr-primary); }
   .nav__toggle { display: none; background: none; border: none; font-size: 1.5rem; }
   
   /* Mobile nav */
   @media (max-width: 48rem) {
     .nav__toggle { display: block; }
     .nav__links { position: fixed; inset: 0 0 0 auto; width: 60%; flex-direction: column; padding-top: 5rem;
       background: var(--clr-bg); transform: translateX(100%); transition: 0.3s; }
     .nav__links.open { transform: translateX(0); }
   }
   
   /* ==========================================================================
      Hero
      ========================================================================== */
      .hero {
        height: auto;
        min-height: 50vh;
        padding: 6rem 1rem 5rem;
        background: linear-gradient(to bottom, rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.9)), url('hero-bg.jpg') center/cover no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #f8fafc;
        box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1);
      }
      .hero__content {
        max-width: 48rem;
        margin: auto;
        animation: fadeIn 0.8s ease;
      }
      .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 1rem;
      }
      .hero p {
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
        opacity: 0.95;
        margin-bottom: 2rem;
      }
      .hero .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        border-radius: 999px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
        transition: transform 0.2s ease;
      }
      .hero .btn:hover {
        transform: translateY(-2px);
      }
      
   
   /* ==========================================================================
      Services
      ========================================================================== */
   .services-grid {
     display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
   }
   .service-card {
     background: var(--clr-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
     padding: 2rem; text-align: center; transition: transform 0.2s;
   }
   .service-card:hover { transform: translateY(-4px); }
   .service-card i { font-size: 2.5rem; color: var(--clr-primary); margin-bottom: 1rem; }
   .service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
   .service-card p { font-size: 0.95rem; margin-bottom: 1rem; color: var(--clr-text); }
   .service-card button { width: 100%; }
   
   /* ==========================================================================
      Guides
      ========================================================================== */
   .state-form { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 2rem; justify-content: center; }
   .state-form select { flex: 1 1 15rem; padding: 0.7rem; border: 1px solid #d1d5db; border-radius: var(--radius-lg); }
   .guide {
     background: var(--clr-bg); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg);
     max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
   }
   .guide.open { max-height: 100rem; } /* large enough to reveal content */
   .guide h3 { margin-top: 1rem; font-size: 1.5rem; }
   .guide h4 { margin-top: 1.25rem; font-size: 1.2rem; }
   .guide ul { margin-left: 1.25rem; list-style: disc; }
   
   /* ==========================================================================
      Manuals Library
      ========================================================================== */
   #manualSearch { width: 100%; max-width: 25rem; margin-inline: auto 0; padding: 0.6rem 1rem;
     border: 1px solid #d1d5db; border-radius: var(--radius-lg); margin-bottom: 1.5rem; }
   .manuals { list-style: none; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
   .manuals li { background: var(--clr-bg); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); padding: 1rem; }
   .manuals a { text-decoration: none; color: var(--clr-primary); font-weight: 500; }
   
   /* ==========================================================================
      Premium
      ========================================================================== */
   .premium { background: #1e293b; color: #f8fafc; padding: 6rem 2rem; text-align: center; }
   .premium__card { background: #0f172a; display: inline-block; padding: 3rem 3.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
   .premium__card ul { text-align: left; margin: 1rem 0 2rem; }
   .premium__card li { margin-bottom: 0.5rem; }
   
   /* ==========================================================================
      Lead-gen form
      ========================================================================== */
   .lead-form { max-width: 40rem; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
   .lead-form__row { display: flex; gap: 1rem; flex-wrap: wrap; }
   .lead-form input, .lead-form textarea {
     flex: 1 1 12rem; padding: 0.8rem; border: 1px solid #d1d5db; border-radius: var(--radius-lg);
   }
   .lead-form textarea { resize: vertical; }
   
   /* ==========================================================================
      Footer & ad
      ========================================================================== */
   .footer { background: #f3f4f6; text-align: center; padding: 2rem 1rem; font-size: 0.875rem; }
   .footer__links a { margin-inline: 0.5rem; color: #6b7280; text-decoration: none; }
   .footer__links a:hover { color: var(--clr-primary); }
   
   .ad-banner {
     position: fixed; bottom: 1rem; right: 1rem; z-index: 998;
     background: #e5e7eb; padding: 1rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
   }
   .ad-placeholder { font-size: 0.875rem; }
   
   @media (max-width: 30rem) {
     .premium__card { width: 100%; }
     .ad-banner { right: 50%; transform: translateX(50%); }
   }
   .guide-card {
    display: none;
    background: var(--clr-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .guide-card.open {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .guide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
  }
  
  .guide-section {
    margin-bottom: 2rem;
  }
  
  .guide-section h4 {
    font-size: 1.15rem;
    color: var(--clr-secondary);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
  }
  
  .guide-section ul {
    padding-left: 1.25rem;
    list-style-type: disc;
    line-height: 1.75;
    color: var(--clr-text);
  }
  
  .guide-footer {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  

  .manuals-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
  }
  .manuals-controls input, .manuals-controls select {
    padding: 0.7rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-lg);
    max-width: 22rem;
    flex: 1 1 200px;
  }
  
  .manuals-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
  }
  .manuals-grid li {
    background: var(--clr-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    transition: transform 0.2s ease;
  }
  .manuals-grid li:hover {
    transform: translateY(-5px);
  }
  .manuals-grid a {
    display: block;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
  }
  .manuals-grid span {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.4rem;
    color: #6b7280;
  }
  
  .manuals-request {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    text-align: center;
  }
  .manuals-request form {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .manuals-request input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    flex: 1 1 200px;
    max-width: 20rem;
  }
  .contact-wrap {
    padding-block: 5rem;
  }
  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
  }
  
  .contact-image {
    flex: 1 1 300px;
    max-width: 500px;
  }
  .contact-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
  }
  
  .contact-form-card {
    flex: 1 1 320px;
    max-width: 600px;
  }
  .contact-form .lead-form__row {
    margin-bottom: 1rem;
  }
  .contact-form textarea {
    min-height: 140px;
  }
  .contact-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.25rem;
  }
  
  @media (max-width: 768px) {
    .contact-grid {
      flex-direction: column-reverse;
      text-align: center;
    }
    .contact-form .lead-form__row {
      flex-direction: column;
    }
  }
  

  /* ========== TAB NAV ==========*/
.tabs{
  display:flex;justify-content:center;gap:0.5rem;margin:2.5rem auto;
  border-radius:var(--radius-lg);background:#f1f5f9;max-width:40rem;
}
.tabs button{
  flex:1;padding:0.8rem 1rem;font-weight:600;font-size:1rem;border:none;
  background:none;border-radius:var(--radius-lg);cursor:pointer;transition:0.2s;
}
.tabs button[aria-selected="true"]{
  background:var(--clr-primary);color:#fff;box-shadow:var(--shadow-lg);
}

/* Panels */
.tab-panels{margin-top:1rem}
.tab-panel[hidden]{display:none}

/* Guide cards */
.guide-grid{
  list-style:none;display:grid;gap:1.5rem;
  grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));
  padding:0;margin:3rem 0 1rem;
}
.guide-card{
  background:var(--clr-bg);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);padding:1.5rem;display:flex;flex-direction:column;
}
.guide-card h3{font-size:1.25rem;margin-bottom:0.5rem;color:var(--clr-primary)}
.guide-card p{flex:1;font-size:0.95rem;margin-bottom:1rem}
.guide-card a{align-self:flex-start}

.state-guide-card{
  background:var(--clr-bg);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  padding:2rem;margin-top:2rem;animation:fadeIn .3s ease;
}
.state-guide-card h3{font-size:1.5rem;color:var(--clr-primary);margin-bottom:1rem}
.state-guide-card section+section{margin-top:1.75rem}
.state-guide-card h4{font-size:1.15rem;color:var(--clr-secondary);margin-bottom:0.5rem}

@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}


section.container:not(:last-of-type) {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}


.guide {
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.guide.open {
  max-height: 40rem; /* Adjust if your content is taller */
  opacity: 1;
}

.guide-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.guide-list {
  list-style: none;
  padding: 0;
  flex: 1 1 280px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-list-item .guide-btn {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--clr-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.guide-btn:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

.guide-btn.active {
  border-color: var(--clr-primary);
  background: #eef2ff;
}

.guide-btn h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--clr-primary);
}

.guide-btn p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--clr-text);
}

.guide-detail {
  flex: 1 1 500px;
  min-width: 300px;
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.guide-detail-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
}

.guide-detail-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .guide-layout {
    flex-direction: column;
  }

  .guide-detail {
    margin-top: 1.5rem;
  }
}




