/* SmileScience Base — reset, typography, layout shell */

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

html {
    scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl,
figure, blockquote,
fieldset, legend {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

address {
    font-style: normal;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

/* Base typography */
body {
    font-family: var(--lxf-font-body) !important; /* beats Elementor Kit global override */
    font-size: 1rem !important;                   /* beats Elementor Kit 1.2em override */
    line-height: 1.6;
    color: var(--lxf-gray-900);
    background-color: var(--lxf-white);
    -webkit-font-smoothing: antialiased;
}

/* ─── Heading type scale ────────────────────────────────── */
/* font-family uses !important to beat Elementor Kit's h1–h6 { font-family:Poppins } */
h1 {
    font-family: var(--lxf-font-display) !important;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--lxf-text-heading);
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--lxf-font-display) !important;
    font-size: clamp(1.375rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lxf-text-heading);
    letter-spacing: -0.015em;
}

h3 {
    font-family: var(--lxf-font-display) !important;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--lxf-text-heading);
}

h4 {
    font-family: var(--lxf-font-display) !important;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lxf-text-heading);
}

h5, h6 {
    font-family: var(--lxf-font-display) !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lxf-text-heading);
}

/* ─── Focus-visible ring ────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--lxf-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Offset anchor targets for sticky header */
[id] {
    scroll-margin-top: calc(var(--lxf-header-total) + 1rem);
}

/* ─── Skip to content ───────────────────────────────────── */
.lxf-skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--lxf-blue);
    color: var(--lxf-white);
    font-weight: 600;
    border-radius: var(--lxf-radius);
    z-index: 9999;
    text-decoration: none;
}

.lxf-skip-link:focus {
    top: 1rem;
}


/* Container */
.lxf-container {
    max-width: var(--lxf-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Page wrapper */
.lxf-page {
    min-height: 60vh;
}

/* Sticky header */
.lxf-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Entry content (generic template) */
.lxf-entry {
    padding-block: var(--lxf-chrome-xl);
    border-bottom: 1px solid var(--lxf-gray-200);
}

.lxf-entry:last-child {
    border-bottom: none;
}

.lxf-entry__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lxf-navy);
    margin-block-end: var(--lxf-chrome-md);
}

.lxf-entry__title a:hover {
    color: var(--lxf-blue);
}

.lxf-entry__content {
    line-height: 1.7;
    color: var(--lxf-gray-600);
}

@media (max-width: 1020px) {
    body {
        --lxf-header-total: 108px;
    }
}

@media (max-width: 767px) {
    body {
        --lxf-header-total: 100px;
    }

    .lxf-container {
        padding-inline: 1rem;
    }
}

/* Prevent any content from causing document-level horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Prevent UAEL and Forge data-tables from causing horizontal overflow on mobile */
.uael-table-wrapper,
.sp-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}


/* Patient utility page H1 — injected for SEO on elementor_canvas pages */
.lxf-patient-page-title {
    padding: 2rem var(--lxf-space-md, 4rem) 1rem;
    color: var(--lxf-navy, #001638);
}
