/* ============================================================
   MERIDIAN BUILD CO. - Premium Construction Landing Page
   Fonts: Archivo (display) + Space Grotesk (body)
   Palette: deep charcoal, warm amber accent, off-white
   ============================================================ */

:root {
  --ink: #14161a;
  --ink-2: #1d2026;
  --ink-3: #262a31;
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --amber: #e8a33d;
  --amber-2: #f0b45c;
  --text: #2a2e35;
  --muted: #6b7078;
  --white: #ffffff;
  --font-display: "Archivo", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --shadow: 0 30px 60px -20px rgba(20, 22, 26, 0.35);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(232, 163, 61, 0.6);
}
.btn-solid:hover {
  background: var(--amber-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(232, 163, 61, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}
.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Eyebrow & Section Head ===== */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.nav-inner {
  width: min(1180px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  border-radius: 11px;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-accent { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 38px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 11px 24px; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,22,26,0.92) 0%, rgba(20,22,26,0.72) 45%, rgba(20,22,26,0.35) 100%);
}
.hero-content {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 140px 0 100px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title-accent {
  color: var(--amber);
  position: relative;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 70px; }
.hero-stats {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 34px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat-num::after { content: "+"; color: var(--amber); }
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.scroll-hint {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-line {
  width: 3px; height: 10px;
  background: var(--amber);
  border-radius: 3px;
  animation: scrollPulse 1.8s infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== SERVICES ===== */
.services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px;
  border: 1px solid rgba(20,22,26,0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--amber);
  border-radius: 14px;
  margin-bottom: 24px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--amber);
  color: var(--ink);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.service-card p { font-size: 0.95rem; color: var(--muted); }

/* ===== PROJECTS ===== */
.projects { background: var(--ink); }
.projects .section-title { color: var(--white); }
.projects .eyebrow { color: var(--amber); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 460px;
  cursor: pointer;
}
.project-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .project-img { transform: scale(1.08); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,22,26,0.9) 0%, rgba(20,22,26,0.1) 55%, transparent 100%);
}
.project-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-info { transform: translateY(0); }
.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}
.project-info p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ===== PROCESS ===== */
.process { background: var(--paper); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(20,22,26,0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--paper-2);
  display: block;
  margin-bottom: 20px;
  line-height: 1;
  transition: color 0.4s var(--ease);
}
.step:hover .step-num { color: var(--amber); }
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.step p { font-size: 0.95rem; color: var(--muted); }

/* ===== ABOUT ===== */
.about { background: var(--paper-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-visual { position: relative; }
.about-img {
  height: 560px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  bottom: -30px; right: -20px;
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}
.badge-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
}
.badge-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}
.about-list { margin: 30px 0 36px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.check {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.check svg { width: 14px; height: 14px; }

/* ===== CONTACT ===== */
.contact { background: var(--ink); }
.contact .section-title { color: var(--white); }
.contact .section-sub { color: rgba(255,255,255,0.7); }
.contact-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: var(--ink-2);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.9rem;
  color: var(--amber);
  min-height: 20px;
}

/* ===== FOOTER ===== */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-top: 18px;
  max-width: 320px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-col a, .footer-col span {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-card { grid-template-columns: 1fr; padding: 44px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transition: right 0.5s var(--ease);
    box-shadow: -20px 0 50px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 34px; }
  .services-grid, .projects-grid, .process-steps { grid-template-columns: 1fr; }
  .project-card { height: 380px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-badge { right: 10px; }
  .about-img { height: 420px; }
}
