@charset "UTF-8";

/*
 * HV Direct Checkout — theme.css
 * Global theme styles. Heavy checkout UI lives in the plugin's checkout.css.
 * This file handles: reset, header (global + checkout variant), nav, footer, page content.
 */

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

/* ── Base ───────────────────────────────────────────────── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1c1c1e;
    background: #f6f6f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #fc6100;
    text-decoration: none;
}

a:hover {
    color: #e05500;
}

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

/* ══════════════════════════════════════════════════════════
   GLOBAL HEADER
   Both checkout and regular pages use .hv-dct-header.
   Checkout pages add .hv-dct-header--checkout modifier.
══════════════════════════════════════════════════════════ */

.hv-dct-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.hv-dct-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── Logo ───────────────────────────────────────────────── */
.hv-dct-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.hv-dct-header__logo img {
    height: 38px;
    width: auto;
    display: block;
}

.hv-dct-header__sitename {
    font-size: 18px;
    font-weight: 700;
    color: #1c1c1e;
    letter-spacing: -.3px;
}

/* ── Right side container (nav/trust + phone) ───────────── */
.hv-dct-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── Phone link ─────────────────────────────────────────── */
.hv-dct-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #fc6100;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.hv-dct-header__phone svg {
    color: #fc6100;
}

.hv-dct-header__phone:hover {
    color: #e05500;
}

/* ══════════════════════════════════════════════════════════
   NAV MENU (regular pages only)
══════════════════════════════════════════════════════════ */

.hv-dct-nav {
    display: flex;
    align-items: center;
}

/* wp_nav_menu outputs a <ul> directly */
.hv-dct-nav__list,
.hv-dct-nav>ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-dct-nav .menu-item>a,
.hv-dct-nav__list>li>a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.hv-dct-nav .menu-item>a:hover,
.hv-dct-nav__list>li>a:hover {
    background: #f3f4f6;
    color: #1c1c1e;
}

.hv-dct-nav .current-menu-item>a,
.hv-dct-nav .current_page_item>a {
    color: #fc6100;
    background: #fff4ee;
}

/* ── Dropdown submenu ───────────────────────────────────── */
.hv-dct-nav .menu-item {
    position: relative;
}

.hv-dct-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    list-style: none;
    margin: 0;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .09);
    z-index: 300;
}

.hv-dct-nav .menu-item:hover>.sub-menu,
.hv-dct-nav .menu-item:focus-within>.sub-menu {
    display: block;
}

.hv-dct-nav .sub-menu li a {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border-radius: 5px;
    white-space: nowrap;
}

.hv-dct-nav .sub-menu li a:hover {
    background: #f3f4f6;
    color: #1c1c1e;
}

/* ── Mobile hamburger toggle ────────────────────────────── */
.hv-dct-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.hv-dct-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.hv-dct-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hv-dct-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hv-dct-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════
   CHECKOUT HEADER VARIANT (.hv-dct-header--checkout)
   Trust signals instead of nav.
══════════════════════════════════════════════════════════ */

.hv-dct-header__trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hv-dct-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.hv-dct-trust-item--secure svg {
    color: #059669;
}

.hv-dct-trust-item--hipaa svg {
    color: #fc6100;
}

/* ── Plugin interop: the plugin's checkout.css uses margin: 0 -20px 24px
      on .hv-header (inside-wrap trick). Our header is outside the wrap,
      so add top padding to the wrap instead. ── */
body.hdc-checkout .hv-checkout-wrap {
    padding-top: 24px;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL FOOTER
══════════════════════════════════════════════════════════ */

.hv-dct-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 20px 0;
}

.hv-dct-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hv-dct-footer__copy {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* wp_nav_menu / fallback ul */
.hv-dct-footer__links,
.hv-dct-footer__nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-dct-footer__links a,
.hv-dct-footer__nav ul a {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
}

.hv-dct-footer__links a:hover,
.hv-dct-footer__nav ul a:hover {
    color: #6b7280;
}

/* ══════════════════════════════════════════════════════════
   FALLBACK PAGE CONTENT (non-checkout pages)
══════════════════════════════════════════════════════════ */

.hv-dct-page-main {
    min-height: 60vh;
    padding: 40px 0 80px;
}

.hv-dct-page-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.hv-dct-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1c1c1e;
    margin: 0 0 24px;
    line-height: 1.2;
}

.hv-dct-page-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.hv-dct-page-content h2,
.hv-dct-page-content h3 {
    font-weight: 700;
    margin: 28px 0 12px;
    color: #1c1c1e;
}

.hv-dct-page-content p {
    margin: 0 0 16px;
}

.hv-dct-page-content ul,
.hv-dct-page-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.hv-dct-page-content li {
    margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Mobile nav: stack below header */
    .hv-dct-nav-toggle {
        display: flex;
    }

    .hv-dct-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
        padding: 12px 0;
        z-index: 199;
    }

    .hv-dct-nav.is-open {
        display: block;
    }

    .hv-dct-nav>ul,
    .hv-dct-nav__list {
        flex-direction: column;
        gap: 0;
        padding: 0 12px;
    }

    .hv-dct-nav .menu-item>a,
    .hv-dct-nav__list>li>a {
        padding: 10px 12px;
        border-radius: 6px;
    }

    .hv-dct-nav .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f9fafb;
        border-radius: 6px;
        margin: 4px 0 4px 12px;
        padding: 4px;
        display: none;
    }

    .hv-dct-nav .menu-item.is-open>.sub-menu {
        display: block;
    }
}

@media (max-width: 600px) {

    /* Trust signals hidden on checkout mobile — phone still shows */
    .hv-dct-header--checkout .hv-dct-header__trust {
        display: none;
    }

    .hv-dct-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .hv-dct-footer__links,
    .hv-dct-footer__nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}