/* ======================================================
   RANK & RENT SITE — DESIGN SYSTEM v2
   Electrical Niche Theme: #1a2744, #f5a623, #e8c43a
   ====================================================== */


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

:root {
  /* Electrical Niche Theme */
  --primary:   #1a2744;
  --secondary: #f5a623;
  --accent:    #e8c43a;

  /* DO NOT CHANGE BELOW */
  --white:     #ffffff;
  --off-white: #f8f9fa;
  --gray-100:  #f1f3f5;
  --gray-300:  #dee2e6;
  --gray-600:  #6c757d;
  --gray-800:  #343a40;
  --text:      #212529;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
  --max-width: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--primary); color: var(--white); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.section-sub   { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; margin-bottom: 48px; }
.section--dark .section-title { color: var(--white); }
.section--dark .section-sub   { color: rgba(255,255,255,0.75); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── TOP BAR ── */
.top-bar { background: var(--primary); color: rgba(255,255,255,0.85); font-size: 0.85rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar a { color: var(--secondary); font-weight: 600; }

/* ── STICKY HEADER ── */
.site-header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-text span { color: var(--secondary); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 1.3rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.header-phone:hover { color: var(--secondary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.hero .btn-outline, .section--dark .btn-outline { color: var(--white); border-color: var(--white); }
.hero .btn-outline:hover, .section--dark .btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ── NAV ── */
.site-nav { border-top: 1px solid var(--gray-300); }
.site-nav .container { display: flex; align-items: center; }
.site-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 14px 16px; font-weight: 500; color: var(--gray-800); font-size: 0.95rem; border-radius: var(--radius); transition: all var(--transition); }
.site-nav a:hover, .site-nav a.active { background: var(--secondary); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: all var(--transition); }

/* ── HERO ── */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--primary); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%); }
.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 700px; padding: 80px 0; }
.hero-badge { display: inline-block; background: var(--secondary); color: var(--white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: var(--white); }
.hero h1 span { color: var(--secondary); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }
.hero-trust-item::before { content: "✓"; color: var(--secondary); font-weight: 800; font-size: 1rem; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--secondary); color: var(--white); padding: 28px 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--white); }
.trust-icon { font-size: 2rem; flex-shrink: 0; }
.trust-text strong { display: block; font-size: 1.05rem; font-weight: 700; }
.trust-text span { font-size: 0.85rem; opacity: 0.85; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 16px; }
.service-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img { width: 100%; height: 200px; object-fit: cover; }
.service-card-img-placeholder { width: 100%; height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.service-card-body { padding: 24px; }
.service-card-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-card-body p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 16px; }
.service-card-link { color: var(--secondary); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.service-card-link::after { content: "→"; }

/* ── WHY CHOOSE US ── */
.why-section { padding: 80px 0; }
.why-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 48px; }
.why-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.why-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.why-content p { color: var(--gray-600); margin-bottom: 24px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.why-list li { display: flex; align-items: flex-start; gap: 14px; }
.why-list-icon { width: 36px; height: 36px; background: var(--secondary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.why-list-text strong { display: block; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.why-list-text span { font-size: 0.9rem; color: var(--gray-600); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--white); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--secondary); }
.testimonial-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { color: var(--gray-800); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.testimonial-location { font-size: 0.82rem; color: var(--gray-600); }

/* ── SERVICE AREAS ── */
.areas-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.area-pill { background: var(--primary); color: var(--white); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 0; cursor: pointer; text-align: left; gap: 16px; }
.faq-question:hover { background: var(--gray-100); }
.faq-icon { font-size: 1.4rem; flex-shrink: 0; transition: transform var(--transition); color: var(--secondary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--gray-800); line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%); padding: 80px 0; }
.cta-banner .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cta-text h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 28px; }
.cta-phone { font-size: 2rem; font-weight: 800; color: var(--secondary); display: block; margin-bottom: 1rem; }
.cta-form { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 32px; backdrop-filter: blur(10px); max-width: 480px; width: 100%; box-sizing: border-box; margin: 0 auto; overflow: hidden; }
.cta-form h3 { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: rgba(255,255,255,0.85); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: 12px; background: rgba(255,255,255,0.1); color: var(--white); font-size: 1rem; font-family: var(--font); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-group textarea { height: 120px; resize: vertical; }
.form-submit { width: 100%; margin-top: 4px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--primary); padding: 60px 0; }
.page-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; }

/* ── PAGE CONTENT (inner pages) ── */
.page-content { padding: 64px 0; }
.page-content .container { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.content-body h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin: 36px 0 16px; border-left: 4px solid var(--secondary); padding-left: 16px; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin: 24px 0 12px; }
.content-body p { color: var(--gray-800); margin-bottom: 16px; line-height: 1.7; font-size: 1.05rem; }
.content-body ul, .content-body ol { margin: 0 0 16px 24px; }
.content-body li { margin-bottom: 8px; color: var(--gray-800); }
.content-body img { border-radius: 10px; margin: 24px 0; box-shadow: var(--shadow); }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--gray-100); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; border-bottom: 2px solid var(--secondary); padding-bottom: 12px; }
.sidebar-phone { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 1rem; }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-list a { color: var(--gray-800); font-size: 0.95rem; padding: 8px 12px; border-radius: 6px; display: block; font-weight: 500; }
.sidebar-list a:hover { background: var(--secondary); color: var(--white); }

/* ── FOOTER ── */
.site-footer { background: var(--gray-800); color: rgba(255,255,255,0.8); padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; display: block; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h4 { color: var(--white); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--secondary); }
.footer-nap p { font-size: 0.9rem; margin-bottom: 8px; color: rgba(255,255,255,0.6); }
.footer-nap strong { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--secondary); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-content { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner .container { grid-template-columns: 1fr; gap: 40px; }
  .page-content .container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .top-bar { display: none; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .header-cta .btn { display: none; }
  .site-nav .container { position: relative; }
  .nav-toggle { display: block; }
  .site-nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 12px; z-index: 999; }
  .site-nav ul.open { display: flex; }
  .hero { min-height: 520px; }
  .hero-content { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .trust-bar .container { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
/* Suburbs list */
.suburbs-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem 1rem; padding: 0; margin: 1.5rem 0 0; }
.suburbs-list li { padding: 0.4rem 0; color: var(--gray-800); font-size: 0.95rem; }
.suburbs-list li::before { content: "✓ "; color: var(--secondary); font-weight: 700; }
