/*
Theme Name: Rod's Appliance Repair v2
Theme URI: https://rodsappliancerepair.com
Author: Rod's Appliance Repair
Description: Theme for Rod's Appliance Repair. Service, area and guide pages are built from theme data; no plugins required.
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: rods-appliance-repair-v2
*/


:root {
  --background: #f7f9fc;
  --foreground: #1c3350;
  --card: #fff;
  --primary: #1f4fbf;
  --primary-foreground: #fff;
  --secondary: #eef3fb;
  --muted-foreground: #5c6b80;
  --border: #d9e2ef;
  --citrus: #f0c14a;
  --ink: #1c3350;
  --shadow-soft: 0 12px 32px rgba(28, 51, 80, .08);
  --hero-overlay: linear-gradient(90deg, rgba(16, 32, 58, .94) 0%, rgba(16, 32, 58, .82) 37%, rgba(16, 32, 58, .08) 75%);
  --font-sans: Manrope, sans-serif;
  --font-display: Sora, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0; }
a { color: inherit; }
img { max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.topline { background: var(--ink); color: var(--primary-foreground); font-size: 11px; padding: 9px 0; }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topline a { color: var(--citrus); font-weight: 800; text-decoration: none; }
.header { background: var(--card); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); }
.header-inner { height: 90px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.nav { display: flex; justify-content: center; gap: 22px; font-size: 12px; font-weight: 800; }
.nav a { text-decoration: none; padding-block: 12px; }
.nav a:hover { color: var(--primary); }
.logo { height: 62px; width: auto; max-width: min(240px, 62vw); object-fit: contain; }
.logo-plate { display: inline-flex; background: #fff; border-radius: 1.15rem; padding: 6px 10px; line-height: 0; }
.logo-plate .logo { height: 52px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 1rem; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; }
.btn-citrus { background: var(--citrus); color: var(--foreground); }
.btn-ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 535px; color: #fff; }
.hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero:after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 1; padding: 58px 52px; width: 650px; max-width: 100%; }
.eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; }
.hero h1 { font-size: 49px; line-height: 1.17; font-weight: 700; margin: 22px 0; }
.hero p { font-size: 15px; line-height: 1.9; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.section { padding-block: 64px; }
.section-title { font-size: 32px; font-weight: 700; line-height: 1.3; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { padding: 27px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); text-decoration: none; display: block; }
.service-card:hover { transform: translateY(-3px); }
.service-card h3 { font-size: 17px; margin: 0 0 8px; }
.service-card p { font-size: 13px; line-height: 1.7; color: var(--muted-foreground); }
.page-banner { background: var(--secondary); border-radius: 24px; padding: 48px; margin-block: 24px 32px; }
.page-banner h1 { font-size: 42px; line-height: 1.25; margin: 12px 0; }
.crumbs { font-size: 12px; color: var(--muted-foreground); margin-bottom: 12px; }
.crumbs a { color: var(--primary); }
.answer { margin-top: 18px; }
.prose { font-size: 15px; line-height: 1.9; color: var(--muted-foreground); }
.prose h2 { font-size: 27px; color: var(--foreground); margin: 32px 0 12px; }
.prose a { color: var(--primary); }
.photo { width: 100%; border-radius: 1.5rem; object-fit: cover; display: block; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 28px; }
.soft-card { border: 1px solid var(--border); background: var(--card); border-radius: 1.25rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .link-cloud a { border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: .45rem .85rem; font-size: 12px; font-weight: 800; text-decoration: none; }
.layout { display: grid; grid-template-columns: 1.45fr .7fr; gap: 32px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { font-family: var(--font-display); font-weight: 650; cursor: pointer; }
.faq-item p { color: var(--muted-foreground); line-height: 1.7; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards a { text-decoration: none; overflow: hidden; }
.cards h3 { font-size: 16px; margin: 12px 16px 4px; }
.cards p { margin: 0 16px 16px; color: var(--muted-foreground); font-size: 13px; }
.cta-band { border-radius: 24px; background: var(--primary); color: #fff; padding: 36px 40px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer { background: var(--ink); color: #fff; border-radius: 30px 30px 0 0; margin-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0; }
.footer a { color: #fff; opacity: .75; font-size: 13px; text-decoration: none; display: inline-block; margin: 4px 0; }
.footer a:hover { opacity: 1; color: var(--citrus); }
.mobile-nav { display: none; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; padding: 12px 14px; font: inherit; font-weight: 500; }
.p-pad { padding: 20px; }
.notice { border-radius: 1rem; padding: 12px 14px; background: var(--secondary); }
.notice.bad { background: #fde8e8; }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .grid-3, .cards, .footer-grid, .layout, .photo-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topline { display: none; }
  .logo { height: 46px; }
  .hero { min-height: 520px; }
  .hero h1, .page-banner h1 { font-size: 32px; }
  .hero-content, .page-banner { padding: 28px 22px; }
  .grid-2, .grid-3, .cards, .footer-grid, .layout, .photo-row, .cta-band { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); background: #fff; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-soft); padding: 8px; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border-radius: 20px; font-size: 10px; font-weight: 800; text-decoration: none; color: var(--muted-foreground); }
}

/* ---- v2 overrides ---- */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.hero, .page-banner, .cta-band, .footer { border-radius: 0; width: 100%; }
.hero { min-height: 535px; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 1; }
.hero-content { padding: 58px 0; }
.page-banner { margin: 0 0 8px; padding: 48px 0; }
.page-banner .lead { font-size: 16px; line-height: 1.8; color: var(--muted-foreground); max-width: 760px; }
.banner-actions { margin-top: 18px; }
.cta-band { display: block; padding: 44px 0; margin-top: 48px; }
.cta-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.cta-band h2 { margin: 0 0 6px; }
.footer { margin-top: 0; }
.footer-grid > div > a { display: block; }
.footer-h { font-size: 14px; margin: 0 0 10px; }
.footer-phone { font-size: 18px !important; opacity: 1 !important; color: var(--citrus) !important; font-weight: 800; }
.logo-footer { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 28px; font-size: 12px; opacity: .7; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn-light { background: #fff; color: var(--foreground); }
.section-alt { background: var(--secondary); }
.section-lead { color: var(--muted-foreground); line-height: 1.8; max-width: 760px; }
.narrow { max-width: 820px; }
.p-pad { padding: 24px; align-self: start; }
.h3 { font-size: 18px; }
.guide-list { list-style: none; padding: 0; margin: 0 0 16px; }
.guide-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.guide-list a { color: var(--primary); text-decoration: none; }
.county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.grid-3 + * { margin-top: 24px; }
.map-wrap { margin: 24px 0; }
.map { height: 460px; width: 100%; border: 1px solid var(--border); background: var(--secondary); z-index: 0; }
.prose .map { height: 340px; }
.prose img.photo { margin-bottom: 16px; }
.meta { color: var(--muted-foreground); font-size: 13px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font: inherit; font-weight: 800; cursor: pointer; color: var(--foreground); }
.menu-icon { display: grid; gap: 4px; }
.menu-icon span { display: block; width: 18px; height: 2px; background: currentColor; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(16,32,58,.55); z-index: 80; opacity: 0; transition: opacity .2s; }
.drawer-overlay.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: var(--card); z-index: 90; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; padding: 18px 20px 28px; box-shadow: -12px 0 32px rgba(16,32,58,.18); visibility: hidden; overflow-y: auto; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-title { font-family: var(--font-display); font-weight: 700; }
.drawer-close { font-size: 30px; line-height: 1; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--foreground); }
.drawer-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-weight: 800; text-decoration: none; }
.drawer-call { margin-top: 20px; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-overlay { transition: none; } }
@media (max-width: 899px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr auto; height: 76px; }
  .layout, .county-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topline span { display: none; }
  .hero h1 { font-size: 34px; }
  .page-banner h1 { font-size: 30px; }
  .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .map { height: 340px; }
  .hero-content { padding: 28px 0; }
  .page-banner { padding: 28px 0; }
  .mobile-call { background: var(--citrus); color: var(--foreground) !important; }
}
.facts { align-self: start; margin-bottom: 16px; }
.facts dl { margin: 0; font-size: 14px; line-height: 1.6; }
.facts dt { font-weight: 800; margin-top: 10px; }
.facts dd { margin: 2px 0 0; color: var(--muted-foreground); }
.county-section .pills { margin: 16px 0; }
.county-services { font-size: 14px; color: var(--muted-foreground); }
.county-services a { color: var(--primary); }
picture { display: block; }
.hero picture { position: absolute; inset: 0; }
.header picture, .brand picture { display: inline; }
.city-gallery { display: grid; gap: 12px; margin: 20px 0 8px; }
.city-gallery.g2 { grid-template-columns: 1fr 1fr; }
.city-gallery.g3 { grid-template-columns: 2fr 1fr 1fr; }
.city-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 1rem; display: block; }
@media (max-width: 640px) { .city-gallery.g2, .city-gallery.g3 { grid-template-columns: 1fr 1fr; } .city-gallery.g3 img:first-child { grid-column: 1 / -1; } .city-gallery img { height: 160px; } }
/* 2.1.3 home + services */
.section-tight { padding-block: 48px; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head .section-lead { margin: 0; }
.trust-band { background: var(--ink); color: #fff; padding: 28px 0; }
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.why-item h3 { font-size: 15px; margin: 0 0 6px; color: var(--citrus); }
.why-item p { font-size: 13px; line-height: 1.55; margin: 0; opacity: .88; }
.photo-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.photo-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s; }
.photo-card:hover { transform: translateY(-3px); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.photo-card-body { padding: 14px 16px 16px; display: block; }
.photo-card h2, .photo-card h3 { font-size: 16px; margin: 0 0 6px; }
.photo-card-body span { font-size: 13px; line-height: 1.55; color: var(--muted-foreground); display: block; }
.brand-label { font-size: 15px; margin: 28px 0 10px; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.brand-strip a { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: .45rem .95rem; font-size: 13px; font-weight: 800; text-decoration: none; }
.brand-strip span { font-size: 13px; color: var(--muted-foreground); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.summary-grid .prose h2 { margin-top: 0; }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 8px; }
.section-summary .facts { margin-top: 24px; }
.section-summary .facts dl { columns: 3; column-gap: 32px; }
.section-summary .facts dt { break-after: avoid; }
.section-summary .facts dd { break-before: avoid; margin-bottom: 4px; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(3, 1fr); } .photo-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .photo-cards { grid-template-columns: repeat(2, 1fr); } .section-head, .summary-grid { grid-template-columns: 1fr; } .section-summary .facts dl { columns: 1; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .section-tight { padding-block: 36px; } .photo-card-body { padding: 10px 12px 12px; } .photo-card h2, .photo-card h3 { font-size: 14px; } }

.guide-cards { margin-bottom: 28px; }
.cause-list li { margin-bottom: 8px; }
