/* High Efficiency Roofing Solutions LLC — shared stylesheet (tokens + chrome).
   Owner: orchestrator. Page agents append page-scoped rules under a
   banner comment reading page: <slug>. Do not edit the shared sections. */

:root {
  --blue: #1d2ba8;
  --blue-strong: #1a2699;
  --blue-deep: #101a4d;
  --navy: #0c1230;
  --hero-overlay: rgba(16, 24, 66, 0.74);
  --red: #e8412a;
  --heading: #101a4d;
  --text: #5b6070;
  --text-light: #d7dae6;
  --white: #ffffff;
  --bg-grey: #eef0f4;
  --card-border: #e4e6ee;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(16, 24, 66, 0.10);
  --maxw: 1200px;
  --font-head: 'Jost', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Kumbh Sans', 'Jost', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0 0 .5em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  font-size: 13px;
  margin: 0 0 14px;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline:hover { background: #fff; color: var(--blue); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16,24,66,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #16237c, #1d2ba8);
  color: #fff;
  padding: 20px 40px 20px 24px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  min-width: 240px;
}
.brand svg { flex: 0 0 auto; }
.brand-text { font-family: var(--font-head); line-height: 1.05; }
.brand-text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.brand-text span { font-size: 10px; letter-spacing: .28em; opacity: .9; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 32px;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--heading);
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); font-weight: 600; }
.main-nav .btn { color: #fff; }
.main-nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--heading);
  cursor: pointer;
  padding: 0 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr .8fr 1.1fr;
  gap: 36px;
}
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-brand .brand-mark { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; }
.footer-brand .brand-mark b { font-family: var(--font-head); font-size: 17px; display: block; line-height: 1.1; }
.footer-brand .brand-mark span { font-size: 9px; letter-spacing: .26em; opacity: .85; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--blue); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a:hover { color: #fff; }
.footer-contact p { margin: 0 0 4px; }
.footer-contact strong { color: #fff; font-weight: 600; display: block; margin-top: 12px; }
.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(215,218,230,.7);
}

/* ---------- Shared entrance motion (always ends visible) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate { animation: fadeUp .7s ease both; }
.animate-in { animation: fadeIn .9s ease both; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; }
  .brand { clip-path: none; min-width: 0; padding: 16px 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   page: home
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
              url('orig/01.png') center/cover no-repeat;
}
.hero-inner { padding: 92px 0 104px; max-width: 620px; }
.hero h1 { color: #fff; font-size: 46px; font-weight: 700; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.86); font-size: 16px; margin-bottom: 30px; max-width: 480px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Feature cards */
.features { padding: 60px 0 40px; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--card-border);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.feature-card::before {
  content: "";
  position: absolute;
  left: -14px; top: 24px; bottom: 24px;
  width: 14px;
  background: var(--blue);
}
.feature-card img { width: 54px; height: 54px; margin-bottom: 18px; }
.feature-card h5 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 14px; }

/* About */
.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.about p.lead { margin-bottom: 26px; }
.about-list { list-style: none; margin: 0; padding: 0; }
.about-list li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 600; color: var(--heading);
  margin-bottom: 16px;
}
.about-list .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.about-images { position: relative; display: flex; gap: 22px; align-items: flex-start; justify-content: center; }
.about-images img { object-fit: cover; box-shadow: var(--shadow); }
.about-images .img-a { width: 300px; height: 448px; }
.about-images .img-b { width: 180px; height: 382px; margin-top: 60px; }

/* What we do — services carousel */
.services { background: var(--bg-grey); padding: 76px 0 84px; }
.services .head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.services h2 { font-size: 34px; font-weight: 700; }
.services .swiper { padding-bottom: 8px; }
.service-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  color: #fff;
}
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,40,.86) 0%, rgba(10,16,40,.35) 55%, rgba(10,16,40,.15) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 24px;
}
.service-card h3 { color: #fff; font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: rgba(255,255,255,.88); font-size: 13.5px; margin: 0; }
.services .swiper-button-prev, .services .swiper-button-next { color: #fff; }
.services .swiper-button-prev::after, .services .swiper-button-next::after { font-size: 22px; font-weight: 700; }

/* Stats band */
.stats {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(23,33,140,.92), rgba(23,33,140,.92)),
              url('orig/14.jpg') center/cover no-repeat;
  padding: 48px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { color: #fff; font-family: var(--font-head); font-size: 44px; font-weight: 700; margin: 0 0 4px; }
.stat p { margin: 0; color: rgba(255,255,255,.9); font-family: var(--font-head); font-weight: 500; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.testimonials .photo { min-height: 460px; background: url('orig/15.png') center/cover no-repeat; }
.testimonials .body { padding: 76px 64px; }
.testimonials h2 { font-size: 32px; font-weight: 700; margin-bottom: 24px; max-width: 380px; }
.quote-mark { color: var(--blue); font-family: Georgia, serif; font-size: 60px; line-height: .4; display: block; margin-bottom: 22px; }
.testimonials blockquote { margin: 0 0 22px; font-size: 15px; color: var(--text); font-style: italic; }
.testimonials cite { font-style: normal; font-weight: 700; color: var(--heading); font-family: var(--font-head); }
.tdots { display: flex; gap: 8px; margin-top: 28px; }
.tdots span { width: 9px; height: 9px; border-radius: 50%; background: #c9cde0; }
.tdots span.on { background: var(--blue); }

/* Contact */
.contact { padding: 84px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.contact h2 { font-size: 34px; font-weight: 700; margin-bottom: 18px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { font-family: var(--font-head); font-weight: 500; font-size: 13.5px; color: var(--heading); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #f7f8fb;
  color: var(--heading);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form .submit { grid-column: 1 / -1; }
.contact-form .submit button { width: 100%; }
.contact-info .row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.contact-info .ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(29,43,168,.10);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-info .ic img { width: 20px; height: 20px; }
.contact-info .lbl { font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.contact-info a { color: var(--blue); }

/* Map */
#map { display: block; width: 100%; height: 400px; border: 0; background: #dfe3ec; }

@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid, .testimonials, .contact-grid { grid-template-columns: 1fr; }
  .about-images { justify-content: flex-start; }
  .testimonials .photo { min-height: 320px; }
  .testimonials .body { padding: 48px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-form { grid-template-columns: 1fr; }
}
