/* =============================================
   UCaaS Comparison — Global Stylesheet
   UCaaS Review Network
   ============================================= */

:root {
  --primary: #2C3E50;
  --primary-light: #3D5166;
  --primary-dark: #1A252F;
  --accent: #2980B9;
  --accent-light: #3498DB;
  --accent-dark: #1F6391;
  --bg: #F5F7FA;
  --bg-alt: #EBF0F5;
  --white: #FFFFFF;
  --text: #2C3E50;
  --text-muted: #6B7C8A;
  --border: #D5DDE5;
  --blue-tint: #EBF5FC;
  --shadow-sm: 0 1px 3px rgba(44,62,80,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(44,62,80,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(44,62,80,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 14px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.75rem 1.6rem; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; text-align: center; line-height: 1.3; font-family: var(--font); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(41,128,185,0.35); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(44,62,80,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; border-radius: 10px; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* Navigation */
.site-nav { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 68px; max-width: var(--max-w); margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.nav-logo span { color: #5DADE2; }
.nav-logo-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: rgba(255,255,255,0.82); font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.85rem; border-radius: 6px; transition: color 0.2s, background 0.2s; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta { background: var(--accent) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 4.5rem 1.25rem 3.5rem; text-align: center; }
.hero::after { content: ''; display: block; height: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin-top: 3.5rem; }
.hero-eyebrow { display: inline-block; background: rgba(93,173,226,0.15); color: #5DADE2; border: 1px solid rgba(93,173,226,0.3); padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { color: var(--white); max-width: 780px; margin: 0 auto 1.1rem; }
.hero h1 em { color: #5DADE2; font-style: normal; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Trust Bar */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; }
.trust-bar-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.trust-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.trust-logos { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.trust-logo { font-size: 0.85rem; font-weight: 700; color: var(--primary); padding: 0.35rem 0.8rem; border: 1px solid var(--border); border-radius: 6px; }

/* Sections */
.section-white { padding: 5rem 1.25rem; background: var(--white); }
.section-alt { padding: 5rem 1.25rem; background: var(--bg); }
.section-dark { padding: 5rem 1.25rem; background: var(--primary); }
.section-blue { padding: 5rem 1.25rem; background: var(--blue-tint); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); background: var(--blue-tint); border: 1px solid #BDD7EE; padding: 0.3rem 0.9rem; border-radius: 100px; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.65rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* Comparison Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--white); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th { background: var(--primary); color: var(--white); padding: 1rem 1.1rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; white-space: nowrap; }
.comparison-table th:first-child { min-width: 150px; border-radius: var(--radius-lg) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.comparison-table td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) { background: var(--bg); }
.comparison-table tr:hover { background: var(--blue-tint); }
.comparison-table .provider-name { font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.provider-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.check { color: #27AE60; font-weight: 700; font-size: 1.1rem; }
.cross { color: #E74C3C; font-weight: 700; font-size: 1.1rem; }
.rating-badge { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--blue-tint); color: var(--accent); border: 1px solid #BDD7EE; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.82rem; font-weight: 700; }
.top-pick-row td { background: #FFF9E6 !important; }
.top-pick-badge { display: inline-block; background: #F4C430; color: var(--primary-dark); font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 0.4rem; }

/* Compare Deep Cards */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.compare-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.compare-card.featured { border-color: var(--accent); }
.compare-card h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.compare-card-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); background: var(--blue-tint); padding: 0.2rem 0.5rem; border-radius: 4px; }
.pros-cons { margin-top: 1rem; }
.pros-cons h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.6rem; }
.pros-list, .cons-list { list-style: none; padding: 0; }
.pros-list li, .cons-list li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; font-size: 0.9rem; color: var(--text); }
.pros-list li::before { content: '+'; color: #27AE60; font-weight: 800; position: absolute; left: 0; }
.cons-list li::before { content: '-'; color: #E74C3C; font-weight: 800; position: absolute; left: 0; }

/* Feature Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: var(--max-w); margin: 0 auto; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.feature-icon { width: 48px; height: 48px; background: var(--blue-tint); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; max-width: var(--max-w); margin: 0 auto; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-img { height: 130px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.blog-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 0.75rem; margin-bottom: 0.6rem; align-items: center; }
.blog-tag { background: var(--blue-tint); color: var(--accent); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 100px; text-transform: uppercase; }
.blog-read-time { font-size: 0.78rem; color: var(--text-muted); }
.blog-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card h3 a { color: var(--primary); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin: 0; }
.blog-card-footer { padding: 0.9rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.blog-card-date { font-size: 0.78rem; color: var(--text-muted); }
.blog-read-link { font-size: 0.83rem; font-weight: 600; color: var(--accent); }

/* Promo */
.promo-section { background: var(--primary-dark); padding: 4.5rem 1.25rem; }
.promo-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.promo-label { display: inline-block; background: rgba(93,173,226,0.15); color: #5DADE2; border: 1px solid rgba(93,173,226,0.3); padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 1rem; }
.promo-content h2 { color: var(--white); margin-bottom: 0.9rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.promo-content p { color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.promo-details { list-style: none; padding: 0; margin: 0 0 2rem; }
.promo-details li { color: rgba(255,255,255,0.85); padding: 0.4rem 0; display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; }
.promo-details li::before { content: '✓'; color: #5DADE2; font-weight: 700; flex-shrink: 0; }
.promo-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.promo-phone-emoji { font-size: 4rem; margin-bottom: 1rem; }
.promo-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.promo-card p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 1.25rem; }
.promo-highlight { background: #F4C430; color: var(--primary-dark); padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 1rem; font-weight: 800; display: inline-block; margin-bottom: 1rem; }

/* CTA */
.cta-section { background: var(--accent); padding: 4rem 1.25rem; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 0.65rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; font-size: 1.05rem; }
.cta-banner { background: var(--accent); padding: 4rem 1.25rem; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.65rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

/* Form embed */
.form-embed-section { padding: 5rem 1.25rem; background: var(--bg-alt); }
.form-embed-wrap { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.form-embed-header { text-align: center; margin-bottom: 2rem; }
.form-embed-wrap iframe { width: 100%; border: none; min-height: 560px; border-radius: var(--radius); }

/* Page / Post heros */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 4rem 1.25rem; text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.post-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 4rem 1.25rem; }
.post-hero-inner { max-width: 820px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #5DADE2; }
.breadcrumb span { margin: 0 0.4rem; }
.post-meta { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.post-tag { background: rgba(93,173,226,0.2); color: #5DADE2; border: 1px solid rgba(93,173,226,0.35); padding: 0.3rem 0.85rem; border-radius: 100px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.post-date, .post-read { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.post-hero h1 { color: var(--white); margin-bottom: 1rem; }
.post-intro { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin: 0; }
.post-body { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.post-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--bg-alt); }
.post-body h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; color: var(--accent); }
.post-body ul { list-style: none; padding: 0; }
.post-body ul li { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.post-body ul li::before { content: '→'; color: var(--accent); font-weight: 700; position: absolute; left: 0; }
.post-cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-lg); padding: 2.5rem; margin-top: 3rem; text-align: center; }
.post-cta-box h3 { color: var(--white); margin-bottom: 0.6rem; }
.post-cta-box p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }

/* Page content */
.page-content { max-width: 820px; margin: 0 auto; padding: 4rem 1.25rem; }
.page-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--bg-alt); }
.page-content h2:first-of-type { margin-top: 0; }
.methodology-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }

/* Deep comparison */
.verdict-box { background: var(--blue-tint); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0; }
.verdict-box h3 { color: var(--accent); margin-bottom: 0.75rem; }
.scoring-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.scoring-table th { background: var(--bg-alt); padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); }
.scoring-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.score-bar { height: 6px; border-radius: 3px; background: var(--bg-alt); overflow: hidden; min-width: 80px; }
.score-fill { height: 100%; background: var(--accent); border-radius: 3px; }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 3.5rem 1.25rem 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin: 1rem 0; }
.footer-network { font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.footer-network a { color: #5DADE2; font-weight: 600; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; text-decoration: none; }
.footer-col a:hover { color: #5DADE2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.83rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #5DADE2; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-inner { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 1rem; }
  .nav-mobile-toggle { display: flex; }
  .site-nav { position: relative; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .section-white, .section-alt, .section-blue { padding: 3.5rem 1.25rem; }
}
