/*
Theme Name: Shadow Query Plumber Marbella
Theme URI: https://example.com
Description: AI-optimized plumbing website for Marbella & Costa del Sol. Auto-creates 30 pages targeting shadow queries. Activate and go.
Version: 1.0.0
Author: Claude AI
Text Domain: sq-plumber
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #0B3D6F;
  --primary-light: #1565A0;
  --accent: #FF6B35;
  --accent-hover: #E85A25;
  --dark: #1A1A2E;
  --text: #2D2D3A;
  --text-light: #5A5A6E;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FA;
  --bg-dark: #0B1929;
  --border: #E0E6ED;
  --success: #10B981;
  --warning: #F59E0B;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(11,61,111,0.08);
  --shadow-lg: 0 8px 32px rgba(11,61,111,0.12);
  --max-width: 1140px;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-heading: 'Outfit', -apple-system, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.site-logo span { color: var(--accent); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

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

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--bg-alt);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.trust-icon {
  font-size: 1.4rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* ============================================
   SERVICE GRID
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}
.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-card h3 a { color: var(--dark); }
.service-card h3 a:hover { color: var(--accent); }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.card-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   PRICING TABLE
   ============================================ */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.pricing-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
}
.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.pricing-table tr:nth-child(even) { background: var(--bg-alt); }
.pricing-table .price { font-weight: 700; color: var(--primary); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
  display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-toggle { font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* ============================================
   AREA COVERAGE
   ============================================ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.area-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.area-card h4 a { color: var(--dark); font-size: 1rem; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 28px; }
.cta-phone {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}

/* ============================================
   PAGE CONTENT (Service, Location, etc.)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }

.page-content {
  padding: 56px 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 { margin-top: 40px; }
.page-content ul {
  margin: 16px 0 24px 24px;
  line-height: 2;
}
.page-content li { margin-bottom: 4px; }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.sidebar-cta h3 { color: var(--primary); margin-bottom: 12px; }
.sidebar-cta .btn { margin-top: 16px; }

/* ============================================
   LISTICLE STYLING
   ============================================ */
.listicle-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
}
.listicle-rank {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}
.listicle-item h3 { margin-top: 8px; }
.listicle-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}
.listicle-meta strong { color: var(--text); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-about { font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .hero { padding: 48px 0; }
  .hero-badges { gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-items { gap: 24px; }
  .header-inner { padding: 12px 16px; }
  .container { padding: 0 16px; }
}
