/* ============================================
   MMI Renovations — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600&display=swap');

:root {
  --black: #0d0d0d;
  --near-black: #161616;
  --white: #ffffff;
  --off-white: #f4f4f4;
  --gray: #666666;
  --blue: #2f7fe0;
  --blue-dark: #1e5fb8;
  --blue-light: #6fb3f0;

  --font-heading: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 127, 224, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-text {
  color: var(--near-black);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  border-bottom: 1.5px solid var(--near-black);
  padding-bottom: 3px;
  border-radius: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--blue-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    display: block;
    padding: 16px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Override the shared .wrap centering just inside the hero,
   so content hugs the left edge with fixed padding instead of
   sitting inside a max-width box centered on wide screens. */
.hero > .wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 80px;
  padding-right: 32px;
}
@media (max-width: 700px) {
  .hero > .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.15) 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-eyebrow {
  color: var(--blue-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 26px;
}
.hero .btn { margin-top: 6px; }

/* ---------- Section spacing ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--black); color: var(--white); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 56px;
}

/* ---------- Craftsmanship / About-style split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.script-heading {
  font-family: 'Brush Script MT', cursive;
  font-weight: 400;
}
.split h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 22px;
}
.split p { color: var(--gray); margin-bottom: 24px; max-width: 46ch; }
.split hr { border: none; border-top: 1px solid #e2e2e2; margin: 28px 0; }
.split h3 { font-size: 1.4rem; margin-bottom: 16px; }
.split ul { list-style: none; margin-bottom: 32px; }
.split ul li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--near-black);
  font-weight: 500;
}
.split ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}
.split-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split img { max-width: 320px; margin: 0 auto; }
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.service-card .card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .card-media img { transform: scale(1.06); }
.service-card .card-body { padding: 24px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 14px; }

.center { text-align: center; }
.mt-48 { margin-top: 48px; }

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.55) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 0;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 42px; }
.footer-tagline {
  color: #9aa0a6;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.15s ease;
}
.social-icons a:hover { background: var(--blue); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); }

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px 0;
}
.footer-columns h4 {
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.footer-columns p { color: #cfd2d6; font-size: 15px; margin-bottom: 4px; }
.footer-columns a { color: #cfd2d6; }
.footer-columns a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #7a7f85;
  font-size: 13px;
}

@media (max-width: 700px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Generic page header (inner pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 48px;
  text-align: center;
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-header p { color: #b7bcc2; max-width: 60ch; margin: 0 auto; }

/* ---------- Before & After ---------- */
.ba-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
}
.ba-project.reverse { direction: rtl; }
.ba-project.reverse > * { direction: ltr; }
.ba-image { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.ba-image img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 3px;
}
.ba-caption {
  padding: 20px 4px 56px;
}
.ba-caption h3 { font-size: 1.3rem; margin-bottom: 6px; }
.ba-caption p { color: var(--gray); }

@media (max-width: 700px) {
  .ba-project, .ba-project.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-info h3 { font-size: 1.2rem; margin: 24px 0 6px; }
.contact-info p { color: var(--gray); }
.contact-info h3:first-child { margin-top: 0; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}