/* ============================================================
   ROOF MAXX OF SIMI VALLEY — Master Stylesheet v3
   Pixel-accurate match to roofmaxx.com corporate
   Brand Guide + Screenshot Reference | Dealer #10333
   ============================================================ */

/* === FONTS === */
@font-face {
  font-family: "Helvetica Neue Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local("Helvetica Neue Condensed Black"), local("HelveticaNeue-CondensedBlack");
}

/* === RESET & VARIABLES === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand — Corporate Colors (from screenshots + brand guide) */
  --midnight: #1E3A5F;
  --midnight-dark: #152D4A;
  --navy-nav: #1a2b4a;
  --cerulean: #2B7BB9;
  --cerulean-light: #66b8d6;
  --cerulean-pale: #cce8f2;
  --cerulean-bg: #EBF4F8;
  --orange: #E87722;
  --orange-hover: #D06A1E;
  --orange-light: #F0944D;
  --green-check: #2E7D32;
  --red-x: #D32F2F;
  --gray: #9EA6B4;
  --gray-light: #F0F5F8;
  --gray-border: #CCCCCC;
  --text: #333333;
  --text-light: #555555;
  --text-muted: #999999;
  --white: #FFFFFF;
  --border: #ddd;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* Layout */
  --max-width: 1140px;
  --nav-height: 100px;  /* top bar + nav combined */
  --nav-bar-height: 50px;
  --top-bar-height: 50px;

  /* Typography — Corporate uses serif headings, sans body */
  --font: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-condensed: "Helvetica Neue Condensed", Impact, 'Arial Narrow', sans-serif;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-hover); }
ul, ol { list-style: none; }

/* Headings — Serif like corporate */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.2;
}
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === UTILITIES === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 30px; }
.section { padding: 40px 0; }
.section-sm { padding: 30px 0; }
.section-dark { background: var(--midnight); color: var(--white); }
.section-darker { background: var(--midnight-dark); color: var(--white); }
.section-light { background: var(--gray-light); }
.section-cerulean { background: var(--cerulean); color: var(--white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 15px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }

/* Uppercase condensed headings (for section labels) */
.heading-condensed {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
  font-size: 24px;
  line-height: 1.2;
}

/* === BUTTONS (Corporate: orange, square, bold) === */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
}
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
.btn-white { background: var(--white); color: var(--orange); border-color: var(--orange); }
.btn-white:hover { background: var(--orange); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--midnight); }
.btn-outline-orange { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline-orange:hover { background: var(--orange); color: var(--white); }
/* Legacy class names for compatibility */
.btn-green { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-green:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* === TOP BAR (white bar with logo + phone + CTA) === */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  height: var(--top-bar-height);
}
.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.top-bar-logo img { height: 32px; width: auto; }
.brand-locality { font-size: 13px; font-weight: 600; color: var(--midnight); letter-spacing: 0.3px; white-space: nowrap; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-phone {
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
}
.top-bar-phone:hover { color: var(--orange-hover); }

/* === INFO BAR (midnight bar with quick info) === */
.info-bar {
  background: var(--navy-nav);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.info-bar a { color: var(--orange); }

/* === NAVIGATION (dark navy bar like corporate) === */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-nav);
  height: var(--nav-bar-height);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nav-logo { display: none; align-items: center; gap: 6px; text-decoration: none; } /* Logo is in top-bar, not nav */
.nav-logo img { height: 28px; width: auto; }
.nav-logo .brand-locality { font-size: 11px; font-weight: 600; color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 16px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--gray-light); color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  display: none; /* Phone is in top bar */
}
.nav-cta {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 4px;
}

/* Hamburger (hidden on desktop) */
/* CSS-only mobile nav toggle (no JavaScript required) */
.nav-toggle-checkbox {
  display: none !important;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 10001;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  transition: var(--transition);
}
/* When checkbox is checked, show menu and animate hamburger to X */
.nav-toggle-checkbox:checked ~ .mobile-menu { display: block; }
.nav-toggle-checkbox:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle-checkbox:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle-checkbox:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-nav);
  z-index: 10000;
  padding: 80px 24px 24px;
  overflow-y: auto;
}
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu-close-label {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--orange);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 10002;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--orange);
  font-size: 32px;
  cursor: pointer;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 60px 0;
  background: var(--white);
  overflow: hidden;
}
.hero-dark {
  background: var(--midnight-dark);
  color: var(--white);
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21,45,74,0.92), rgba(30,58,95,0.85));
}
.hero-content { position: relative; z-index: 2; }
.hero-content.centered { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  color: inherit;
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.15;
}
.hero-dark h1 { color: var(--white); }
.hero p { font-size: 15px; color: inherit; margin-bottom: 16px; line-height: 1.6; }
.hero-dark p { color: rgba(255,255,255,0.8); }
.hero .btn-group { margin-top: 20px; }

/* Hero subpage (smaller) */
.hero-sub { padding: 50px 0 40px; }
.hero-sub h1 { font-size: 28px; }

/* Zip code form in hero */
.zip-form {
  display: flex;
  gap: 0;
  max-width: 450px;
  margin: 20px auto 0;
}
.zip-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-right: none;
  font-size: 14px;
  border-radius: 0;
}
.zip-form .btn {
  border-radius: 0;
  white-space: nowrap;
}

/* === TRUST BAR === */
.trust-bar {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.trust-bar-inner {
  text-align: center;
}
.trust-bar .trust-title {
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--midnight);
  font-size: 14px;
  margin-bottom: 6px;
}
.trust-bar .trust-rating {
  color: var(--orange);
  font-size: 28px;
  font-weight: 700;
  display: inline-block;
}
.trust-bar .trust-stars { color: var(--orange); font-size: 16px; }
.trust-bar .trust-count { font-size: 14px; color: var(--text-light); font-weight: 700; }
.trust-bar .trust-platforms { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* === PRESS / MEDIA LOGOS BAR === */
.press-bar { padding: 30px 0; background: var(--white); border-bottom: 1px solid #eee; }
.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.press-logos span {
  font-size: 16px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0;
  opacity: 0.7;
}

/* === TWO COLUMN SECTIONS (corporate layout pattern) === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col-60-40 { grid-template-columns: 3fr 2fr; }
.two-col-40-60 { grid-template-columns: 2fr 3fr; }
.two-col img { width: 100%; }

/* === ICON LIST (like corporate "Protects Your Home" section) === */
.icon-list { margin-top: 20px; }
.icon-list-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.icon-list-item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--cerulean);
}
.icon-list-item strong { color: var(--midnight); display: block; margin-bottom: 2px; }
.icon-list-item .desc { font-size: 13px; color: var(--text-light); }

/* === CARDS === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  transition: var(--transition);
}
.card:hover { border-color: var(--cerulean); box-shadow: var(--shadow); }
.card-icon { font-size: 32px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; font-size: 16px; font-family: var(--font); font-weight: 700; }
.card p { color: var(--text-light); font-size: 14px; }

/* === COMPARISON — OLD WAY / NEW WAY === */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.compare-card { padding: 28px; }
.compare-card.old { background: #fef2f2; border-left: 4px solid var(--red-x); }
.compare-card.new { background: var(--cerulean-bg); border-left: 4px solid var(--cerulean); }
.compare-card h3 { font-size: 18px; margin-bottom: 16px; font-family: var(--font); font-weight: 700; }
.compare-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-light);
  list-style: none;
}
.compare-card.old ul li::before { content: "✕ "; color: var(--red-x); font-weight: 700; }
.compare-card.new ul li::before { content: "✓ "; color: var(--green-check); font-weight: 700; }

/* === QUOTE BLOCK (orange left border like corporate) === */
.quote-block {
  border-left: 4px solid var(--orange);
  padding: 24px 28px;
  background: var(--white);
}
.quote-block blockquote {
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.quote-block .author { font-weight: 700; color: var(--midnight); font-size: 14px; }
.quote-block .role { font-size: 13px; color: var(--text-muted); }

/* === CALLOUT BOX (like corporate warning box) === */
.callout-box {
  background: var(--gray-light);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout-box p { font-size: 14px; }
.callout-box ul { margin: 10px 0 0 20px; }
.callout-box ul li { list-style: disc; padding: 4px 0; font-size: 14px; color: var(--text-light); }

/* === STATS BAR === */
.stats-bar { padding: 50px 0; background: var(--cerulean-bg); }
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.stat { text-align: center; flex: 1; padding: 0 30px; }
.stat-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  font-family: var(--font);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* === STEPS (4-step process) === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--cerulean);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.step h3 { font-size: 15px; margin-bottom: 8px; font-family: var(--font); }
.step p { font-size: 13px; color: var(--text-light); }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.testimonial-card .stars { color: var(--orange); font-size: 16px; margin-bottom: 10px; }
.testimonial-card blockquote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-style: normal;
  margin-bottom: 14px;
}
.testimonial-card .author { font-size: 14px; font-weight: 700; color: var(--midnight); }
.testimonial-card .location { font-size: 12px; color: var(--text-muted); }

/* Dark bg testimonials */
.section-dark .testimonial-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  border-top-color: var(--orange);
  border-bottom-color: var(--orange);
}
.section-dark .testimonial-card blockquote { color: rgba(255,255,255,0.9); }
.section-dark .testimonial-card .author { color: var(--white); }

/* === FAQ ACCORDION === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--midnight);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 18px; }
.faq-a p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* === FORMS === */
.form-box { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 5px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1px solid var(--gray-border);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cerulean);
  box-shadow: 0 0 0 3px rgba(43,123,185,0.15);
}
textarea { resize: vertical; min-height: 80px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239EA6B4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success .icon { font-size: 48px; margin-bottom: 12px; }
.form-success h3 { color: var(--cerulean); margin-bottom: 8px; }

/* Dark background forms */
.section-dark input, .section-dark select, .section-dark textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.section-dark input:focus, .section-dark select:focus, .section-dark textarea:focus {
  border-color: var(--cerulean);
}
.section-dark .form-group label { color: rgba(255,255,255,0.8); }
.section-dark input::placeholder { color: rgba(255,255,255,0.4); }

/* === FOOTER (dark navy like corporate) === */
.footer { background: var(--navy-nav); color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer a:hover { color: var(--orange); }
.footer-about p { font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-contact li { margin-bottom: 8px; font-size: 13px; }
.footer-contact a { font-weight: 600; color: var(--orange); }
.footer-badges { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.footer-badges img { height: 40px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
}

/* === MOBILE STICKY CTA === */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--orange);
  padding: 14px 24px;
  text-align: center;
}
.mobile-cta a {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* === CITY GRID === */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.city-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  color: var(--text);
}
.city-card:hover { border-color: var(--cerulean); box-shadow: var(--shadow); color: var(--cerulean); }
.city-card h3 { font-size: 14px; margin-bottom: 2px; font-family: var(--font); }
.city-card p { font-size: 12px; color: var(--text-muted); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  color: var(--text);
}
.blog-card:hover { box-shadow: var(--shadow-lg); border-color: var(--cerulean); }
.blog-card-img { height: 160px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--midnight); font-family: var(--font); }
.blog-card-body p { font-size: 14px; color: var(--text-light); }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 24px; margin: 36px 0 14px; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p { font-size: 15px; line-height: 1.6; color: var(--text-light); }
.article ul, .article ol { margin: 14px 0 14px 20px; }
.article li { padding: 4px 0; font-size: 15px; color: var(--text-light); list-style: disc; }
.article ol li { list-style: decimal; }
.article strong { color: var(--midnight); }

/* === BADGE / HIGHLIGHT === */
.highlight { color: var(--orange); }
.badge-highlight {
  display: inline-block;
  background: rgba(232,119,34,0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Warranty section */
.warranty-section {
  padding: 30px 0;
  background: var(--cerulean-bg);
  text-align: center;
}
.warranty-section img { display: inline-block; height: 50px; margin-bottom: 8px; }
.warranty-section h3 { font-size: 18px; margin-bottom: 8px; }
.warranty-section p { font-size: 14px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE — Mobile First Fixes
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .nav-links a { padding: 15px 10px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: 30px; }
  .stats-grid { gap: 40px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TOUCH DEVICE OVERRIDE (catches in-app browsers that lie about viewport) ===== */
@media (pointer: coarse) {
  .top-bar { display: none !important; }
  .nav { height: 56px; position: fixed; top: 0; }
  .nav-logo { display: flex !important; }
  .nav-links { display: none !important; }
  .nav-right .nav-phone { display: none !important; }
  .hamburger { display: flex !important; }
  body { padding-top: 56px; }
  .hero-split { grid-template-columns: 1fr !important; }
  .content-section-grid { grid-template-columns: 1fr !important; }
  .two-col, .two-col-60-40, .two-col-40-60 { grid-template-columns: 1fr !important; }
  .card-grid, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr !important; }
  .compare-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
  .stats-grid { flex-direction: column !important; gap: 20px; }
  .stat-divider { display: none !important; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: block !important; }
  body { padding-bottom: 54px; }
  .hero h1 { font-size: 22px !important; }
  .heading-condensed { font-size: 22px !important; }
  h2 { font-size: 22px; }
  .zip-form { flex-direction: column; }
  .zip-form input { border-right: 1px solid var(--gray-border); }
  .zip-form .btn { width: 100%; }
  .container { padding: 0 16px; }
  .section { padding: 36px 0; }
  .hero { padding: 28px 0; }
  .hero-white { padding: 28px 0; }
  .hero-video-col { display: none !important; } /* Hide video on touch — poster image looks bad */
  .content-section-grid img { max-height: 250px; object-fit: contain; margin: 0 auto; } /* Cap image height on touch */
  .blog-grid { grid-template-columns: 1fr !important; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 16px; }
  .testimonial-scroll .testimonial-card { min-width: 85vw; scroll-snap-align: center; flex-shrink: 0; }
  .footer-badges { justify-content: center; }
  .warranty-inner img { height: 80px; }
  .stat-num { font-size: 32px !important; }
}

/* Tablet Portrait / Large Phone */
@media (max-width: 991px) {
  /* Hide desktop nav, show mobile */
  .top-bar { display: none !important; }
  .nav {
    height: 56px;
    position: fixed;
    top: 0;
  }
  .nav-logo { display: flex !important; }
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none !important; }
  .nav-right .nav-phone { display: none; }
  .hamburger { display: flex !important; }

  /* Body offset for fixed nav */
  body { padding-top: 56px; }

  /* Info bar on mobile */
  .info-bar { font-size: 11px; padding: 6px 0; }
  .info-bar-inner { gap: 12px; }

  /* Hero */
  .hero { padding: 32px 0; }
  .hero-sub { padding: 28px 0 20px; }
  .hero h1 { font-size: 22px !important; line-height: 1.25; }
  .hero-sub h1 { font-size: 20px !important; }
  .hero p { font-size: 14px; }
  .hero .btn-group { flex-direction: column; }
  .hero .btn { width: 100%; text-align: center; }
  .hero-split { grid-template-columns: 1fr !important; gap: 20px; }

  /* Zip form stacks */
  .zip-form { flex-direction: column; max-width: 100%; }
  .zip-form input { border-right: 1px solid var(--gray-border); border-bottom: none; }
  .zip-form .btn { width: 100%; }

  /* Two column → single column */
  .two-col, .two-col-60-40, .two-col-40-60 { grid-template-columns: 1fr !important; }

  /* Comparison cards stack */
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Steps */
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Cards */
  .card-grid, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr !important; }
  .card { padding: 20px; }

  /* Stats — vertical stack on mobile */
  .stats-bar { padding: 32px 0; }
  .stats-grid { flex-direction: column !important; gap: 24px; }
  .stat { padding: 0; }
  .stat-num { font-size: 32px !important; }
  .stat-divider { display: none !important; }

  /* Headings */
  .heading-condensed { font-size: 22px !important; }
  h2 { font-size: 22px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
  .form-box { padding: 0 4px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; text-align: center; }
  .footer-badges { justify-content: center; }

  /* Sections */
  .section { padding: 36px 0; }
  .section-sm { padding: 20px 0; }
  .section-header { margin-bottom: 20px; }

  /* Mobile sticky CTA */
  .mobile-cta { display: block; }
  body { padding-bottom: 54px; }

  /* Content section grids (Protects Home, Tune-Up, etc) — CRITICAL */
  .content-section-grid { grid-template-columns: 1fr !important; gap: 20px; }

  /* Case study */
  .case-study-inner { padding: 16px 20px; }
  .case-study blockquote { font-size: 15px; }

  /* Hero white */
  .hero-white { padding: 28px 0; }
  .hero-white h1 { font-size: 22px !important; }
  .hero-sub-bold { font-size: 13px; }
  .hero-video-col { display: none !important; }

  /* City meta */
  .city-meta { flex-direction: column; gap: 8px; }
  .city-hero { padding: 28px 0 20px; }

  /* City grid */
  .city-grid { grid-template-columns: 1fr 1fr; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* Warranty */
  .warranty-inner img { height: 80px; }

  /* Container tighter padding */
  .container { padding: 0 16px; }

  /* Narrow sections */
  .narrow, .narrow-sm { padding: 0 16px; }

  /* Testimonials scroll horizontal */
  .testimonial-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
  }
  .testimonial-scroll .testimonial-card {
    min-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* === HOMEPAGE SPECIFIC SECTIONS === */

/* Hero white (homepage only) */
.hero-white { background: var(--white); padding: 50px 0; }
.hero-white h1 { color: var(--midnight); font-size: 32px; }
.hero-white p { color: var(--text-light); }
.hero-text-center { text-align: center; }
.hero-cta-link {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.hero-sub-bold { font-weight: 700; color: var(--text); font-size: 14px; }
.hero-video-col video { width: 100%; display: block; }

/* Protects Home / Tune-Up sections */
.content-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.content-section-grid img { width: 100%; max-height: 280px; object-fit: contain; }
.section-photo { max-height: 240px; width: auto; max-width: 100%; border-radius: 8px; display: block; margin: 0 auto; }
.content-section-grid h2.heading-condensed { margin-bottom: 20px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.photo-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }

/* Icon list for home protection */
.home-icon-list { margin-top: 24px; }
.home-icon-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.home-icon-item .emoji { font-size: 24px; flex-shrink: 0; }
.home-icon-item strong { color: var(--midnight); }
.home-icon-item .desc { color: var(--text-light); font-size: 14px; }

/* Tune-up checklist */
.tune-up-list { margin: 16px 0 16px 8px; }
.tune-up-list li { padding: 6px 0; list-style: none; color: var(--text); font-size: 14px; }
.tune-up-note { font-size: 13px; color: var(--text-muted); }

/* Case study quote */
.case-study { max-width: 800px; margin: 0 auto; }
.case-study-inner {
  border-left: 4px solid var(--orange);
  padding: 24px 32px;
  background: var(--white);
}
.case-study blockquote {
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-heading);
  line-height: 1.5;
}
.case-study .author { font-weight: 700; color: var(--midnight); }
.case-study .role { font-size: 13px; color: var(--text-muted); }

/* Right for my roof section */
.right-roof { max-width: 800px; margin: 0 auto; }
.right-roof h2 { text-align: center; margin-bottom: 20px; }
.right-roof p { font-size: 15px; line-height: 1.6; }
.right-roof .warning-box {
  background: var(--gray-light);
  padding: 24px;
  margin: 24px 0;
}
.right-roof .warning-box .warning-title { font-weight: 700; color: var(--midnight); margin-bottom: 8px; }
.right-roof .warning-box ul { margin-left: 16px; }
.right-roof .warning-box li { padding: 4px 0; list-style: disc; color: var(--text-light); font-size: 14px; }
.right-roof .cta-center { text-align: center; margin-top: 24px; }

/* Dave Thomas bar */
.dave-thomas-inner { text-align: center; max-width: 800px; margin: 0 auto; }
.dave-thomas-icon { font-size: 28px; margin-bottom: 8px; }
.dave-thomas-inner p { font-size: 15px; line-height: 1.5; }

/* Warranty badge section */
.warranty-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.warranty-inner img { height: 50px; display: inline-block; margin-bottom: 12px; }

/* Mobile menu phone */
.mobile-menu-cta { padding-top: 20px; }
.mobile-menu-phone {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
}

/* Form on dark bg */
.form-dark label { color: rgba(255,255,255,0.8); }
.form-dark input, .form-dark select, .form-dark textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.form-dark input::placeholder { color: rgba(255,255,255,0.4); }
.form-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  text-align: center;
}
.form-disclaimer a { color: rgba(255,255,255,0.5); }

/* Estimate form section */
.estimate-section h2 { color: var(--white); }
.estimate-section .section-header p { color: rgba(255,255,255,0.7); }
.form-success-call { margin-top: 12px; }

/* Review link */
.review-link-wrap { text-align: center; margin-top: 32px; }

/* Footer extras */
.footer-about img { height: 28px; margin-bottom: 16px; }
.footer-badge-img { height: 28px; }
.footer-badge-sm { height: 24px; }
.footer-serving { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* City page hero */
.city-hero { padding: 50px 0 40px; }
.city-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.city-meta-item {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.city-meta-item strong { color: var(--white); }

/* City content sections */
.city-section h2 { margin-bottom: 16px; }
.city-section p { font-size: 15px; line-height: 1.6; color: var(--text-light); }

/* Service area section */
.service-box {
  background: var(--gray-light);
  padding: 24px;
  margin: 24px 0;
}
.service-box h3 { margin-bottom: 12px; font-family: var(--font); }
.neighborhood-list { margin-left: 20px; }
.neighborhood-list li { list-style: disc; padding: 3px 0; font-size: 14px; color: var(--text-light); }

/* Inline CTA blocks */
.inline-cta { text-align: center; margin-top: 32px; }
.inline-cta p { margin-bottom: 12px; }

/* Generic max-width wrapper */
.narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.narrow-sm { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Small Phone */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  h1 { font-size: 20px !important; }
  h2 { font-size: 19px !important; }
  h3 { font-size: 16px; }
  .heading-condensed { font-size: 19px !important; }
  .hero h1 { font-size: 20px !important; }
  .hero { padding: 24px 0; }
  .section { padding: 28px 0; }

  .steps { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }

  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  .compare-card { padding: 16px; }

  .stats-grid { gap: 16px; }
  .stat-num { font-size: 28px !important; }
  .stat-label { font-size: 13px; }

  .mobile-menu a { font-size: 15px; padding: 14px 0; }

  .trust-bar .trust-rating { font-size: 24px; }
  .trust-bar .trust-title { font-size: 12px; }

  .warranty-inner img { height: 60px; }

  /* Icon list items */
  .home-icon-item { gap: 10px; }
  .home-icon-item .emoji { font-size: 20px; }
}
