@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #b71c1c;
    /* Deep Professional Red */
    --primary-dark: #7f0000;
    --secondary-color: #0d0d0d;
    /* Rich Black */
    --text-color: #374151;
    /* Dark Grey for text */
    --text-light: #6b7280;
    /* Medium Grey */
    --background-light: #f9fafb;
    /* Very light grey */
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --max-width: 1280px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s linear;
}

/* Rich Content Sections */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.content-split.reverse {
    direction: rtl;
    /* Simple way to swap, ensure text direction is handled or use order */
}

.content-split.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.content-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.content-text ul {
    list-style: none;
    margin-top: 20px;
}

.content-text ul li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
}

.content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.content-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* FAQ Section */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive updates */
@media (max-width: 900px) {
    .content-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-split.reverse {
        direction: ltr;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1rem;
    padding: 8px 0;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px 0;
    border: 1px solid var(--border-color);
    z-index: 1200;
}

.dropdown-parent:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
}

.dropdown-menu li a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding-left: 28px;
    /* Slight movement effect */
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    background-color: #000;
    /* Fallback */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.5));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(183, 28, 28, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(183, 28, 28, 0.4);
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Sections */
.section {
    padding: 100px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-link svg {
    margin-left: 8px;
    transition: transform 0.2s;
}

.feature-link:hover svg {
    transform: translateX(5px);
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #e5e5e5;
    padding: 80px 20px 30px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-col p {
    color: #9ca3af;
    margin-bottom: 16px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #262626;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        height: 70px;
    }

    .logo img {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        height: 50px;
    }

    .logo img {
        height: 35px;
    }

    .hamburger {
        display: flex;
        /* Show hamburger */
        margin-left: auto;
        /* Force right alignment just in case */
    }

    /* Ensure Nav container doesn't block spacing */
    .nav-container nav {
        display: contents;
        /* Allows hamburger to sit properly in flex container if structure allows, or just use absolute positioning for menu */
    }

    /* Re-structuring Mobile Menu */
    .nav-links {
        position: fixed;
        background: var(--white);
        top: 50px;
        /* Match header height */
        left: 0;
        width: 100%;
        height: 0;
        overflow-y: auto;
        /* Allow scrolling if menu is long */
        overflow-x: hidden;
        flex-direction: column;
        align-items: flex-start;
        /* Left align items */
        gap: 0;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        padding: 0;
    }

    .nav-links.active {
        height: calc(100vh - 100px);
        /* Full height minus header */
        padding-bottom: 20px;
        display: flex;
    }

    .nav-links>li {
        width: 100%;
        text-align: left;
        /* Left align text */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Separators */
    }

    .nav-links>li>a {
        display: block;
        padding: 18px 25px;
        /* Bigger touch targets */
        width: 100%;
        font-size: 1.1rem;
        color: var(--secondary-color);
    }

    .nav-links>li>a:hover {
        background-color: var(--background-light);
        color: var(--primary-color);
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f8f8f8;
        /* Distinct background color */
        display: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: 0;
        /* Reset desktop min-width */
        padding: 5px 0;
    }

    /* Keep dropdown visible if parent is active/hovered - simplifying for mobile tap */
    .dropdown-parent:hover .dropdown-menu,
    .dropdown-parent .dropdown-menu.collaspe-open {
        display: block !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Better indentation for sub-items */
    .dropdown-parent .dropdown-menu li a {
        padding: 14px 25px 14px 45px;
        /* Indent sub-links */
        text-align: left;
        font-size: 0.95rem;
        color: var(--text-light);
    }

    .dropdown-parent:hover>a {
        color: var(--primary-color);
        /* Highlight parent when open */
    }

    /* Fix arrow alignment if present, or just leave text */

    /* Hero Adjustments */
    .hero-slider {
        height: 450px;
        /* Bit taller */
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Improve button visibility on mobile */
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .slider-prev,
    .slider-next {
        padding: 0;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .section {
        padding: 60px 20px;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}