/* ===== Brandon Deane Contracting — design system ===== */

:root {
  --white: #ffffff;
  --offwhite: #f6f7f8;
  --lightgray: #e6e8eb;
  --charcoal: #1f2933;
  --charcoal-2: #111827;
  --text: #29323c;
  --muted: #626c78;

  --accent: #0c4a6e;
  --accent-dark: #083344;
  --cta: #0096c7;
  --cta-dark: #007a9e;
  --cta-soft: #e3f6fb;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 18px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.14);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for mobile sticky bar */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--charcoal-2); color: #e5e7eb; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 38px); }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.btn-cta:hover { background: var(--cta-dark); box-shadow: 0 3px 8px rgba(0,0,0,0.18); }
.btn-dark { background: var(--charcoal-2); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: var(--cta-soft); border-color: transparent; color: var(--cta-dark); }
.btn-outline:hover { background: #ffe9d1; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-white { background: #fff; color: var(--charcoal-2); }
.btn-white:hover { background: #f0f0f0; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--lightgray);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.brand { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--charcoal-2); }
.brand-tag { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--offwhite);
  border: 1px solid var(--lightgray);
}
.icon-btn:hover { background: var(--lightgray); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--lightgray);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--charcoal-2);
  position: relative;
  transition: all .2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--lightgray);
  background: #fff;
}
.mobile-panel a.nav-link { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--lightgray); }
.mobile-panel a.nav-link.active { color: var(--accent); }
.mobile-panel .btn-row { margin-top: 12px; }
body.menu-open .mobile-panel { display: flex; }

@media (max-width: 1080px) {
  .main-nav, .header-actions .btn, .header-actions .icon-btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== Mobile sticky conversion bar ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--charcoal-2);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.mobile-bar-inner { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 10px 4px; color: #fff; font-size: 12px; font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.mobile-bar a:last-child { border-right: none; background: var(--cta); }
.mobile-bar svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .mobile-bar { display: block; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 620px;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.78) 0%, rgba(17,24,39,0.6) 45%, rgba(17,24,39,0.88) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 640px) { .hero-inner { padding-top: 48px; padding-bottom: 56px; } }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 6px; }
.hero p.hero-subhead { font-family: var(--font-heading); font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; color: #cbd5e1; margin-bottom: 22px; }
.hero p.lead { font-size: 19px; color: #e5e7eb; margin-bottom: 30px; max-width: 560px; }

.page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  padding: 90px 0 64px;
}
.page-hero .container { max-width: 760px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); }
.page-hero p { color: #e5e7eb; font-size: 18px; margin: 0; }

/* ===== Trust badges ===== */
.trust-strip {
  background: var(--charcoal-2);
  color: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.trust-item svg { width: 26px; height: 26px; color: var(--cta); flex-shrink: 0; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.quote-grid { grid-template-columns: 1fr; }
@media (min-width: 860px) { .quote-grid { grid-template-columns: 1.4fr 1fr; } }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid > .card { grid-column: 1 / -1 !important; }
}

.card {
  background: #fff;
  border: 1px solid var(--lightgray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 22px; }
.card-media { aspect-ratio: 4/3; background: var(--offwhite); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media-full { background: var(--offwhite); }
.card-media-full img { width: 100%; height: auto; display: block; }

.service-card .card-media { aspect-ratio: 16/10; }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(12,74,110,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.service-icon svg { width: 24px; height: 24px; }

.placeholder-media {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(135deg, var(--offwhite), var(--offwhite) 10px, #eef0f2 10px, #eef0f2 20px);
  color: var(--muted); text-align: center; padding: 20px;
}
.placeholder-media svg { width: 32px; height: 32px; opacity: .6; }
.placeholder-media span { font-size: 13px; font-weight: 600; }

/* ===== Service detail rows ===== */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--lightgray); }
.service-row:last-of-type { border-bottom: none; }
.service-row.reverse .service-row-media { order: 2; }
.service-row-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
#remodeling .service-row-media { align-self: end; margin-top: 40px; }
.service-row-media img, .service-row-media .placeholder-media { width: 100%; height: 100%; object-fit: cover; }
.service-row ul.check-list { margin: 18px 0 24px; }
.service-row ul.check-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; color: var(--text); }
.service-row ul.check-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-row-media { order: 0; }
}

/* ===== Pull quote ===== */
.pull-quote {
  position: relative;
  background: var(--offwhite);
  border-left: 4px solid var(--cta);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 32px 36px;
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal-2);
  font-style: italic;
}
.pull-quote cite { display: block; margin-top: 14px; font-size: 14px; font-weight: 700; font-style: normal; color: var(--muted); }

/* ===== Filter bar (My Work) ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--lightgray);
  background: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--charcoal-2); color: #fff; border-color: var(--charcoal-2); }

.tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: rgba(12,74,110,0.1); color: var(--accent); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}

.before-after { display: grid; grid-template-columns: 1fr 1fr; }
.before-after figure { margin: 0; position: relative; aspect-ratio: 4/3; overflow: hidden; }
.before-after img { width: 100%; height: 100%; object-fit: cover; }
.before-after figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(17,24,39,0.72); color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: 6px;
}
.before-after.tall figure { aspect-ratio: 3/4; }

/* ===== Reviews ===== */
.review-card { padding: 24px; }
.review-stars { color: var(--cta); letter-spacing: 2px; margin-bottom: 10px; font-size: 16px; }
.review-name { font-weight: 700; margin-top: 14px; }
.review-date { font-size: 13px; color: var(--muted); }
.empty-state {
  text-align: center; max-width: 480px; margin: 0 auto; padding: 56px 32px;
  border: 2px dashed var(--lightgray); border-radius: var(--radius-lg); background: var(--offwhite);
}
.empty-state svg { width: 40px; height: 40px; color: var(--cta); margin-bottom: 14px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ===== CTA banner ===== */
.cta-banner { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; padding: 60px 0; }
.cta-banner h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 10px; }
.cta-banner p { color: #cfe6f2; margin-bottom: 26px; }
.cta-banner .btn-row { justify-content: center; }

/* ===== Contact / hours ===== */
.info-card {
  background: #fff; border: 1px solid var(--lightgray); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--accent); }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--lightgray); font-size: 15px; }
.hours-row:last-child { border-bottom: none; }

/* ===== Forms ===== */
.form-card { background: #fff; border: 1px solid var(--lightgray); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--lightgray);
  font-family: inherit; font-size: 15px; background: var(--offwhite);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); background: #fff; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; row-gap: 12px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.radio-row input[type="radio"] { width: 18px; height: 18px; min-width: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.form-note { font-size: 13px; color: var(--muted); background: var(--offwhite); border-radius: 8px; padding: 12px 14px; margin-top: 4px; }
.form-confirm { display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 18px 20px; border-radius: var(--radius); margin-top: 18px; font-weight: 600; }
.form-confirm.show { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== About page ===== */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.avatar-placeholder {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--charcoal-2), #2b3646);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #cbd5e1; gap: 10px;
}
.avatar-placeholder svg { width: 64px; height: 64px; opacity: .8; }
.avatar-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  margin-top: 28px;
}
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .avatar-placeholder, .avatar-photo { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ===== Footer ===== */
.site-footer { background: var(--charcoal-2); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: #9aa5b1; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: #9aa5b1; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7a8592; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== misc ===== */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.badge-inline { display: inline-flex; align-items: center; gap: 8px; background: var(--cta-soft); color: var(--cta-dark); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.badge-inline svg { width: 16px; height: 16px; }
