/*
 * Eco Glow theme overrides — typography, colour and spacing polish for the
 * homepage, header and footer.
 *
 * Milligram has been removed, so 1rem is back to the normal 16px (it used to
 * set `html { font-size: 62.5% }`, making 1rem = 10px everywhere). All sizes
 * below assume a standard 16px root.
 */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --brand-ink: #1c1c1a;
    --brand-body: #33322f;
    --brand-muted: #6b6b6b;
    --brand-muted-on-dark: #b7b6b2;
    --brand-accent: #9c6510;       /* text/buttons on light backgrounds, ~4.9:1 on white */
    --brand-accent-dark: #7e5109;  /* hover/active state */
    --brand-accent-on-dark: #e8a93d; /* accent on dark surfaces (announcement bar, footer) */
    --brand-bg-alt: #faf9f5;
    --brand-border: #e5e2db;
}

/* apply Inter site-wide so the header/footer match the homepage content, and override cake.css's default heading font.
   also restores cake.css's light grey page background — bootstrap's reboot resets body to white and, loading after
   cake.css, silently wins, which flattened the intended contrast between the page and white/tinted section bands. */
body {
    font-family: var(--font-sans);
    background-color: var(--color-main-bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
}

/* keep a visible, on-brand focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
.btn-brand:focus-visible,
.btn-brand-outline:focus-visible,
.btn-brand-link:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* === Header === */

.bg-brand-dark {
    background-color: var(--brand-ink);
}

.announcement-bar {
    font-size: .8125rem; /* 13px */
    letter-spacing: .01em;
}

.navbar-brand {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem; /* 20px */
    color: var(--brand-ink) !important;
}

.navbar .nav-link {
    font-family: var(--font-sans);
    font-size: 1rem; /* 16px */
    font-weight: 500;
    color: var(--brand-ink);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--brand-accent);
}

.navbar .nav-link.disabled {
    color: var(--brand-muted);
    opacity: .65;
}

.navbar .form-control {
    font-size: .9375rem; /* 15px */
    padding: .5rem 1rem; /* 8px 16px */
}

/* === Footer === */

footer.site-footer {
    background-color: var(--brand-ink);
    font-family: var(--font-sans);
    margin-top: 2.5rem; /* 40px */
    padding-block: 3.125rem 1.875rem; /* 50px 30px */
}

.site-footer h5 {
    font-size: 1.1875rem; /* 19px */
    font-weight: 600;
    color: #fff;
}

.site-footer h6 {
    font-size: .8125rem; /* 13px */
    font-weight: 600;
    letter-spacing: .08em;
    color: #fff;
}

.site-footer p,
.site-footer ul {
    font-size: .9375rem; /* 15px */
    line-height: 2;
    color: var(--brand-muted-on-dark);
}

.site-footer a {
    color: var(--brand-muted-on-dark);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--brand-accent-on-dark);
}

.site-footer .link-brand-on-dark {
    color: var(--brand-accent-on-dark);
    font-weight: 500;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .8125rem; /* 13px */
    color: var(--brand-muted-on-dark);
}

/* === Homepage === */

/* home.php already sits inside the shared .content card (white box, padding,
   shadow) used by forms/admin pages. That treatment doesn't suit a
   full-width marketing layout, so this class resets it for the homepage
   only — other pages keep the card look untouched. */
.home {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.home .section {
    padding-block: clamp(3.5rem, 3rem + 2vw, 5.5rem); /* 56px-88px */
}

.home .section-divider {
    border-bottom: 1px solid var(--brand-border);
}

.home .section-alt {
    background-color: var(--brand-bg-alt);
}

/* breaks a section's background out of the page's normal (non-fluid) container
   so it stretches edge-to-edge across the viewport; the section's own inner
   .container still keeps its content at a readable, centered width */
.home .full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.home .eyebrow {
    display: inline-block;
    font-size: .875rem; /* 14px */
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: .75rem; /* 12px */
}

.home h1 {
    font-size: clamp(2rem, 1.625rem + 2vw, 2.875rem); /* 32px-46px */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--brand-ink);
    margin-bottom: 1rem; /* 16px */
}

.home .hero-tagline {
    font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); /* 18px-22px */
    font-weight: 500;
    line-height: 1.45;
    color: var(--brand-muted);
    margin-bottom: 1rem; /* 16px */
}

.home .lead-text {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.65;
    color: var(--brand-body);
    max-width: 60ch;
}

.home .text-center .lead-text {
    margin-left: auto;
    margin-right: auto;
}

.home .section-title {
    font-size: clamp(1.375rem, 1.25rem + .6vw, 1.625rem); /* 22px-26px */
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--brand-ink);
    margin-bottom: .5rem; /* 8px */
}

.home .section-subtitle {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    color: var(--brand-muted);
    max-width: 60ch;
    margin-bottom: 1.5rem; /* 24px */
}

.home p {
    font-size: 1rem; /* 16px */
    line-height: 1.65;
    color: var(--brand-body);
}

/* === Buttons === */
/* combine with bootstrap's own .btn class for the reset/cursor/transition, override sizing and colour here */

.btn-brand,
.btn-brand-outline {
    font-family: var(--font-sans);
    font-size: 1rem; /* 16px */
    font-weight: 600;
    letter-spacing: .01em;
    padding: .75rem 1.5rem; /* 12px 24px */
    border-radius: .5rem; /* 8px */
    line-height: 1.2;
}

.btn-brand-lg {
    font-size: 1.0625rem; /* 17px */
    padding: .875rem 1.75rem; /* 14px 28px */
}

.btn-brand {
    background-color: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    color: #fff;
    --bs-btn-focus-shadow-rgb: 156, 101, 16;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #fff;
}

.btn-brand-outline {
    background-color: transparent;
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent);
    --bs-btn-focus-shadow-rgb: 156, 101, 16;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.btn-brand-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .9375rem; /* 15px */
    color: var(--brand-accent);
    text-decoration: none;
}

.btn-brand-link:hover,
.btn-brand-link:focus {
    color: var(--brand-accent-dark);
    text-decoration: underline;
}

/* === Placeholder cards === */

.placeholder-card {
    background-color: var(--brand-bg-alt);
    border: 1px solid var(--brand-border);
    border-radius: .75rem; /* 12px */
}

.placeholder-card--label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 17.5rem; /* 280px */
    padding: 1.25rem; /* 20px */
    text-align: center;
    font-size: .875rem; /* 14px */
    color: var(--brand-muted);
}
