/* ==========================================================================
   All Ohio Mechanical, Inc. — Plumbing & Heating
   Modern responsive stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #0d4f8b;        /* deep professional blue */
  --color-primary-dark: #0a3d6b;
  --color-primary-light: #1a6fb5;
  --color-accent: #e8871e;         /* warm CTA orange */
  --color-accent-dark: #c96f12;
  --color-bg: #f4f7fa;
  --color-surface: #ffffff;
  --color-text: #2b3440;
  --color-text-muted: #5b6b7b;
  --color-border: #e2e8f0;
  --color-footer-bg: #0a2c4a;
  --color-footer-text: #c7d6e4;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 16px rgba(13, 79, 139, 0.10);
  --shadow-lg: 0 10px 30px rgba(13, 79, 139, 0.16);
  --container: 1120px;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--color-primary-dark);
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.3em; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-bg); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: 0.2px; }
.brand-tagline { font-size: 0.8rem; color: #cfe0f0; letter-spacing: 0.5px; text-transform: uppercase; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: #e6eef6;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255,255,255,0.14); color: #fff; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.header-cta:hover { background: var(--color-accent-dark); color: #fff; }
.header-cta .cta-label { font-size: 0.72rem; font-weight: 600; opacity: 0.9; display: block; line-height: 1.1; }
.header-cta .cta-num { font-size: 1.05rem; display: block; line-height: 1.1; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 64px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.4em; }
.hero p.lead { font-size: 1.15rem; color: #dce9f5; margin-bottom: 1.4em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6em; }
.hero-badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { text-align: center; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--color-surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--color-text-muted); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card .card-link { font-weight: 700; }

/* ---------- Feature / two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.35rem 0 0.35rem 1.8rem; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.35rem;
  color: var(--color-accent); font-weight: 800;
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-primary-dark); color: #fff; padding: 20px 0; }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.trust-item .tick { color: var(--color-accent); font-size: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #fff7ec; max-width: 640px; margin: 0 auto 1.4em; }
.cta-band .btn-light { font-size: 1.05rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 44px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { color: #dce9f5; max-width: 720px; margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.2em; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-primary); }

/* ---------- Content layout ---------- */
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.content-main { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.content-main h2 { margin-top: 1.4em; }
.content-main h2:first-child { margin-top: 0; }
.sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-card h3 { font-size: 1.05rem; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { border-bottom: 1px solid var(--color-border); }
.sidebar-nav li:last-child { border-bottom: 0; }
.sidebar-nav a { display: block; padding: 0.55rem 0; font-weight: 600; }
.phone-big { font-size: 1.3rem; font-weight: 800; color: var(--color-accent-dark); display: block; margin: 0.3em 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--color-surface); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--color-accent); }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { padding: 0 20px 16px; color: var(--color-text-muted); display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info-card h2 { margin-top: 0; }
.contact-row { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-row .icon { font-size: 1.3rem; color: var(--color-accent); }
.contact-row .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-muted); font-weight: 700; }
.contact-row .value { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.8em; }
.site-footer a { color: var(--color-footer-text); }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 0.92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.92rem; }
.footer-contact p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 0.85rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .split, .content-wrap, .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-primary);
    padding: 10px 20px 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .header-cta .cta-label { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  .hero { padding: 40px 0; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta { padding: 0.5rem 0.7rem; }
  .header-cta .cta-num { font-size: 0.9rem; }
}
