/*
 * site.css — Pareto Dental Technologies
 * Replaces main.css (HTML5UP Editorial theme residue) and index.css (Power BI
 * embed starter file). Contains only what this site actually uses.
 *
 * Design tokens: pareto-tokens.css (loaded before this file)
 * Tool-page styles (.pareto-tools scoped): tools.css
 * Bootstrap: kept for Embed.cshtml Power BI grid layout
 *
 * Section order:
 *   1. Browser reset
 *   2. Typography utilities
 *   3. Layout shell (sticky footer, anchor offsets)
 *   4. Nav
 *   5. Buttons
 *   6. Forms
 *   7. Components
 *   8. Scroll-reveal utilities
 *   9. Power BI embed (Embed.cshtml only)
 */


/* ─────────────────────────────────────────────────────────────
   1. BROWSER RESET
   ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: var(--pdt-paper);
    color: var(--pdt-ink);
    font-family: var(--pdt-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a       { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }

img { display: block; max-width: 100%; }

iframe { border: none; }

main { margin: 0 auto; width: 100%; }

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--pdt-forest);
    outline-offset: 3px;
    border-radius: 6px;
}


/* ─────────────────────────────────────────────────────────────
   2. TYPOGRAPHY UTILITIES
   ───────────────────────────────────────────────────────────── */
.t-eyebrow {
    font-family: var(--pdt-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pdt-forest);
}

.t-display {
    font-family: var(--pdt-sans);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.t-h1 { font-size: clamp(32px, 5vw, 52px);   font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.t-h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 500; line-height: 1.2;  letter-spacing: -0.018em; }
.t-h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.t-h4 { font-size: 18px;                     font-weight: 500; line-height: 1.3; }

.t-lead {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
    color: var(--pdt-ink-soft);
}

.t-body { font-size: 16px; line-height: 1.65; }

.t-small {
    font-size: 13px;
    color: var(--pdt-mute);
}

.t-italic {
    font-family: var(--pdt-serif);
    font-style: italic;
}


/* ─────────────────────────────────────────────────────────────
   3. LAYOUT SHELL
   ───────────────────────────────────────────────────────────── */
/* Sticky footer: wrapper fills viewport, main expands to fill */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main { flex: 1; }

/* Offset anchor links so they scroll below the sticky nav */
section[id] { scroll-margin-top: 100px; }

@media (min-width: 1280px) {
    section[id] { scroll-margin-top: 130px; }
}


/* ─────────────────────────────────────────────────────────────
   4. NAV
   ───────────────────────────────────────────────────────────── */
.pdt-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.pdt-nav-link {
    font-size: 14px;
    color: var(--pdt-ink-soft);
    font-weight: 400;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 2px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.pdt-nav-link:hover { color: var(--pdt-ink); text-decoration: none; }
.pdt-nav-link.pdt-nav-active {
    color: var(--pdt-ink);
    font-weight: 500;
    border-bottom-color: var(--pdt-forest);
}

.pdt-ham-btn {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5.5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.pdt-ham-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--pdt-ink);
    transition: all .2s;
}

.pdt-mobile-menu {
    display: none;
    padding: 20px clamp(16px, 4vw, 32px) 32px;
    border-top: 1px solid var(--pdt-line-soft);
    background: var(--pdt-paper);
}
.pdt-mob-link {
    display: block;
    padding: 14px 4px;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--pdt-line-soft);
    color: var(--pdt-ink);
    text-decoration: none;
}

/* Mobile: hide desktop nav, show hamburger */
@media (max-width: 767px) {
    .pdt-nav-links { display: none; }
    .pdt-ham-btn { display: flex; }
}


/* ─────────────────────────────────────────────────────────────
   5. BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pdt-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    padding: 14px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    min-height: 48px;
}

.btn-primary {
    background: var(--pdt-ink);
    color: var(--pdt-paper);
    border-color: var(--pdt-ink);
}
.btn-primary:hover {
    background: var(--pdt-forest);
    border-color: var(--pdt-forest);
    color: var(--pdt-paper);
}

.btn-ghost {
    background: transparent;
    color: var(--pdt-ink);
    border-color: var(--pdt-ink);
}
.btn-ghost:hover {
    background: var(--pdt-ink);
    color: var(--pdt-paper);
}

.btn-green {
    background: var(--pdt-forest);
    color: var(--pdt-paper);
    border-color: var(--pdt-forest);
}
.btn-green:hover {
    background: var(--pdt-forest-deep);
    border-color: var(--pdt-forest-deep);
    color: var(--pdt-paper);
}

.btn:focus-visible {
    outline: 2px solid var(--pdt-forest);
    outline-offset: 3px;
}


/* ─────────────────────────────────────────────────────────────
   6. FORMS
   ───────────────────────────────────────────────────────────── */
.contact-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    background: var(--pdt-paper);
    border: 1px solid var(--pdt-line);
    border-radius: 6px;
    color: var(--pdt-ink);
    transition: border-color .15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.contact-input:focus {
    outline: none;
    border-color: var(--pdt-forest);
}
.contact-input::placeholder { color: var(--pdt-mute); }

select.contact-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f6a62' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

.field-validation-error {
    color: #c0392b;
    font-size: 0.85em;
    display: block;
    margin-top: 0.25rem;
}


/* ─────────────────────────────────────────────────────────────
   7. COMPONENTS
   ───────────────────────────────────────────────────────────── */
.message-success {
    background: #f0f8f0;
    border: 1px solid var(--pdt-forest);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}
.message-success h3 { color: var(--pdt-forest); margin-bottom: 0.5rem; }

.message-error {
    background: #fdf0f0;
    border: 1px solid #c0392b;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}
.message-error h3 { color: #c0392b; margin-bottom: 0.5rem; }

.paper-tex { background: var(--pdt-paper); }

.divider { height: 1px; background: var(--pdt-line); }


/* ─────────────────────────────────────────────────────────────
   8. SCROLL-REVEAL UTILITIES  (driven by _Layout.cshtml JS)
   ───────────────────────────────────────────────────────────── */
/* !important required: JS sets inline opacity/transform during the scroll-out
   effect; these classes need to beat inline styles when re-applied. */
.scroll-hidden {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out !important;
}
.scroll-visible { opacity: 1; transform: translateY(0); }


/* ─────────────────────────────────────────────────────────────
   9. POWER BI EMBED  (Embed.cshtml only)
   ───────────────────────────────────────────────────────────── */
/* !important on heights: Power BI client sets inline height via JS; these
   must win to keep the iframe full-viewport. */
.report-container {
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 0;
    visibility: hidden;
}
#report-container {
    height: 100vh !important;
    max-height: 100vh !important;
}
.report-wrapper {
    background-color: #EAEAEA;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 0;
}
.report-display-text {
    color: #6E6E6E;
    font: 3.7vh "segoe ui light", arial, sans-serif;
    left: 50%;
    margin: auto;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
}

.select-list {
    align-self: flex-end;
    border-radius: 6.17vh;
    border-color: #D3D3D3;
    font-size: 1.48vh;
    height: 3.61vh;
    padding: 0.46vh;
    padding-left: 0.92vh;
}
.select-list:focus { outline: none; }

.button-container { padding-top: 2.31vh; }

.config-container {
    font-size: 1.85vh;
    padding-bottom: 0.93vh;
    padding-top: 0.93vh;
}

.overlay {
    background-color: #FCFCFC;
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.dashboard-container {
    background-color: #EAEAEA;
    height: calc(74vw * 0.5625);
    max-height: 75vh;
    padding: 0;
    visibility: hidden;
}
.dashboard-wrapper {
    background-color: #EAEAEA;
    height: calc(74vw * 0.5625);
    max-height: 75vh;
    padding: 0;
}

.tile-container {
    height: calc(0.5625 * (100vw - 206px));
    max-height: 75vh;
    padding: 0;
    visibility: hidden;
}
.tile-wrapper {
    background-color: #EAEAEA;
    height: calc(0.5625 * 74vw);
    max-height: 75vh;
    padding: 0;
}

.transparent-bg { background-color: transparent; }

.spinner {
    animation: rotation 1s infinite linear;
    left: 50%;
    top: 50%;
    width: auto;
}

@keyframes rotation {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(359deg); }
}


/* ─────────────────────────────────────────────────────────────
   10. BLOG POST PROSE  (BlogPost.cshtml .post-body)
   ───────────────────────────────────────────────────────────── */
/* Base prose: constrain to reading width and center; children inherit. */
.post-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--pdt-ink);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Full-width breakout: escape the reading column via negative-margin trick. */
.post-body > .full-width,
.post-body > .post-figure,
.post-body > figure {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Paragraphs */
.post-body > p {
    margin: 0 0 1.4rem;
}

/* Headings */
.post-body > h2 {
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.post-body > h3 {
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

/* Lists */
.post-body > ul,
.post-body > ol   { padding-left: 1.6rem; margin-bottom: 1.4rem; }
.post-body li     { margin-bottom: 0.45rem; line-height: 1.65; }

/* Pull-quote / blockquote */
.post-body > blockquote {
    border-left: 3px solid var(--pdt-sage);
    padding-left: 1.25rem;
    font-family: var(--pdt-serif);
    font-style: italic;
    color: var(--pdt-ink-soft);
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

/* Section break */
.post-body > hr {
    border: none;
    border-top: 1px solid var(--pdt-line);
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────────────────────────
   Insights — showcase grid + signup card responsive layout
   ───────────────────────────────────────────────────────────── */

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}
.showcase-rail { order: -1; }
@media (min-width: 960px) {
    .showcase-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 56px;
        align-items: start;
    }
    .showcase-rail {
        order: 0;
        position: sticky;
        top: 92px;
    }
}

.signup-card { align-items: center; }
@media (max-width: 720px) {
    .signup-card {
        grid-template-columns: 1fr !important;
        text-align: left;
    }
    .signup-card-form { width: 100%; }
    .signup-card-pill {
        min-width: 0 !important;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .archive-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .archive-row > div:first-child { display: none; }
    .archive-row > div:last-child {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }
}
