/* ==========================================================================
   HIPAA Notes — site styles
   Rebuilt from the original Elementor design (measured at a 1920px viewport).
   Images live in /wwwroot/images (copied from the old wp-content/uploads).
   ========================================================================== */

:root {
    --cream: #faf3ea;
    --white: #ffffff;
    --gray: #819194;      /* nav, light body text */
    --text: #555555;      /* main paragraph text */
    --blue: #4b8aa5;      /* hero headline, copyright */
    --orange: #e8661e;    /* section heading */
    --red: #e0091d;       /* "Instantly connect" heading */
    --yellow: #ffe000;    /* footer bar, brand */
    --font: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    --container: 1600px;
    --gutter: 24px;
    --header-h: 172px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--orange); }

h1, h2, h3 { font-weight: 400; margin: 0; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container.narrow { max-width: 860px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--yellow); color: #333; padding: 10px 16px; font-weight: 400;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    transition: background-color .3s, box-shadow .3s;
}
.home .site-header {
    position: fixed;
    left: 0; right: 0;
    background: transparent;
}
.site-header.is-scrolled,
.home .site-header.is-scrolled {
    background: var(--white);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    transition: height .3s;
}
.site-header.is-scrolled .header-inner { height: 120px; }

.site-logo img { height: 104px; width: auto; transition: height .3s; }
.site-header.is-scrolled .site-logo img { height: 80px; }

.site-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    display: block;
    padding: 10px 28px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1.1px;
    line-height: 18px;
    color: var(--gray);
}
.site-nav li:last-child a { padding-right: 0; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { color: var(--orange); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px 0;
    background: var(--gray);
    transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Home: hero ---------- */

.hero {
    position: relative;
    min-height: 75vw;            /* 1440 / 1920 */
    background: var(--cream) url("../images/home-1.png") 50% 0 / 100% auto no-repeat;
    overflow: hidden;
}
.hero-inner { position: static; }

.hero-intro {
    position: absolute;
    left: 18.4vw;                /* 353px @ 1920 */
    top: 14.2vw;                 /* 272px @ 1920 */
    width: max(13.9vw, 220px);
    margin: 0;
    color: var(--gray);
    font-size: 16px;
    line-height: 24px;
}

.hero-title {
    position: absolute;
    left: 10.6vw;                /* 203px @ 1920 */
    top: 21.1vw;                 /* 406px @ 1920 */
    color: var(--blue);
    font-size: 5.2vw;            /* 99.84px @ 1920 */
    line-height: 1;
    letter-spacing: .52vw;       /* 10px @ 1920 */
    text-transform: uppercase;
}

.hero-triangles {
    position: absolute;
    left: 89.4vw;                /* 1716px @ 1920 */
    top: 22.8vw;                 /* 437px @ 1920 */
    width: 4.6vw;
}

/* ---------- Home: "It's your data" ---------- */

.your-data {
    position: relative;
    min-height: 41.9vw;          /* 804 / 1920 */
    padding: 0 0 6vw;
    overflow: hidden;
}
.your-data-stripes {
    position: absolute;
    inset: 0;
    background: url("../images/IMG_1550.png") 0 0 / 5% auto repeat;
    opacity: .72;
}
.your-data-art {
    position: absolute;
    right: 3vw;
    top: 10vw;
    width: 31vw;
    height: 32vw;
    background: url("../images/IMG_1553.png") 50% 50% / contain no-repeat;
    will-change: transform;
}
.your-data-inner { position: relative; }

.section-heading {
    font-size: 32px;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
}
.section-heading.orange { color: var(--orange); }

.your-data .section-heading {
    padding: 2.6vw 0 3.5vw;
}

.your-data-copy {
    max-width: 635px;
    margin-left: 26.6vw;          /* 510px offset inside the container @ 1920 */
    padding: 40px 0;
    background: var(--white);
    box-shadow: 0 0 0 40px var(--white);
}
.your-data-copy p { margin: 0 0 1em; }
.your-data-copy p:last-child { margin-bottom: 0; }

.orange-arrow {
    position: absolute;
    left: calc(82.2vw - max(0px, (100vw - var(--container) - var(--gutter) * 2) / 2));
    top: 7.5vw;
    width: 5vw;
}

/* ---------- Home: dots divider ---------- */

.dots-divider {
    height: 100px;
    background: var(--white) url("../images/dots-1.png") 50% 50% / auto 100% repeat-x;
}

/* ---------- Home: "Instantly connect" ---------- */

.collaborate {
    position: relative;
    min-height: 35.1vw;           /* 674 / 1920 */
    padding: 120px 0 80px;
    overflow: hidden;
}
.collaborate::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/yellow-stripes-1.png") 41.7vw 67px / 84% auto no-repeat;
}
.collaborate-inner { position: relative; }

.collaborate-title {
    color: var(--red);
    font-size: clamp(34px, 2.9vw, 55px);
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 60px;
}
.collaborate-copy {
    max-width: 680px;
    margin: 0;
    color: var(--gray);
}

/* ---------- Inner pages ---------- */

.page-hero {
    position: relative;
    padding: 90px 0 80px;
    background: var(--cream);
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -6vw;
    top: 0;
    bottom: 0;
    width: 45vw;
    background: url("../images/yellow-stripes-1.png") 0 50% / cover no-repeat;
    opacity: .55;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.page-title {
    color: var(--blue);
    font-size: clamp(44px, 5.2vw, 100px);
    line-height: 1;
    letter-spacing: clamp(4px, .52vw, 10px);
    text-transform: uppercase;
}
.page-lead {
    max-width: 520px;
    margin: 24px 0 0;
    color: var(--gray);
    font-size: 20px;
}

.page-body {
    padding: 80px 0 100px;
    background: var(--white);
}
.page-body p { font-size: 17px; line-height: 1.75; }

.muted { color: var(--gray); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid var(--orange);
    background: var(--orange);
    color: var(--white);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--orange); }
.btn-outline { background: transparent; color: var(--orange); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--orange); color: var(--white); }

/* FAQ accordion */
.faq-list { border-top: 1px solid #e6e1d8; }
.faq-item { border-bottom: 1px solid #e6e1d8; }
.faq-item summary {
    position: relative;
    padding: 24px 48px 24px 0;
    color: var(--blue);
    font-size: 21px;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-size: 28px;
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer p { margin: 0 0 24px; }
.faq-more { margin-top: 40px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 80px;
    align-items: start;
}
.contact-details .section-heading { text-align: left; margin-bottom: 24px; }
.contact-details strong { color: var(--blue); font-weight: 400; }

.contact-form .field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-weight: 400;
    letter-spacing: .5px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9d4cb;
    background: #fdfbf7;
    font-family: var(--font);
    font-size: 16px;
    color: #333;
    border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 0;
    border-color: var(--orange);
}
.contact-form .input-validation-error { border-color: var(--red); }
.field-error { display: block; margin-top: 4px; color: var(--red); font-size: 14px; }
.form-error ul { margin: 0 0 20px; padding: 12px 16px 12px 32px; background: #fde8ea; color: var(--red); }
.form-error.validation-summary-valid { display: none; }
.phi-warning {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-left: 4px solid var(--yellow);
    background: #fffbe0;
    color: #6b5d00;
    font-size: 15px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: var(--white); }

.footer-inner {
    display: grid;
    grid-template-columns: 61.5% 1fr;   /* contact column starts at 1121px @ 1920 */
    padding-top: 50px;
    padding-bottom: 30px;
}
.footer-logo { height: 74px; width: auto; }

.social {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}
.social a { display: block; color: var(--gray); }
.social a:hover, .social a:focus-visible { color: var(--orange); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

.footer-contact p { margin: 0 0 20px; color: var(--gray); }
.footer-contact a { color: var(--gray); }
.footer-contact a:hover { color: var(--orange); }

.footer-bar {
    background: var(--yellow);
    text-align: center;
}
.footer-bar p {
    margin: 0;
    padding: 10px var(--gutter);
    color: var(--blue);
    font-size: 15px;
    line-height: 25px;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal { opacity: 0; transition: opacity .9s ease, transform .9s ease; }
.js .reveal.fade-up { transform: translateY(40px); }
.js .reveal.fade-down { transform: translateY(-40px); }
.js .reveal.fade-left { transform: translateX(-60px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .parallax { transform: none !important; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
    :root { --header-h: 120px; }
    .site-logo img { height: 80px; }
    .site-nav a { padding: 10px 16px; font-size: 17px; }

    .hero-intro { left: 8vw; top: 18vw; width: 30vw; font-size: 15px; line-height: 22px; }
    .hero-title { left: 8vw; top: 33vw; font-size: 7vw; }

    .your-data-copy { margin-left: 0; max-width: 58%; }
    .your-data-art { width: 36vw; top: 18vw; }

    .contact-grid { gap: 48px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
    :root { --header-h: 92px; --gutter: 16px; }
    .site-logo img, .site-header.is-scrolled .site-logo img { height: 64px; }
    .site-header.is-scrolled .header-inner { height: 80px; }

    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--white);
        box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .site-nav.is-open { max-height: 320px; }
    .site-nav ul { flex-direction: column; padding: 8px 0 16px; }
    .site-nav a, .site-nav li:last-child a { padding: 14px var(--gutter); }

    .hero {
        min-height: 0;
        padding: calc(var(--header-h) + 24px) 0 60vw;
        background-size: 180% auto;
        background-position: 70% 100%;
    }
    .hero-intro, .hero-title { position: static; width: auto; }
    .hero-intro { max-width: 300px; margin-bottom: 20px; }
    .hero-title { font-size: 13vw; letter-spacing: 1.5vw; }
    .hero-triangles { display: none; }

    .your-data { padding-bottom: 72vw; }
    .your-data .section-heading { font-size: 24px; padding: 48px 0 32px; }
    .your-data-copy { max-width: none; padding: 24px; box-shadow: none; }
    .your-data-art { top: auto; bottom: 4vw; right: 50%; transform: translateX(50%); width: 70vw; height: 64vw; }
    .orange-arrow { display: none; }

    .dots-divider { height: 60px; }

    .collaborate { padding: 64px 0 50vw; }
    .collaborate::before { background-position: 0 100%; background-size: 160% auto; }
    .collaborate-title { margin-bottom: 32px; }

    .page-hero { padding: 56px 0; }
    .page-hero::after { width: 70vw; opacity: .3; }
    .page-body { padding: 48px 0 64px; }

    .contact-grid, .field-row { grid-template-columns: 1fr; }
    .contact-grid { gap: 40px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
