/* ==============================================
   GLIDEMISSION SITE STYLES (2026-10-18)
   One type scale, one spacing rhythm and the shared components for every
   marketing page. Linked last in include_header.php, after the template CSS
   and the header's inline <style>, so equal-specificity rules here win.
   Fonts match the blog: Lexend for headings and labels, Inter for reading.
   ============================================== */

:root {
    --gm-gold: #D0A000;
    --gm-gold-dark: #B38F00;
    --gm-gold-ink: #8a6d00;          /* gold text on white: 4.9:1 */
    --gm-gold-soft: rgba(208, 160, 0, 0.12);
    --gm-on-gold: #1d1600;           /* labels on gold buttons */

    --gm-ink: #1a202c;
    --gm-text: #374151;
    --gm-muted: #5f6673;             /* 5.4:1 on white and on --gm-surface-alt */
    --gm-line: #e5e7eb;
    --gm-surface: #fff;
    --gm-surface-alt: #f8f9fa;

    --gm-font-heading: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --gm-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* type scale: phone -> desktop */
    --gm-fs-display: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);      /* 36 -> 56 */
    --gm-fs-page: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);        /* 32 -> 46 */
    --gm-fs-title: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);   /* 26 -> 36 */
    --gm-fs-subtitle: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);   /* 20 -> 24 */
    --gm-fs-lead: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);     /* 17 -> 18 */
    --gm-fs-card: 1.0625rem;                                    /* 17 */

    /* rhythm */
    --gm-section-y: clamp(3rem, 2rem + 3vw, 5rem);              /* 48 -> 80 */
    --gm-head-gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);         /* 24 -> 40 */
    --gm-hero-top: clamp(6.5rem, 5rem + 4vw, 8.5rem);           /* clears the fixed header */
    --gm-hero-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);

    --gm-radius: 14px;
    --gm-radius-lg: 22px;
    --gm-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.07);
    --gm-shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16);
}

/* ---------- Base ---------- */
html {
    font-size: 100%;            /* the template rescales rem per breakpoint (85%-115.6%); one scale here */
    scroll-padding-top: 88px;   /* anchors land below the fixed header */
}

body {
    font-family: var(--gm-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gm-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gm-font-heading);
    color: var(--gm-ink);
    letter-spacing: -0.01em;
}

/* labels and controls use the brand face */
button,
.btn,
.es-btn,
.premium-link,
.premium-btn-contact,
.toggler-txt {
    font-family: var(--gm-font-heading);
}

/* ---------- Header ---------- */
#header {
    padding: 14px 0;
}

#header.scroll {
    padding: 8px 0;
}

#header .premium-logo {
    height: 40px;
}

@media (min-width: 992px) {
    .premium-link {
        font-size: 0.9375rem;
        font-weight: 600;
        margin: 0 14px;
    }

    .premium-btn-contact {
        padding: 9px 22px;
        font-size: 0.9375rem;
        font-weight: 600;
    }
}

/* phones and tablets: logo + menu button on one line */
@media (max-width: 991.98px) {
    #header nav { flex-wrap: nowrap; }
    #header .navbar-brand { flex: 0 1 auto; min-width: 0; }
    #header .premium-logo { height: 34px; max-width: 100%; }
    #header .custom-toggler { flex-shrink: 0; margin-left: 12px; }

    /* open menu scrolls instead of running off a short screen */
    .premium-nav-wrapper { max-height: calc(100vh - 80px); overflow-y: auto; }
    .premium-link { font-size: 1.0625rem; padding: 10px 14px !important; }

    /* full-width gold Contact button (the header's .scroll rule was undoing it) */
    #premiumNav .premium-nav-list > li:last-child { width: 100%; }
    #header #premiumNav .premium-btn-contact {
        width: 100%;
        background: var(--gm-gold);
        border-color: var(--gm-gold);
        color: var(--gm-on-gold) !important;
    }
}

/* ---------- Hero (the gold band at the top of every page) ---------- */
/* The template pushes heroes 80px down below 992px and adds a bottom margin
   on small phones; behind the transparent header both show as white bands. */
.hero-section { margin-top: 0; }

#hero-14 {
    padding-top: var(--gm-hero-top);
    padding-bottom: var(--gm-hero-bottom);
    margin-bottom: 0;
}

.gm-on-gold {
    color: #fff;
    text-shadow: 0 1px 2px rgba(80, 55, 0, 0.18);   /* white on bright gold needs the help */
}

.gm-hero-title {
    font: 800 var(--gm-fs-display)/1.05 var(--gm-font-heading);
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 8px;
}

.gm-page-title {
    font: 800 var(--gm-fs-page)/1.1 var(--gm-font-heading);
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 12px;
}

.gm-hero-sub {
    font: 600 var(--gm-fs-subtitle)/1.3 var(--gm-font-heading);
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 16px;
}

.gm-hero-lead {
    font-size: var(--gm-fs-lead);
    font-weight: 500;
    line-height: 1.6;
    color: #fff;
    max-width: 36rem;
    margin: 0 0 28px;
}

.gm-hero-lead:last-child { margin-bottom: 0; }

.gm-hero-media {
    position: relative;
    border-radius: var(--gm-radius-lg);
    padding: 8px;
    background: linear-gradient(135deg, #FFE066, var(--gm-gold-dark), var(--gm-gold));
    background-size: 300% 300%;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.gm-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: calc(var(--gm-radius-lg) - 6px);
    border: 3px solid #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .gm-hero-media {
        animation: gm-shimmer 6s infinite linear, gm-float 7s ease-in-out infinite;
    }
}

@media (max-width: 991.98px) {
    /* stacked under the text: a wide crop keeps the hero short */
    .gm-hero-media img {
        aspect-ratio: 16 / 9;
        object-position: center 30%;
    }
}

@keyframes gm-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.gm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font: 500 0.8125rem/1.2 var(--gm-font-heading);
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    text-shadow: none;
    transition: background-color 0.2s ease;
}

a.gm-chip:hover,
a.gm-chip:focus-visible {
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
}

.gm-chip small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ---------- Sections ---------- */
.gm-section {
    padding: var(--gm-section-y) 0;
    background: var(--gm-surface);
}

.gm-section--alt {
    background: var(--gm-surface-alt);
}

.gm-head {
    margin-bottom: var(--gm-head-gap);
}

.gm-head > :last-child {
    margin-bottom: 0;
}

.gm-head--center {
    text-align: center;
}

.gm-head--center .gm-lead {
    margin-left: auto;
    margin-right: auto;
}

.gm-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
}

.gm-head--split .gm-title {
    margin-bottom: 0;
}

.gm-eyebrow {
    display: inline-block;
    font: 600 0.75rem/1.2 var(--gm-font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gm-gold-ink);
    margin-bottom: 10px;
}

.gm-title {
    font: 700 var(--gm-fs-title)/1.15 var(--gm-font-heading);
    letter-spacing: -0.02em;
    color: var(--gm-ink);
    margin: 0 0 12px;
}

.gm-lead {
    font-size: var(--gm-fs-lead);
    line-height: 1.6;
    color: var(--gm-text);
    max-width: 62ch;
    margin: 0 0 20px;
}

.gm-note {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gm-muted);
    margin: 0;
}

/* ---------- Buttons and links ---------- */
.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 24px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font: 600 0.9375rem/1.2 var(--gm-font-heading);
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gm-btn:hover {
    transform: translateY(-1px);
}

.gm-btn i {
    font-size: 1.15em;
    line-height: 1;
}

.gm-btn.gm-btn--gold {
    background: var(--gm-gold);
    color: var(--gm-on-gold);
    box-shadow: 0 6px 16px rgba(208, 160, 0, 0.25);
}

.gm-btn.gm-btn--gold:hover {
    background: #e2ae00;
    color: var(--gm-on-gold);
}

.gm-btn.gm-btn--light {
    background: #fff;
    color: var(--gm-ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.gm-btn.gm-btn--light:hover {
    background: #fffaeb;
    color: var(--gm-ink);
}

.gm-btn.gm-btn--outline {
    background: transparent;
    border-color: var(--gm-line);
    color: var(--gm-ink);
}

.gm-btn.gm-btn--outline:hover {
    border-color: var(--gm-gold);
    color: var(--gm-gold-ink);
}

.gm-btn--block {
    width: 100%;
}

.gm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 0.9375rem/1.2 var(--gm-font-heading);
    color: var(--gm-ink);
    text-decoration: none;
}

.gm-link:hover {
    color: var(--gm-gold-ink);
}

.gm-link i {
    transition: transform 0.2s ease;
}

.gm-link:hover i {
    transform: translateX(3px);
}

/* ---------- Cards ---------- */
.gm-card {
    height: 100%;
    background: var(--gm-surface);
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius);
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gm-card--hover:hover {
    border-color: rgba(208, 160, 0, 0.5);
    box-shadow: var(--gm-shadow);
    transform: translateY(-2px);
}

/* icon beside the text: compact on every width */
.gm-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.gm-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gm-gold-soft);
    color: var(--gm-gold-ink);
    font-size: 22px;
    line-height: 1;
}

.gm-card-title,
.hero-section .gm-card-title {   /* the template gives every hero h2 a 24px bottom margin */
    font: 600 var(--gm-fs-card)/1.3 var(--gm-font-heading);
    letter-spacing: -0.01em;
    color: var(--gm-ink);
    margin: 0 0 4px;
}

.gm-card-text {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--gm-muted);
    margin: 0;
}

.gm-card-text a {
    color: var(--gm-ink);
    font-weight: 500;
}

.gm-card-text a:hover {
    color: var(--gm-gold-ink);
}

/* ---------- Lists ---------- */
.gm-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
}

.gm-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
    color: var(--gm-text);
}

.gm-checks i {
    flex: none;
    font-size: 20px;
    line-height: 1.25;
    color: var(--gm-gold);
}

.gm-checks strong {
    color: var(--gm-ink);
    font-weight: 600;
}

/* ---------- Photos ---------- */
.gm-photo {
    border-radius: var(--gm-radius-lg);
    overflow: hidden;
    box-shadow: var(--gm-shadow);
    background: #eee;
}

.gm-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---------- Home: "Why choose us" icon tiles ---------- */
.gm-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gm-tile {
    background: var(--gm-surface);
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius);
    padding: 16px 8px 14px;
    text-align: center;
}

.gm-tile img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.gm-tile span {
    display: block;
    font: 600 0.8125rem/1.25 var(--gm-font-heading);
    color: var(--gm-ink);
}

/* ---------- Home: module cards ---------- */
.gm-module-img {
    border-radius: var(--gm-radius);
    overflow: hidden;
    margin-bottom: 12px;
    background: #eee;
}

.gm-module-img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gm-module:hover .gm-module-img img {
    transform: scale(1.04);
}

.gm-module .gm-card-text {
    font-size: 0.875rem;
}

/* ---------- Home: latest blog posts ---------- */
.gm-post {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gm-post-img {
    border-radius: var(--gm-radius);
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--gm-gold) 0%, #f6bb00 100%);
}

.gm-post-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gm-post:hover .gm-post-img img {
    transform: scale(1.04);
}

.gm-post-img--blank {
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gm-post-img--blank span {
    font: 700 1.25rem/1.2 var(--gm-font-heading);
    color: var(--gm-on-gold);
}

.gm-post-cat {
    display: block;
    font: 600 0.75rem/1.2 var(--gm-font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gm-gold-ink);
    margin-bottom: 6px;
}

.gm-post-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.gm-post:hover .gm-post-title {
    color: var(--gm-gold-ink);
}

.gm-post-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.gm-post-date {
    font-size: 0.8125rem;
    color: var(--gm-muted);
}

/* ---------- Home: getting started steps ---------- */
.gm-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-step {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 22px;
}

.gm-step:last-child {
    padding-bottom: 0;
}

.gm-step::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 42px;
    bottom: 6px;
    width: 2px;
    background: var(--gm-line);
}

.gm-step:last-child::after {
    display: none;
}

.gm-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gm-gold);
    color: var(--gm-on-gold);
    font: 700 0.9375rem/36px var(--gm-font-heading);
    text-align: center;
}

.gm-step .gm-card-title {
    margin-top: 6px;
}

.gm-step-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 32px;
    margin-top: 4px;
}

.gm-step-contacts a {
    color: var(--gm-ink);
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.gm-step-contacts a:hover {
    color: var(--gm-gold-ink);
}

.gm-step-contacts small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gm-muted);
}

.gm-code {
    font-weight: 600;
    color: var(--gm-ink);
    overflow-wrap: anywhere;
}

/* ---------- Pricing ---------- */
#pricing .ext-toggle-btn {
    margin-top: 16px;
}

#pricing .toggler-txt {
    font-size: 0.9375rem;
    color: var(--gm-text);
}

.gm-plan {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.gm-plan-name {
    font: 600 1.125rem/1.2 var(--gm-font-heading);
    color: var(--gm-ink);
    margin: 0 0 10px;
}

.gm-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.gm-price-cur,
.gm-price-per {
    font: 500 0.9375rem/1 var(--gm-font-heading);
    color: var(--gm-muted);
}

.gm-price-amt {
    font: 700 2.5rem/1 var(--gm-font-heading);
    letter-spacing: -0.03em;
    color: var(--gm-ink);
}

.gm-plan-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gm-muted);
    margin: 10px 0 18px;
}

@media (min-width: 768px) {
    /* two lines everywhere, so the buttons line up across the plans */
    .gm-plan-desc { min-height: 3em; }
}

.gm-plan-features {
    list-style: none;
    padding: 18px 0 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--gm-line);
    display: grid;
    gap: 9px;
}

.gm-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--gm-text);
}

.gm-plan-features i {
    flex: none;
    font-size: 18px;
    line-height: 1.1;
    color: var(--gm-gold-ink);
}

.gm-plan-features li.is-off {
    color: #9aa1ad;
}

.gm-plan-features li.is-off i {
    color: #c0c5cd;
}

/* ---------- Features page ---------- */
.gm-module-block + .gm-module-block {
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.gm-module-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gm-line);
}

.gm-module-head h2 {
    font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.2 var(--gm-font-heading);
    letter-spacing: -0.015em;
    color: var(--gm-ink);
    margin: 0;
}

.gm-count {
    font: 600 0.75rem/1 var(--gm-font-heading);
    color: var(--gm-gold-ink);
    background: var(--gm-gold-soft);
    padding: 4px 8px;
    border-radius: 999px;
}

/* ---------- Demo page ---------- */
.gm-form-card {
    background: #fff;
    border-radius: var(--gm-radius-lg);
    box-shadow: var(--gm-shadow-lg);
    padding: 8px;
    overflow: hidden;
}

.gm-form-card iframe {
    display: block;
    width: 100%;
    height: 560px;   /* the form plus room for its validation messages */
    border: 0;
    border-radius: calc(var(--gm-radius-lg) - 8px);
}

.gm-stack {
    display: grid;
    gap: 12px;
}

/* ---------- Footer ---------- */
.gm-footer {
    background: var(--gm-surface);
    border-top: 1px solid var(--gm-line);
    padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    font-size: 0.9375rem;
}

.gm-footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.gm-footer-title {
    font: 600 0.75rem/1.2 var(--gm-font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gm-ink);
    margin: 0 0 14px;
}

.gm-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.gm-footer a {
    color: var(--gm-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.gm-footer a:hover {
    color: var(--gm-gold-ink);
}

.gm-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding: 18px 0;
    border-top: 1px solid var(--gm-line);
    font-size: 0.8125rem;
    color: var(--gm-muted);
}

.gm-footer-bottom p {
    margin: 0;
}

.gm-footer-bottom a {
    color: var(--gm-muted);
}

.gm-footer-bottom i {
    color: var(--gm-gold);
    vertical-align: -2px;
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
    .gm-tiles { gap: 8px; }
    .gm-tile { padding: 12px 4px 10px; }
    .gm-tile img { width: 32px; height: 32px; }
    .gm-tile span { font-size: 0.75rem; }

    /* module cards: two per row, so four take one screen */
    .gm-module .gm-card-title { font-size: 0.9375rem; }
    .gm-module .gm-card-text { font-size: 0.8125rem; }

    .gm-card { padding: 16px; }
    .gm-plan { padding: 20px; }

    /* card lists become one grouped list: rows split by hairlines, no gaps */
    .gm-group {
        --bs-gutter-y: 0;
        margin-left: 0;
        margin-right: 0;
        background: var(--gm-surface);
        border: 1px solid var(--gm-line);
        border-radius: var(--gm-radius);
        overflow: hidden;
    }
    .gm-group > .col { padding-left: 0; padding-right: 0; }
    .gm-group .gm-card { border: 0; border-radius: 0; padding: 14px 16px; }
    .gm-group > .col + .col .gm-card { border-top: 1px solid var(--gm-line); }
    .gm-group .gm-card--hover:hover { transform: none; box-shadow: none; }
    .gm-group .gm-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }

    /* pricing: swipe between plans; the next one peeks in at the edge */
    .gm-swipe {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .gm-swipe::-webkit-scrollbar { display: none; }
    .gm-swipe > .col {
        flex: 0 0 86%;
        max-width: 86%;
        scroll-snap-align: center;
    }

    .gm-footer-bottom { justify-content: center; text-align: center; }
}
