/* === SOFWAVE BEST PROVIDERS - SITE STYLES === */
/* White + Baby Blue Color Scheme */
:root {
  --primary: #1e293b;
  --primary-dark: #0f172a;
  --accent: #7dd3fc;
  --accent-mid: #38bdf8;
  --accent-dark: #0ea5e9;
  --accent-subtle: #f0f9ff;
  --accent-border: #bae6fd;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === HEADER / NAV === */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo span { color: var(--accent-dark); }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }

.nav-links > li { position: relative; }

.nav-links > li > a {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--accent-dark); }

/* Dropdown Arrow */
.nav-arrow { font-size: 0.6rem; transition: transform 0.2s; }

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(6px);
  z-index: 200;
}

.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover {
  background: var(--accent-subtle);
  color: var(--accent-dark);
}

.dropdown .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dropdown .rank-num.top { background: var(--accent-dark); color: #fff; }

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === FULL-WIDTH HERO WITH OVERLAY === */
.hero-fullwidth {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-fullwidth img.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.hero-fullwidth .hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.7) 100%);
  z-index: 2;
}

.hero-fullwidth .hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 0 24px;
}

.hero-fullwidth h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-fullwidth h1 span { color: var(--accent); }

.hero-fullwidth p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-fullwidth .hero-sub {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(125,211,252,0.15);
  border: 1px solid rgba(125,211,252,0.35);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* === STANDARD HERO (sub-pages) === */
.hero {
  background: #ffffff;
  padding: 60px 0 52px;
  text-align: center;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  line-height: 1.12;
  color: var(--primary);
}

.hero h1 span { color: var(--accent-dark); }

.hero p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs span { margin: 0 8px; }

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  padding: 48px 0 8px;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
}

/* === PROVIDER CARDS === */
.providers-grid {
  display: grid;
  gap: 24px;
  padding: 32px 0 64px;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}

.provider-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.provider-card.featured {
  border: 2px solid var(--accent-mid);
  background: linear-gradient(180deg, var(--accent-subtle) 0%, #fff 100%);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-alt);
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.provider-card.featured .rank-badge {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

.featured-tag {
  position: absolute;
  top: -1px;
  right: 32px;
  background: var(--accent-dark);
  color: #fff;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 8px 8px;
}

.provider-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}

.provider-card h2 a { color: var(--primary); }
.provider-card h2 a:hover { color: var(--accent-dark); }

.provider-meta {
  font-size: 0.87rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.provider-description {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text);
}

.provider-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.detail-item {
  font-size: 0.86rem;
  color: var(--text-light);
}

.detail-item strong {
  color: var(--text);
  font-weight: 600;
}

.provider-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.provider-card.featured .tag {
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border-color: var(--accent-border);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-dark);
  color: var(--accent-dark);
}

.btn-outline:hover { background: var(--accent-dark); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: var(--accent-subtle); color: var(--primary); }

/* === CONTENT PAGES === */
.content-page {
  padding: 48px 0 80px;
}

.content-page h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 14px;
}

.content-page h2:first-child { margin-top: 0; }

.content-page h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 28px 0 10px;
}

.content-page p {
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.content-page ul, .content-page ol { margin: 0 0 20px 24px; }

.content-page li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 36px;
  font-size: 0.9rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.comparison-table thead { background: var(--primary); color: #fff; }

.comparison-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tbody tr:hover { background: var(--accent-subtle); }
.comparison-table .highlight-col { background: var(--accent-subtle); }

/* === FAQ === */
.faq-section { margin: 48px 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
}

/* === CTA SECTION === */
.cta-section {
  background: var(--primary);
  padding: 56px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  font-size: 1rem;
}

/* === METHODOLOGY === */
.methodology-section {
  background: var(--bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 36px 0;
  font-size: 0.84rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 14px;
}

.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--accent-dark); }

/* === PROVIDER DETAIL PAGE === */
.provider-hero {
  background: #ffffff;
  padding: 56px 0 44px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.provider-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

.provider-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
}

.provider-content { padding: 48px 0 64px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.info-box h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.info-box p {
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

.section-intro {
  font-size: 1.02rem;
  color: var(--text-light);
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* === SIDEBAR LAYOUT === */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0 80px;
}

.page-main {
  min-width: 0;
}

.page-main .content-page { padding: 0; }
.page-main .provider-content { padding: 0; }

.page-sidebar {
  position: relative;
}

.sidebar-widget {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-card-header {
  background: var(--primary);
  padding: 16px 20px;
  color: #fff;
}

.sidebar-card-header h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.sidebar-provider {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
}

.sidebar-provider:last-child { border-bottom: none; }

.sidebar-provider:hover { background: var(--accent-subtle); }

.sidebar-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-rank.gold { background: var(--accent-dark); color: #fff; }
.sidebar-rank.silver { background: #94a3b8; color: #fff; }
.sidebar-rank.bronze { background: #b0885a; color: #fff; }

.sidebar-provider-info {
  flex: 1;
  min-width: 0;
}

.sidebar-provider-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sidebar-provider:hover .sidebar-provider-name { color: var(--accent-dark); }

.sidebar-provider-meta {
  font-size: 0.76rem;
  color: var(--text-light);
  line-height: 1.4;
}

.sidebar-provider-tag {
  display: inline-block;
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 6px;
}

.sidebar-cta {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.sidebar-cta a {
  display: block;
  padding: 10px 16px;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}

.sidebar-cta a:hover { background: var(--primary); color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-fullwidth { height: 420px; }
  .hero-fullwidth h1 { font-size: 2.2rem; }
  .hero-fullwidth p { font-size: 0.95rem; }

  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open > li > a { padding: 12px 0; }

  .nav-links.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }

  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-widget { position: static; }

  .provider-card { padding: 24px; }
  .provider-details { grid-template-columns: 1fr; }
  .provider-hero h1 { font-size: 1.7rem; }
  .content-page h2 { font-size: 1.4rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-fullwidth { height: 380px; }
  .hero-fullwidth h1 { font-size: 1.8rem; }
  .hero-badge { font-size: 0.76rem; padding: 6px 14px; }
  .container { padding: 0 16px; }
}
