/* ==========================================================================
   VOXIAL Landing Page Template - Stylesheet
   Mobile-first. Customer colors/spacing come from CSS custom properties,
   which are injected inline in <head> from config.php - never edit colors
   here directly for a specific customer, use setup.php instead.
   ========================================================================== */

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img, picture, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, p {
    margin: 0;
}

button {
    font: inherit;
}

/* --- Design tokens (fallback values; real values come from inline <style>) */
:root {
    --primary: #0b3d5c;
    --primary-dark: #082b40;
    --accent: #e8792c;
    --background: #ffffff;
    --background-alt: #f4f6f8;
    --text: #1b2430;
    --text-muted: #5b6673;
    --radius: 12px;
    --content-width: 1280px;
    --page-padding: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
}

/* --- Layout helpers ----------------------------------------------------- */
.container {
    width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));
    margin-inline: auto;
}

.section {
    padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

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

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head--center {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}

.section-text {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(27, 36, 48, 0.18);
}

.btn--secondary:hover {
    border-color: var(--text);
}

.btn--on-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
}

.btn--on-dark:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* --- Image fallback (used when a configured image file is missing) ----- */
.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
    border-radius: inherit;
}

/* --- Header / Navigation ------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg, #fff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: var(--header-text, var(--text));
}

.brand img {
    height: 34px;
    width: auto;
}

.brand-claim {
    display: none;
}

.nav {
    display: none;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--header-text, var(--text));
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-cta {
    display: none;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--header-text, var(--text));
    cursor: pointer;
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
}

.mobile-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--background);
    z-index: 49;
    padding: 1.5rem var(--page-padding);
    display: none;
    overflow-y: auto;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mobile-nav .btn {
    margin-top: 1.5rem;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    padding-block: clamp(2.5rem, 8vw, 5rem);
}

.hero__media {
    order: -1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.hero__media img,
.hero__media .img-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero__title {
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.hero__subtitle {
    margin-top: 1.1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 46ch;
}

.hero__actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero__trust {
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__trust svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Trustbar ------------------------------------------------------------ */
.trustbar {
    background: var(--background-alt);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.trustbar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    padding-block: 1rem;
    justify-content: center;
}

.trustbar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.trustbar__item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* --- Items / Services grid ------------------------------------------------ */
.items-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.item-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.item-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.item-card__media {
    aspect-ratio: 4 / 3;
}

.item-card__media img,
.item-card__media .img-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-card__body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.item-card__desc {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    flex: 1;
}

.item-card__cta {
    margin-top: 1.1rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.item-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.item-card__cta:hover svg {
    transform: translateX(3px);
}

/* --- Stats ---------------------------------------------------------------- */
.stats {
    background: var(--primary);
    color: #fff;
}

.stats-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    text-align: center;
}

.stat-item__value {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.stat-item__label {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- About ------------------------------------------------------------------ */
.about__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.about__media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.about__media img,
.about__media .img-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__highlights {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.about__highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.about__highlight svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* --- Advantages ------------------------------------------------------------- */
.advantages-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.advantage-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--background);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.advantage-card__icon {
    width: 44px;
    height: 44px;
    border-radius: calc(var(--radius) * 0.7);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.advantage-card__icon svg {
    width: 24px;
    height: 24px;
}

.advantage-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.advantage-card__text {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* --- CTA banner --------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.cta-banner__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
}

.cta-banner__text {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 52ch;
    margin-inline: auto;
}

.cta-banner .btn {
    margin-top: 1.75rem;
}

/* --- Testimonials --------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.testimonial-card {
    background: var(--background);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.testimonial-card__stars {
    display: flex;
    gap: 0.15rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.testimonial-card__stars svg {
    width: 16px;
    height: 16px;
}

.testimonial-card__quote {
    font-size: 0.98rem;
    color: var(--text);
    flex: 1;
}

.testimonial-card__author {
    margin-top: 1.1rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
}

.testimonial-card__role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Contact --------------------------------------------------------------------- */
.contact__grid {
    display: grid;
    gap: 2.5rem;
}

.contact__info-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact__info-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-form {
    background: var(--background-alt);
    padding: 1.75rem;
    border-radius: var(--radius);
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    padding: 0.75rem 0.9rem;
    border-radius: calc(var(--radius) * 0.6);
    border: 1px solid rgba(15, 23, 42, 0.15);
    font: inherit;
    background: #fff;
    color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Honeypot field - hidden from real users, visible to naive bots */
.form-field--hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Consent checkbox - overrides the generic .form-field input styling,
   which is meant for text/textarea fields, not checkboxes. */
.form-field--checkbox {
    gap: 0;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    accent-color: var(--accent);
    padding: 0;
    border-radius: 0.25rem;
}

/* Demo-only notice shown directly above the submit button */
.form-demo-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.form-status {
    padding: 0.9rem 1rem;
    border-radius: calc(var(--radius) * 0.6);
    font-size: 0.92rem;
    font-weight: 600;
}

.form-status--success {
    background: rgba(34, 139, 84, 0.12);
    color: #1c6b41;
}

.form-status--error {
    background: rgba(196, 60, 60, 0.12);
    color: #9c2b2b;
}

/* --- Footer ------------------------------------------------------------------------ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
}

.site-footer__top {
    padding-block: clamp(2rem, 5vw, 3rem);
    display: grid;
    gap: 2rem;
}

.site-footer__brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.site-footer__col-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.site-footer__links {
    display: grid;
    gap: 0.6rem;
}

.site-footer__links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1.25rem;
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    align-items: center;
}

.site-footer__voxial a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__voxial a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Demo notice - must stay clearly readable, never low-contrast or tiny */
.demo-notice {
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1rem;
}

.demo-notice p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.demo-notice strong {
    color: #fff;
}

/* --- Legal pages --------------------------------------------------------------------- */
.legal-page {
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.legal-page h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.legal-page .legal-body {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-line;
}

.legal-page .legal-empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   Breakpoints - mobile first, min-width only from here on
   ========================================================================== */

@media (min-width: 640px) {
    .hero__actions .btn,
    .cta-banner .btn {
        width: auto;
    }
}

@media (min-width: 780px) {
    .brand-claim {
        display: inline;
        font-weight: 500;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-left: 0.4rem;
    }

    .nav {
        display: flex;
        gap: clamp(1.25rem, 2.5vw, 2.25rem);
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }

    .hero__grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: center;
    }

    .hero__media {
        order: 2;
    }

    .about__grid {
        grid-template-columns: 1fr 1fr;
    }

    .about__grid--reverse .about__media {
        order: 2;
    }

    .contact__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__top {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    :root {
        --page-padding: 2rem;
    }

    .hero__title {
        max-width: 20ch;
    }
}
