:root {
    --brand-red: #E62328;
    /* Approx red from logo */
    --brand-red-hover: #C51B20;
    --brand-dark: #0B132B;
    /* Dark Navy from reference */
    --brand-darker: #050A17;

    --text-main: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;

    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-gray-card: #F3F4F6;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Watermark & Image Protection for Product Images */
.premium-card-image, 
.split-image-container {
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
}

.premium-card-image::after, 
.split-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle repeating pattern watermark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Ctext x='50%25' y='50%25' font-family='sans-serif' font-weight='800' font-size='10' fill='rgba(255, 255, 255, 0.12)' text-anchor='middle' transform='rotate(-25, 75, 75)'%3ERECAMZA.COM%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: all; /* Intercepts right-clicks to protect the image source */
    z-index: 10;
}

.premium-card-image img,
.split-image-container img {
    pointer-events: none; /* Disables direct interaction with the source image */
}

/* Base setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

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

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

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

.flex {
    display: flex;
}

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

.gap-4 {
    gap: 1rem;
}

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

.text-brand {
    color: var(--brand-red);
}

.text-gray {
    color: var(--text-light);
}

.text-light {
    color: #D1D5DB;
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.bg-brand {
    background-color: var(--brand-red);
}

.bg-gray-50 {
    background-color: var(--bg-gray);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 2.25rem;
    border-radius: 9999px;
    /* Pill shape like reference */
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn-dark {
    background-color: var(--brand-dark);
    color: var(--bg-white);
}

.btn-dark:hover {
    background-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(230, 35, 40, 0.3);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline-dark:hover {
    background-color: var(--brand-dark);
    color: var(--bg-white);
}

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

.btn-brand:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(230, 35, 40, 0.4);
}

.btn-block {
    width: 100%;
}

/* Highlights & Badges */
.highlight {
    background-color: var(--brand-red);
    color: var(--bg-white);
    padding: 0 0.75rem;
    border-radius: 4px;
    display: inline-block;
    transform: skew(-5deg);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-brand {
    background-color: rgba(230, 35, 40, 0.1);
    color: var(--brand-red);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tag-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.vehicle-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(230, 35, 40, 0.08);
    color: var(--brand-red);
    border: 1px solid rgba(230, 35, 40, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.4);
    /* Much more transparent */
    backdrop-filter: blur(20px);
    /* Stronger frosted glass effect */
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-red);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
    margin: 0;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.text-shadow-lg {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.text-shadow-md {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
}

.pre-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Hero Images */
.hero-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hero-img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
    transition: transform 0.7s ease;
}

.hero-img-card:hover img {
    transform: scale(1.05);
}

.hero-img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--brand-dark);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Authority Bar */
.authority-bar {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.authority-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.authority-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-gray-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    flex-shrink: 0;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
}

.authority-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Split Section */
.split-section {
    padding: 8rem 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.feature-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2px;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
}

.rounded-image {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    display: block;
}

.shadow-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Themes */
.theme-dark {
    background-color: var(--brand-dark);
    color: var(--text-light);
    padding: 8rem 0;
}

.theme-dark .section-title {
    color: var(--bg-white);
}

.theme-darker {
    background-color: var(--brand-darker);
    color: var(--text-light);
    padding: 8rem 0;
}

/* Premium Interactive Slider (Solutions) */
.premium-solutions-section {
    padding: 8rem 0;
}

.premium-split-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 6rem;
    /* Huge spacing for premium look */
    /* Removed min-height to allow compact look */
}

.premium-split-card:last-child {
    margin-bottom: 0;
}

.premium-split-card.row-reverse {
    flex-direction: row-reverse;
}

.premium-card-content {
    flex: 1;
    /* Match reference 50/50 proportion */
    padding: 3rem;
    /* Reduced from 4rem for compactness */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sol-title {
    font-size: 2rem;
    /* Reduced to avoid excessive text wrapping */
    color: var(--text-main);
    margin-bottom: 0.75rem;
    transition: opacity 0.3s ease;
}

.sol-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 90%;
    transition: opacity 0.3s ease;
}

.thumbs-container {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.thumbs-container::-webkit-scrollbar {
    height: 4px;
}

.thumbs-container::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

.thumb-item {
    width: 64px;
    /* Reduced from 80px */
    height: 64px;
    /* Reduced from 80px */
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumb-item:hover {
    opacity: 0.8;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--brand-red);
    transform: scale(1.05);
}

.premium-card-image {
    flex: 1;
    /* Match reference 50/50 proportion */
    position: relative;
    min-height: 380px;
    /* Ensures image isn't too short */
}

.premium-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.floating-badge-dark {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    /* Green success dot */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Testimonials */
.testimonials-section .split-layout {
    gap: 6rem;
}

.quote-text {
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.5;
    color: #E5E7EB;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.border-subtle {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ / Pricing style */
.faq-section {
    padding: 8rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: left;
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top-color: var(--brand-red);
}

.faq-icon {
    margin-bottom: 1.5rem;
}

.faq-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.faq-card p {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(230, 35, 40, 0.15) 0%, transparent 60%);
    z-index: 1;
}

.bg-darker-card {
    background: var(--brand-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
    background: rgba(255, 255, 255, 0.1);
}

.form-group select option {
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
}

.flex-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-img {
    height: 56px;
}

.footer-links h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a,
.footer-links span {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-red);
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-images {
        flex-direction: column;
    }

    .flex-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .premium-split-card {
        flex-direction: column !important;
        margin-bottom: 4rem;
    }

    .premium-card-content {
        padding: 3rem 2rem;
    }

    .premium-card-image {
        min-height: 300px;
    }

    .location-grid {
        flex-direction: column;
    }

    .location-info .location-card-inner {
        padding: 2rem !important; /* Override inline padding */
    }

    .nav-logo img {
        height: 36px;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

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

    .hero {
        padding-top: 8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-images {
        grid-template-columns: 1fr;
    }

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

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

    .quote-text {
        font-size: 1.25rem;
    }

    .sol-title {
        font-size: 1.75rem;
    }

    .location-actions {
        flex-direction: column;
    }

    .location-actions .btn {
        width: 100%;
        white-space: normal !important;
        text-align: center;
    }
}