/* ============================================
   PREMIUM REFINEMENTS
   ============================================ */

/* ---------- HEADER ---------- */
.header {
  transition: background 0.3s, box-shadow 0.3s, top 0.3s;
}

.header.scrolled {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 7px 24px rgba(18, 40, 88, 0.09);
}

.header.scrolled .brand {
  color: #0f172a;
}

.header.scrolled .nav-links > a {
  color: #40506c;
}

.header.scrolled .nav-links .nav-cta {
  background: #2563eb;
  color: #fff;
}

/* ---------- NAVIGATION ---------- */
.nav-links {
  gap: 18px;
}

.nav-links > a {
  font-size: 12px;
}

/* ---------- COMPARISON TABLE ---------- */
.comparison {
  background: linear-gradient(180deg, #fff, #f5faff);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(24, 73, 135, 0.07);
}

.table-wrap table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  text-align: center;
}

.table-wrap th {
  background: #0f2f72;
  color: #fff;
  font: 700 13px Poppins, sans-serif;
  padding: 16px;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  text-align: left;
  padding-left: 24px;
}

.table-wrap td {
  padding: 14px;
  border-bottom: 1px solid #e8eef7;
  color: #16a34a;
  font-weight: 700;
}

.table-wrap td:first-child {
  color: #475569;
  font-weight: 600;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

/* ---------- BLOG SECTION ---------- */
.blog {
  background: #f8fbff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(23, 77, 146, 0.13);
}

.blog-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #e9f4ff;
  color: #2563eb;
  font-size: 23px;
}

.blog-card p {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #2563eb;
  font-weight: 800;
  margin: 20px 0 8px;
}

.blog-card h3 {
  font-size: 18px;
  min-height: 65px;
}

.blog-card a {
  display: inline-block;
  margin-top: 18px;
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
  body {
    background: #020617;
    color: #cbd5e1;
  }

  .section:not(.process),
  .packages-wrap,
  .comparison,
  .blog {
    background: #020617;
  }

  .soft,
  .testimonials {
    background: #071227;
  }

  .feature,
  .package,
  .calculator,
  .testimonial-grid blockquote,
  .signup-form,
  .blog-card,
  .table-wrap {
    background: #0f172a;
    border-color: #20304a;
  }

  h2,
  h3,
  .feature h3,
  .package h3,
  .testimonial-grid p,
  .faq summary,
  .signup-form h3 {
    color: #fff;
  }

  .table-wrap td,
  .table-wrap td:first-child {
    color: #cbd5e1;
    border-color: #20304a;
  }

  .table-wrap th {
    background: #172554;
  }

  .calculator select,
  .area-form input,
  .signup-form input,
  .signup-form select {
    background: #111d33;
    color: #e2e8f0;
    border-color: #30415d;
  }

  .area-map {
    filter: saturate(0.8) brightness(0.75);
  }

  .faq details {
    border-color: #20304a;
  }

  .header.scrolled {
    background: rgba(15, 26, 47, 0.94);
  }

  .header.scrolled .brand {
    color: #fff;
  }

  .header.scrolled .nav-links > a {
    color: #cbd5e1;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 850px) {
  .header.scrolled .nav-links.open {
    background: #0f2f72;
  }

  .header.scrolled .nav-links.open a {
    color: #eaf6ff;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card h3 {
    min-height: 0;
  }
}
/* =====================================
   LEGAL PAGE
===================================== */

.legal-page{

    padding:100px 0;

}

.legal-content{

    background:#fff;

    border-radius:24px;

    padding:50px;

    box-shadow:0 20px 50px rgba(15,23,42,.08);

}

.legal-content h2{

    margin-top:40px;

    margin-bottom:15px;

    font-size:24px;

    color:#0f172a;

}

.legal-content h2:first-child{

    margin-top:0;

}

.legal-content p{

    color:#64748b;

    line-height:1.9;

    margin-bottom:18px;

}

.legal-content ul{

    padding-left:22px;

    margin-bottom:20px;

}

.legal-content li{

    margin-bottom:12px;

    line-height:1.8;

    color:#64748b;

}

.legal-contact{

    margin-top:50px;

    text-align:center;

}

@media(max-width:768px){

    .legal-content{

        padding:30px 22px;

    }

}
/* ===========================
CONTACT
=========================== */

.contact-page{

    padding:100px 0;

}

.contact-grid{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:40px;

    margin-top:50px;

}

.contact-info{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact-card{

    display:flex;

    gap:20px;

    padding:24px;

    background:#fff;

    border-radius:20px;

    box-shadow:0 12px 30px rgba(0,0,0,.06);

}

.contact-card .icon{

    width:60px;

    height:60px;

    border-radius:16px;

    background:#2563eb15;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

}

.contact-card h3{

    margin-bottom:8px;

}

.contact-card p,
.contact-card a{

    color:#64748b;

    text-decoration:none;

}

.contact-form{

    background:#fff;

    border-radius:24px;

    padding:40px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.form-group input,
.form-group textarea{

    width:100%;

    padding:15px 18px;

    border:1px solid #dbe4ef;

    border-radius:14px;

    outline:none;

    transition:.3s;

}

.form-group input:focus,
.form-group textarea:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.08);

}

.contact-map{

    margin-top:60px;

    overflow:hidden;

    border-radius:24px;

    box-shadow:0 20px 45px rgba(0,0,0,.08);

}

.contact-map iframe{

    width:100%;

    height:450px;

    border:0;

}

@media(max-width:991px){

    .contact-grid{

        grid-template-columns:1fr;

    }

}