/* ==========================================================================
   MG Construction — Mario Gallegos Construction, Inc.
   Brand palette from scripts/company_config_mgc.json
   ========================================================================== */

:root {
  --navy:        #1F3A5F;
  --navy-deep:   #16294380;
  --navy-dark:   #142742;
  --pale:        #E4EAF1;
  --gold:        #B7791F;
  --gold-light:  #D9A03C;
  --text:        #111111;
  --muted:       #5A6472;
  --white:       #FFFFFF;
  --near-white:  #F2F2F2;
  --line:        #DCE3EC;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 2px 18px rgba(31, 58, 95, 0.10);
  --font-head: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }
a { color: var(--navy); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6em;
  display: block;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* ---------- PLACEHOLDER — must be zero of these before launch ---------- */
.todo {
  background: #FFE9E9;
  color: #B10D0D;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px dashed #B10D0D;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold  { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-navy  { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--pale);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--pale); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { text-decoration: none; color: var(--navy); line-height: 1; }
.brand-mark {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; display: block;
}
.brand-mark span { color: var(--gold); }
.brand-sub {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 600;
  font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(20,39,66,.82), rgba(20,39,66,.92)),
    url("images/hero.jpg") center/cover no-repeat, var(--navy);
  color: var(--white);
  padding: 104px 0 96px;
}
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lede { color: rgba(255,255,255,.86); font-size: 1.28rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 0.9rem; color: rgba(255,255,255,.82);
}
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--near-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .lede { color: rgba(255,255,255,.82); }
.section-head { max-width: 70ch; margin-bottom: 52px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.96rem; }
.card ul li { margin-bottom: 6px; }

/* ---------- Process ---------- */
.step { position: relative; padding-left: 66px; margin-bottom: 36px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: .25em; }
.section-navy .step h3 { color: var(--white); }
.section-navy .step p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- Areas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px;
  font-size: 0.92rem; font-weight: 600; color: var(--navy);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 700; font-size: 0.86rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.contact-block { margin-bottom: 30px; }
.contact-block h3 { color: var(--navy); margin-bottom: .3em; font-size: 1.1rem; }
.contact-block p, .contact-block address {
  margin: 0; font-style: normal; color: var(--muted); line-height: 1.6;
}
.contact-block a { color: var(--navy); font-weight: 600; }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--gold);
  background: var(--pale);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 64px 0 26px; font-size: 0.94rem; }
.site-footer h4 {
  color: var(--white); font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; margin-bottom: 1em;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 0.86rem;
}
.license-line { color: var(--gold-light); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
}
