/* =========================================
   1. RESET & VARIABLES (Brand Colors)
   ========================================= */
:root {
    /* Brand Palette */
    --burgundy: #6d0f28;      /* Primary Brand Color */
    --purple: #4a148c;        /* Clergy Purple (Accent) */
    --grey-dark: #333333;     /* Text */
    --grey-light: #f4f4f5;    /* Backgrounds */
    --white: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --nav-height: 80px;
}

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

body {
    font-family: var(--font-main);
    color: var(--grey-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html { overflow-x: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    height: var(--nav-height);
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--burgundy);
    letter-spacing: 0.5px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-links > li > a {
    font-weight: 600;
    color: var(--grey-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links > li > a:hover {
    color: var(--burgundy);
}

/* Dropdown Menu */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid var(--purple);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0.5rem 0;
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--grey-dark);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--grey-light);
    color: var(--purple);
}

/* Hamburger Menu Icon */
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    background-color: var(--grey-dark); transition: var(--transition);
}

/* =========================================
   3. GLOBAL BUTTON STYLES (Consolidated)
   ========================================= */
/* Base Button Class */
.btn, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    white-space: normal; /* Allows text wrap on small screens */
    max-width: 100%;
    font-size: 1rem;
    border: 2px solid transparent; /* Prepare for borders */
}

/* Primary Style (Standard) */
.btn-primary {
    background-color: var(--burgundy);
    color: var(--white) !important;
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background-color: var(--purple);
    border-color: var(--purple);
    transform: translateY(-2px);
}

/* Secondary Style (Outline - Standard Usage) */
.btn-secondary {
    background-color: transparent;
    color: var(--burgundy) !important;
    border-color: var(--burgundy);
}

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

/* =========================================
   4. HERO SECTION (Updated Buttons)
   ========================================= */
.hero {
    padding: 5rem 0 6rem; 
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

/* Background Images */
.hero-home { background-image: linear-gradient(rgba(109, 15, 40, 0.75), rgba(74, 20, 140, 0.75)), url('../assets/images/home-bg-v2.jpg'); }
.hero-agentic { background-image: linear-gradient(rgba(109, 15, 40, 0.75), rgba(74, 20, 140, 0.75)), url('../assets/images/agentic-bg.jpg'); }
.hero-audio { background-image: linear-gradient(rgba(109, 15, 40, 0.75), rgba(74, 20, 140, 0.75)), url('../assets/images/audio-bg.jpg'); }
.hero-contact { background-image: linear-gradient(rgba(109, 15, 40, 0.75), rgba(74, 20, 140, 0.75)), url('../assets/images/home-bg-v2.jpg'); }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #f3f4f6; 
}

/* HERO BUTTONS (New "Pill" Style) */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero .btn, 
.hero .btn-primary, 
.hero .btn-secondary {
    min-width: 250px;
    /* CHANGED: Transparent background with White Border (Pill Style) */
    background-color: transparent; 
    border: 2px solid var(--white);
    color: var(--white) !important;
    border-radius: 50px; /* Makes them pill-shaped */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero .btn:hover, 
.hero .btn-primary:hover, 
.hero .btn-secondary:hover {
    /* Hover: White Background, Burgundy Text */
    background-color: var(--white);
    color: var(--burgundy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* =========================================
   5. SECTIONS (Platforms & Services)
   ========================================= */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--burgundy);
}

/* --- PART A: PLATFORMS (Side-by-Side Image Cards) --- */
.products-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--white);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.platform-card:hover { transform: translateY(-5px); }

/* Platform Backgrounds */
.card-agentic { background-image: linear-gradient(rgba(109, 15, 40, 0.85), rgba(74, 20, 140, 0.85)), url('../assets/images/agentic-bg.jpg'); }
.card-audio { background-image: linear-gradient(rgba(109, 15, 40, 0.85), rgba(74, 20, 140, 0.85)), url('../assets/images/audio-bg.jpg'); }

.platform-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.platform-card p {
    font-size: 1.1rem;
    color: #f3f4f6;
    margin-bottom: 2rem;
    max-width: 350px;
    line-height: 1.5;
}

/* Small Pill Button for Cards */
.btn-small {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--white);
    color: var(--burgundy);
}

@media (max-width: 768px) {
    .platforms-grid { grid-template-columns: 1fr; }
    .platform-card { min-height: 300px; }
}

/* --- PART B: SERVICES (Restored Tiled View) --- */
.services-section {
    padding: 6rem 0;
    background-color: var(--grey-light); /* Light Grey Background for contrast */
}

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

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: var(--transition);
    height: 100%;
    text-align: left; /* Services usually look better left-aligned */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--purple);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--burgundy);
    font-weight: 700;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.text-link {
    font-weight: 600;
    color: var(--purple);
    font-size: 0.9rem;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* =========================================
   6. MISSION SECTION
   ========================================= */
.mission-section {
    padding: 6rem 0;
    background-color: var(--burgundy);
    color: var(--white);
}

.mission-section .section-title { color: var(--white); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

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

.feature-item p { opacity: 0.9; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 4rem 0 0;
}

.footer-content {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding-bottom: 3rem;
}

.footer-col h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-col a { display: block; margin-bottom: 0.5rem; transition: var(--transition); }
.footer-col a:hover { color: var(--purple); }

.bottom-bar {
    background-color: #000; text-align: center; padding: 1.5rem 0; font-size: 0.875rem;
}

/* =========================================
   8. MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {
    /* Container Padding */
    .container {
        padding: 0 1.25rem;
    }
    /* Add this inside the mobile media query */
    .hero {
        padding-top: 4rem; /* Even less space on mobile */
        padding-bottom: 4rem;
    }
    /* Mobile Nav Drawer */
    .hamburger { display: block; z-index: 2000; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 85%;
        max-width: 300px;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
    }

    .nav-links.active { transform: translateX(0); }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
        opacity: 1; 
        visibility: visible; 
        transform: none;
    }
    .dropdown:hover .dropdown-menu { display: block; }
    .nav-links li { width: 100%; margin-bottom: 1rem; }

    /* Mobile Hero Buttons (Stacked) */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero .btn, 
    .hero .btn-primary, 
    .hero .btn-secondary {
        width: 100%; /* Full width on mobile */
        display: block;
        margin: 0 auto; /* Center align */
    }

    .hero h1 { font-size: 2.5rem; }
}

/* =========================================
   9. VIDEO DEMO FRAME (For Product Pages)
   ========================================= */
.video-demo-frame {
    width: 280px;
    height: 580px;
    background-color: #000;
    border: 12px solid #333;
    border-radius: 30px;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-text {
    color: #555;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 400px) {
    .video-demo-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 9/16;
        border-width: 6px;
    }
}
/* =========================================
   10. SPLIT SECTIONS (Text + Video)
   ========================================= */
.split-section {
    padding: 6rem 0;
    border-bottom: 1px solid #eee;
}

.split-section:nth-child(even) {
    background-color: var(--grey-light); /* Alternating background color */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center; /* Vertically centers text with video */
}

.split-content h3 {
    font-size: 2rem;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

.split-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.split-content ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.split-content ul li::before {
    content: "•";
    color: var(--purple);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Reverse the order on desktop for variety */
.grid-2.reverse .split-content {
    order: 2;
}
.grid-2.reverse .split-media {
    order: 1;
}

/* Mobile Stack */
@media (max-width: 768px) {
    .grid-2, .grid-2.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Reset order on mobile so text always comes first */
    .grid-2.reverse .split-content { order: 0; }
    .grid-2.reverse .split-media { order: 1; }
}