/* ============================================================
   INNER PAGES — shared template styles
   ============================================================ */

/* ---------- nav dropdowns (also loaded by homepage) ---------- */
.nav-item { position: relative; display: inline-flex; }
.nav-drop {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 250px;
  background: rgba(27, 36, 64, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(248, 248, 248, 0.09);
  border-top: 2px solid var(--red);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 50;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4CCDD;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { color: var(--white); background: rgba(238, 52, 54, 0.12); padding-left: 28px; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative;
  min-height: clamp(360px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.page-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(27,36,64,0.92) 0%, rgba(27,36,64,0.68) 34%, rgba(27,36,64,0.3) 62%, rgba(27,36,64,0.2) 100%),
    linear-gradient(0deg, rgba(27,36,64,0.95) 0%, rgba(27,36,64,0.25) 42%, rgba(27,36,64,0.45) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 150px var(--pad-x) clamp(40px, 5vw, 64px);
  max-width: 1000px;
}
.page-kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(11px, 0.95vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--white);
}
.page-hero .red-dash { margin: 20px 0 0; }
.crumbs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  font-size: 12.5px;
  color: #9FA9C0;
}
.crumbs a:hover { color: var(--white); }
.crumbs span { color: #5E6A8A; }

/* ---------- article ---------- */
.page-body {
  background: #232E4C;
  padding: clamp(50px, 6vw, 90px) var(--pad-x) clamp(60px, 7vw, 100px);
}
.article {
  max-width: 900px;
}
.article h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--white);
  margin: clamp(36px, 4vw, 56px) 0 6px;
}
.article h2:first-child { margin-top: 0; }
.article h2::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--red-bright);
  margin: 14px 0 18px;
}
.article h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  color: var(--white);
  margin: 30px 0 12px;
}
.article p {
  font-size: clamp(14.5px, 1.15vw, 17px);
  line-height: 1.75;
  color: #B6BFD3;
  margin-bottom: 16px;
}
.article ul {
  margin: 4px 0 20px;
  padding: 0;
}
.article li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: clamp(14px, 1.1vw, 16.5px);
  line-height: 1.65;
  color: #B6BFD3;
}
.article li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  background: var(--red-bright);
  transform: rotate(45deg);
}
.article figure {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(248,248,248,0.07);
}
.article figure img { width: 100%; display: block; }

/* ---------- feature cards (grouped h4+p runs) ---------- */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 26px 0 10px;
}
.pg-card {
  background: #2B3757;
  border: 1px solid rgba(248,248,248,0.07);
  border-radius: 12px;
  padding: 26px 24px;
}
.pg-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--white);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(238, 52, 54, 0.55);
  display: inline-block;
}
.pg-card p { font-size: 13.5px; line-height: 1.65; color: #9FA9C0; margin: 0; }

/* ---------- shingle gallery grid ---------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0 40px;
}
.gal-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(248,248,248,0.08);
  aspect-ratio: 1;
  transition: transform 0.3s, border-color 0.3s;
}
.gal-grid a:hover { transform: translateY(-4px); border-color: rgba(238,52,54,0.6); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page CTA band ---------- */
.page-cta {
  background: #1E2846;
  border-top: 1px solid rgba(248,248,248,0.06);
  padding: clamp(46px, 5.5vw, 80px) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.page-cta h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  letter-spacing: -0.01em;
}
.page-cta h2 em { font-style: normal; color: var(--red-bright); }
.page-cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.page-cta .cta-phone-block { margin-top: 0; }

/* ---------- schedule page form ---------- */
.sched-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .sched-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero-content { padding-top: 120px; }
}

/* ============ MEGA MENU ============ */
.nav-item--mega { position: static; }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  display: flex;
  gap: 8px;
  width: min(880px, 94vw);
  background: #fff;
  border-radius: 14px;
  border-top: 3px solid var(--red);
  box-shadow: 0 24px 60px rgba(16, 22, 40, 0.28), 0 4px 14px rgba(16, 22, 40, 0.14);
  padding: 26px 26px 26px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 60;
}
.nav-item--mega:hover .mega, .nav-item--mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* hover bridge so the pointer can travel from link to panel */
.mega::before {
  content: '';
  position: absolute;
  top: -18px; left: 0; right: 0;
  height: 18px;
}
.mega--sm { width: min(620px, 90vw); }
.mega-col { display: block; flex: 1; min-width: 0; }
.mega-head {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  padding: 4px 12px 10px;
  border-bottom: 1px solid #EDF0F4;
  margin-bottom: 8px;
}
.mega-link {
  display: flex !important;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mega-link::after { display: none; }
.mega-link:hover { background: #F5F6F8; }
.mega-ico {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 9px;
  background: rgba(238, 52, 54, 0.08);
  color: var(--red);
  display: grid;
  place-items: center;
}
.main-nav .mega-ico svg, .mega-ico svg { width: 20px; height: 20px; }
.main-nav .mega-link:hover svg { transform: none; }
.main-nav .mega-cta .btn-arrow, .mega-cta .btn-arrow { width: 14px; height: 10px; }
.mega-txt { display: block; min-width: 0; }
.mega-txt b {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #232E4C;
  line-height: 1.25;
}
.mega-link:hover .mega-txt b { color: var(--red); }
.mega-txt small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #7A8497;
  margin-top: 2px;
}
.mega-note {
  display: block;
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #F5F6F8;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.7;
  color: #5A6472;
}
.mega-note a { color: var(--red); font-weight: 700; display: inline !important; padding: 0; }
.mega-note a::after { display: none; }
.mega-feature {
  display: block;
  flex: 0 0 236px;
  background: #232E4C;
  border-radius: 12px;
  overflow: hidden;
}
.mega-feature img { width: 100%; height: 118px; object-fit: cover; display: block; }
.mega-feature-body { display: block; padding: 16px 16px 18px; }
.mega-feature-body b {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  line-height: 1.3;
}
.mega-feature-body small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #C4CCDD;
  line-height: 1.55;
  margin: 6px 0 14px;
}
.mega-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mega-cta::after { display: none; }
.mega-cta:hover { background: #D42624; color: #fff; }
.mega-cta .btn-arrow { width: 14px; height: 10px; }
@media (max-width: 1180px) {
  .mega { display: none; }
}
