/* =========================
   Base / Layout
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #1b2430;
}

body {
  line-height: 1.5;
}

.page {
  min-height: 100vh;
}

/* Utility */

.nowrap {
  white-space: nowrap;
}

/* Links */

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Header / Navigation
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e1e4f0;
}

.site-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo-img {
  display: block;
  height: 30px;
  width: auto;
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: #4b5563;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a:hover,
.nav a.active {
  color: #111827;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Header phone (not used now, but kept in case you re-add later) */

.header-phone {
  text-align: right;
  font-size: 0.75rem;
}

.header-phone .phone-label {
  display: block;
  color: #6b7280;
}

.header-phone .phone-number {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  font-size: 0.85rem;
}

.header-phone .phone-number:hover {
  text-decoration: underline;
}

/* =========================
   Hero / Quote Form
========================= */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.7rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.4rem;
}

.hero-left h1 {
  margin: 0 0 0.9rem;
  font-size: 1.95rem;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.hero-lead {
  margin: 0 0 1rem;
  color: #4b5563;
}

.hero-subnote {
  margin-top: 0.8rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.bullets {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: #374151;
}

.bullets li {
  margin-bottom: 0.25rem;
}

/* Quote card */

.hero-right {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.6rem 1.8rem 1.7rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.hero-right h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #111827;
}

/* Form */

#quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#quote-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#quote-form input,
#quote-form select,
#quote-form textarea {
  font: inherit;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.65rem;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

#quote-form input[type="checkbox"]{
    width: 18px !important;
    height: 18px !important;
}

#quote-form input::placeholder,
#quote-form textarea::placeholder {
  color: #9ca3af;
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
  background: #ffffff;
}

/* Submit button */

#quote-form button[type="submit"] {
  margin-top: 0.45rem;
  padding: 0.72rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

#quote-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(22, 163, 74, 0.3);
  opacity: 0.98;
}

#quote-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Form status */

.status {
  min-height: 1.1rem;
  font-size: 0.8rem;
  margin: 0;
  
  color: #6b7280;
}

.status.success {
  color: #16a34a;
}

.status.error {
  color: #dc2626;
}

/* TCPA note */

label.tcpa-note{
    display: inline-block !important;
}

.tcpa-note {
  margin-top: 0.55rem;
  font-size: 0.7rem;
  color: #9ca3af;
}

/* =========================
   Sections (Services, About)
========================= */

.section {
  padding: 2.6rem 1.5rem 3rem;
}

.section-alt {
  background: #eef2ff;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #0f172a;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: #4b5563;
}

/* Services grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.1rem 1rem 1.15rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.18);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
}

/* Service cards with images */

.service-card {
  padding: 0.9rem 0.9rem 1.1rem;
}

.service-card-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.service-card-image img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.service-list li {
  margin-bottom: 0.18rem;
}

/* Ghost button inside cards */

.ghost-btn {
  margin-top: 0.4rem;
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

.ghost-btn:hover {
  background: #f9fafb;
  border-color: #22c55e;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.3);
}

/* About layout */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.about-text {
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-text p {
  margin: 0.7rem 0;
  color: #374151;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-point {
  background: #e5f9ee;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* =========================
   Subpage Layout (Partners, Privacy, Contact)
========================= */

body.subpage .site-header {
  position: sticky;
}

body.subpage main.section {
  padding-top: 2.2rem;
}

.subpage .section-inner {
  max-width: 900px;
}

.subpage .section-title {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

.subpage .section-intro {
  margin-bottom: 1.4rem;
}

/* Lists & text */

.bullets,
.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list {
  margin: 0 0 1.7rem;
  font-size: 0.9rem;
  color: #374151;
}

.contact-list li {
  margin-bottom: 0.3rem;
}

/* Headings in text pages */

.subpage h2 {
  margin-top: 1.3rem;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  color: #111827;
}

.subpage h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #111827;
}

/* Small print */

.privacy-small {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Primary link button (Contact page) */

.primary-link-btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #f9fafb;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.primary-link-btn:hover {
  opacity: 0.95;
  text-decoration: none;
}

/* =========================
   Footer
========================= */

.footer {
  border-top: 1px solid #e1e4f0;
  padding: 1.2rem 1.5rem 1.5rem;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin-top: 1rem;
  background: #ffffff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-main {
  margin: 0 0 0.3rem;
  color: #4b5563;
}

.footer-note {
  margin: 0 0 0.5rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.footer-links {
  margin: 0;
  font-size: 0.8rem;
}

.footer-links a {
  color: #2563eb;
}

.footer-links span {
  margin: 0 0.3rem;
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-phone {
    display: none;
  }

  .nav {
    justify-content: flex-end;
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .about-layout {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.2rem 1.2rem 2.7rem;
  }

  .hero-right {
    order: -1;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .about-points {
    max-width: 620px;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer {
    padding-inline: 1.2rem;
  }

  .footer-note {
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    padding-inline: 1rem;
  }

  .hero,
  .section {
    padding-inline: 1rem;
  }

  .nav {
    gap: 0.6rem;
  }

  .hero-left h1 {
    font-size: 1.7rem;
  }
}
