/* ============================================================
   NH Windows, Siding & Roofing — Main Stylesheet
   Pure CSS · No dependencies · Optimized for Netlify/GitHub
   ============================================================ */

:root {
  --navy:        #1b2a4a;
  --navy-dark:   #12203a;
  --navy-mid:    #243460;
  --orange:      #e0651a;
  --orange-dark: #c8561a;
  --light:       #f5f7fa;
  --gray:        #6b7280;
  --dark:        #1f2937;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --green:       #16a34a;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --tr:          .22s ease;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w:       1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--orange-dark); }
ul, ol { list-style: none; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
section { padding: 76px 0; }
.bg-light { background: var(--light); }
.bg-navy  { background: var(--navy); color: var(--white); }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr), color var(--tr), border-color var(--tr);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--orange) !important; color: var(--white) !important; border-color: var(--orange) !important; }
.btn-primary:hover { background: var(--orange-dark) !important; border-color: var(--orange-dark) !important; color: var(--white) !important; transform: translateY(-2px); }
.btn-outline   { background: transparent !important; color: var(--white) !important; border-color: rgba(255,255,255,.85) !important; }
.btn-outline:hover { background: var(--white) !important; color: var(--navy) !important; }
.btn-navy      { background: var(--navy) !important; color: var(--white) !important; border-color: var(--navy) !important; }
.btn-navy:hover { background: var(--navy-dark) !important; color: var(--white) !important; }
.btn-sm        { padding: 9px 20px; font-size: .87rem; }
.btn-lg        { padding: 16px 36px !important; font-size: 1.05rem !important; }
/* Ensure our btn base is never overridden by affiliate CSS */
a.btn, button.btn {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background var(--tr), transform var(--tr), color var(--tr) !important;
}

/* ── Top Announcement Bar ── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: .80rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--orange); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ── Header / Nav ── */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
  position: relative;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.logo-primary { font-size: 1.18rem; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.logo-secondary { font-size: .72rem; color: var(--gray); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }
.logo:hover .logo-primary { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 15px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  color: var(--dark);
  transition: background var(--tr), color var(--tr);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--light); color: var(--navy); }
.main-nav .nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  margin-left: 6px;
}
.main-nav .nav-cta:hover { background: var(--orange-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a5f 100%);
  color: var(--white);
  padding: 96px 0 86px;
  position: relative;
  overflow: hidden;
}
/* Subtle geometric overlay */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,101,26,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  padding: 5px 15px 5px 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(255,255,255,.9);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 720px;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  font-size: 1.08rem;
  max-width: 580px;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 42px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--orange); line-height: 1; }
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; display: block; }

/* ── Trust Strip ── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.trust-item .t-icon { font-size: 1.1rem; }

/* ── Section Headings ── */
.section-label {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.18;
  letter-spacing: -.3px;
}
.section-sub {
  color: var(--gray);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
}
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--light);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 9px; }
.service-card p  { color: var(--gray); font-size: .91rem; margin-bottom: 14px; line-height: 1.65; }
.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}
.tag {
  background: var(--light);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
}
.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.service-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--orange);
}
.service-phone:hover { color: var(--orange-dark); }
.learn-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray);
}
.learn-link:hover { color: var(--navy); }

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.why-card {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--tr), transform var(--tr);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-card p  { font-size: .87rem; color: var(--gray); line-height: 1.65; }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text .section-label { margin-bottom: 8px; }
.about-text p { color: var(--gray); font-size: .97rem; margin-bottom: 16px; line-height: 1.75; }
.about-checklist { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--dark);
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-visual {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy-mid));
  border-radius: 20px;
  padding: 44px 36px;
  color: white;
}
.about-visual-heading { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.about-visual-sub { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 30px; }
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-stat-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
}
.about-stat-box strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.about-stat-box span { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 4px; display: block; }
.about-visual-note {
  margin-top: 24px;
  padding: 14px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  text-align: center;
}

/* ── Referral Notice ── */
.referral-notice {
  background: rgba(224,101,26,.06);
  border: 1px solid rgba(224,101,26,.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--dark);
  margin: 20px 0;
}
.referral-notice .rn-icon { font-size: 1.1rem; }

/* ── Service Phones Banner ── */
.phones-banner { background: var(--navy); padding: 48px 0; }
.phones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.phone-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  text-align: center;
  transition: background var(--tr), transform var(--tr);
}
.phone-card:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); }
.phone-card-icon { font-size: 2rem; margin-bottom: 10px; }
.phone-card h4 { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.phone-card a {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
}
.phone-card a:hover { color: #f07030; }
.phone-card p { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: 5px; }
.phones-heading { text-align: center; margin-bottom: 30px; }
.phones-heading h2 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.phones-heading p { font-size: .88rem; color: rgba(255,255,255,.6); }

/* ── CTA Banner ── */
.cta-band {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p  { font-size: 1rem; opacity: .88; margin-bottom: 28px; max-width: 530px; margin-left: auto; margin-right: auto; }
.cta-band .btn-outline:hover { color: var(--orange); }

/* ── Contact Section ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 52px;
  align-items: start;
}
.contact-info-col h2 { font-size: 1.85rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.contact-info-col > p { color: var(--gray); margin-bottom: 30px; font-size: .97rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-of-type { border-bottom: none; }
.cd-icon {
  width: 44px; height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.cd-body strong { display: block; font-size: .78rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.cd-body span, .cd-body a { font-size: .95rem; color: var(--dark); font-weight: 500; }
.cd-body a:hover { color: var(--orange); }
.service-phones-list { margin-top: 28px; }
.service-phones-list h4 { font-size: .83rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 12px; }
.sp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--light);
  border-radius: 8px;
  margin-bottom: 8px;
}
.sp-item span { font-size: .85rem; font-weight: 600; color: var(--dark); }
.sp-item a { font-size: .9rem; font-weight: 700; color: var(--orange); }
.sp-item a:hover { color: var(--orange-dark); }

/* Contact Form Card */
.form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .79rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group .req { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,101,26,.11);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-note { font-size: .78rem; color: var(--gray); }
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #166534;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  font-size: .9rem;
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(140deg, var(--navy-dark), var(--navy-mid));
  color: var(--white);
  padding: 58px 0 50px;
  text-align: center;
}
.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; }
.page-hero p   { font-size: 1.03rem; color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── Services Detail Page ── */
.service-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  transition: box-shadow var(--tr);
}
.service-block:hover { box-shadow: var(--shadow); }
.service-block-left { }
.sb-icon {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: white;
  margin-bottom: 18px;
}
.service-block-left h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.service-block-left h3 a { color: inherit; text-decoration: none; transition: color var(--tr); }
.service-block-left h3 a:hover { color: var(--orange); }

/* ── Service Block CTA Row (3-box bottom strip) ── */
.service-block-cta-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1.5px solid var(--border);
  padding-top: 22px;
  margin-top: 6px;
}
.service-block-cta-row.two-col { grid-template-columns: repeat(2, 1fr); }
.sbc-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  text-decoration: none !important;
  color: var(--dark) !important;
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
}
.sbc-box:hover { background: var(--white); border-color: var(--orange); color: var(--navy) !important; transform: translateY(-2px); }
.sbc-box.sbc-cta { background: var(--orange) !important; border-color: var(--orange) !important; color: var(--white) !important; }
.sbc-box.sbc-cta:hover { background: var(--orange-dark) !important; border-color: var(--orange-dark) !important; transform: translateY(-2px); }
.sbc-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.sbc-text { display: flex; flex-direction: column; gap: 2px; }
.sbc-label { font-size: .9rem; font-weight: 700; line-height: 1.25; }
.sbc-sub { font-size: .75rem; opacity: .6; font-weight: 500; }
.sbc-box.sbc-cta .sbc-sub { opacity: .82; color: var(--white); }
@media (max-width: 900px) {
  .service-block-cta-row,
  .service-block-cta-row.two-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .service-block-cta-row,
  .service-block-cta-row.two-col { grid-template-columns: 1fr; gap: 8px; }
}
.service-block-left p  { font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.service-block-right h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gray); margin-bottom: 14px; }
.items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.item-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--light);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--dark);
}
.item-chip::before { content: '✓'; color: var(--orange); font-weight: 800; flex-shrink: 0; }

/* ── Our Work Page ── */
.work-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.work-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
}
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work-img {
  height: 190px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.work-body { padding: 20px; }
.work-body h3 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.work-body p  { font-size: .85rem; color: var(--gray); }
.social-cta-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin-top: 52px;
  border: 1.5px solid var(--border);
}
.social-cta-box h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.social-cta-box p  { color: var(--gray); max-width: 460px; margin: 0 auto 24px; font-size: .95rem; }
.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1877f2;
  color: white;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--tr);
}
.fb-link:hover { background: #0d65d8; color: white; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 60px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.footer-brand p { font-size: .86rem; line-height: 1.75; margin-bottom: 16px; }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .86rem; color: rgba(255,255,255,.65); transition: color var(--tr); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-phone-item { margin-bottom: 12px; }
.footer-phone-item span { display: block; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: rgba(255,255,255,.45); margin-bottom: 2px; }
.footer-phone-item a { font-size: .97rem; font-weight: 700; color: var(--orange); }
.footer-phone-item a:hover { color: #f07030; }
.footer-addr { font-size: .86rem; line-height: 1.7; }
.footer-addr a { color: rgba(255,255,255,.65); }
.footer-addr a:hover { color: var(--orange); }
.footer-bottom { padding: 20px 0 0; }
.disclaimer-box {
  background: rgba(0,0,0,.22);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: .74rem;
  line-height: 1.75;
  color: rgba(255,255,255,.38);
  margin-bottom: 18px;
}
.disclaimer-box strong { color: rgba(255,255,255,.55); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 20px;
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-base a { color: rgba(255,255,255,.45); }
.footer-base a:hover { color: var(--orange); }
.referral-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(224,101,26,.18);
  border: 1px solid rgba(224,101,26,.3);
  color: rgba(255,190,140,.85);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .3px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .items-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -20px; right: -20px;
    background: var(--white);
    flex-direction: column;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-top: 2px solid var(--orange);
    z-index: 1000;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 11px 14px; }
  .main-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 52px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  section { padding: 54px 0; }
  .phones-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip .container { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .topbar-left { justify-content: center; width: 100%; }
  .topbar-right { display: none; }
  .phones-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .service-block { padding: 24px 18px; }
  .hero-stats { gap: 24px; }
  .items-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .social-cta-box { padding: 32px 20px; }
}

/* ── Print ── */
@media print {
  .topbar, .site-header, .hero-actions, .cta-band, .phones-banner, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}

/* ============================================================
   Affiliate Form Integration — Polyares
   Applied on services/index.html only
   ============================================================ */

/* Wrapper that sits between service blocks */
.affiliate-section {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.affiliate-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 30px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  flex-wrap: wrap;
}
.affiliate-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.affiliate-section-header p {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.affiliate-section-header-text { flex: 1; }

/* The polyares btn-success override — match site orange for visual consistency */
.affiliate-section .btn-success,
a.polyares-quote-button.btn-success,
.polyares-quote-button.btn.btn-success {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  padding: 11px 24px !important;
  font-size: .95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: background var(--tr) !important;
  text-decoration: none !important;
}
.affiliate-section .btn-success:hover,
a.polyares-quote-button.btn-success:hover {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
  color: var(--white) !important;
}

/* Two-column layout: quotes box left, CTA right */
.affiliate-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.affiliate-inline-left {
  padding: 28px 30px;
  border-right: 1px solid var(--border);
}
.affiliate-inline-right {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--light);
}
.affiliate-inline-right h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.affiliate-inline-right p {
  font-size: .86rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Full-width iframe form */
.affiliate-form-full {
  border-top: 1px solid var(--border);
  padding: 22px 30px;
}
.affiliate-form-full iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Quotes box override — force full width inside column */
.affiliate-inline-left .po-request-quotes-box {
  width: 100% !important;
  max-width: 100% !important;
}

/* Divider label between blocks */
.service-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 28px;
  color: var(--gray);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.service-divider::before,
.service-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Responsive */
@media (max-width: 700px) {
  .affiliate-inline { grid-template-columns: 1fr; }
  .affiliate-inline-left { border-right: none; border-bottom: 1px solid var(--border); }
  .affiliate-section-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Subdomain Section — Dedicated Service Sites
   To activate each card: set href to the live URL,
   remove onclick="return false;", remove class="placeholder-subdomain",
   remove <span class="coming-soon-badge"> and .sd-card-status text.
   ============================================================ */
.subdomain-section {
  background: var(--light);
  padding: 76px 0;
  border-top: 1px solid var(--border);
}
.subdomain-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card — mirrors service-card aesthetic */
.subdomain-card {
  background: var(--white) !important;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: var(--dark) !important;
  position: relative;
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
/* Orange top bar — same as service-card hover bar but always visible */
.subdomain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}
.subdomain-card.placeholder-subdomain { cursor: default; }
.subdomain-card:not(.placeholder-subdomain) { cursor: pointer; }
.subdomain-card:not(.placeholder-subdomain):hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: rgba(224,101,26,.3);
}

/* Card body */
.subdomain-card-body {
  padding: 32px 26px 22px;
  flex: 1;
}
.subdomain-card-icon {
  width: 58px;
  height: 58px;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 18px;
}
.subdomain-card .subdomain-card-name {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  line-height: 1.25;
  margin-bottom: 6px;
}
.subdomain-card-url {
  font-size: .74rem;
  color: var(--gray);
  font-family: 'Courier New', monospace;
  margin-bottom: 18px;
  letter-spacing: .2px;
}
.subdomain-card .subdomain-card-phone {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: var(--orange) !important;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card footer strip */
.subdomain-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px;
  background: var(--light);
  border-top: 1px solid var(--border);
}
.sd-card-status {
  font-size: .78rem;
  color: var(--gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  background: rgba(224,101,26,.1);
  color: var(--orange);
  border: 1px solid rgba(224,101,26,.25);
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

@media (max-width: 900px) {
  .subdomain-cards-row { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .subdomain-cards-row { grid-template-columns: 1fr; }
  .subdomain-section { padding: 52px 0; }
}

/* ── Footer Bio ── */
.footer-bio-sub {
  font-size: .83rem !important;
  line-height: 1.75 !important;
  margin-top: 10px !important;
  margin-bottom: 14px !important;
  color: rgba(255,255,255,.50) !important;
}
.footer-bio-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .79rem;
  color: rgba(255,255,255,.38);
  margin-bottom: 14px;
  line-height: 1.5;
}
