/* ==========================================================================
   Sobral Auto Center - Stylesheet
   Palette: White, Red, Black
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --primary-red: #e31b23;
    --primary-red-hover: #c41219;
    --primary-red-glow: rgba(227, 27, 35, 0.4);
    
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-dark-card: #141414;
    --bg-dark-card-hover: #1e1e1e;
    
    --bg-white: #ffffff;
    --bg-light: #f5f6f8;
    --bg-light-card: #ffffff;
    
    --text-white: #ffffff;
    --text-light-muted: #b0b3b8;
    --text-black: #141414;
    --text-dark-muted: #5e626a;
    
    --border-dark: #222222;
    --border-light: #e2e5ec;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout & Shadows */
    --container-width: 1240px;
    --header-height: 80px;
    --border-radius-sm: 12px;
    --border-radius-md: 24px;
    --border-radius-lg: 40px;
    --border-radius-pill: 100px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-red: 0 8px 30px rgba(227, 27, 35, 0.25);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

/* Multilingual Toggle Logic */
body.lang-pt .lang-en {
    display: none !important;
}
body.lang-en .lang-pt {
    display: none !important;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Reusable Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
}

.bg-light {
    background-color: var(--bg-light);
    color: var(--text-black);
}

.bg-black {
    background-color: var(--bg-black);
    color: var(--text-light-muted);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-black);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.text-white {
    color: var(--text-white) !important;
}

.text-red {
    color: var(--primary-red) !important;
}

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

.section-description {
    font-size: 18px;
    color: var(--text-dark-muted);
}

.bg-dark .section-description {
    color: var(--text-light-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-smooth);
    padding: 16px 32px;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-black);
    transform: translateY(-2px);
}

.bg-dark .btn-outline {
    border-color: var(--text-white);
}

.bg-light .btn-outline {
    border-color: var(--text-black);
    color: var(--text-black);
}

.bg-light .btn-outline:hover {
    background-color: var(--text-black);
    color: var(--text-white);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--border-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo-container:hover .logo-img {
    transform: scale(1.03);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    padding: 6px 12px;
    border-radius: 50px;
}

.lang-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-light-muted);
    padding: 2px 6px;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    color: var(--primary-red);
}

.lang-btn:hover {
    color: var(--text-white);
}

.lang-divider {
    color: var(--border-dark);
    margin: 0 4px;
    font-size: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 180px 0 160px 0;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('assets/images/hero_engine.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.88) 60%, rgba(10,10,10,1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: flex-end;
    width: 100%;
}

.hero-main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 780px;
}

.hero-side-callout {
    padding-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.hero-side-callout p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    max-width: 320px;
    border-left: 3px solid var(--primary-red);
    padding-left: 20px;
    opacity: 0.85;
}

/* Infinite Ticker Banner */
.ticker-banner {
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 16px 0;
    display: flex;
    white-space: nowrap;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.ticker-track {
    display: flex;
    gap: 40px;
    animation: marquee 35s linear infinite;
    min-width: 200%;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
}

.ticker-item i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.badge-experience {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(227, 27, 35, 0.15);
    border: 1px solid rgba(227, 27, 35, 0.4);
    color: var(--primary-red);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.05);
}

.badge-experience i {
    font-size: 14px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Floating Service Features Strip */
.features-strip-container {
    position: relative;
    z-index: 3;
    margin-top: 60px;
    margin-bottom: -180px; /* Offset overlapping stats */
}

.features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
}

.feature-item:not(:last-child) {
    border-right: 1px solid var(--border-dark);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-red);
}

.feature-text h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-light-muted);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-dark);
}

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

.stat-card {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:hover .stat-number {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light-muted);
    font-weight: 700;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(227, 27, 35, 0.05);
    border: 1px solid rgba(227, 27, 35, 0.1);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--primary-red);
    color: var(--text-white);
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-dark-muted);
}

.services-cta {
    margin-top: 60px;
}

.services-cta p {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    gap: 20px;
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(227, 27, 35, 0.15);
    border-radius: 50%;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.value-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.value-info p {
    font-size: 14px;
    color: var(--text-light-muted);
}

.about-image-wrapper {
    position: relative;
    padding-left: 20px;
}

.image-accent-border {
    position: absolute;
    top: -20px;
    left: 0;
    width: 80%;
    height: 100%;
    border: 3px solid var(--primary-red);
    z-index: 1;
    border-radius: var(--border-radius-md);
}

.about-img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 480px;
}

.experience-card {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 24px 32px;
    border-radius: var(--border-radius-md);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-red);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-slider {
    position: relative;
    height: 240px; /* Limit height to prevent jumpy layout */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(30px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.rating {
    color: #ffb400;
    font-size: 16px;
    margin-bottom: 24px;
}

.testimonial-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-black);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    font-size: 44px;
    color: var(--text-dark-muted);
}

.author-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-black);
}

.author-location {
    font-size: 13px;
    color: var(--text-dark-muted);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-light);
    color: var(--text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background-color: var(--primary-red);
    border-color: transparent;
    color: var(--text-white);
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--border-light);
    border-radius: 50%;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.dot.active {
    width: 24px;
    background-color: var(--primary-red);
    border-radius: 10px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: stretch;
}

.contact-form-wrapper {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 14px;
    color: var(--text-light-muted);
    margin-bottom: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    padding: 14px 18px;
    font-size: 15px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.form-control::placeholder {
    color: #495057;
}

.form-control:focus {
    border-color: var(--primary-red);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.15);
}

textarea.form-control {
    resize: none;
}

.form-feedback {
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.form-feedback.success {
    background-color: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.form-feedback.error {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.hidden {
    display: none;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(227, 27, 35, 0.15);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.detail-text h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 15px;
    color: var(--text-light-muted);
    line-height: 1.5;
}

.contact-link {
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--primary-red);
}

/* Interactive styled Map Box */
.map-container {
    flex-grow: 1;
    min-height: 220px;
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, #222 0%, #050505 100%);
}

.map-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: var(--text-white);
    gap: 12px;
}

.map-placeholder-icon {
    font-size: 40px;
    color: var(--primary-red);
    animation: pulse 2s infinite ease-in-out;
}

.map-placeholder span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-btn {
    margin-top: 8px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 10px rgba(227, 27, 35, 0.5); }
    100% { transform: scale(1); opacity: 0.8; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-dark);
}

.footer-top {
    padding: 80px 24px 60px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-light-muted);
    line-height: 1.6;
    max-width: 360px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    color: var(--text-light-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.social-links a:hover {
    background-color: var(--primary-red);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-white);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    font-size: 14px;
}

.footer-links a {
    color: var(--text-light-muted);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-links span {
    color: var(--text-light-muted);
    font-size: 14px;
}

.footer-bottom {
    padding: 30px 24px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-dark-muted);
}

.developer {
    color: var(--text-dark-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Hide by default */
    width: 44px;
    height: 44px;
    background-color: var(--primary-red);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-red);
    z-index: 99;
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    right: 30px;
}

.back-to-top:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-5px);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    
    .hero-main-content {
        align-items: center;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-side-callout {
        justify-content: center;
    }
    
    .hero-side-callout p {
        border-left: none;
        border-top: 2px solid var(--primary-red);
        padding-left: 0;
        padding-top: 15px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 46px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-info-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .header-actions .header-cta {
        display: none; /* Hide header button on small mobile screens */
    }
    
    /* Navigation Menu Toggle */
    .mobile-toggle {
        display: flex;
        z-index: 1100;
    }
    
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary-red);
    }
    
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary-red);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-black);
        border-left: 1px solid var(--border-dark);
        padding: 120px 40px 40px 40px;
        transition: var(--transition-smooth);
        z-index: 1050;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    /* Hero layout */
    .hero-section {
        padding: 140px 0 160px 0;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Features strip */
    .features-strip-container {
        margin-top: 40px;
        margin-bottom: -150px;
    }
    
    .features-strip {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .feature-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
        padding-bottom: 20px;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    /* Testimonial slider */
    .testimonials-container {
        padding: 40px 24px;
    }
    
    .testimonial-quote {
        font-size: 16px;
    }
    
    .testimonial-slider {
        height: 300px;
    }
    
    /* Contact Form card */
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-card {
        padding: 16px 24px;
        bottom: 20px;
        left: -10px;
    }
    
    .exp-number {
        font-size: 32px;
    }
}
