/* ===== FixAmNow brand tokens: change these to match your logo ===== */
:root {
    --fx-green-900: #0B3D2E;
    --fx-green-800: #0F4F3B;
    --fx-accent: #F2B705;
    --fx-accent-hover: #FFCA2C;
    --fx-ink: #1B2420;
    --fx-footer-text: #B9C9C1;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fx-ink);
}

/* Keyboard users: skip link and visible focus */
.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: var(--fx-accent);
    color: var(--fx-ink);
    font-weight: 600;
    border-radius: 0.375rem;
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
    outline: 3px solid var(--fx-accent);
    outline-offset: 2px;
}

/* ===== Header ===== */
html { scroll-padding-top: 5rem; }

.site-header {
    background: linear-gradient(90deg, var(--fx-green-900) 0%, var(--fx-green-800) 100%);
    border-bottom: 3px solid var(--fx-accent);
    padding-top: env(safe-area-inset-top, 0px);   /* keeps content clear of phone notch */
    transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }

.site-nav {
    --bs-navbar-active-color: var(--fx-accent);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-color: rgba(255, 255, 255, 0.85);
    padding-block: 0.75rem;
    transition: padding 0.25s ease;
}
.site-header.is-scrolled .site-nav { padding-block: 0.4rem; }

/* Brand: badge + name + tagline */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 0;
    padding: 0;
}
.brand-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--fx-accent), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: width 0.25s ease, height 0.25s ease;
}
.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}
/* For a transparent PNG/SVG logo: sits directly on the green */
.brand-badge.is-transparent {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}
.brand-badge.is-transparent .brand-logo { border-radius: 0; }

.site-header.is-scrolled .brand-badge { width: 40px; height: 40px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.brand-accent { color: var(--fx-accent); }
.brand-tagline {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fx-footer-text);
}

/* Nav links with animated underline */
.site-nav .nav-link {
    position: relative;
    padding: 0.5rem 0.9rem;
    font-weight: 500;
}
.site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--fx-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }   /* underline also marks active page, not color alone */

/* Toggler (hamburger) */
.site-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    padding: 0.4rem 0.6rem;
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(242, 183, 5, 0.45); }

.site-nav .dropdown-menu { --bs-dropdown-bg: var(--fx-green-800); }
.site-nav .dropdown-item { cursor: pointer; }

/* Mobile menu */
@media (max-width: 991.98px) {
    .brand-name { font-size: 1.3rem; }
    .site-nav .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .site-nav .nav-link { padding-block: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .site-nav .nav-link::after { display: none; }
    .site-nav .nav-link.active { color: var(--fx-accent); box-shadow: inset 3px 0 0 var(--fx-accent); padding-left: 1rem; }
    .site-nav .nav-actions { padding-top: 1rem; }
    .site-nav .nav-actions .btn { padding-block: 0.65rem; }
}

/* Small phones */
@media (max-width: 575.98px) {
    .brand-badge { width: 42px; height: 42px; }
    .brand-name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-nav, .brand-badge, .site-nav .nav-link::after { transition: none; }
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--fx-green-900);
    color: var(--fx-footer-text);
    border-top: 3px solid var(--fx-accent);
}
.site-footer .footer-logo-link { display: inline-block; }
.site-footer .footer-logo {
    display: block;
    width: clamp(240px, 70vw, 400px);   /* big on desktop, fits small phones */
    height: auto;
    border-radius: 1rem;                /* soft, rounded edges */
}
/* Footer typography: Montserrat (matches the logo) for headings, DM Sans for text */
.site-footer {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.site-footer .footer-text { color: var(--fx-footer-text); }
.site-footer .footer-text:not(.small) {
    max-width: 30rem;
    margin-top: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}
.site-footer .footer-heading {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    position: relative;
}
.site-footer .footer-heading::after {      /* short accent bar under each heading */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2rem;
    height: 3px;
    border-radius: 2px;
    background: var(--fx-accent);
}
.site-footer .footer-links li { margin-bottom: 0.6rem; }
.site-footer .footer-links a {
    color: var(--fx-footer-text);
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--fx-accent);
    text-underline-offset: 0.3em;
}
.site-footer .small { font-size: 0.9rem; }
.site-footer .footer-rule {
    margin-block: 2rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.18);
    opacity: 1;
}

/* Keeps footer content clear of phone home bars */
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }