/* =============================================================
   FaxSafe – Landing page stylesheet
   ============================================================= */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: #000100;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Design tokens ── */
:root {
    --primary:      #0B5CFF;
    --bg-light:     #f7f8ff;
    --bg-dark:      #19191b;
    --text-secondary: #575454;
    --white:        #ffffff;
    --radius:       12px;
}

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.h2-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: #000100;
}
.accent-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.heading-desc { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.heading-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.white-text  { color: var(--white) !important; }
.text-center { text-align: center; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .15s;
    font-family: 'DM Sans', sans-serif;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-lg   { padding: 14px 32px; font-size: 1.05rem; }
.btn-wide { padding: 14px 40px; }

/* ── Navbar ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
}
/* header-section, header-container, site-logo, brand-name → faxsafe-header.css */
.header-right  { display: flex; align-items: center; gap: 20px; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color .2s;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current a { color: var(--primary); }

/* Sub-menu */
.nav-menu .has-children { position: relative; }
.submenu-toggle { display: flex; align-items: center; gap: 4px; }
.menu-item-icon { width: 14px; height: 14px; stroke: var(--text-secondary); }
.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.has-children:hover .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 9px 18px; font-size: 0.9rem; color: var(--text-secondary); }
.sub-menu li a:hover { background: var(--bg-light); color: var(--primary); }

/* Mobile nav */
.btn-mobile-cta { display: none; }
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000100;
    border-radius: 2px;
    transition: .3s;
}
.mobile-menu-wrapper {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 190;
    overflow-y: auto;
    padding: 24px;
}
.mobile-menu-wrapper.open { display: block; }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu li a {
    display: block;
    padding: 12px 8px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #000100;
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 1024px) {
    .nav-menu-wrapper,
    .btn-desktop-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
    .btn-mobile-cta { display: inline-flex; }
}

/* ── Hero ── */
.hero-section { background: var(--bg-light); padding: 72px 0 80px; }
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-content { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    color: #000100;
}
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; max-width: 520px; }
.hero-actions  { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-stats    { display: flex; flex-direction: column; }
.hero-stats-number { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.hero-stats-text   { font-size: 0.85rem; color: var(--text-secondary); }
.hero-devices  { display: flex; flex-direction: column; gap: 10px; }
.hero-devices-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hero-devices-icons { display: flex; align-items: center; gap: 14px; }
.hero-device-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .2s;
}
.hero-device-icon:hover { border-color: var(--primary); }
.hero-device-icon img,
.hero-device-icon svg { width: 22px; height: 22px; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { max-height: 520px; width: auto; object-fit: contain; }

@media (max-width: 768px) {
    .hero-container { flex-direction: column; }
    .hero-image     { display: none; }
}

/* ── Features ── */
.features-section { background: var(--bg-dark); padding: 80px 0; }
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 64px;
}
.features-left { flex: 1; display: flex; flex-direction: column; gap: 40px; }
.features-heading-group { display: flex; flex-direction: column; gap: 12px; }
.features-heading-group h2 { color: var(--white); }
.features-heading-group .accent-text { color: #7ba4ff; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature-icon-box { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon-box .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
}
.feature-icon-box .icon svg { width: 22px; height: 22px; }
.feature-icon-box h3      { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.feature-icon-box .content-text { font-size: 0.88rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.features-right { flex: 1; display: flex; justify-content: flex-end; }
.features-right img { max-height: 480px; width: auto; border-radius: var(--radius); object-fit: contain; }

@media (max-width: 900px) {
    .features-container { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ── Fax Reinvented – Desktop ── */
.fax-reinvented-section .container { margin-bottom: 40px; }
.fax-reinvented-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
}
.fax-reinvented-tabs {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}
.fax-tab-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: background .2s;
    gap: 12px;
    border-left: 3px solid transparent;
}
.fax-tab-heading:last-child { border-bottom: none; }
.fax-tab-heading:hover      { background: var(--bg-light); }
.fax-tab-heading.active     { background: var(--bg-light); border-left-color: var(--primary); }
.fax-tab-heading h3         { font-size: 0.95rem; font-weight: 600; color: #000100; }
.fax-tab-heading.active h3  { color: var(--primary); }
.tab-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.3; }
.fax-tab-heading.active .tab-icon { opacity: 1; }
.fax-tab-content-wrapper { flex: 1; position: relative; }
.fax-tab-content {
    display: none;
    padding: 40px 48px;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.fax-tab-content.active { display: flex; }
.fax-tab-content .icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fax-tab-content .icon svg { width: 28px; height: 28px; }
.fax-tab-content h3 { font-size: 1.3rem; font-weight: 700; }
.fax-tab-content p  { color: var(--text-secondary); line-height: 1.7; font-size: 0.97rem; }

/* Mobile accordion */
.fax-reinvented-mobile { display: none; padding: 60px 0; }

@media (max-width: 768px) {
    .fax-reinvented-desktop { display: none; }
    .fax-reinvented-mobile  { display: block; }

    .accordion-list {
        display: flex;
        flex-direction: column;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius);
        overflow: hidden;
    }
    .accordion-item { border-bottom: 1px solid #e5e7eb; }
    .accordion-item:last-child { border-bottom: none; }
    .accordion-title-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        cursor: pointer;
        gap: 12px;
    }
    .accordion-title-wrapper h3 { font-size: 1rem; font-weight: 600; }
    .accordion-title-wrapper svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s; }
    .accordion-item.open .accordion-title-wrapper svg { transform: rotate(90deg); }
    .accordion-content-wrapper {
        display: none;
        padding: 0 20px 18px;
        color: var(--text-secondary);
        font-size: 0.93rem;
        line-height: 1.65;
    }
    .accordion-item.open .accordion-content-wrapper { display: block; }
}

/* ── Testimonials ── */
.testimonials-section { background: var(--bg-light); padding: 80px 0; }
.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.testimonial-source {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.testimonial-rating { display: flex; gap: 3px; }
.testimonial-text   { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── HIPAA ── */
.hipaa-section { padding: 80px 0; position: relative; overflow: hidden; }
.hipaa-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.hipaa-heading { margin-bottom: 0; }
.hipaa-desc { color: var(--text-secondary); line-height: 1.7; font-size: 0.97rem; }
.hipaa-desc a { color: var(--primary); font-weight: 600; }
.hipaa-image img { max-width: 480px; width: 100%; border-radius: var(--radius); margin-top: 16px; }
.hipaa-decoration-1,
.hipaa-decoration-2 { position: absolute; pointer-events: none; opacity: .35; }
.hipaa-decoration-1 { top: -40px;    right: -60px; width: 200px; }
.hipaa-decoration-2 { bottom: -40px; left: -60px;  width: 180px; }

/* ── Fax Ways ── */
.fax-ways-section { background: var(--bg-dark); padding: 80px 0; }
.fax-ways-section .heading-block { margin-bottom: 48px; }
.fax-ways-section .h2-heading    { color: var(--white); }
.fax-ways-section .heading-desc  { color: rgba(255,255,255,.65); }
.fax-ways-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.fax-way-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
}
.fax-way-icon-box { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.fax-way-icon-box .icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fax-way-icon-box .icon svg { width: 26px; height: 26px; }
.fax-way-icon-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.fax-way-icon-box p  { font-size: 0.88rem; color: rgba(255,255,255,.65); line-height: 1.65; }
.fax-way-icon-box p a { color: #7ba4ff; text-decoration: underline; }

@media (max-width: 900px) { .fax-ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fax-ways-grid { grid-template-columns: 1fr; } }

/* ── CTA ── */
.cta-section { padding: 80px 0; }
.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 56px 64px;
}
.cta-content { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
}
.cta-desc { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.65; max-width: 420px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .2s;
}
.cta-btn:hover { background: rgba(255,255,255,.2); }
.cta-qr { flex-shrink: 0; }
.cta-qr img {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    object-fit: contain;
    background: white;
    padding: 8px;
}

@media (max-width: 768px) {
    .cta-container { flex-direction: column; padding: 40px 28px; }
    .cta-qr { display: none; }
}

/* ── Footer ── */
.site-footer { background: var(--primary); padding: 28px 24px; text-align: center; }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,.75); font-size: 0.88rem; }

/* ── Scroll-to-top ── */
#scrollToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 150;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(17,17,17,.8);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
#scrollToTop.visible { opacity: 1; visibility: visible; }
#scrollToTop:hover   { background: #000; }
#scrollToTop svg     { width: 20px; height: 20px; }
