/* Fountain Hills Plumbing Pros — styles.css
   Design 2: McDowell Canyon (v2.3 · Site 9 of 25)
   Primary #6D28D9 · Accent #FBBF24 · Hero bg #FAF7F2
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
  --primary:        #6D28D9;
  --primary-dark:   #3B0764;
  --primary-light:  #EDE9FE;
  --primary-xlight: #F5F3FF;
  --primary-border: #DDD6FE;
  --accent:         #FBBF24;
  --accent-text:    #1E1B4B;
  --hero-bg:        #FAF7F2;
  --white:          #FFFFFF;
  --surface:        #F9FAFB;
  --text:           #1F2937;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border:         #E5E7EB;
  --border-light:   #F3F4F6;
  --radius:         8px;
  --radius-lg:      12px;
}

/* === RESET & BASE ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; }

/* === TYPOGRAPHY ============================================ */
h1 { font-size: clamp(1.75rem, 4.5vw, 2.625rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1rem, 2vw, 1.125rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

/* === ACCESSIBILITY ========================================= */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--primary); color: #fff; padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}

/* === LAYOUT ================================================ */
.section { padding: 4rem 1rem; }
@media (min-width: 768px) { .section { padding: 5rem 2rem; } }
.section-inner { max-width: 1200px; margin: 0 auto; }
.text-container { max-width: 65ch; }

/* === NAV =================================================== */
.site-nav { background: var(--primary); position: sticky; top: 0; z-index: 100; }
.nav-inner {
  display: flex; align-items: center; height: 64px;
  padding: 0 1rem; max-width: 1200px; margin: 0 auto; gap: 0.25rem;
}
.nav-logo {
  color: #fff; font-weight: 700; font-size: 1rem; flex: 1;
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }
.nav-links { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links > a {
  color: rgba(255,255,255,.85); font-size: 0.875rem; padding: 0.25rem 0.375rem;
  white-space: nowrap;
}
.nav-links > a:hover { color: #fff; text-decoration: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: rgba(255,255,255,.85); font-size: 0.875rem;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 0.25rem 0.375rem; white-space: nowrap;
}
.nav-drop-btn:hover { color: #fff; }
.drop-arrow { font-size: 0.65rem; display: inline-block; transition: transform .15s; }
.nav-drop-btn[aria-expanded="true"] .drop-arrow { transform: rotate(180deg); }
.drop-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: -1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-width: 220px; padding: 0.375rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200;
}
.drop-panel.open { display: block; }
.drop-panel a {
  display: block; padding: 0.5rem 1rem; color: var(--text); font-size: 0.875rem;
}
.drop-panel a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.drop-panel hr { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }
.drop-panel .view-all { color: var(--primary); font-weight: 700; }

/* Nav phone button */
.nav-phone {
  background: var(--accent); color: var(--accent-text); font-weight: 700;
  font-size: 0.875rem; padding: 0.5rem 1rem; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 44px; white-space: nowrap; margin-left: 0.5rem;
}
.nav-phone:hover { opacity: .9; text-decoration: none; color: var(--accent-text); }
.nav-phone-icon { font-size: 1rem; }
@media (max-width: 767px) {
  .nav-phone-label { display: none; }
  .nav-phone { min-width: 44px; padding: 0.6rem; justify-content: center; margin-left: 0.25rem; }
}

/* Hamburger */
.nav-ham {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem; margin-right: 0.25rem;
}
@media (min-width: 1024px) { .nav-ham { display: none; } }
.nav-ham span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; }

/* Mobile drawer */
.nav-drawer { display: none; background: var(--primary-dark); padding: 0.5rem 1rem 1rem; }
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; color: rgba(255,255,255,.8); padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.9375rem;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--accent); text-decoration: none; }

/* === HERO — Design 2: McDowell Canyon ====================== */
.hero { background: var(--hero-bg); padding: 3.5rem 1rem 0; }
@media (min-width: 768px) { .hero { padding: 4rem 2rem 0; } }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: flex-start;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 400px; align-items: center; } }
.hero-text { padding-bottom: 2.5rem; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: #B45309; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 0.875rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 20px; height: 3px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.hero h1 { color: var(--primary-dark); margin-bottom: 1rem; }
.hero-sub {
  color: #6B4D82; font-size: 1rem; line-height: 1.75;
  max-width: 520px; margin-bottom: 1.75rem;
}
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-slot-wrap { overflow: hidden; align-self: flex-end; }
@media (min-width: 900px) {
  .hero-slot-wrap { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
}

/* === BUTTONS =============================================== */
.btn-primary {
  background: var(--primary); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px;
}
.btn-primary:hover { background: #5B21B6; text-decoration: none; color: #fff; }
.btn-accent {
  background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px;
}
.btn-accent:hover { opacity: .9; text-decoration: none; color: var(--accent-text); }
.btn-outline {
  color: var(--primary); font-size: 1rem; padding: 0.75rem 1.5rem;
  border-radius: var(--radius); border: 1.5px solid var(--primary);
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px;
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-white {
  background: #fff; color: var(--primary); font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px;
}
.btn-white:hover { opacity: .9; text-decoration: none; color: var(--primary); }

/* === EYEBROW LABEL ========================================= */
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: #B45309; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 3px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}

/* === BACKGROUND VARIANTS =================================== */
.bg-surface { background: var(--surface); }
.bg-hero    { background: var(--hero-bg); }
.bg-white   { background: var(--white); }
.bg-primary { background: var(--primary); }

/* === SERVICE CARDS ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  border-top: 4px solid var(--accent); display: block; color: var(--text);
  transition: box-shadow .15s, transform .15s;
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(109,40,217,.1);
  transform: translateY(-2px); text-decoration: none;
}
.service-card h3 { color: var(--primary); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; margin-bottom: 0.75rem; }
.service-card .learn-more { color: var(--primary); font-size: 0.8125rem; font-weight: 600; }

/* === HIGHLIGHT GRID (top 3 features) ======================= */
.highlight-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2rem;
}
@media (min-width: 768px) { .highlight-grid { grid-template-columns: repeat(3, 1fr); } }
.highlight-card { border-left: 4px solid var(--accent); padding-left: 1.25rem; }
.highlight-card h3 { color: var(--primary-dark); margin-bottom: 0.75rem; }
.highlight-card p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 0.875rem; }
.highlight-card a { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.highlight-card a:hover { text-decoration: underline; }

/* === WHY-DIFFERENT GRID ==================================== */
.why-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: 900px; margin-top: 1.5rem;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item h3 { color: var(--primary-dark); margin-bottom: 0.625rem; }
.why-item p { color: var(--text-muted); font-size: 0.9375rem; }

/* === LOCATION LISTS ======================================== */
.locations-two-col {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 1rem;
}
@media (min-width: 640px) { .locations-two-col { grid-template-columns: 1fr 1fr; } }
.loc-group h3 {
  color: var(--primary-dark); font-size: 1rem; font-weight: 700;
  border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.loc-group ul { display: grid; grid-template-columns: 1fr 1fr; }
.loc-group li { border-bottom: 1px solid var(--border-light); }
.loc-group li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.25rem; color: var(--text); font-size: 0.9rem;
}
.loc-group li a:hover { color: var(--primary); text-decoration: none; }
.loc-group li a::after { content: '→'; color: var(--text-light); font-size: 0.8rem; }

/* === FAQ =================================================== */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-size: 1rem; font-weight: 600; color: var(--primary-dark);
  margin-bottom: 0.625rem;
}
.faq-answer { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }
.faq-answer p { margin-bottom: 0; }

/* === CTA SECTION =========================================== */
.cta-section { background: var(--primary); padding: 4rem 1rem; text-align: center; }
@media (min-width: 768px) { .cta-section { padding: 5rem 2rem; } }
.cta-section .section-inner { max-width: 680px; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section > .section-inner > p { color: #DDD6FE; font-size: 1.0625rem; margin-bottom: 1.75rem; }
.cta-phone {
  display: block; font-size: 1.875rem; font-weight: 700;
  color: var(--accent); margin-bottom: 1.5rem;
}
.cta-phone:hover { color: var(--accent); text-decoration: underline; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* === FOOTER ================================================ */
footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 3.5rem 1rem 1.5rem; }
@media (min-width: 768px) { footer { padding: 4.5rem 2rem 2rem; } }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-logo { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; display: block; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 1rem; }
.footer-phone { color: var(--accent); font-weight: 700; font-size: 1rem; display: block; }
.footer-phone:hover { color: var(--accent); text-decoration: underline; }
footer h3 { color: #fff; font-size: 0.9375rem; margin-bottom: 0.875rem; }
footer ul { display: flex; flex-direction: column; gap: 0.4rem; }
footer ul li a { color: rgba(255,255,255,.65); font-size: 0.875rem; }
footer ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,.45); font-size: 0.8125rem; margin: 0; }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }

/* === MOBILE STICKY CTA ===================================== */
.mob-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; }
@media (max-width: 767px) { .mob-cta { display: block; } body { padding-bottom: 52px; } }
.mob-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: var(--accent-text); font-weight: 700;
  font-size: 1rem; padding: 0.875rem 1rem; min-height: 52px; width: 100%;
}
.mob-cta a:hover { opacity: .95; text-decoration: none; color: var(--accent-text); }

/* === IMAGE SLOT PLACEHOLDER ================================ */
.image-slot {
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: 0.875rem; margin: 1.5rem auto;
}
.image-slot span { padding: 1rem; text-align: center; }

/* === BREADCRUMB ============================================ */
.breadcrumb { padding: 0.875rem 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.breadcrumb li { font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: ' › '; color: var(--text-light); padding: 0 0.25rem; }
.breadcrumb li a { color: var(--text-muted); }
.breadcrumb li a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb li:last-child { color: var(--text); }

/* === INNER PAGE HERO ======================================= */
.page-hero { background: var(--hero-bg); padding: 2.5rem 1rem 2rem; }
@media (min-width: 768px) { .page-hero { padding: 3rem 2rem 2.5rem; } }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { color: var(--primary-dark); margin-bottom: 0.75rem; }
.page-hero .page-subtitle { color: #6B4D82; font-size: 1.0625rem; max-width: 640px; }
.page-body { padding: 3rem 1rem 4rem; }
@media (min-width: 768px) { .page-body { padding: 4rem 2rem 5rem; } }
.page-body-inner { max-width: 860px; margin: 0 auto; }
.page-body h2 { margin: 2.5rem 0 1rem; padding-left: 1rem; border-left: 4px solid var(--accent); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { color: var(--primary-dark); margin: 1.75rem 0 0.625rem; }

/* === BLOG CARDS ============================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: block; color: var(--text);
}
.blog-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.07); text-decoration: none; }
.blog-card-body { padding: 1.25rem; }
.blog-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.375rem; }
.blog-card h3 { color: var(--primary-dark); font-size: 0.9375rem; line-height: 1.4; margin-bottom: 0.5rem; }
.blog-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; margin: 0; }

/* === DATA TABLE ============================================ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.table-wrap table { width: 100%; font-size: 0.9375rem; }
th {
  background: var(--surface); color: var(--primary-dark); font-weight: 700;
  padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--border-light); }

/* === CONTACT FORM ========================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.contact-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9375rem;
  color: var(--text); margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  color: var(--text); background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-note { font-size: 0.8125rem; color: var(--text-muted); margin-top: 1rem; }

/* Contact info panel */
.contact-info { }
.contact-info-block { margin-bottom: 2rem; }
.contact-info-block h3 { color: var(--primary-dark); margin-bottom: 0.75rem; font-size: 1rem; }
.contact-info-block p { color: var(--text-muted); font-size: 0.9375rem; }
.contact-info-block a { color: var(--primary); }
.contact-phone-big {
  display: block; font-size: 1.75rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 0.375rem;
}
.contact-phone-big:hover { color: var(--primary); text-decoration: underline; }
.contact-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 0.125rem; font-size: 0.875rem; }
.contact-hours dt { color: var(--text-muted); }
.contact-hours dd { color: var(--text); font-weight: 600; }

/* === RELATED SIDEBAR LINKS ================================= */
.related-links { margin-top: 2.5rem; }
.related-links h3 { color: var(--primary-dark); font-size: 1rem; margin-bottom: 0.875rem; padding-left: 0.75rem; border-left: 3px solid var(--accent); }
.related-links ul { display: flex; flex-direction: column; gap: 0.375rem; }
.related-links li a { color: var(--primary); font-size: 0.9375rem; display: flex; align-items: center; gap: 0.375rem; }
.related-links li a::before { content: '→'; font-size: 0.875rem; }
.related-links li a:hover { text-decoration: underline; }
