/* ============================================================
   COASTAL ROOFING & WATERPROOFING — Main Stylesheet
   Brand: Coral #E8664E | Navy #1A2744 | Gold #C8A84B
   ============================================================ */

:root {
  --coral: #E8664E;
  --navy: #1A2744;
  --gold: #C8A84B;
  --white: #ffffff;
  --light-bg: #f7f8fa;
  --text-dark: #1A2744;
  --text-mid: #4a5568;
  --text-light: rgba(255,255,255,0.82);
  --radius: 10px;
  --shadow: 0 4px 24px rgba(26,39,68,0.10);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.18);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  letter-spacing: 0.04em;
  z-index: 1001;
  position: relative;
}
.announcement-bar a { color: var(--white); text-decoration: underline; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 36px;
  left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(26,39,68,0.18);
  transition: top 0.3s ease;
}
.navbar.scrolled { top: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* TEXT LOGO — used on all pages */
.nav-logo { display: flex; align-items: center; }
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-accent { color: var(--coral); }
.logo-amp { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--coral); }
.btn-nav {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
.btn-nav:hover { background: #d45a42 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #d45a42; transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #122038; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #f0f0f0; }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-outline-white-solid {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white-solid:hover { background: rgba(255,255,255,0.15); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.82) 0%, rgba(26,39,68,0.55) 60%, rgba(26,39,68,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  padding: 160px 24px 100px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.4rem;
  max-width: 680px;
}
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.text-coral { color: var(--coral); }
.text-white { color: var(--white); }
.text-light { color: var(--text-light); }

.trust-bar {
  position: relative;
  z-index: 2;
  background: rgba(26,39,68,0.88);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: auto;
}
.trust-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-inner span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- SECTIONS ---- */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.8rem;
}
.section-label-light {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.bg-light { background: var(--light-bg); }
.bg-navy { background: var(--navy); }
.bg-coral { background: var(--coral); }
.center-cta { text-align: center; margin-top: 2.5rem; }

/* TWO COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---- WHY SECTION ---- */
.section-why { padding: 100px 0; }
.why-text h2 { margin-bottom: 1.2rem; }
.why-text p { color: var(--text-mid); margin-bottom: 1rem; }
.why-text .btn { margin-top: 1.5rem; }
.why-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ---- SERVICES GRID ---- */
.section-services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.service-card:hover {
  border-bottom-color: var(--coral);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.featured-card { border-bottom-color: var(--gold); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1rem; margin-bottom: 0.8rem; color: var(--navy); }
.service-card p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 1rem; }
.card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.04em;
}
.card-link:hover { color: #d45a42; }

/* ---- INFRARED ---- */
.section-infrared { padding: 100px 0; }
.infrared-text h2 { margin-bottom: 1.2rem; }
.infrared-text p { margin-bottom: 1rem; line-height: 1.7; }
.infrared-text .btn { margin-top: 1.5rem; }
.infrared-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.infrared-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.infrared-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--coral);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  line-height: 1.4;
}

/* ---- REVIEWS ---- */
.section-reviews { padding: 100px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--coral);
}
.stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 0.8rem; }
.review-card p { color: var(--text-mid); font-style: italic; margin-bottom: 1rem; font-size: 0.95rem; }
.reviewer { font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--navy); }

/* ---- SERVICE AREAS ---- */
.section-areas { padding: 100px 0; }
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.areas-list span {
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---- CTA SECTION ---- */
.section-cta { padding: 80px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- GALLERY PAGE ---- */
.gallery-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,39,68,0.88));
  color: var(--white);
  padding: 2rem 1rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Gallery Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 2.2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- FOOTER ---- */
.footer { background: var(--navy); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 50px;
}
.footer-logo-text {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-tagline { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-license {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--coral); }
.footer-col p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-col a { color: var(--coral); }
.footer-col a:hover { color: #ff8a72; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-content { padding: 140px 24px 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 1rem; flex-direction: column; align-items: center; }
  .logo-text { font-size: 0.72rem; }
}
