/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

/* Don’t push the whole page down */
.main {
    padding-top: 0 !important;
}

/* Pad ONLY the first section using the measured header height.
   clamp() ensures a safe minimum even if JS hasn’t run yet. */
.main>.section:first-of-type {
    padding-top: clamp(96px, calc(var(--header-height, 72px) + 16px), 40vh);
}

/* Make in-page anchor jumps land below the header on ALL breakpoints */
section,
.section {
    scroll-margin-top: calc(var(--header-height, 72px) + 12px) !important;
}

/* Fallback header height; JS will overwrite this */
:root {
    --header-height: 72px;
}

@media (max-width: 1199px) {

    section,
    .section {
        scroll-margin-top: calc(var(--header-height, 72px) + 12px) !important;
    }
}

/* === Hero safe offset: never let the first heading sit under the fixed nav === */
.main>#intro.section {
    /* Guarantee plenty of room on laptops where the nav wraps.
     - min 140px
     - typical: header height + 8vh (scales with viewport height)
     - max 260px so it doesn’t get silly on huge screens */
    padding-top: clamp(140px, calc(var(--header-height, 72px) + 8vh), 260px) !important;
}

/* Keep the hero’s own top margins from eating into that space */
#intro h1 {
    margin-top: 0;
}

#intro .lead {
    margin-top: 12px;
}

/* Make anchor jumps land below the header everywhere (reinforce globally) */
section,
.section {
    scroll-margin-top: calc(var(--header-height, 72px) + 12px) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

.light-text {
    font-weight: 300;
    /* Makes "Lead" lighter */
}

/* dark navy with subtle bottom glow */
/* LeadStreamer solid but gradient-ready */
.sitename {
    font-weight: 700;
    font-size: 28px;
    background: linear-gradient(to bottom, #012970, #012970);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#waiting-list-form .sent-message {
    background-color: #424DFE !important;
    /* your Join Now blue */
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

#waiting-list-form .newsletter-form input[type="submit"] {
    background: linear-gradient(135deg, #424DFE, #7271FB);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

#waiting-list-form .newsletter-form input[type="submit"]:hover {
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/

/* central knobs */
:root {
    --section-pad: clamp(56px, 6vw, 96px);
    /* inner padding inside each section */
    --section-gap: clamp(28px, 4vw, 72px);
    /* space between sections */
}

section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);

    /* was: padding: 60px 0; */
    padding-block: var(--section-pad);

    /* anchor offset */
    scroll-margin-top: calc(var(--header-height, 72px) + 24px);
    overflow: clip;
}

/* space BETWEEN consecutive sections */
.section+.section {
    margin-top: var(--section-gap);
}

/* keep scroll offset on smaller screens */
@media (max-width: 1199px) {

    section,
    .section {
        scroll-margin-top: calc(var(--header-height, 72px) + 12px);
    }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 8px 20px;
    margin: 0;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: inline-block;
    text-transform: uppercase;
    border-radius: 50px;
    font-family: var(--default-font);
}

.section-title p {
    color: var(--heading-color);
    margin: 10px 0 0 0;
    font-size: 32px;
    font-weight: 700;
    font-family: var(--heading-font);
}

.section-title p .description-title {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    color: var(--default-color);
    background-color: var(--background-color);
    position: relative;
}

.page-title .heading {
    padding: 80px 0;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
    font-size: 38px;
    font-weight: 700;
}

.page-title nav {
    background-color: color-mix(in srgb, var(--default-color), transparent 95%);
    padding: 20px 0;
}

.page-title nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.page-title nav ol li+li {
    padding-left: 10px;
}

.page-title nav ol li+li::before {
    content: "/";
    display: inline-block;
    padding-right: 10px;
    color: color-mix(in srgb, var(--default-color), transparent 70%);
}