/* ============================================================
   TT HEADER — Woodmart-independent
   Two rows: [logo · tagline · contact] then [nav · search].
   Uses the tokens from global-design-system.css.
   ============================================================ */

.tt-page-wrapper {
    position: relative;
    background: #fff;
}

.tt-page-content {
    position: relative;
    z-index: 1;
    min-height: 50vh;
    background: #fff;
}

.tt-header {
    position: relative;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--tt-border-light, #E8EDF5);
}

.tt-container {
    max-width: var(--tt-container-max, 1280px);
    margin-inline: auto;
    padding-inline: var(--tt-container-padding, 1.5rem);
}

/* ---------- row 1 ---------- */
.tt-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.6rem;
}

.tt-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }

/* The source SVG declares 724x151. Pin the rendered size explicitly and
   scope it tightly so nothing in the plugin stack can reinflate it. */
.tt-header .tt-logo .tt-logo-img,
.tt-header .tt-logo img {
    display: block;
    width: auto !important;
    height: 46px !important;
    max-height: 46px !important;
    max-width: 240px;
}

.tt-tagline {
    font-size: 15px;
    font-weight: 700;
    color: var(--tt-navy, #0A1628);
    white-space: nowrap;
}

.tt-header-contact {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    line-height: 1.35;
}

.tt-contact-sep {
    width: 1px;
    height: 18px;
    background: var(--tt-border, #D1D5DB);
}

.tt-phone {
    font-size: 15px;
    font-weight: 800;
    color: var(--tt-blue, #1E5DAB);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.tt-phone:hover { color: var(--tt-blue-hover, #164A8A); }

.tt-hours { font-size: 14.5px; font-weight: 600; color: #111; white-space: nowrap; }

/* ---------- row 2 ---------- */
.tt-header-nav { border-top: 1px solid var(--tt-border-light, #E8EDF5); }

.tt-header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tt-primary-nav { flex: 1 1 auto; min-width: 0; }

/* actions: CTA + search ------------------------------------- */
.tt-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tt-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
    background: var(--tt-blue, #1E5DAB);
    border-radius: var(--tt-radius-md, .5rem);
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.tt-cta:hover { background: var(--tt-blue-hover, #164A8A); transform: translateY(-1px); color: #fff; }

/* Collapsed by default: an icon button that expands on demand. */
.tt-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: var(--tt-blue-light, #E8F0FE);
    border-radius: var(--tt-radius-full, 9999px);
    padding: 0.2rem;
}

.tt-search input[type="search"] {
    width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    outline: none;
    color: var(--tt-navy, #0A1628);
    opacity: 0;
    transition: width .28s cubic-bezier(0.16,1,0.3,1), opacity .2s ease, padding .28s ease;
}

.tt-search.is-open input[type="search"],
.tt-search:focus-within input[type="search"] {
    width: 170px;
    opacity: 1;
    padding-inline: 0.75rem;
}

.tt-search-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--tt-blue, #1E5DAB);
    cursor: pointer;
}

.tt-search-icon {
    width: 13px; height: 13px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}
.tt-search-icon::after {
    content: "";
    position: absolute;
    top: 11px; left: 9px;
    width: 7px; height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

/* Mobile toggle + drawer: see tt-mobile-nav.css. */

@media (max-width: 1024px) {
    .tt-header-nav { display: none; }
    .tt-tagline, .tt-tagline-sep { display: none; }
    .tt-search.is-open input[type="search"],
    .tt-search:focus-within input[type="search"] { width: 120px; }
    .tt-header .tt-logo .tt-logo-img,
    .tt-header .tt-logo img { height: 38px !important; max-height: 38px !important; }
}

@media (max-width: 600px) {
    .tt-header-contact { display: none; }
    .tt-cta { display: none; }
}

/* ---- search overlay ----
   The field grows out of the icon as an overlay instead of widening the
   actions cluster, so the nav never reflows or overlaps. ---- */
.tt-search {
    position: relative;
    z-index: 5;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    overflow: visible;
}
.tt-search-btn {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    z-index: 2;
}
.tt-search input[type="search"] {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    height: 38px;
    width: 38px;
    padding: 0;
    border-radius: var(--tt-radius-full, 9999px);
    background: var(--tt-blue-light, #E8F0FE);
    opacity: 0;
    pointer-events: none;
    transition: width .28s cubic-bezier(0.16,1,0.3,1), opacity .2s ease, padding .28s ease;
}
.tt-search.is-open input[type="search"],
.tt-search:focus-within input[type="search"] {
    width: 260px;
    opacity: 1;
    pointer-events: auto;
    padding-inline-start: 1rem;
    padding-inline-end: 44px;
    box-shadow: var(--tt-shadow-md, 0 4px 12px rgba(10, 22, 40, 0.08));
}
@media (max-width: 1024px) {
    .tt-search.is-open input[type="search"],
    .tt-search:focus-within input[type="search"] { width: 200px; }
}
