/* yardgaragesale.com — foundation stylesheet
   Mobile-first base + 8 explicit breakpoints:
   400, 600, 768, 1024, 1440, 1920, 2560, 4000px
   Plain CSS (no build step) served from public_html. */

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

:root {
    --max-width: 1200px;
    --brand: #1f7a4d;
    --brand-dark: #155c39;
    --ink: #1c2127;
    --muted: #5b6470;
    --bg: #f7f8f6;
    --surface: #ffffff;
    --border: #e1e5e0;
    --space: 1rem;
    --font: clamp(15px, 1.4vw, 18px);
}

html { font-size: var(--font); }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Header / nav (mobile-first, collapsible) ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-block: 0.75rem;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-dark);
}
.brand:hover { text-decoration: none; }

/* Hamburger toggle (checkbox hack — no JS needed) */
.nav-toggle { display: none; }

.nav-toggle-label {
    display: inline-block;
    cursor: pointer;
    padding: 0.4rem;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    position: relative;
    content: "";
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after  { position: absolute; top: 7px; }

.site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}
.site-nav a {
    color: var(--ink);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.nav-toggle:checked ~ .site-nav { display: flex; }

/* ---------- Main / hero ---------- */
.site-main { padding-block: clamp(1.5rem, 5vw, 3rem); }

.hero {
    text-align: center;
    padding-block: clamp(1.5rem, 6vw, 4rem);
}
.hero h1 {
    font-size: clamp(1.6rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
.hero-lead {
    color: var(--muted);
    max-width: 40ch;
    margin: 0 auto 1.5rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: rgba(31,122,77,0.08); }

/* ---------- Intro cards ---------- */
.intro { padding-block: clamp(1.5rem, 5vw, 3rem); }
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space);
}
.intro-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.intro-card h2 { margin-top: 0; font-size: 1.2rem; }
.intro-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    padding-block: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ====================================================================
   BREAKPOINT 1 — 400px: tighten spacing on the smallest phones
   ==================================================================== */
@media (min-width: 400px) {
    .hero-actions { gap: 1rem; }
    .header-inner { padding-block: 0.85rem; }
}

/* ====================================================================
   BREAKPOINT 2 — 600px: larger phones / small tablets, 2-col cards
   ==================================================================== */
@media (min-width: 600px) {
    .intro-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================================
   BREAKPOINT 3 — 768px: tablets — expose inline nav, drop hamburger
   ==================================================================== */
@media (min-width: 768px) {
    .nav-toggle-label { display: none; }
    .site-nav {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        gap: 1.25rem;
        padding-bottom: 0;
    }
    .site-nav a { border-bottom: 0; padding: 0; }
    .nav-toggle:checked ~ .site-nav { flex-direction: row; }
}

/* ====================================================================
   BREAKPOINT 4 — 1024px: laptops — 3-col cards, wider container
   ==================================================================== */
@media (min-width: 1024px) {
    :root { --max-width: 1200px; }
    .intro-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====================================================================
   BREAKPOINT 5 — 1440px: large desktops — roomier container
   ==================================================================== */
@media (min-width: 1440px) {
    :root { --max-width: 1320px; }
    .hero { padding-block: 5rem; }
}

/* ====================================================================
   BREAKPOINT 6 — 1920px: full-HD displays — scale up content width
   ==================================================================== */
@media (min-width: 1920px) {
    :root { --max-width: 1600px; --font: 19px; }
}

/* ====================================================================
   BREAKPOINT 7 — 2560px: 2K/QHD — larger reading measure
   ==================================================================== */
@media (min-width: 2560px) {
    :root { --max-width: 2000px; --font: 21px; }
    .intro-grid { gap: 2rem; }
}

/* ====================================================================
   BREAKPOINT 8 — 4000px: 4K+ walls — cap content, enlarge type
   ==================================================================== */
@media (min-width: 4000px) {
    :root { --max-width: 2800px; --font: 26px; }
    .hero h1 { font-size: 4rem; }
}
