/*
Theme Name: ColdSpring HVAC
Theme URI: https://coldspringhvac.com
Author: ColdSpring Co., Inc.
Author URI: https://coldspringhvac.com
Description: A custom one-page WordPress theme for ColdSpring Co., Inc. — Baltimore HVAC sales, service, and installation. Fully editable via the WordPress Customizer (logo, hero image, headlines, services, contact info).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coldspring
Tags: one-page, custom-colors, custom-logo, custom-header, theme-options, featured-images, threaded-comments
*/

/* ---------- Design tokens ---------- */
:root {
  --navy: #1f2a44;
  --navy-foreground: #ffffff;
  --primary: #ef7a2a;       /* orange */
  --primary-glow: #f59141;
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #1a1f33;
  --muted: #f3f5f8;
  --muted-foreground: #5a6478;
  --border: #e6e9ef;
  --radius: 8px;
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.15;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; cursor: pointer;
  border: 2px solid transparent; transition: opacity .15s, background .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; text-decoration: none; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--navy-foreground); text-decoration: none; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.header-top {
  background: linear-gradient(180deg, var(--primary-glow) 0%, #fbe6cf 100%);
}
.header-inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 24px 20px;
}
.site-branding .site-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: var(--primary); margin: 0; line-height: 1;
}
.site-branding .site-title a { color: inherit; text-decoration: none; }
.header-phone { text-align: right; color: var(--navy); }
.header-phone .label { font-size: 14px; opacity: .8; }
.header-phone .num {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
}

.main-nav { background: var(--navy); }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; max-width: var(--maxw);
  margin-left: auto; margin-right: auto; padding: 0 20px;
}
.main-nav a {
  display: block; padding: 14px 22px;
  color: var(--navy-foreground); font-weight: 500; font-size: 15px;
}
.main-nav a:hover, .main-nav .current-menu-item a {
  background: rgba(255,255,255,0.12); text-decoration: none;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--muted); }

.hero {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); }
.hero p.lead { font-size: 18px; color: var(--muted-foreground); }
.hero img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.08); }

.cta-strip {
  background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-strip .row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}

.services-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card .body { padding: 20px; }
.service-card h3 { color: var(--navy); margin-bottom: 8px; }

.contact-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; color: var(--navy); font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-foreground); margin-top: 48px; }
.site-footer .cols {
  display: grid; gap: 32px; padding: 40px 20px;
  grid-template-columns: repeat(3, 1fr); max-width: var(--maxw); margin: 0 auto;
}
.site-footer h3 { color: var(--navy-foreground); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; opacity: .9; font-size: 14px; }
.site-footer a { color: var(--navy-foreground); }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 20px; font-size: 12px; opacity: .7;
  max-width: var(--maxw); margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .header-phone { text-align: center; }
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff;
  padding: 8px 12px; border-radius: 4px; z-index: 100;
}
.skip-link:focus { left: 8px; }
