/* ============================================================
   ClearTop Roofing Inc. — Shared Stylesheet
   css/styles.css
   ============================================================ */

/* ---- Variables ---- */
:root {
  --navy:       #0f1b35;
  --navy-mid:   #162040;
  --navy-light: #1e2d55;
  --gold:       #c9952a;
  --gold-light: #e8b84b;
  --gold-dark:  #a07520;
  --white:      #ffffff;
  --off-white:  #f4f1eb;
  --gray:       #8a9ab5;
  --text-light: #cdd5e0;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ---- Announcement Bar ---- */
.announcement-bar {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 10px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.announcement-bar a { color: var(--navy); }

/* ---- Header ---- */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201,149,42,.2);
  box-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text .clear { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); }
.logo-text .top   { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--gold); }
.logo-text .sub   { font-size: 9px; letter-spacing: .2em; color: var(--gray); text-transform: uppercase; display: block; margin-top: 2px; }

/* ---- Navigation ---- */
nav { display: flex; align-items: center; gap: 2px; }
nav a {
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 9px;
  transition: color .2s;
  position: relative;
}
nav a:hover, nav a.active { color: var(--gold); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 9px; right: 9px;
  height: 2px;
  background: var(--gold);
}

/* ---- Header Right ---- */
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.phone-block .label { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--gray); display: block; }
.phone-block a { color: var(--white); text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary.no-clip { clip-path: none; border-radius: 3px; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--white); }

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 32px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-navy:hover { background: var(--navy-light); }

.btn-white {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-block;
}

.btn-large { font-size: 15px; padding: 18px 36px; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--navy-mid);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(201,149,42,.03) 0px, rgba(201,149,42,.03) 1px, transparent 1px, transparent 40px);
}
.page-hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.page-hero-label::before,
.page-hero-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: var(--text-light); font-size: 16px; max-width: 580px; margin: 0 auto; line-height: 1.7; position: relative; }

/* ---- Shared Section Helpers ---- */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); }
.section-label.centered { justify-content: center; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-title span, .section-title .gold { color: var(--gold); }

/* ---- CTA Band ---- */
.cta-band { padding: 60px 24px; text-align: center; border-top: 2px solid var(--gold); }
.cta-band.gold-bg { background: var(--gold); color: var(--navy); }
.cta-band.navy-bg { background: var(--navy); }
.cta-band h2 { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.cta-band.gold-bg h2 { color: var(--navy); }
.cta-band.navy-bg h2 { color: var(--white); }
.cta-band.navy-bg h2 span { color: var(--gold); }
.cta-band p { margin-bottom: 28px; font-size: 15px; }
.cta-band.gold-bg p { opacity: .85; }
.cta-band.navy-bg p { color: var(--text-light); }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Footer ---- */
footer { background: #080f1e; padding: 60px 24px 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-logo { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 14px;
  text-decoration: none;
  transition: all .2s;
}
.social-icon:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,149,42,.2);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--gray); text-decoration: none; font-size: 13px; transition: color .2s; line-height: 1.6; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #4a5a70; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #4a5a70; text-decoration: none; }
.footer-links a:hover { color: var(--gray); }

/* ---- Float CTA Button ---- */
.float-btn {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--gold); color: var(--navy);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(201,149,42,.5);
  z-index: 999;
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.1); }

/* ---- Logo SVG (shared) ---- */
.logo-svg-wrap { flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  nav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .page-hero { padding: 56px 20px; }
}
