/*
Theme Name: Mallard General Contracting
Author: Mallard General Contracting
Description: One page site for Mallard General Contracting, commercial and residential services.
Version: 1.0
Requires at least: 6.0
License: GNU General Public License v2 or later
Text Domain: mallard-gc
*/

/* Layout: navy blueprint hero, then two service columns on white, a job sequence, a partner band, contact. Brand palette is fixed (orange, blue, white), single light theme by choice. */
:root {
  color-scheme: light;
  --navy: #0B2545;
  --navy-2: #12325C;
  --blue: #1E5AA8;
  --blue-soft: #E8F0FA;
  --orange: #F26B1D;
  --orange-dark: #C9520F;
  --white: #FFFFFF;
  --ink: #0B2545;
  --muted: #4A6587;
  --line: #D5E0EE;
  --on-navy-muted: #B8C8DE;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--white); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--label); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 14px 22px; border-radius: 4px; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--on-navy-muted); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* Header */
.site-header { background: var(--navy); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand svg { display: block; height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--on-navy-muted); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--white); }
.nav .btn { padding: 10px 18px; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand svg { height: 34px; }
}

/* Hero */
.hero { background-color: var(--navy); color: var(--white); position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding-block: 88px 96px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; margin-top: 14px; }
.hero h1 span { color: var(--orange); }
.hero .lede { color: var(--on-navy-muted); font-size: 1.2rem; max-width: 34em; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.spec { background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); border-top: 4px solid var(--orange); border-radius: 4px; padding: 26px 28px; }
.spec h2 { font-family: var(--label); font-weight: 600; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); }
.spec dl { margin: 18px 0 0; display: grid; gap: 0; }
.spec dl > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-block: 14px; border-top: 1px dashed rgba(255,255,255,.18); align-items: baseline; }
.spec dl > div:first-child { border-top: 0; padding-top: 4px; }
.spec dt { color: var(--on-navy-muted); font-size: 1rem; }
.spec dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 64px; } }

/* Services */
.services { padding-block: 96px; }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 52px; }
.service { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 90px; }
.service-top { padding: 30px 32px 26px; display: flex; flex-direction: column; gap: 10px; }
.service.commercial .service-top { background: var(--blue); color: var(--white); }
.service.residential .service-top { background: var(--blue-soft); color: var(--ink); }
.tag { font-family: var(--label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.service.commercial .tag { color: #FFD3B8; }
.service.residential .tag { color: var(--orange-dark); }
.service-top h3 { font-size: 1.7rem; font-weight: 800; }
.service-top p { font-size: 1.05rem; }
.service.commercial .service-top p { color: #DCE7F5; }
.service.residential .service-top p { color: var(--muted); }
.service ul { list-style: none; margin: 0; padding: 8px 32px 28px; display: grid; }
.service li { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 14px 1fr; gap: 14px; }
.service li:last-child { border-bottom: 0; }
.service li::before { content: ""; width: 10px; height: 10px; background: var(--orange); margin-top: 9px; transform: rotate(45deg); }
.service li strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.service li span { color: var(--muted); font-size: 1rem; }
.service li .soon { display: inline-block; margin-left: 8px; font-family: var(--label); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--orange); color: var(--white); padding: 1px 8px; font-size: .78rem; border-radius: 3px; vertical-align: 2px; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; } }

/* Process */
.process { background: var(--blue-soft); padding-block: 88px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: 6px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--orange-dark); }
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Partner band */
.partners { background: var(--orange); color: var(--white); }
.partners .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-block: 56px; }
.partners h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.partners p { margin-top: 10px; font-size: 1.1rem; max-width: 40em; color: #FFF1E8; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
@media (max-width: 760px) { .partners .wrap { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding-block: 96px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: 6px; padding: 8px 28px; }
.contact-card > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-card > div:last-child { border-bottom: 0; }
.contact-card dt { font-family: var(--label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--muted); padding-top: 2px; }
.contact-card dd { margin: 0; font-weight: 600; font-size: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.contact-card dd a { color: var(--blue); text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }
.contact-card { margin: 0; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 440px) { .contact-card > div { grid-template-columns: 1fr; gap: 4px; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 40px; }
.site-footer svg { height: 38px; width: auto; display: block; }
.family { font-size: .98rem; max-width: 34rem; }
.family strong { color: var(--white); font-weight: 600; }
.family ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.family a { color: var(--white); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.family a:hover { color: var(--orange); }
.family li > span { color: var(--white); font-weight: 600; }
.legal { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .9rem; }
