/* ============================================================
   Venus Roofing LLC — Main Stylesheet
   Aesthetic: Industrial authority meets clean professionalism.
   Dark slate headers, warm amber accents, crisp white content.
   Font: Barlow Condensed (headings) + Source Serif 4 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --slate-900: #0f1923;
  --slate-800: #1a2636;
  --slate-700: #253447;
  --slate-600: #3a4f68;
  --amber:     #e8a020;
  --amber-lt:  #f5c355;
  --amber-dk:  #b87d16;
  --cream:     #faf8f4;
  --white:     #ffffff;
  --text:      #1e2b3a;
  --text-muted:#5a6e85;
  --border:    #dde3ea;
  --red:       #c0392b;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  --container: 1160px;
  --transition: 0.22s ease;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--amber-dk); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout Helpers ────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ─── HEADER ────────────────────────────────────────────── */
header {
  background: var(--slate-900);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

header > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

/* Logo */
header > div > a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

header > div > a::before {
  content: '⬡ ';
  color: var(--amber);
  font-size: 1.1em;
}

header > div > a:hover { color: var(--amber); }

/* Nav */
header nav { display: flex; align-items: center; }

header nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
}

header nav > ul > li { position: relative; }

header nav > ul > li > a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.82);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

header nav > ul > li > a:hover,
header nav > ul > li > a.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Dropdown */
header nav > ul > li > ul {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--slate-800);
  border-top: 2px solid var(--amber);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

header nav > ul > li:hover > ul {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

header nav > ul > li > ul > li > a {
  display: block;
  padding: 0.62rem 1.1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.78);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

header nav > ul > li > ul > li > a:hover {
  color: var(--amber);
  border-left-color: var(--amber);
  background: rgba(232,160,32,0.07);
}

/* Free Estimate — CTA nav link */
header nav > ul > li:last-child > a {
  background: var(--amber);
  color: var(--slate-900);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  margin-left: 0.5rem;
  border-bottom: none;
  font-weight: 800;
}

header nav > ul > li:last-child > a:hover {
  background: var(--amber-lt);
  color: var(--slate-900);
  border-bottom: none;
}

/* Mobile hamburger (hidden by default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── HERO / PAGE HERO ──────────────────────────────────── */
.hero {
  background:
    linear-gradient(160deg, rgba(15,25,35,0.88) 0%, rgba(15,25,35,0.65) 60%, rgba(15,25,35,0.78) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-lt), var(--amber));
}

main > section:first-child.hero { border-top: none; }

.hero h1 {
  color: var(--white);
  max-width: 780px;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 640px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* ─── Buttons / CTAs ────────────────────────────────────── */
.btn,
.cta-primary,
.cta-secondary {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover,
.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.cta-primary {
  background: var(--amber);
  color: var(--slate-900);
}
.cta-primary:hover {
  background: var(--amber-lt);
  color: var(--slate-900);
}

.cta-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.cta-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Inline pipe-separated links (legacy, graceful) */
section p > a {
  font-weight: 600;
  color: var(--amber-dk);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
section p > a:hover {
  border-bottom-color: var(--amber-dk);
}

/* CTA bar (multiple links separated by |) */
.cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* ─── MAIN CONTENT ──────────────────────────────────────── */
main {
  display: block;
}

main > section {
  padding: 4rem 0;
}

main > section > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* Un-wrap direct children inside container already */
main > section.hero > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* Section headings */
main > section > h2 {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 1.6rem;
}

main > section > h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: clamp(1rem, 4vw, 2.5rem);
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

/* ─── SERVICE CARDS GRID ────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.services-grid article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.services-grid article::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--amber);
  border-radius: 0;
}

.services-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--amber);
}

.services-grid article h3 {
  margin-bottom: 0.6rem;
}

.services-grid article h3 a {
  color: var(--slate-900);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.services-grid article h3 a:hover { color: var(--amber-dk); }

.services-grid article p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── TWO-COLUMN ARTICLES ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.two-col article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.two-col article h3 { margin-bottom: 0.7rem; }
.two-col article h3 a { color: var(--slate-900); }
.two-col article h3 a:hover { color: var(--amber-dk); }

/* ─── CHECKLIST / FEATURE LIST ──────────────────────────── */
main > section > ul,
.feature-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem 2rem;
}

main > section > ul li,
.feature-list li {
  padding: 0.55rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.97rem;
  border-bottom: 1px solid var(--border);
}

main > section > ul li::before,
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
}

/* ─── AREA LINKS ────────────────────────────────────────── */
.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.area-links li a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-700);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.area-links li a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--slate-900);
}

/* ─── FAQ / ACCORDION ───────────────────────────────────── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.faq-list article h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--slate-800);
}

.faq-list article p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  background: var(--slate-900);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

.cta-band .cta-bar {
  justify-content: center;
}

/* ─── TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: var(--slate-800);
  color: rgba(255,255,255,0.82);
  padding: 1.2rem 0;
}

.trust-bar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.trust-bar span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-bar span::before {
  color: var(--amber);
  font-size: 1rem;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.8rem;
  border-top: 4px solid var(--amber);
}

footer section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.6fr 2fr;
  gap: 3rem;
  border: none;
}

footer h2 {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

footer h2::before {
  content: '⬡ ';
  color: var(--amber);
}

footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

footer a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

footer nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1.5rem;
}

footer nav ul li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  display: block;
  padding: 0.22rem 0;
  border-bottom: none;
}

footer nav ul li a:hover { color: var(--amber); border-bottom: none; }

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── SECTION WRAPPERS (auto-applied via JS) ────────────── */
/* Detect sections with article grids and add class hooks */
/* These selectors style the raw HTML output as delivered */

/* Service articles (6-grid on index) */
main > section > div:has(> article) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

main > section > div > article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

main > section > div > article::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--amber);
}

main > section > div > article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--amber);
}

main > section > div > article h3 {
  margin-bottom: 0.6rem;
}

main > section > div > article h3 a {
  color: var(--slate-900);
}

main > section > div > article h3 a:hover { color: var(--amber-dk); }

main > section > div > article p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Articles directly in section (2-col on index) */
main > section > article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: var(--container);
  margin: 0 auto 1.2rem;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

main > section > article + article { border-top: none; }

main > section > article h3 {
  margin-bottom: 0.5rem;
}

main > section > article h3 a { color: var(--slate-900); }
main > section > article h3 a:hover { color: var(--amber-dk); }

/* Text in sections */
main > section > p {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  max-width: min(720px, calc(var(--container) - 2 * clamp(1rem, 4vw, 2.5rem)));
}

/* ─── PAGE-SPECIFIC: hero first section ─────────────────── */
main > section:first-child {
  background:
    linear-gradient(160deg, rgba(15,25,35,0.9) 0%, rgba(15,25,35,0.68) 60%, rgba(15,25,35,0.82) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 4px solid var(--amber);
}

main > section:first-child h1 {
  color: var(--white);
  max-width: 820px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin-bottom: 1.1rem;
}

main > section:first-child p {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  max-width: 640px;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

main > section:first-child p > a {
  color: var(--amber-lt);
  font-weight: 600;
  border-bottom-color: rgba(245,195,85,0.4);
}

main > section:first-child p > a:hover {
  color: var(--amber-lt);
  border-bottom-color: var(--amber-lt);
}

/* ─── Alternating section bg ────────────────────────────── */
main > section:nth-child(even) {
  background: var(--white);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  footer section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header > div { height: 60px; }

  .nav-toggle { display: flex; }

  header nav {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--slate-900);
    border-top: 2px solid var(--amber);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }

  header nav.open {
    max-height: 100vh;
    overflow-y: auto;
  }

  header nav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1.5rem;
  }

  header nav > ul > li > a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid transparent;
  }

  header nav > ul > li > a:hover {
    border-left-color: var(--amber);
    border-bottom-color: rgba(255,255,255,0.06);
  }

  header nav > ul > li > ul {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    border-top: none;
    border-left: 3px solid var(--amber);
    margin-left: 1.5rem;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
  }

  header nav > ul > li:last-child > a {
    margin: 1rem 1.5rem;
    text-align: center;
  }

  main > section > div:has(> article) {
    grid-template-columns: 1fr;
  }

  main > section > ul {
    grid-template-columns: 1fr;
  }

  footer nav ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  main > section:first-child {
    padding: 3rem 0 2.5rem;
  }
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

main > section:first-child h1,
main > section:first-child p {
  animation: fadeUp 0.6s ease both;
}

main > section:first-child p { animation-delay: 0.12s; }
main > section:first-child p + p { animation-delay: 0.22s; }

/* ─── Print ─────────────────────────────────────────────── */
@media print {
  header, footer, .cta-band { display: none; }
  main > section:first-child {
    background: none;
    padding: 0;
    color: #000;
  }
  main > section:first-child h1 { color: #000; }
}
