/* 
Theme Name: Hello Elementor Child (Travelcare)
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Travelcare.ug custom child theme built over Hello Elementor.
Author: Simba Travelcare Limited
Author URI: https://travelcare.ug
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ==========================================================================
   Global Variables (Updated to Travelcare Brand Guide)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --tc-primary: #1A2A44; /* Dark Navy */
    --tc-accent-tc: #eb1f27; /* Travelcare Accent Red */
    --tc-accent-intek: #36499a; /* Intek Accent Blue */
    --tc-secondary: #F5F5F5; /* Light Secondary */
    --tc-text: #333333; /* Dark Text */
    --tc-white: #ffffff;
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--tc-text);
    background-color: var(--tc-white);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--tc-primary);
    margin-bottom: 20px;
}

/* ==========================================================================
   Header & Off-Canvas Menu Styling Overrides
   ========================================================================== */

/* Force Elementor hamburger to open the dark sidebar seamlessly */
.travelcare-off-canvas {
    background-color: var(--tc-primary);
    color: var(--tc-secondary);
}

.travelcare-off-canvas a {
    color: var(--tc-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

/* Global button styling */
.tc-button-red, .tc-btn-primary {
    background-color: var(--tc-accent-tc) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.tc-button-red:hover, .tc-btn-primary:hover {
    background-color: #c9171f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 31, 39, 0.3);
}

.tc-btn-secondary {
    background-color: transparent !important;
    color: var(--tc-primary) !important;
    border: 2px solid var(--tc-primary);
    border-radius: 4px;
    padding: 10px 22px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.tc-btn-secondary:hover {
    background-color: var(--tc-primary) !important;
    color: #fff !important;
}

/* Global Template Classes for Visual Theme Pages */
.tc-page-header {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 60px 20px;
}
.tc-page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 42, 68, 0.6); /* Primary color overlay */
    z-index: 1;
}
.tc-page-header .tc-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.tc-page-header h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
}
.tc-page-header p.lead {
    font-size: 20px;
    max-width: 700px;
    margin-bottom: 30px;
}
.tc-section {
    padding: 80px 20px;
}
.tc-bg-secondary {
    background-color: var(--tc-secondary);
}
.tc-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================================================== 
   Travelcare Standalone Page Components
   ========================================================================== */
.tc-page-wrapper * {
    box-sizing: border-box;
}

.tc-page-wrapper a {
    transition: all 0.25s ease;
}

.tc-page-wrapper img {
    max-width: 100%;
    height: auto;
}

.tc-text-center {
    text-align: center;
}

.tc-eyebrow {
    color: var(--tc-accent-tc);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.tc-eyebrow-light {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--tc-white);
    padding: 8px 16px;
}

.tc-hero-title {
    color: var(--tc-white);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 980px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tc-hero-lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.65;
    max-width: 780px;
}

.tc-hero-actions,
.tc-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.tc-badge-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.tc-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--tc-white);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    padding: 9px 16px;
}

.tc-section-heading {
    margin: 0 auto 52px;
    max-width: 850px;
    text-align: center;
}

.tc-section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    margin-bottom: 16px;
}

.tc-section-heading p {
    color: #666;
    font-size: 18px;
    margin: 0 auto;
}

.tc-grid-2,
.tc-grid-3,
.tc-grid-4 {
    display: grid;
    gap: 28px;
}

.tc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-card {
    background: var(--tc-white);
    border: 1px solid rgba(26, 42, 68, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(26, 42, 68, 0.08);
    overflow: hidden;
    padding: 32px;
}

.tc-card:hover {
    box-shadow: 0 22px 55px rgba(26, 42, 68, 0.14);
    transform: translateY(-4px);
}

.tc-card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.tc-card p {
    color: #666;
    margin-bottom: 0;
}

.tc-card-media {
    background-position: center;
    background-size: cover;
    min-height: 260px;
    position: relative;
}

.tc-card-media::after {
    background: linear-gradient(to top, rgba(26, 42, 68, 0.88), rgba(26, 42, 68, 0.08));
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.tc-card-media-content {
    bottom: 0;
    color: var(--tc-white);
    left: 0;
    padding: 26px;
    position: absolute;
    right: 0;
    z-index: 2;
}

.tc-card-media-content h3,
.tc-card-media-content p {
    color: var(--tc-white);
}

.tc-icon-box {
    align-items: center;
    background: rgba(54, 73, 154, 0.1);
    border-radius: 18px;
    color: var(--tc-accent-intek);
    display: inline-flex;
    height: 64px;
    justify-content: center;
    margin-bottom: 22px;
    width: 64px;
}

.tc-icon-box-red {
    background: rgba(235, 31, 39, 0.1);
    color: var(--tc-accent-tc);
}

.tc-split {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tc-split.tc-split-start {
    align-items: start;
}

.tc-image-panel {
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(26, 42, 68, 0.16);
    min-height: 430px;
    overflow: hidden;
    position: relative;
}

.tc-image-panel div {
    background-position: center;
    background-size: cover;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.tc-check-list,
.tc-arrow-list,
.tc-simple-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.tc-check-list li,
.tc-arrow-list li,
.tc-simple-list li {
    color: #555;
    line-height: 1.65;
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}

.tc-check-list li::before {
    color: var(--tc-accent-intek);
    content: '✓';
    font-weight: 700;
    left: 0;
    position: absolute;
    top: 0;
}

.tc-arrow-list li::before {
    color: var(--tc-accent-tc);
    content: '→';
    font-weight: 700;
    left: 0;
    position: absolute;
    top: 0;
}

.tc-simple-list li::before {
    background: var(--tc-accent-tc);
    border-radius: 50%;
    content: '';
    height: 8px;
    left: 4px;
    position: absolute;
    top: 10px;
    width: 8px;
}

.tc-stat-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: var(--tc-white);
    padding: 30px 20px;
    text-align: center;
}

.tc-stat strong {
    color: var(--tc-accent-tc);
    display: block;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1;
    margin-bottom: 10px;
}

.tc-stat span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tc-step-list {
    counter-reset: tc-steps;
    display: grid;
    gap: 24px;
}

.tc-step {
    background: var(--tc-white);
    border-left: 5px solid var(--tc-accent-tc);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 42, 68, 0.07);
    counter-increment: tc-steps;
    padding: 28px 28px 28px 86px;
    position: relative;
}

.tc-step::before {
    align-items: center;
    background: var(--tc-primary);
    border-radius: 50%;
    color: var(--tc-white);
    content: counter(tc-steps);
    display: flex;
    font-size: 20px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    left: 28px;
    position: absolute;
    top: 30px;
    width: 42px;
}

.tc-step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.tc-step p {
    color: #666;
    margin: 0;
}

.tc-table-wrap {
    background: var(--tc-white);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(26, 42, 68, 0.08);
    overflow-x: auto;
}

.tc-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.tc-table th {
    background: var(--tc-primary);
    color: var(--tc-white);
    font-weight: 700;
    padding: 18px;
    text-align: left;
}

.tc-table td {
    border-bottom: 1px solid #eee;
    color: #555;
    padding: 18px;
    vertical-align: top;
}

.tc-quote {
    background: linear-gradient(135deg, var(--tc-primary), #263a5d);
    border-radius: 22px;
    color: var(--tc-white);
    padding: 44px;
}

.tc-quote p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tc-quote strong {
    color: var(--tc-white);
}

.tc-faq-list {
    display: grid;
    gap: 14px;
    margin: 0 auto;
    max-width: 900px;
}

.tc-faq-list details {
    background: var(--tc-white);
    border: 1px solid rgba(26, 42, 68, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(26, 42, 68, 0.06);
    padding: 22px 26px;
}

.tc-faq-list summary {
    color: var(--tc-primary);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    list-style: none;
}

.tc-faq-list summary::-webkit-details-marker {
    display: none;
}

.tc-faq-list p {
    color: #666;
    line-height: 1.75;
    margin: 14px 0 0;
}

.tc-cta-panel {
    background: linear-gradient(135deg, var(--tc-primary), #243858);
    border-radius: 24px;
    box-shadow: 0 28px 75px rgba(26, 42, 68, 0.2);
    color: var(--tc-white);
    overflow: hidden;
    padding: 56px;
    position: relative;
}

.tc-cta-panel h2,
.tc-cta-panel h3,
.tc-cta-panel p {
    color: var(--tc-white);
}

.tc-cta-panel p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.tc-form-card {
    background: var(--tc-white);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(26, 42, 68, 0.1);
    color: var(--tc-text);
    padding: 38px;
}

.tc-form-card h1,
.tc-form-card h2,
.tc-form-card h3,
.tc-form-card h4,
.tc-form-card h5,
.tc-form-card h6 {
    color: var(--tc-primary) !important;
}

.tc-form-card p {
    color: #666 !important;
}

.tc-mini-label {
    color: var(--tc-accent-intek);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tc-route-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.tc-route-pill {
    background: var(--tc-secondary);
    border: 1px solid rgba(26, 42, 68, 0.08);
    border-radius: 999px;
    color: var(--tc-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 14px;
}

.tc-dark-section {
    background: var(--tc-primary);
    color: var(--tc-white);
}

.tc-dark-section h2,
.tc-dark-section h3,
.tc-dark-section p {
    color: var(--tc-white);
}

.tc-dark-section p {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 980px) {
    .tc-grid-2,
    .tc-grid-3,
    .tc-grid-4,
    .tc-split,
    .tc-stat-grid {
        grid-template-columns: 1fr;
    }

    .tc-page-header {
        min-height: 620px;
        padding-top: 120px;
    }

    .tc-card,
    .tc-cta-panel,
    .tc-form-card,
    .tc-quote {
        padding: 28px;
    }

    .tc-image-panel {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .tc-section {
        padding: 60px 18px;
    }

    .tc-page-header h1,
    .tc-hero-title {
        font-size: 42px;
    }

    .tc-hero-actions,
    .tc-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-btn-primary,
    .tc-btn-secondary {
        text-align: center;
        width: 100%;
    }
}

/* ==========================================================================
   Modern Visual Refresh — bigger imagery, less icon clutter
   ========================================================================== */

/* Quietly retire the emoji "icon boxes" sitting inside cards. We keep them in
   the markup (used as a small accent), but render them as a slim brand stripe
   instead of a chunky pictogram so the page reads as image-and-copy first. */
.tc-page-wrapper .tc-card .tc-icon-box {
    background: transparent;
    border-radius: 0;
    color: transparent;
    display: block;
    font-size: 0;
    height: 4px;
    margin: 0 0 20px;
    overflow: hidden;
    position: relative;
    width: 56px;
}

.tc-page-wrapper .tc-card .tc-icon-box::before {
    background: var(--tc-accent-intek);
    border-radius: 999px;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.tc-page-wrapper .tc-card .tc-icon-box.tc-icon-box-red::before {
    background: var(--tc-accent-tc);
}

/* Bigger, richer media on cards so visuals lead the layout */
.tc-card-media {
    min-height: 320px;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.tc-card-media > * {
    transition: transform 0.8s ease;
}

.tc-card:hover .tc-card-media,
.tc-card-media:hover {
    transform: none;
}

a.tc-card:hover .tc-card-media,
.tc-card:hover > .tc-card-media {
    transform: scale(1.01);
}

.tc-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image panels — softer entrance, gentle Ken-Burns on hover */
.tc-image-panel {
    min-height: 480px;
}

.tc-image-panel > div {
    transition: transform 1.2s ease;
}

.tc-image-panel:hover > div {
    transform: scale(1.06);
}

/* Hero header — keep the existing background image; ensure overlay layering
   stays correct and give it a touch more breathing room. */
.tc-page-header {
    overflow: hidden;
}

/* Larger heroes by default for a more modern, image-led feel */
.tc-page-header {
    min-height: 80vh;
}

/* ==========================================================================
   Scroll Reveal — entry & exit animations
   ========================================================================== */
.tc-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.tc-reveal-in {
    opacity: 1;
    transform: translateY(0);
}

.tc-reveal-out {
    opacity: 0;
    transform: translateY(-24px);
}

/* Sections themselves animate as a whole block */
.tc-page-wrapper .tc-section.tc-reveal {
    transform: translateY(48px);
}

.tc-page-wrapper .tc-section.tc-reveal-in {
    transform: translateY(0);
}

/* Image panels slide in from the side for a more dynamic feel */
.tc-image-panel.tc-reveal {
    transform: translateY(0) translateX(40px);
}

.tc-image-panel.tc-reveal-in {
    transform: translateY(0) translateX(0);
}

.tc-image-panel.tc-reveal-out {
    transform: translateY(0) translateX(-24px);
}

/* Stats and steps cascade gracefully */
.tc-stat.tc-reveal,
.tc-step.tc-reveal {
    transform: translateY(28px) scale(0.97);
}

.tc-stat.tc-reveal-in,
.tc-step.tc-reveal-in {
    transform: translateY(0) scale(1);
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    .tc-reveal,
    .tc-reveal-in,
    .tc-reveal-out,
    .tc-image-panel > div {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 980px) {
    .tc-image-panel {
        min-height: 360px;
    }
    .tc-card-media {
        min-height: 240px;
    }
    .tc-page-header {
        min-height: 560px;
    }
}

