/*
Theme Name: Munro Residential
Description: Custom theme for Munro Residential Construction
Version: 1.0
Author: Beyond Limitz Productions
*/

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

:root {
  --navy: #1B2A4A;
  --copper: #B87333;
  --cream: #EFE7D8;
  --warm-white: #F5F0E8;
  --walnut: #8B7355;
  --text: #1A1A18;
  --text-muted: #6B6560;
  --bg: #F5F0E8;
  --border: #DDD5C8;
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

a { color: var(--copper); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Sticky Phone Bar ── */
.phone-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  text-align: center;
  padding: 10px 16px;
}
.phone-bar a {
  color: var(--copper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-bar svg { width: 16px; height: 16px; }

/* ── Header ── */
.site-header {
  background: var(--warm-white);
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.site-header img { height: 50px; width: auto; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 60px 32px 48px;
  max-width: 700px;
}
.hero h1 { color: #fff; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-location {
  color: var(--copper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Section ── */
section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; color: var(--navy); }
.section-subtitle { color: var(--text-muted); font-size: 16px; max-width: 600px; }

/* ── Before & After Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.gallery-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,42,74,0.1); }
.gallery-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.gallery-images img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  background: var(--copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 2;
}
.gallery-label {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.gallery-info { padding: 14px 16px; }
.gallery-info h3 { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.gallery-info p { font-size: 13px; color: var(--text-muted); }

/* ── Reviews ── */
.reviews-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reviews-section .section-title { text-align: center; max-width: 700px; margin: 0 auto 12px; }
.reviews-trust {
  text-align: center;
  margin-bottom: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.reviews-trust span { color: var(--copper); font-weight: 600; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.review-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.review-text { font-size: 15px; font-style: italic; color: var(--text); margin-bottom: 14px; line-height: 1.6; }
.review-author { font-size: 13px; color: var(--copper); font-weight: 600; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,42,74,0.1); }
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-card-body { padding: 24px 20px; }
.service-card h3 { color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); }

/* ── CTA Section ── */
.cta-section {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 16px; }
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.4); }
.cta-form input:focus { border-color: var(--copper); }
.cta-form button {
  padding: 16px 32px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, background 0.2s;
}
.cta-form button:hover { transform: translateY(-2px); background: #a66529; }
.cta-phone {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
  color: var(--copper);
}

/* ── Process ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 36px;
}
.process-step { text-align: center; }
.step-number {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  color: var(--copper);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h3 { color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 32px;
  text-align: center;
}
.footer-logo { height: 40px; margin: 0 auto 16px; filter: brightness(0) invert(0.9); }
.site-footer p { font-size: 13px; margin-bottom: 4px; }
.site-footer a { color: var(--copper); }
.footer-license { font-size: 11px; margin-top: 16px; opacity: 0.5; }

/* ── Mobile ── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { min-height: 55vh; }
  .hero-content { padding: 40px 20px 32px; }
  .gallery-grid, .services-grid, .reviews-grid, .process-steps { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: unset; }
}
/* ── Hero Split Before/After ── */
.hero-split {
  position: relative;
  overflow: hidden;
}
.hero-split-images {
  display: flex;
  align-items: stretch;
  min-height: 70vh;
}
.hero-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.hero-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-half-label {
  position: absolute;
  top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.hero-before .hero-half-label { left: 16px; }
.hero-after .hero-half-label { right: 16px; }

.hero-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero-divider-line {
  width: 2px;
  flex: 1;
  background: var(--copper);
  opacity: 0.8;
}
.hero-divider-icon {
  width: 40px; height: 40px;
  background: var(--copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.95) 0%, rgba(27,42,74,0.7) 50%, transparent 100%);
  padding: 80px 32px 40px;
  z-index: 4;
}
.hero-overlay h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 8px;
}
.hero-overlay .hero-location {
  color: var(--copper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-cta {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); background: #a66529; color: #fff; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--navy);
  padding: 18px 0;
  border-bottom: 2px solid var(--copper);
}
.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
}
.trust-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.trust-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}

/* ── Section Alternating Backgrounds ── */
.section-cream {
  padding: 80px 0;
  background: var(--warm-white);
}
.section-white {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Mobile hero ── */
@media (max-width: 768px) {
  .hero-split-images { min-height: 50vh; }
  .hero-overlay { padding: 60px 20px 28px; }
  .hero-overlay h1 { font-size: 1.8rem; }
  .hero-divider-icon { width: 32px; height: 32px; font-size: 13px; }
  .trust-items { gap: 20px; }
  .trust-divider { display: none; }
}
