/* ============================================
   TRANS ALLIANCE INC. — Master Stylesheet
   ============================================ */

/* ---------- CSS RESET & VARIABLES ---------- */
:root {
    --red: #C22B2B;
    --red-dark: #9E1F1F;
    --red-deep: #7A1818;
    --red-light: #E8443A;
    --red-glow: rgba(194, 43, 43, 0.15);
    --black: #0A0A0A;
    --charcoal: #141414;
    --gray-900: #1C1C1C;
    --gray-800: #2A2A2A;
    --gray-700: #444444;
    --gray-500: #777777;
    --gray-400: #999999;
    --gray-300: #CCCCCC;
    --gray-200: #E5E5E5;
    --gray-100: #F5F5F5;
    --gray-50: #FAFAFA;
    --white: #FFFFFF;
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- TOPBAR ---------- */
.topbar {
    background: var(--charcoal);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.topbar-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--red-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.topbar-item a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.topbar-item a:hover {
    color: var(--white);
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-social a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.topbar-social a:hover {
    background: var(--red);
}

.topbar-social a svg {
    width: 14px;
    height: 14px;
    fill: rgba(255,255,255,0.7);
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-brand img {
    height: 56px;
    width: auto;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--black);
}

.nav-brand-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    padding: 10px 16px;
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
    background: var(--red-glow);
}

.nav-links a.nav-cta {
    background: var(--red);
    color: var(--white);
    padding: 12px 24px;
    margin-left: 8px;
    border-radius: var(--radius-sm);
}

.nav-links a.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(194,43,43,0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194,43,43,0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-secondary:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.35);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1rem;
}

/* ---------- SECTION STYLES ---------- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--charcoal);
    color: var(--white);
}

.section-gray {
    background: var(--gray-100);
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--red);
}

.section-label-light {
    color: var(--red-light);
}

.section-label-light::before {
    background: var(--red-light);
}

.section-label-center {
    justify-content: center;
    text-align: center;
}

.section-label-center::before {
    display: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 16px;
}

.section-title .accent {
    color: var(--red);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.5);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- PAGE HERO BANNERS ---------- */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--charcoal);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 50%, rgba(194,43,43,0.12) 0%, transparent 60%),
        linear-gradient(135deg, var(--charcoal) 0%, var(--gray-900) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .section-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero .section-subtitle {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}

.page-hero-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.page-hero-breadcrumb a:hover {
    color: var(--white);
}

.page-hero-breadcrumb .sep {
    margin: 0 8px;
    color: rgba(255,255,255,0.3);
}

/* Decorative stripe */
.red-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light), var(--red));
    width: 100%;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    background: var(--black);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 16px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number .stat-suffix {
    color: var(--red-light);
    font-size: 0.7em;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}

/* ---------- SERVICE CARDS ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.6) 100%);
}

.service-card-body {
    padding: 28px;
}

.service-card-icon {
    width: 50px;
    height: 50px;
    background: var(--red-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--red);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.service-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 18px;
}

.service-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.service-card-list li svg {
    width: 16px;
    height: 16px;
    stroke: var(--red);
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ---------- PERKS / FEATURES ---------- */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.perk-card {
    text-align: center;
    padding: 40px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.perk-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(194,43,43,0.2);
    transform: translateY(-4px);
}

.perk-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--red-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perk-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--red-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.perk-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.perk-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
    overflow: hidden;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    padding: 18px 40px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.cta-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.cta-phone svg {
    width: 24px;
    height: 24px;
    stroke: var(--red);
    fill: none;
    stroke-width: 2;
}

/* ---------- FORMS ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- CONTACT INFO ---------- */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--red-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--red);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-item-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-item-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
}

.contact-item-value a {
    color: var(--black);
    transition: color var(--transition);
}

.contact-item-value a:hover {
    color: var(--red);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--black);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 44px;
    width: auto;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
}

.footer-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--red);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: rgba(255,255,255,0.7);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link-list a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}

.footer-link-list a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--red-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
}

.footer-contact-item a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.25);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .perks-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

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

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a.nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .services-grid,
    .perks-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat-item::after {
        display: none !important;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 72px 0;
    }

    .page-hero {
        padding: 120px 0 60px;
    }
}
