/* ══════════════════════════════════════════════
   HORIZON CHIMNEY SWEEP — Shared Styles
   ══════════════════════════════════════════════ */

@font-face {
  font-family: 'DIN Alternate';
  src: url('../assets/DIN Alternate Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DIN Alternate';
  src: url('../assets/DIN Alternate Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}

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

:root {
  --bg-page:    #0f1a14;
  --bg-section: #141f18;
  --bg-card:    #1a2820;
  --bg-card2:   #1e2e24;
  --green-dark: #003826;
  --orange:     #d07a40;
  --orange2:    #bb5729;
  --off-white:  #f0ece4;
  --text-main:  #e8e4dc;
  --text-muted: rgba(232,228,220,0.52);
  --border:     rgba(255,255,255,0.07);
  --border-md:  rgba(255,255,255,0.11);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: transparent;
  transition: background 0.3s, padding 0.3s;
}
.nav-logo img { height: 42px; }
.nav-logo { text-decoration: none; }

.nav-pill {
  display: flex; gap: 4px; align-items: center;
  background: rgba(15,26,20,0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 8px; border-radius: 100px;
}
.nav-pill > a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-pill > a:hover { background: rgba(255,255,255,0.12); color: white; }
.nav-pill .cta-btn { background: var(--orange); color: white !important; font-weight: 700 !important; padding: 9px 22px !important; }
.nav-pill .cta-btn:hover { background: var(--orange2) !important; }

.nav-pill .svc-dropdown { position: relative; }
.nav-pill .svc-dropdown > .svc-trigger {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 1px; white-space: nowrap;
}
.nav-pill .svc-dropdown > .svc-trigger::after {
  content: ''; width: 0; height: 0;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 3.5px solid rgba(255,255,255,0.5); transition: transform 0.2s;
}
.nav-pill .svc-dropdown:hover > .svc-trigger { background: rgba(255,255,255,0.12); color: white; }
.nav-pill .svc-dropdown:hover > .svc-trigger::after { transform: rotate(180deg); }

.svc-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  background: #0c1910; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 10px; min-width: 260px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  /* invisible bridge so mouse can travel from trigger to menu */
  padding-top: 14px;
}
/* invisible hover bridge above the dropdown */
.svc-dropdown-menu::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav-pill .svc-dropdown:hover .svc-dropdown-menu,
.svc-dropdown-menu:hover { display: block; }
.dd-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); padding: 8px 12px 4px;
}
.svc-dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem; font-weight: 500;
  color: rgba(232,228,220,0.72); text-decoration: none;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.svc-dropdown-menu a:hover { background: rgba(255,255,255,0.07); color: var(--off-white); }
.dd-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 6px 0; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border-radius: 8px;
  background: rgba(15,26,20,0.55); border: 1px solid rgba(255,255,255,0.18);
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: #0a1610; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  overflow-y: auto; padding: 60px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 12px 36px; border-radius: 10px; transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }
.mobile-nav .mobile-cta { background: var(--orange); color: white !important; margin-top: 8px; border-radius: 100px; }
.mobile-nav .mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.4rem; color: rgba(255,255,255,0.5);
  cursor: pointer; background: none; border: none; font-family: inherit;
}
.mobile-nav .mobile-svc-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 280px;
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 12px 36px; border-radius: 10px;
  cursor: pointer; background: none; border: none;
  transition: background 0.2s;
}
.mobile-nav .mobile-svc-toggle:hover { background: rgba(255,255,255,0.08); }
.mobile-svc-toggle.open { color: var(--orange); }
.mobile-svc-submenu {
  display: none; flex-direction: column; align-items: center;
  width: 100%; gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 8px 0; margin: 0 0 4px;
}
.mobile-svc-submenu.open { display: flex !important; flex-direction: column; align-items: center; }
.mobile-nav .dd-mobile-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); padding: 8px 0 4px; width: 100%; text-align: center;
}
.mobile-nav .mobile-svc-link { font-size: 0.82rem !important; padding: 9px 28px !important; color: rgba(232,228,220,0.6) !important; }

nav.scrolled {
  background: rgba(10,20,14,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 48px;
}
@media (max-width: 768px) {
  nav, nav.scrolled { padding: 14px 20px !important; }
}

/* PAGE HERO (for inner pages) */
.page-hero {
  padding: 180px 48px 80px;
  background: var(--green-dark);
  background-size: cover;
  background-position: center center;
  position: relative; overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 18, 10, 0.62);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(240,236,228,0.38); margin-bottom: 14px;
}
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: 'DIN Alternate', 'Montserrat', sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--off-white); line-height: 0.95;
  letter-spacing: 0.02em; margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--orange); }
.page-hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; color: rgba(240,236,228,0.6); line-height: 1.75; max-width: 600px;
}

/* SECTION UTILITIES */
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-heading {
  font-family: 'DIN Alternate', 'Montserrat', sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--text-main); margin-bottom: 48px; line-height: 0.95; letter-spacing: 0.02em;
}
.section-heading em { font-style: normal; color: var(--orange); }

/* BUTTONS */
.btn-solid {
  background: var(--orange); color: white;
  padding: 14px 34px; border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-solid:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-ring {
  border: 1px solid rgba(255,255,255,0.28); color: white;
  padding: 13px 32px; border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, border-color 0.2s; display: inline-block;
  background: rgba(8,18,12,0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ring:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); }
.btn-green {
  background: var(--green-dark); color: white;
  padding: 13px 30px; border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  border: 1px solid rgba(0,100,60,0.4); transition: background 0.2s;
}
.btn-green:hover { background: #004d32; }
.btn-orange-outline {
  border: 1.5px solid var(--orange); color: var(--orange);
  padding: 11px 26px; border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; display: inline-block; transition: background 0.2s, color 0.2s;
}
.btn-orange-outline:hover { background: var(--orange); color: white; }

/* FOOTER */
footer { background: var(--green-dark); padding: 60px 48px 26px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px;
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { font-family: 'Montserrat', sans-serif; font-size: 0.77rem; color: rgba(240,236,228,0.28); line-height: 1.75; }
.footer-col h4 { font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.footer-col p, .footer-col a { font-family: 'Montserrat', sans-serif; font-size: 0.77rem; color: rgba(240,236,228,0.36); line-height: 1.95; text-decoration: none; display: block; }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-family: 'Montserrat', sans-serif; font-size: 0.68rem; color: rgba(240,236,228,0.18); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-pill { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 110px 24px 60px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 48px 24px 24px; }
}
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .page-hero { padding: 100px 20px 50px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* Mobile nav: Services is a single button — tap to open submenu, tap again to navigate to services page */

/* ─── Blog inline contextual links ─────────────────────────────────────────── */
.blog-inline-link {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(208, 122, 64, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.blog-inline-link:hover {
  color: #e8a070;
  text-decoration-color: rgba(232, 160, 112, 0.7);
}
