/* ========================================
   GYDN ROOFING — Global Stylesheet
   Forest #0f2310 | Gold #D4AF37 | Light Gold #EFE1B5
   Fonts: EB Garamond throughout
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

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

:root {
  --forest:       #0f2310;
  --forest-mid:   #162d17;
  --forest-light: #1e3a1f;
  --gold:         #D4AF37;
  --gold-light:   #EFE1B5;
  --gold-dim:     #a8891f;
  --white:        #ffffff;
  --off-white:    #f7f5ef;
  --text:         #0f2310;
  --text-mid:     #0f2310;
  --ease:         0.32s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

b, strong { font-weight: 700; }

.eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2.5rem;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--ease), box-shadow var(--ease);
}
nav.scrolled {
  background: rgba(15,35,16,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.35);
}
nav.solid {
  background: var(--forest);
  position: relative;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239,225,181,0.85);
  transition: color var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--forest) !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--gold-light);
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 78px; left: 0; right: 0;
  background: var(--forest);
  z-index: 999;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(212,175,55,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu ul li a {
  display: block;
  padding: 0.95rem 0;
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
.mobile-cta-row { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-cta-row a {
  display: block; text-align: center;
  padding: 0.9rem;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.mobile-cta-row .m-btn-primary { background: var(--gold); color: var(--forest); }
.mobile-cta-row .m-btn-phone { border: 1px solid rgba(212,175,55,0.4); color: var(--gold-light); }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--forest);
  padding: 0.9rem 2.2rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2.2rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: all var(--ease);
}
.btn-outline:hover { background: var(--gold); color: var(--forest); }

/* LAYOUT */
.section { padding: 6rem 2rem; }
.section-dark { background: var(--forest); color: var(--white); }
.section-mid { background: var(--forest-mid); color: var(--white); }
.section-light { background: var(--off-white); }
.container { max-width: 1180px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: inherit; }
.section-header p { max-width: 560px; margin: 1rem auto 0; font-size: 0.92rem; opacity: 0.75; }
.gold-line { width: 44px; height: 1px; background: var(--gold); margin: 1.1rem auto; }

/* TRUST BAR */
.trust-bar {
  background: var(--forest-mid);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--gold-light);
  font-size: 0.76rem; letter-spacing: 0.09em;
  white-space: nowrap;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* REVIEW STRIP */
.review-strip { background: var(--gold); padding: 0.85rem 2rem; text-align: center; }
.review-strip a {
  color: var(--forest);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* LIGHTBOX */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  color: var(--gold-light); font-size: 2.2rem; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold-light);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.3rem;
  transition: background var(--ease);
}
.lb-nav:hover { background: rgba(212,175,55,0.3); }
.lb-prev { left: 0.8rem; }
.lb-next { right: 0.8rem; }

/* BBB */
.bbb-wrap img { height: 58px; width: auto; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* FOOTER */
footer { background: var(--forest); color: rgba(239,225,181,0.65); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo img { height: 56px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.85; max-width: 250px; color: var(--gold-light); }
.footer-col h4 {
  font-family: 'EB Garamond', serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a, .footer-col a { color: var(--gold-light); opacity: 0.75; font-size: 0.85rem; transition: opacity var(--ease); }
.footer-col ul li a:hover, .footer-col a:hover { opacity: 1; }
.footer-col p { font-size: 0.85rem; line-height: 1.9; color: var(--gold-light); opacity: 0.75; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.8rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(212,175,55,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); transition: all var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.footer-bottom {
  margin-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.73rem; flex-wrap: wrap; gap: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.2rem; }
  .section { padding: 4rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar { gap: 1rem; padding: 1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
