/* SEOSites Design System - Premium Edition */

:root {
  --primary: #1e3a8a;
  --secondary: #0f766e;
  --accent: #d97706;
  --accent-hover: #b45309;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.top-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Primary Call Buttons */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--btn-submit-bg, var(--accent));
  color: var(--btn-submit-text, #ffffff) !important;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.btn-phone:hover {
  background-color: var(--btn-submit-hover, var(--accent-hover));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--btn-secondary-bg, var(--primary));
  color: var(--btn-secondary-text, #ffffff) !important;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover, #172554);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background-color: #172554;
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4rem 0 4.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-content p.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-trust-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-trust-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.hero-trust-bullets svg {
  color: #22c55e;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Lead Form Card */
.lead-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.2);
}

.lead-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.lead-card p.form-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.btn-submit {
  width: 100%;
  background-color: var(--btn-submit-bg, var(--accent));
  color: var(--btn-submit-text, #ffffff);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-submit:hover {
  background-color: var(--btn-submit-hover, var(--accent-hover));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.form-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  font-weight: 600;
}

/* Trust Bar */
.trust-bar {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.trust-item-text strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.2;
}

.trust-item-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section Styling */
.section {
  padding: 4.75rem 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card-icon {
  width: 54px;
  height: 54px;
  background-color: #eff6ff;
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Responsive Media Queries */
.phone-num-mobile { display: none; }
.mobile-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.btn-phone-compact { display: inline-flex; align-items: center; gap: 0.4rem; background-color: var(--btn-submit-bg, var(--accent)); color: #ffffff !important; font-weight: 700; padding: 0.75rem 1.4rem; border-radius: var(--radius-md); font-size: 0.95rem; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0,0,0,0.15); border: none; cursor: pointer; }
.btn-phone-compact:hover { background-color: var(--btn-submit-hover, var(--accent-hover)); }

@media (max-width: 992px) {
  .header-actions {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* 1. Hide cluttered top info bar on mobile screens */
  .top-bar {
    display: none !important;
  }

  /* 2. Top Emergency Banner scaling */
  .emergency-top-ticker {
    font-size: 0.74rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  /* 3. Site Header layout */
  .site-header {
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }

  .header-inner {
    height: 62px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }

  .brand-logo {
    font-size: 1.1rem !important;
    gap: 0.5rem !important;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-phone-compact {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }

  .phone-num-desktop {
    display: none !important;
  }

  .phone-num-mobile {
    display: inline !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.25rem !important;
    cursor: pointer;
    color: var(--text-main);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid var(--accent);
    z-index: 1001;
  }

  .main-nav.active {
    display: block !important;
    animation: slideDownNav 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .nav-links a {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
  }

  .nav-links a:hover {
    background: var(--accent);
    color: #ffffff;
    padding-left: 1.25rem;
  }

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

  /* 4. Hero Section Typography & Layout on Mobile */
  .hero-section {
    padding: 2.25rem 0 2.5rem !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-content h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.85rem !important;
    letter-spacing: -0.01em !important;
  }

  .hero-content p.hero-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-trust-bullets {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-trust-bullets li {
    font-size: 0.88rem !important;
  }

  .lead-card {
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }

  .lead-card h2 {
    font-size: 1.25rem !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .btn-phone, .btn-submit {
    font-size: 0.95rem !important;
    padding: 0.75rem 1.15rem !important;
    white-space: nowrap !important;
  }

  /* About page: replace its desktop inline grid with a comfortable phone layout. */
  .about-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .about-intro { padding: 2rem 0 !important; }
  .about-intro h1 { font-size: 1.9rem !important; line-height: 1.2 !important; margin-bottom: 0.45rem !important; }
  .about-intro p { font-size: 1rem !important; line-height: 1.45 !important; }
  .about-content-section { padding-top: 2.25rem !important; padding-bottom: 2.75rem !important; }

  .about-layout h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .about-layout > div:first-child > p,
  .about-layout .db-content,
  .about-layout p {
    overflow-wrap: anywhere;
  }

  .about-values {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .about-values .lead-card {
    padding: 1.15rem !important;
    margin-bottom: 0 !important;
  }

  .about-form-wrap {
    position: static !important;
  }
}

/* Premium FAQ Accordion Styles */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-question {
  color: var(--accent);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--accent);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.35rem 1.5rem;
}

/* Site Footer Styles */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4.5rem 0 6.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-nap {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-nap li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer {
    padding: 3.5rem 0 7rem;
  }
}
