/* Husker Roofing — AI visibility landing page styles v2
 * Matches huskerroofing.com: Divi/WordPress, 1280px, Poppins+Open Sans,
 * red #d61a0c primary, #0061a7 secondary, photo-gradient heros
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --husker-red: #d61a0c;
  --husker-red-dark: #bc1a1a;
  --husker-red-light: #ff584c;
  --husker-blue: #0061a7;
  --text-body: #4a4a4a;
  --text-dark: #1a1a1a;
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-lighter: #fafafa;
  --bg-dark: #1a1a1a;
  --border: #e3e0e3;
}

body {
  font-family: "Open Sans", "Lato", Arial, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, "Lato", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1rem; }

p { margin-bottom: 1rem; }

a { color: var(--husker-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--husker-red-light); text-decoration: underline; }

strong { color: var(--text-dark); font-weight: 700; }

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SITE HEADER (matches Husker's real dark header) ===== */
.site-header {
  background: #1f1f1f;
  border-top: 4px solid var(--husker-red);
  color: #fff;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.site-header .logo { flex: 0 0 auto; }
.site-header .logo img { height: 68px; width: auto; display: block; }
.site-header .tagline {
  flex: 1 1 auto;
  font-family: Poppins, sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: #fff;
  text-align: center;
  min-width: 160px;
  line-height: 1.35;
}
.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header .header-phones {
  font-family: Poppins, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  line-height: 1.55;
  letter-spacing: 0.2px;
}
.site-header .header-phones a { color: #fff; }
.site-header .header-phones a:hover { color: var(--husker-red-light); text-decoration: none; }
.site-header .header-phones .city {
  color: #cfcfcf;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-right: 6px;
}
.site-header .btn-estimate {
  background: var(--husker-red);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 22px;
  border-radius: 3px;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.2s;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.site-header .btn-estimate:hover { background: var(--husker-red-light); color: #fff; text-decoration: none; }
.site-header .btn-estimate strong { font-weight: 800; }
.site-header .bbb-badge { display: inline-block; line-height: 0; }
.site-header .bbb-badge img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 820px) {
  .site-header .container { justify-content: center; }
  .site-header .tagline { order: 3; flex: 1 1 100%; text-align: center; }
  .site-header .header-right { flex: 1 1 100%; justify-content: center; gap: 14px; }
  .site-header .header-phones { text-align: center; }
}

/* ===== SUB NAV BAR ===== */
.sub-nav {
  background: #2f2f2f;
  border-bottom: 3px solid var(--husker-red);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sub-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.sub-nav li {
  position: relative;
}
.sub-nav > ul > li > a,
.sub-nav > ul > li > .nav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 16px 22px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.sub-nav > ul > li > a:hover,
.sub-nav > ul > li > .nav-top:hover,
.sub-nav li:hover > a,
.sub-nav li:hover > .nav-top,
.sub-nav li:focus-within > a,
.sub-nav li:focus-within > .nav-top {
  color: #fff;
  border-bottom-color: var(--husker-red);
  text-decoration: none;
}
.sub-nav > ul > li > a.current,
.sub-nav > ul > li.has-current > .nav-top {
  border-bottom-color: var(--husker-red);
}
.sub-nav .caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--husker-red);
  margin-left: 2px;
  transition: transform 0.2s;
}
.sub-nav li:hover > .nav-top .caret,
.sub-nav li:focus-within > .nav-top .caret {
  transform: rotate(180deg);
}
/* Dropdowns */
.sub-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #4a4a4a;
  border-top: 3px solid var(--husker-red);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 20;
}
.sub-nav li:hover > .dropdown,
.sub-nav li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-nav .dropdown li { display: block; }
.sub-nav .dropdown a {
  display: block;
  color: #fff;
  padding: 12px 22px;
  border: none;
  margin: 0;
  text-align: left;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}
.sub-nav .dropdown a:hover,
.sub-nav .dropdown a.current {
  background: #3a3a3a;
  color: var(--husker-red-light);
  text-decoration: none;
}
@media (max-width: 820px) {
  .sub-nav > ul { flex-direction: column; }
  .sub-nav > ul > li { width: 100%; text-align: center; }
  .sub-nav > ul > li > a,
  .sub-nav > ul > li > .nav-top { width: 100%; justify-content: center; padding: 12px; }
  .sub-nav .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: #222;
    border-top: none;
    box-shadow: none;
    display: none;
    padding: 0;
  }
  .sub-nav li:hover > .dropdown,
  .sub-nav li:focus-within > .dropdown { display: block; }
  .sub-nav .dropdown a { text-align: center; font-size: 0.78rem; padding: 10px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(1deg, rgba(188,26,26,0.80) 0%, rgba(255,88,76,0.60) 100%),
              url("https://images.unsplash.com/photo-1632759145355-8b8f0b8c69d3?auto=format&fit=crop&w=2000&q=70") center/cover,
              linear-gradient(180deg, #2a2a2a 0%, #000 100%);
  background-blend-mode: multiply, normal, normal;
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M0 30 L30 0 L60 30 L30 60 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/></svg>");
  opacity: 0.6;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-family: Poppins, "Lato", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero .subtitle {
  color: #f8f8f8;
  font-size: 1.2rem;
  max-width: 780px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}
.hero .cta-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .subtitle { font-size: 1.05rem; }
}

/* ===== Trust bar ===== */
.trust-bar {
  background: var(--bg-light);
  padding: 35px 0;
  border-bottom: 3px solid var(--husker-blue);
}
.trust-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  text-align: center;
  flex: 1 1 200px;
  padding: 10px;
}
.trust-item .number {
  font-family: Poppins, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--husker-red);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-item .label {
  font-size: 0.85rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* ===== Content sections ===== */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-lighter); }
.section h2 { text-align: center; margin-bottom: 1.5rem; }
.section .lead {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}
.section ul {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 0 auto;
}
.section ul li {
  padding: 12px 0 12px 34px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.section ul li:before {
  content: "✓";
  color: var(--husker-red);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 1.3rem;
}
.section ul li:last-child { border-bottom: none; }

/* ===== Two-column ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 2rem;
}
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-2 .card {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--husker-red);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.grid-2 .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.grid-2 .card h3 { margin-top: 0; color: var(--husker-red); }
.grid-2 .card ul li { padding: 8px 0 8px 28px; }

/* ===== Testimonials ===== */
.testimonials {
  background: var(--bg-white);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials h2 { text-align: center; margin-bottom: 2rem; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 820px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--bg-lighter);
  border-left: 4px solid var(--husker-red);
  padding: 26px;
  border-radius: 4px;
  font-style: italic;
  color: var(--text-body);
  font-size: 0.95rem;
}
.testimonial .stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-style: normal;
  letter-spacing: 2px;
}
.testimonial .author {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.testimonial .author span {
  font-weight: 400;
  color: var(--text-body);
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ===== Related pages (internal linking) ===== */
.related {
  background: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}
.related h2 { margin-bottom: 2rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.related-item {
  background: #fff;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--husker-blue);
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: left;
}
.related-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.related-item h3 { margin-top: 0; font-size: 1.1rem; }
.related-item p { color: var(--text-body); font-size: 0.9rem; margin-bottom: 14px; }
.related-item a { color: var(--husker-blue); font-weight: 700; font-size: 0.9rem; }
.related-item a:after { content: " →"; }

/* ===== FAQ ===== */
.faq-item {
  margin-bottom: 1.25rem;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--husker-red);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}
.faq-item p { margin-bottom: 0; }

/* ===== CTA Block ===== */
.cta-block {
  background: linear-gradient(135deg, var(--husker-red) 0%, var(--husker-red-dark) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-block h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}
.cta-block p {
  color: #fff;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}
.cta-block .btn { background: #fff; color: var(--husker-red); }
.cta-block .btn:hover { background: var(--text-dark); color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--husker-red);
  color: #fff;
  padding: 15px 34px;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(214,26,12,0.25);
}
.btn:hover {
  background: var(--husker-red-light);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(214,26,12,0.35);
}
.btn.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: none;
}
.btn.outline:hover {
  background: #fff;
  color: var(--husker-red);
  transform: translateY(-2px);
}

/* ===== Manufacturers ===== */
.manufacturers {
  padding: 50px 0;
  background: var(--bg-lighter);
  text-align: center;
  border-top: 1px solid var(--border);
}
.manufacturers h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.manufacturers .caption {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.manufacturer-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.manufacturer-row img {
  max-height: 70px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}
.manufacturer-row img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}
@media (max-width: 720px) {
  .manufacturer-row { gap: 14px; justify-content: center; }
  .manufacturer-row img { max-height: 48px; max-width: 95px; }
}

/* ===== Trust Badges ===== */
.trust-badges {
  background: var(--text-dark);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.trust-badges .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) {
  .trust-badges .container { grid-template-columns: 1fr; text-align: center; }
}
.trust-badges .left {
  text-align: left;
}
@media (max-width: 820px) {
  .trust-badges .left { text-align: center; }
}
.trust-badges h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.trust-badges p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}
@media (max-width: 820px) {
  .trust-badges p { margin-left: auto; margin-right: auto; }
}
.badge-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 820px) { .badge-row { justify-content: center; gap: 16px; } }
.badge-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s;
}
.badge-img img {
  max-height: 72px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.badge-img:hover { transform: translateY(-2px); }
.badge-img.chamber img { max-height: 56px; max-width: 170px; }
.badge-img.google img { max-height: 78px; max-width: 140px; }
@media (max-width: 820px) {
  .badge-img img { max-height: 54px; max-width: 105px; }
  .badge-img.chamber img { max-height: 42px; max-width: 130px; }
}
.trust-badges .right {
  text-align: center;
}
.trust-badges .stars-big {
  font-size: 2.5rem;
  color: #f5a623;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
}
.trust-badges .right .headline {
  font-family: Poppins, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}
.trust-badges .right .sub {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== Footer ===== */
footer.page-footer {
  background: var(--text-dark);
  color: #b0b0b0;
  padding: 50px 0 25px;
  text-align: center;
}
footer.page-footer a { color: var(--husker-red-light); }
footer.page-footer .phone {
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin: 8px 0;
  letter-spacing: 0.5px;
}
footer.page-footer .phone:hover { color: var(--husker-red-light); text-decoration: none; }
.footer-divider {
  height: 1px;
  background: #333;
  margin: 30px auto 20px;
  max-width: 400px;
}
