/* ============================================
   JOHN BROWN ROOFING & CONSTRUCTION
   Theme C — Warm & Trustworthy
   style.css
============================================ */

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

/* ---- VARIABLES ---- */
:root {
  --bg:        #f5f0e8;
  --bg2:       #ede6d6;
  --bg3:       #d9cdb8;
  --text:      #2c2416;
  --text2:     #7a6b55;
  --accent:    #8b4513;
  --accent2:   #a0522d;
  --gold:      #d4a574;
  --border:    #c9bda8;
  --nav-bg:    #2c2416;
  --card-bg:   #fff9f0;
  --white:     #fff;
  --heading-font: 'Syne', sans-serif;
  --body-font:    'Lora', serif;
  --ui-font:      'DM Sans', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--body-font); background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- UTILITY ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 88px 0; }
.bg-dark  { background: var(--nav-bg); }
.bg-warm  { background: var(--bg2); }
.text-accent { color: var(--accent); }

/* ---- SCROLL ANIMATION ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ---- NAV ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg); height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  border-bottom: 2px solid rgba(212,165,116,0.2);
}
.nav-logo {
  font-family: var(--heading-font); font-size: 15px; line-height: 1.2;
  color: var(--bg); letter-spacing: 0.02em;
}
.nav-logo span { display: block; color: var(--gold); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--ui-font); font-weight: 300; margin-top: 2px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--ui-font); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #c9bda8; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--bg); transition: all 0.3s; }
.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 */
.mobile-menu {
  display: none; position: fixed; inset: 68px 0 0;
  background: var(--nav-bg); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--heading-font); font-size: clamp(28px, 8vw, 44px);
  color: var(--bg); letter-spacing: 0.04em; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ---- SECTION HEADER ---- */
.section-eyebrow {
  font-family: var(--ui-font); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content:''; display:block; width:32px; height:1px; background:var(--accent); }
.section-title {
  font-family: var(--heading-font); font-size: clamp(34px, 6vw, 60px);
  line-height: 1; color: var(--text); margin-bottom: 18px; letter-spacing: -0.01em;
}
.section-title.light { color: var(--bg); }
.section-body { font-size: 16px; line-height: 1.75; color: var(--text2); max-width: 560px; }
.section-body.light { color: #c9bda8; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui-font); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 14px 28px; cursor: pointer;
  border: none; transition: all 0.22s; font-weight: 500;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,69,19,0.3); }
.btn-outline { background: transparent; color: var(--bg); border: 1px solid rgba(245,240,232,0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--nav-bg); color: var(--bg); }
.btn-dark:hover { background: #3d3120; transform: translateY(-2px); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(155deg, #2c2416 0%, #3d3120 45%, #5c3d20 100%);
  padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(212,165,116,0.03) 60px, rgba(212,165,116,0.03) 61px
  );
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  font-family: var(--ui-font); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content:''; display:block; width:40px; height:1px; background:var(--gold); }
.hero h1 {
  font-family: var(--heading-font); font-size: clamp(46px, 7vw, 80px);
  line-height: 0.95; color: var(--bg); margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero h1 em { color: var(--gold); font-style: normal; display: block; }
.hero-sub { font-size: 17px; line-height: 1.7; color: #c9bda8; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(245,240,232,0.06); border: 1px solid rgba(212,165,116,0.2);
  backdrop-filter: blur(10px); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 28px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--heading-font); font-size: 52px; color: var(--gold); line-height: 1;
}
.hero-stat-label {
  font-family: var(--ui-font); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #c9bda8; margin-top: 4px;
}
.hero-divider { height: 1px; background: rgba(212,165,116,0.2); }
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ui-font); font-size: 12px; color: #c9bda8; letter-spacing: 0.06em;
}
.hero-trust-icon { font-size: 20px; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 100px; color: var(--border);
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 3/4; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--border);
}
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--accent); color: #fff; padding: 20px 24px; text-align: center;
  box-shadow: 0 12px 32px rgba(139,69,19,0.4);
}
.about-badge-num { font-family: var(--heading-font); font-size: 44px; line-height: 1; }
.about-badge-label { font-family: var(--ui-font); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text2); }
.about-list li::before { content: '✓'; color: var(--accent); font-weight: 700; min-width: 18px; margin-top: 1px; }
.about-phone {
  margin-top: 32px; display: flex; align-items: center; gap: 14px;
  background: var(--bg2); padding: 18px 20px; border-left: 3px solid var(--accent);
}
.about-phone-label { font-family: var(--ui-font); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text2); }
.about-phone-num { font-family: var(--heading-font); font-size: 24px; color: var(--text); margin-top: 2px; }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; margin-top: 52px; }
.service-card {
  background: var(--card-bg); padding: 36px 28px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--accent), var(--gold));
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44,36,22,0.12); }
.service-icon { font-size: 36px; margin-bottom: 18px; }
.service-card h3 { font-family: var(--heading-font); font-size: 20px; color: var(--text); margin-bottom: 10px; }
.service-card p { font-size: 14px; line-height: 1.65; color: var(--text2); }

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 52px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer; background: var(--bg3);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--border); transition: transform 0.4s;
  background: var(--bg3);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s;
}
.gallery-item:hover img,
.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.85) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-family: var(--ui-font); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); line-height: 1.4;
}
.gallery-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text2); font-style: italic; }

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(20,14,6,0.95); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 32px; color: var(--gold); cursor: pointer; background: none; border: none;
  font-family: var(--ui-font); line-height: 1;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 52px; }
.testimonial-card {
  background: var(--card-bg); padding: 32px 28px;
  border: 1px solid var(--border); position: relative;
}
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 16px; right: 24px;
  font-family: var(--heading-font); font-size: 96px; color: var(--accent);
  opacity: 0.1; line-height: 1; pointer-events: none;
}
.stars { color: #c8860a; font-size: 14px; letter-spacing: 3px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; line-height: 1.75; color: var(--text2); margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-family: var(--ui-font); font-size: 13px; font-weight: 500; color: var(--text); letter-spacing: 0.06em; }
.testimonial-loc { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon-wrap {
  width: 48px; height: 48px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-label { font-family: var(--ui-font); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text2); }
.contact-value { font-size: 16px; color: var(--text); margin-top: 3px; font-family: var(--ui-font); }
.contact-value a { color: var(--text); transition: color 0.2s; }
.contact-value a:hover { color: var(--accent); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-family: var(--ui-font); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text2); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 13px 16px; font-family: var(--body-font); font-size: 15px;
  outline: none; transition: border-color 0.2s; width: 100%; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); background: var(--card-bg); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none; background: #e8f5e9; border: 1px solid #a5d6a7;
  padding: 16px 20px; color: #2e7d32;
  font-family: var(--ui-font); font-size: 14px;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--accent); padding: 56px 24px; text-align: center;
}
.cta-band h2 { font-family: var(--heading-font); font-size: clamp(28px, 5vw, 48px); color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 28px; font-family: var(--ui-font); }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { background: var(--bg); transform: translateY(-2px); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--nav-bg); padding: 56px 24px 32px;
  border-top: 2px solid rgba(212,165,116,0.15);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--heading-font); font-size: 22px; color: var(--bg); margin-bottom: 10px; }
.footer-brand-sub { font-family: var(--ui-font); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-brand-desc { font-size: 14px; color: #c9bda8; line-height: 1.65; }
.footer-col-title { font-family: var(--ui-font); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: #c9bda8; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212,165,116,0.15);
  padding-top: 28px; text-align: center;
}
.footer-copy { font-family: var(--ui-font); font-size: 12px; color: #7a6b55; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(155deg, #2c2416 0%, #4a3820 100%);
  padding: 140px 24px 72px; text-align: center;
}
.page-hero h1 { font-family: var(--heading-font); font-size: clamp(40px, 7vw, 72px); color: var(--bg); line-height: 1; margin-bottom: 14px; }
.page-hero p { font-size: 16px; color: #c9bda8; max-width: 500px; margin: 0 auto; font-family: var(--ui-font); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero-divider { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { right: 0; bottom: -20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .hero-card { grid-template-columns: 1fr; }
  section.section-pad { padding: 64px 0; }
}
