/* ===============================================================
   GREENFIELD.SOLAR — components.css
   Small reusable pieces used across every page type. v1.0
   =============================================================== */


/* --- Buttons -------------------------------------------------- */

.gfs-btn {
    display: inline-block;
    font-family: var(--gfs-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.8rem 1.45rem;
    border: 1px solid transparent;
    border-radius: var(--gfs-radius);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gfs-btn--primary {
    background: var(--gfs-green);
    color: #fff;
}
.gfs-btn--primary:hover { background: var(--gfs-green-dark); color: #fff; }

.gfs-btn--ghost {
    background: transparent;
    color: var(--gfs-ink);
    border-color: var(--gfs-ink);
}
.gfs-btn--ghost:hover { background: var(--gfs-ink); color: var(--gfs-paper); }

.gfs-btn--light {
    background: transparent;
    color: var(--gfs-on-ink);
    border-color: rgba(246, 245, 241, 0.45);
}
.gfs-btn--light:hover { background: var(--gfs-paper); color: var(--gfs-ink); }

.gfs-btn--wide { width: 100%; text-align: center; }

.gfs-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.75rem 0 0;
}


/* --- Labels and small type ------------------------------------ */

/* Eyebrow: sentence case on purpose. It labels the section's role,
   it is not decoration, so it stays short and never all caps. */
.gfs-eyebrow {
    font-family: var(--gfs-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gfs-ochre);
    margin: 0 0 0.6rem;
}

.gfs-lede {
    font-size: var(--gfs-lede);
    line-height: 1.55;
    color: var(--gfs-text-soft);
    max-width: 62ch;
}

.gfs-note {
    font-size: var(--gfs-small);
    color: var(--gfs-text-soft);
}

.gfs-rule {
    width: 48px;
    height: 2px;
    background: var(--gfs-ochre);
    margin: 0 0 1.4rem;
}


/* --- Status pills (project stage) ----------------------------- */

.gfs-pill {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.38rem 0.6rem;
    border-radius: 2px;
    border: 1px solid var(--gfs-line);
    background: var(--gfs-white);
    color: var(--gfs-text-soft);
    white-space: nowrap;
}
.gfs-pill--greenfield { border-color: #C9D3CE; background: #EDF2F0; color: #2C4A42; }
.gfs-pill--permitting { border-color: #E2D3B4; background: #F7F0E1; color: #7A5716; }
.gfs-pill--rtb       { border-color: var(--gfs-green); background: var(--gfs-green); color: #fff; }


/* --- Base card ------------------------------------------------ */

.gfs-card {
    background: var(--gfs-white);
    border: 1px solid var(--gfs-line);
    border-radius: var(--gfs-radius);
    padding: clamp(1.4rem, 3vw, 2rem);
}
.gfs-card h3 { margin-top: 0; }
.gfs-card p:last-child { margin-bottom: 0; }

.gfs-card--flat { background: transparent; border: 0; padding: 0; }
.gfs-card--ink  { background: transparent; border-color: var(--gfs-line-dark); color: var(--gfs-on-ink); }
.gfs-card--ink h3 { color: var(--gfs-white); }


/* --- Figure (a single number with its unit and caption) -------- */

.gfs-figure__value {
    font-family: var(--gfs-serif);
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    font-weight: 500;
    line-height: 1;
    color: var(--gfs-ink);
    display: block;
}
.gfs-figure__unit {
    font-size: 0.5em;
    color: var(--gfs-ochre);
    margin-left: 0.25em;
}
.gfs-figure__label {
    font-size: var(--gfs-small);
    color: var(--gfs-text-soft);
    margin: 0.55rem 0 0;
}


/* --- Inline link list ----------------------------------------- */

.gfs-linklist { list-style: none; margin: 0; padding: 0; }
.gfs-linklist li { padding: 0.55rem 0; border-bottom: 1px solid var(--gfs-line); }
.gfs-linklist li:last-child { border-bottom: 0; }
.gfs-linklist a { text-decoration: none; }
.gfs-linklist a:hover { text-decoration: underline; }


/* --- Utilities ------------------------------------------------ */

.gfs-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gfs-center { text-align: center; }
.gfs-mt-0 { margin-top: 0; }
.gfs-mb-0 { margin-bottom: 0; }
