/* ==========================================================================
   TRISTAR PT — Component Styles (Shared across all pages)
   Brand: PMS 151C (#FF8200), PMS 428C (#C4C7C8), PMS 425C (#54585A), White, Black
   ========================================================================== */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tpt-charcoal);
    background: var(--tpt-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tpt-orange); text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { color: var(--tpt-orange-dark); }

/* ── CONTAINER ── */
.tpt-container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--tpt-near-black); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h1 em, h2 em { font-style: italic; color: var(--tpt-orange); }

.tpt-section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tpt-orange);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: var(--tpt-orange-10);
    border-radius: var(--radius-full);
}
.tpt-section-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--tpt-charcoal-light);
    max-width: 640px;
}

/* ── BUTTONS ── */
.tpt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}
.tpt-btn--primary {
    background: var(--tpt-orange);
    color: var(--tpt-white);
    border-color: var(--tpt-orange);
    box-shadow: var(--shadow-orange);
}
.tpt-btn--primary:hover {
    background: var(--tpt-orange-dark);
    border-color: var(--tpt-orange-dark);
    color: var(--tpt-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange-lg);
}
.tpt-btn--outline {
    background: transparent;
    color: var(--tpt-orange);
    border-color: var(--tpt-orange);
}
.tpt-btn--outline:hover {
    background: var(--tpt-orange);
    color: var(--tpt-white);
}
.tpt-btn--white {
    background: var(--tpt-white);
    color: var(--tpt-orange);
    border-color: var(--tpt-white);
    font-weight: 700;
}
.tpt-btn--white:hover {
    background: var(--tpt-cream);
    color: var(--tpt-orange-dark);
    transform: translateY(-2px);
}
.tpt-btn--dark {
    background: var(--tpt-near-black);
    color: var(--tpt-white);
    border-color: var(--tpt-near-black);
}
.tpt-btn--dark:hover { background: var(--tpt-charcoal); border-color: var(--tpt-charcoal); color: var(--tpt-white); }
.tpt-btn--lg { padding: 16px 36px; font-size: 16px; }
.tpt-btn--sm { padding: 10px 20px; font-size: 13px; }
.tpt-btn--block { display: flex; width: 100%; }

/* ── UTILITY BAR ── */
.tpt-utility-bar {
    background: var(--tpt-near-black);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
}
.tpt-utility-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tpt-utility-bar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.tpt-utility-bar__link {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: color 0.2s;
}
.tpt-utility-bar__link:hover { color: var(--tpt-orange); }
.tpt-utility-bar__phone { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tpt-white); }
.tpt-utility-bar__phone:hover { color: var(--tpt-orange); }
.tpt-utility-bar__cta {
    background: var(--tpt-orange);
    color: var(--tpt-white) !important;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tpt-utility-bar__cta:hover { background: var(--tpt-orange-dark); }

/* ── HEADER ── */
.tpt-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--tpt-white);
    transition: box-shadow var(--duration-normal) ease;
    border-bottom: 1px solid var(--tpt-gray-200);
}
.tpt-header.scrolled { box-shadow: var(--shadow-md); }
.tpt-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.tpt-header__logo-img { height: 56px; width: auto; }

/* ── NAVIGATION ── */
.tpt-nav { display: flex; align-items: center; gap: 8px; }
.tpt-nav__list { display: flex; list-style: none; gap: 4px; align-items: center; }
.tpt-nav__item > a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tpt-charcoal);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}
.tpt-nav__item > a:hover { color: var(--tpt-orange); background: var(--tpt-orange-10); }
.tpt-nav__cta { margin-left: 12px; }

/* Dropdown */
.tpt-nav__item--dropdown { position: relative; }
.tpt-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--tpt-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: var(--z-dropdown);
    border: 1px solid var(--tpt-gray-200);
}
.tpt-nav__item--dropdown.is-open .tpt-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tpt-nav__dropdown li a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--tpt-charcoal);
    border-radius: var(--radius-sm);
}
.tpt-nav__dropdown li a:hover { background: var(--tpt-orange-10); color: var(--tpt-orange); }
.tpt-nav__dropdown-more a { color: var(--tpt-orange) !important; font-weight: 600; }

/* ── MOBILE TOGGLE ── */
.tpt-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: calc(var(--z-overlay) + 1);
}
.tpt-mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--tpt-charcoal);
    border-radius: 2px;
    transition: all var(--duration-normal) ease;
}
.tpt-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tpt-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.tpt-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.tpt-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--tpt-white);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    overflow-y: auto;
    padding: 100px 24px 40px;
}
.tpt-mobile-menu.open { opacity: 1; visibility: visible; }
.tpt-mobile-menu__link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--tpt-charcoal);
    border-bottom: 1px solid var(--tpt-gray-200);
}
.tpt-mobile-menu__link:hover { color: var(--tpt-orange); }
.tpt-mobile-menu__ctas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ── CTA BANNER ── */
.tpt-cta-banner {
    background: linear-gradient(135deg, var(--tpt-orange) 0%, #CC6800 100%);
    color: var(--tpt-white);
    padding: 80px 0;
    text-align: center;
}
.tpt-cta-banner__title { color: var(--tpt-white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.tpt-cta-banner__text { font-size: 17px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.tpt-cta-banner__phone { margin-top: 16px; font-size: 15px; opacity: 0.85; }
.tpt-cta-banner__phone a { color: var(--tpt-white); font-weight: 700; text-decoration: underline; }

/* ── FOOTER ── */
.tpt-footer {
    background: var(--tpt-near-black);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}
.tpt-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tpt-footer__logo { height: 60px; width: auto; margin-bottom: 16px; }
.tpt-footer__brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.tpt-footer__phone { display: block; color: var(--tpt-orange); font-size: 20px; font-weight: 700; margin-top: 16px; }
.tpt-footer__phone:hover { color: var(--tpt-orange-light); }
.tpt-footer__email { display: block; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 4px; }
.tpt-footer__col h4 {
    color: var(--tpt-white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.tpt-footer__col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.tpt-footer__col a:hover { color: var(--tpt-orange); }
.tpt-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.tpt-footer__bottom-links { display: flex; gap: 24px; }
.tpt-footer__bottom-links a { color: rgba(255,255,255,0.4); }
.tpt-footer__bottom-links a:hover { color: var(--tpt-orange); }

/* ── SECTION PATTERNS ── */
.tpt-section { padding: 80px 0; }
.tpt-section--gray { background: var(--tpt-gray-100); }
.tpt-section--cream { background: var(--tpt-cream); }
.tpt-section--dark { background: var(--tpt-near-black); color: var(--tpt-white); }
.tpt-section--dark h2, .tpt-section--dark h3 { color: var(--tpt-white); }
.tpt-section__header { text-align: center; margin-bottom: 48px; }
.tpt-section__header .tpt-section-desc { margin-left: auto; margin-right: auto; }

/* ── CARDS ── */
.tpt-card {
    background: var(--tpt-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--tpt-gray-200);
}
.tpt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--tpt-orange-20); }
.tpt-card__img { width: 100%; height: 200px; object-fit: cover; }
.tpt-card__body { padding: 24px; }
.tpt-card__title { font-size: 1.2rem; margin-bottom: 8px; }
.tpt-card__text { font-size: 14px; color: var(--tpt-charcoal-light); line-height: 1.6; }
.tpt-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tpt-orange);
    margin-top: 16px;
}
.tpt-card__link:hover { gap: 10px; }

/* ── GRID LAYOUTS ── */
.tpt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.tpt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tpt-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── FAQ ── */
.tpt-faq__item { border-bottom: 1px solid var(--tpt-gray-200); }
.tpt-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--tpt-near-black);
    cursor: pointer;
    text-align: left;
}
.tpt-faq__icon {
    font-size: 24px;
    color: var(--tpt-orange);
    transition: transform var(--duration-normal) ease;
    flex-shrink: 0;
}
.tpt-faq__item.is-open .tpt-faq__icon { transform: rotate(45deg); }
.tpt-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}
.tpt-faq__item.is-open .tpt-faq__answer { max-height: 300px; }
.tpt-faq__answer-inner { padding: 0 0 20px; font-size: 15px; color: var(--tpt-charcoal-light); line-height: 1.7; }

/* ── PAGE HERO (shared inner pages) ── */
.tpt-page-hero {
    background: var(--tpt-near-black);
    color: var(--tpt-white);
    padding: 60px 0;
    text-align: center;
}
.tpt-page-hero__title { color: var(--tpt-white); margin-bottom: 12px; }
.tpt-page-hero__subtitle { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }
.tpt-page-hero__breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.tpt-page-hero__breadcrumb a { color: var(--tpt-orange); }

/* ── STATS BAR ── */
.tpt-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0;
}
.tpt-stat { text-align: center; }
.tpt-stat__number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--tpt-orange);
    line-height: 1;
}
.tpt-stat__label { font-size: 14px; color: var(--tpt-charcoal-light); margin-top: 8px; }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,130,0,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(255,130,0,0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .tpt-nav { display: none; }
    .tpt-mobile-toggle { display: flex; }
    .tpt-footer__grid { grid-template-columns: 1fr 1fr; }
    .tpt-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .tpt-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tpt-utility-bar__right .tpt-utility-bar__link { display: none; }
    .tpt-section { padding: 60px 0; }
    .tpt-grid-3 { grid-template-columns: 1fr; }
    .tpt-grid-2 { grid-template-columns: 1fr; }
    .tpt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .tpt-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .tpt-cta-banner { padding: 60px 0; }
}
@media (max-width: 480px) {
    .tpt-container { padding: 0 16px; }
    .tpt-header__logo-img { height: 44px; }
    .tpt-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
    .tpt-grid-4 { grid-template-columns: 1fr; }
}
