/* -------------------------------------------------------
   Global Styles & Typography – ProDental Centers
   Using Local Internal Fonts
   Fonts: Roboto, Roboto Slab, Poppins
   ------------------------------------------------------- */

/* Import local fonts through styles.php */
@import url("/styles.php?file=fonts.css");
/* Import centralized design variables so components can use CSS custom properties */
@import url("/styles.php?file=variables.css");

*,
*:before,
*:after {
    box-sizing: border-box;
}

:root {
    --topbar-height: 48px;
    --site-header-height: 70px;

    /* Font Families - centralized to project fonts (Poppins body, Heebo headings) */
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Heebo', sans-serif;
    --font-accent: 'Poppins', sans-serif;
    --font-signature: 'Poppins', cursive;

    /* Base Typography */
    --font-size-base: 1rem;
    --line-height-base: 1.55;

    /* Available font weights (matching fonts.css) */
    --weight-thin: 100;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Heading Scale — Elementor calibrated */
    --h1-size: 2.4rem;
    --h2-size: 1.9rem;
    --h3-size: 1.45rem;
    --h4-size: 1.3rem;
    --h5-size: 1.15rem;
    --h6-size: 1rem;
}

/* -------------------------------------------------------
   Base HTML
   ------------------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: var(--weight-regular);
    background-color: #f5f7fb;
    color: #222;
    overscroll-behavior-x: none;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    min-height: 100%;
}

main {
    padding-top: 0;
}

/* -------------------------------------------------------
   Headings (Roboto Slab)
   ------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    margin: 0 0 0.6em;
    color: #222;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

/* -------------------------------------------------------
   Paragraphs
   ------------------------------------------------------- */

p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    margin: 0 0 1.2em;
}

/* -------------------------------------------------------
   Links
   ------------------------------------------------------- */

a {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

/* -------------------------------------------------------
   Images & Containers
   ------------------------------------------------------- */

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */

button,
.btn {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #f97316;
    color: #111827;
}

.btn-secondary {
    background-color: #ffffff;
    color: #111827;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
}

/* -------------------------------------------------------
   Utility Classes
   ------------------------------------------------------- */

.section {
    padding: 3rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--h2-size);
    text-align: center;
    margin: 0 0 2rem;
}

.section-subtitle {
    font-size: 0.98rem;
    color: #4b5563;
}

.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.25rem; }

.text-thin { font-weight: var(--weight-thin); }
.text-light { font-weight: var(--weight-light); }
.text-regular { font-weight: var(--weight-regular); }
.text-medium { font-weight: var(--weight-medium); }
.text-semibold { font-weight: var(--weight-semibold); }
.text-bold { font-weight: var(--weight-bold); }

/* -------------------------------------------------------
   Service Card Titles (Poppins)
   ------------------------------------------------------- */

.service-card h3 {
    font-family: var(--font-accent);
    font-weight: var(--weight-semibold);
    font-size: 18px;
    line-height: 1.1;
}

/* -------------------------------------------------------
   Responsive Scaling
   ------------------------------------------------------- */

@media (max-width: 768px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.5rem;
    }
}
