/* ===========================
   Mid-Atlantic Millwork Sales
   Color: slate-navy + warm gold + cream
   Fonts: Playfair Display + DM Sans
   =========================== */

:root {
  --dark:    #1A2838;
  --accent:  #B8892A;
  --accent2: #D4A84B;
  --cream:   #F6F2EB;
  --white:   #FFFFFF;
  --text:    #2A3240;
  --muted:   #6B7280;
  --border:  #E4DDD0;
  --card-shadow: 0 2px 20px rgba(26,40,56,0.10);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ---- Utility ---- */
.text-white-70 { color: rgba(255,255,255,0.72) !important; }

.rounded-soft { border-radius: 12px; }

/* ---- Typography helpers ---- */
.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-eyebrow-light { color: var(--accent2); }

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-subhead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
  background: rgba(26, 40, 56, 0.97);
  padding: 1rem 0;
  transition: padding 0.3s, box-shadow 0.3s;
  box-shadow: none;
}
#mainNav.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.brand-serif {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.brand-sans {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82) !important;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent2) !important; }

.btn-quote {
  background: var(--accent);
  color: var(--white) !important;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--accent);
}
.btn-quote:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 8px;
}
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}
.btn-hero-primary {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-hero-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: var(--white);
}

/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip {
  background: var(--cream);
  padding: 6rem 0;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 3px solid var(--accent);
  border-radius: 14px;
  z-index: 0;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.btn-dark-cta {
  background: var(--dark);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid var(--dark);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-dark-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
  background: var(--dark);
  padding: 3rem 0;
}
.stats-grid { border-top: 1px solid rgba(255,255,255,0.08); }
.stat-cell {
  padding: 2.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 767px) {
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.10); }
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.4rem;
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.products-section {
  padding: 6rem 0;
  background: var(--white);
}
.products-section-dark {
  background: var(--dark);
}
.products-section-dark .section-heading { color: var(--white); }

/* ---- Product Card (exterior — light bg) ---- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-3px);
}
.product-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card-body {
  padding: 1.5rem;
}
.brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.brand-tag-light {
  color: var(--accent2);
  border-color: var(--accent2);
}
.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.product-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---- Plastpro door swatches ---- */
.product-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.plastpro-bg {
  background: linear-gradient(135deg, #f0ebe0 0%, #e8e0d0 100%);
}
.door-swatches {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem;
}
.door-swatch {
  height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---- Dark product card (TruStile exterior) ---- */
.product-card-dark {
  background: var(--dark);
  border-color: rgba(255,255,255,0.12);
}
.product-card-dark:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}

/* ---- Interior product cards (light on dark section) ---- */
.product-card-light {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.25s, transform 0.2s;
}
.product-card-light:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-3px);
}
.product-card-light .product-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.9;
}
.product-card-light .product-card-body {
  padding: 1.4rem;
}
.product-card-light .product-title { color: var(--white); }
.product-card-light .product-desc { color: rgba(255,255,255,0.65); }

.btn-quote-light {
  background: transparent;
  color: var(--accent2);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.btn-quote-light:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
  background: var(--cream);
  padding-bottom: 5rem;
}
.gallery-section .section-heading { color: var(--dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,40,56,0.0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s;
}
.gallery-cell:hover .gallery-overlay {
  background: rgba(26,40,56,0.55);
}
.gallery-overlay span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-cell:hover .gallery-overlay span {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* 9 images in 2-col = last image alone — add filler via nth */
  .gallery-cell:last-child { grid-column: span 2; aspect-ratio: 2/1; }
}

/* ============================================
   TEAM
   ============================================ */
.team-section {
  background: var(--white);
  padding: 6rem 0;
}
.team-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.2s;
}
.team-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-3px);
}
.team-icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.team-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.team-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.team-card-cta {
  background: var(--dark);
  border-color: transparent;
}
.team-cta-year {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
}
.team-cta-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.team-cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area-section {
  background: linear-gradient(135deg, #1A2838 0%, #243547 100%);
  padding: 6rem 0;
}
.service-area-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.state-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.80);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.state-tag i { color: var(--accent2); }

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--cream);
  padding: 6rem 0;
}
.contact-info-block {
  background: var(--white);
  border-radius: 10px;
  padding: 2.25rem;
  border: 1px solid var(--border);
}
.contact-sub {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-detail i {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-detail a {
  color: var(--text);
  text-decoration: none;
}
.contact-detail a:hover { color: var(--accent); }
.contact-detail strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.map-wrap iframe { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  padding: 4rem 0 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.footer-brand .brand-serif { font-size: 1.25rem; color: var(--white); }
.footer-brand .brand-sans  { color: var(--accent2); font-size: 0.7rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: 0;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }
.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.35rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--accent2); }
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.wfw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.wfw-badge:hover { color: var(--accent2); }
.wfw-badge .wfw-bolt { font-size: 0.9rem; }
.wfw-badge strong { color: rgba(255,255,255,0.65); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .about-img-wrap::before { display: none; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .stat-cell:last-child { border-bottom: none; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.5rem; }
  .products-section,
  .about-strip,
  .team-section,
  .contact-section,
  .service-area-section { padding: 4rem 0; }
  .stats-section { padding: 2rem 0; }
}

@media (max-width: 480px) {
  .hero-content { padding: 1.5rem 1rem; }
  .door-swatch { height: 80px; }
  .stat-cell { padding: 1.5rem 1rem; }
  .stat-number { font-size: 2.25rem; }
}
