/*
Theme Name:   ProCare Child
Description:  Child theme for ProCare Garage Door Repair -- Cleveland, OH
Template:     generatepress
Version:      1.0.0
Text Domain:  procare-child
*/

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

/* ── CSS Variables (design tokens from ProCare Design System) ─ */
:root {
  /* ── Brand colors ─────────────────────────────────────────── */
  --procare-navy: #1A2A47;
  --procare-navy-deep: #131F36;   /* hover/pressed for navy surfaces */
  --procare-navy-soft: #2B3D5E;   /* secondary navy, dividers on navy */
  --procare-red: #C8292A;
  --procare-red-hover: #A82121;   /* darker red on hover */
  --procare-red-pressed: #8E1B1C;

  /* ── Neutrals ─────────────────────────────────────────────── */
  --warm-white: #F7F6F2;          /* page background */
  --light-gray: #ECEAE4;          /* card bg, borders, dividers */
  --line-gray: #DCD9D2;           /* hairline borders on warm bg */
  --charcoal: #2E2E2E;            /* body text */
  --mid-gray: #6B6B6B;            /* subtext, captions */
  --white: #FFFFFF;

  /* ── Utility / semantic ───────────────────────────────────── */
  --success-green: #2D7D46;
  --alert-amber: #C97B10;
  --review-gold: #D4A017;         /* star rating fill */

  /* ── Semantic mappings (use these in components) ──────────── */
  --bg-page: var(--warm-white);
  --bg-surface: var(--white);
  --bg-subtle: var(--light-gray);
  --bg-inverse: var(--procare-navy);

  --fg-default: var(--charcoal);
  --fg-muted: var(--mid-gray);
  --fg-strong: var(--procare-navy);
  --fg-inverse: var(--white);
  --fg-accent: var(--procare-red);

  --border-default: var(--line-gray);
  --border-strong: var(--procare-navy);

  /* ── Type families ────────────────────────────────────────── */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Helvetica, sans-serif;

  /* ── Type scale (desktop / mobile via clamp) ──────────────── */
  --fs-h1: clamp(36px, 5vw, 48px);
  --fs-h2: clamp(28px, 3.6vw, 36px);
  --fs-h3: clamp(20px, 2.4vw, 24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-button: 16px;
  --fs-phone: 32px;

  --lh-h1: 1.1;
  --lh-h2: 1.2;
  --lh-h3: 1.3;
  --lh-body: 1.7;
  --lh-small: 1.6;

  /* ── Spacing ─────────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;   /* desktop section padding */
  --section-y-desktop: 80px;
  --section-y-mobile: 48px;
  --container-max: 1200px;
  --gutter: 24px;

  /* ── Radii (approachable, never pill or sharp) ────────────── */
  --radius-sm: 2px;
  --radius-md: 4px;       /* default for buttons, cards */
  --radius-lg: 8px;       /* media, larger blocks */

  /* ── Elevation (flat by default; lift on hover only) ──────── */
  --shadow-none: none;
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-overlay: 0 8px 28px rgba(26, 42, 71, 0.18);

  /* ── Overlays ────────────────────────────────────────────── */
  --overlay-navy: rgba(26, 42, 71, 0.55);

  /* ── Motion ──────────────────────────────────────────────── */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 180ms;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Base element styles ──────────────────────────────────── */
html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-default);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.005em;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--fg-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

/* ── GeneratePress layout overrides ──────────────────────── */
.site-content,
.inside-article,
.entry-content,
.page .entry-content,
.post .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}
.grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}
.generate-columns-container {
  max-width: 100% !important;
}
.site-header.grid-container,
.main-navigation,
#site-navigation {
  display: none !important;
}

/* ── Layout utilities ─────────────────────────────────────── */
.procare-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-y-desktop) var(--gutter);
}
section.alt-bg  { background: var(--light-gray); }
section.dark-bg { background: var(--procare-navy); }

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header { margin-bottom: 48px; }
.section-header p {
  font-size: 18px;
  color: var(--mid-gray);
  margin-top: 12px;
  max-width: 680px;
}
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-accent);
  display: block;
  margin-bottom: var(--space-3);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--procare-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  min-height: 48px;
  line-height: 1.4;
}
.btn-primary:hover  { background: var(--procare-red-hover); color: #fff; text-decoration: none; }
.btn-primary:active { background: var(--procare-red-pressed); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--procare-navy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  border: 2px solid var(--procare-navy);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 48px;
  line-height: 1.4;
}
.btn-secondary:hover { background: var(--procare-navy); color: #fff; text-decoration: none; }

.btn-primary-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  min-height: 48px;
  line-height: 1.4;
}
.btn-primary-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* ── Site header ──────────────────────────────────────────── */
.site-header {
  background: var(--procare-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 68px;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-name { display: block; line-height: 1.2; }
.logo-name > span { color: var(--procare-red); }
.site-logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-logo:hover { text-decoration: none; }

.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.site-header nav a:hover,
.site-header nav a.active { color: #fff; text-decoration: none; }
.site-header nav a.active {
  border-bottom: 2px solid var(--procare-red);
  padding-bottom: 2px;
}

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--procare-red);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.header-phone:hover { text-decoration: underline; }

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ───────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: var(--procare-navy);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid rgba(255,255,255,0.08);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.01em;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--procare-red); text-decoration: none; }
.mobile-nav .mobile-nav-phone {
  font-size: 32px;
  color: var(--procare-red);
  margin-top: 24px;
  border-bottom: none;
}

/* ── Trust bar (light gray with red top border) ───────────── */
.trust-bar {
  background: var(--light-gray);
  border-top: 3px solid var(--procare-red);
}
.trust-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--procare-navy);
}
.trust-icon {
  width: 20px;
  height: 20px;
  stroke: var(--procare-navy);
  flex-shrink: 0;
}

/* ── Footer (background #0f1a2e -- intentional, not a token) ─ */
.site-footer {
  background: #0f1a2e;
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 28px;
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-nap {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}
.footer-nap .footer-phone {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--procare-red);
  text-decoration: none;
  display: block;
  margin-top: 8px;
}
.footer-nap .footer-phone:hover { color: var(--procare-red-hover); }
.footer-hours {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }

/* Geographic region labels within Service Areas column */
.footer-area-group {
  list-style: none;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding-top: 14px;
}
.footer-area-group:first-child { padding-top: 0; }
.footer-area-group-link { list-style: none; padding-top: 14px; }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── Mobile sticky CTA bar ────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #0f1a2e;
  border-top: 3px solid var(--procare-red);
  padding: 12px 16px;
  gap: 10px;
}
.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 4px;
  line-height: 1.3;
}
.mobile-cta-bar .cta-call     { background: var(--procare-red); color: #fff; }
.mobile-cta-bar .cta-estimate { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }

/* ── Responsive breakpoints ───────────────────────────────── */
@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hamburger       { display: flex; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section            { padding: var(--section-y-mobile) var(--gutter); }
  .footer-grid       { grid-template-columns: 1fr; gap: 32px; }
  .trust-bar-inner   { gap: 20px; overflow-x: auto; justify-content: flex-start; }
  .mobile-cta-bar    { display: flex; }
  .header-phone      { display: none; }
  .header-cta .btn-secondary { display: none; }
  .header-inner      { padding: 0 16px; }
}
