/*
 * Homepage restyle: same layout and copy, visual style of the roofing call
 * lander (brighter blue + orange, Archivo/Inter, pill buttons, soft cards).
 * Loaded only by index.html, after css/styles.css.
 */

:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;

  --brand-primary: #ff7d33;
  --brand-primary-hover: #f26b1d;
  --brand-ink: #133a66;
  --brand-text: #1c2530;
  --brand-muted: #5b6673;
  --brand-border: #e3e9f1;
  --brand-bg: #f6f8fb;

  --blue: #1e63b5;
  --blue-dark: #174a91;
  --blue-soft: #eaf2fc;
  --ink: #102a47;
  --orange-soft: #fff1e8;
  --orange-text: #b4470b;
  --shadow-sm: 0 1px 2px rgba(16, 42, 71, 0.06), 0 2px 8px rgba(16, 42, 71, 0.04);
  --shadow-hover: 0 18px 40px rgba(16, 42, 71, 0.14);
}

body {
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
}

a:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.header,
.fixed-nav .header {
  background: var(--blue);
  background: linear-gradient(90deg, var(--blue) 0%, #2470c8 100%);
  box-shadow: 0 6px 24px rgba(16, 42, 71, 0.18);
}
.brand-icon {
  display: none;
}
.brand-text {
  font-family: var(--font-display);
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.brand-the {
  font-weight: 800;
}
.brand {
  margin-top: 18px;
}

a.nav-btn {
  width: auto;
  height: 44px;
  line-height: 44px;
  padding: 0 26px;
  margin-top: 13px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
a.nav-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
/* House photo behind the hero, under a brand-blue overlay that keeps the
   white headline readable */
.bnr-sec {
  background: linear-gradient(180deg, rgba(23, 74, 145, 0.78) 0%, rgba(30, 99, 181, 0.6) 55%, rgba(23, 74, 145, 0.7) 100%),
    url(../assets/images/home/hero-house-1344.webp) center 32% / cover no-repeat, var(--blue);
}
.bnr-hdg {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.bnr-hdg span {
  color: #ffd0ae;
}
.bnr-para {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: #e3edf9;
  opacity: 1;
}

/* ---------- Service picker card ---------- */
.bnr-btm-bx {
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(16, 42, 71, 0.14);
}
.bnr-btm-hdg {
  font-family: var(--font-display);
  color: var(--brand-ink);
  font-size: 22px;
  letter-spacing: -0.015em;
}

.bnr-btm-list-inr,
.s2-list-bx-inr {
  background: var(--brand-bg);
  color: var(--brand-ink);
  border: 1px solid transparent;
  border-radius: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}
.s2-list-bx-inr {
  background: #fff;
}
.bnr-btm-list-inr:hover,
.s2-list-bx-inr:hover,
.bnr-btm-list-inr.hovered,
.s2-list-bx-inr.hovered {
  background: #fff;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-icon {
  color: var(--blue);
}
.bnr-btm-list-inr:hover .service-icon,
.s2-list-bx-inr:hover .service-icon,
.bnr-btm-list-inr.hovered .service-icon,
.s2-list-bx-inr.hovered .service-icon {
  color: var(--brand-primary-hover);
}

/* ---------- Section headings ---------- */
.commn-hdg {
  font-family: var(--font-display);
  color: var(--brand-ink);
  letter-spacing: -0.025em;
  padding-bottom: 14px;
}
.commn-hdg::after {
  width: 64px;
  background: var(--brand-primary);
}
.commn-hdg.white-txt::after {
  background: var(--brand-primary);
}
.commn-hdg.black-txt {
  color: var(--brand-ink);
}
.commn-para {
  color: var(--brand-text);
}
.commn-para.white-txt {
  color: #e3edf9;
  opacity: 1;
}

/* ---------- How it works ---------- */
.s1-img {
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(16, 42, 71, 0.14);
}
ul.s1-list li {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-top: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
ul.s1-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.s1-list-txt1 {
  display: inline-block;
  color: var(--orange-text);
  background: var(--orange-soft);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.s1-list-txt2 {
  font-family: var(--font-display);
  color: var(--brand-ink);
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-top: 10px;
}
.s1-list-txt3 {
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Ready to get started ---------- */
.sec2 {
  background: radial-gradient(800px 400px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(160deg, #2470c8 0%, var(--blue) 45%, var(--blue-dark) 100%);
}

/* ---------- Guides ---------- */
.sec3 {
  background: #fff;
}
.s3-left .cta-btn {
  border-radius: 999px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background-color: var(--brand-primary);
  box-shadow: 0 6px 18px rgba(255, 125, 51, 0.28);
}
.s3-left .cta-btn:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 12px 28px rgba(242, 107, 29, 0.38);
  transform: translateY(-2px);
}
.s3-left p a {
  color: var(--blue) !important;
}

.article-card {
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.article-img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.article-title {
  font-family: var(--font-display);
  color: var(--brand-ink);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */
.footer-sec {
  background: var(--blue-dark);
  color: #d6e4f5;
}
.brand.brand-footer {
  width: auto;
}
.brand-footer .brand-text {
  color: #fff;
}
.footer-sec .ftr-txt,
.footer-sec .ftr-txt a {
  color: #fff;
}
.footer-sec .ftr-txt a:hover {
  color: #ffd0ae;
  text-decoration-color: rgba(255, 208, 174, 0.7);
}
.note-txt {
  color: #d6e4f5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.footer {
  background: #0f2a47;
}
.footer .ftr-txt {
  color: #b8c5d3;
}
.footer .ftr-txt a {
  color: #fff;
}
.footer .ftr-txt a:hover {
  color: #ffd0ae;
  text-decoration-color: rgba(255, 208, 174, 0.7);
}
.footer-disclaimer {
  border-top-color: rgba(255, 255, 255, 0.14);
}
.footer-disclaimer p {
  color: #b8c5d3;
  font-size: 13px;
}

/* ---------- Responsive (this file loads after styles.css) ---------- */
@media only screen and (max-width: 1021px) {
  .brand {
    margin-top: 16px;
  }
  a.nav-btn {
    margin-top: 10px;
  }
}

@media only screen and (max-width: 767px) {
  .bnr-sec {
    background: linear-gradient(180deg, rgba(23, 74, 145, 0.8) 0%, rgba(30, 99, 181, 0.62) 60%, rgba(23, 74, 145, 0.72) 100%),
      url(../assets/images/home/hero-house-600.webp) center 22% / cover no-repeat, var(--blue);
  }
  .brand {
    margin-top: 17px;
  }
  .brand-text {
    font-size: 21px;
  }
  a.nav-btn {
    padding: 0 18px;
    font-size: 15px;
  }
  .bnr-btm-list-bx,
  .s2-list-bx {
    width: calc(50% - 8px);
  }
  ul.s1-list li {
    padding: 18px 18px;
  }
  .s3-left .cta-btn {
    padding: 16px 0;
  }
  .brand-footer .brand-text {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
