/*
Theme Name: SEO Starter
Theme URI: https://amanvirdy.com
Description: High-performance SEO landing page theme with programmatic location pages, schema markup, and clean design. Built for Canadian service directories.
Version: 1.0.0
Author: Virdy Group
Author URI: https://virdygroup.com
Text Domain: seo-starter
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  color: #0f0f23;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { margin-bottom: 1em; }

/* ===== CSS VARIABLES (overridden per site) ===== */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #dbeafe;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-on-dark: #f1f5f9;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.site-logo img { height: 40px; }
.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); margin: 5px 0;
  transition: transform 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('') center/cover;
  opacity: 0.15;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 400px; object-fit: cover; }

/* ===== SEARCH / CTA BOX ===== */
.search-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 0.75rem;
}
.search-box input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--text-primary);
}
.search-box input::placeholder { color: var(--text-secondary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--bg-light); color: var(--accent); }
.btn-secondary:hover { background: var(--accent-light); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image { height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-text { color: var(--text-secondary); font-size: 0.95rem; }
.card-meta { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.85rem; color: var(--text-secondary); }

/* ===== FEATURES / SERVICES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.feature-item { text-align: center; padding: 2rem 1.5rem; }
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-text { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== LOCATION GRID (Programmatic Pages) ===== */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.location-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}
.location-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.location-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.location-card .province { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.testimonial-text { font-style: italic; margin-bottom: 1.25rem; color: var(--text-primary); }
.testimonial-author { font-weight: 600; }
.testimonial-location { font-size: 0.85rem; color: var(--text-secondary); }
.stars { color: #f59e0b; margin-bottom: 0.75rem; letter-spacing: 2px; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1.25rem 0;
}
.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; padding-top: 0.75rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 1rem; font-size: 0.9rem; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: rgba(255,255,255,0.5); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { margin: 0 0.5rem; }

/* ===== LOCATION PAGE ===== */
.location-hero {
  padding: 4rem 0 3rem;
  background: var(--bg-light);
}
.location-content { padding: 3rem 0; }
.location-content h2 { margin-top: 2rem; }
.location-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}
.location-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .location-layout { grid-template-columns: 1fr; }
  .location-sidebar { position: static; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }
  .mobile-toggle { display: block; }
  .search-box { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}
