/* ================================================
   The Big Red Square - Main Styles
   BEA-inspired design with modern, bright aesthetics
   ================================================ */

/* ========== CSS Variables ========== */
:root {
    /* BEA-inspired Color Palette */
    --red-primary: #e74c3c;
    --red-dark: #c0392b;
    --blue-primary: #1e3a8a;
    --blue-dark: #0f172a;
    --blue-light: #3b82f6;
    
    /* Accent Colors */
    --yellow: #f39c12;
    --green: #27ae60;
    --orange: #e67e22;
    --purple: #9b59b6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Poppins', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 40px 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
}

.btn-secondary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-outline {
    background: transparent;
    color: var(--red-primary);
    border-color: var(--red-primary);
}

.btn-outline:hover {
    background: var(--red-primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--red-primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ========== Cookie Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ========== Navigation ========== */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.logo-square {
    width: 50px;
    height: 50px;
    background: var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.logo-text {
    color: var(--white);
    font-family: var(--font-headings);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-name {
    color: var(--gray-900);
    font-family: var(--font-headings);
}

.logo-image {
    height: 50px;  /* Adjust this to match your navbar height */
    width: auto;
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 4px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--red-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 8px;
}

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

.dropdown-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--gray-700);
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--red-primary);
}

.nav-cta {
    margin-left: 20px;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
    color: var(--white);
    padding: 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-cta .btn-outline:hover {
    background: var(--white);
    color: var(--blue-primary);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ========== Services Showcase ========== */
.services-showcase {
    padding: var(--section-padding);
    background: var(--white);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--red-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--red-primary), var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--gray-900);
}

.service-card > p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin: 20px 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.service-features i {
    color: var(--green);
    margin-top: 4px;
    flex-shrink: 0;
}

.service-outcomes {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-outcomes strong {
    color: var(--red-primary);
}

.service-links {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.service-links .btn {
    flex: 1;
    min-width: 140px;
}

/* ========== Additional Services ========== */
.additional-services {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.capability-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--red-primary);
    transition: var(--transition);
}

.capability-item:nth-child(2) {
    border-left-color: var(--blue-light);
}

.capability-item:nth-child(3) {
    border-left-color: var(--yellow);
}

.capability-item:nth-child(4) {
    border-left-color: var(--green);
}

.capability-item:nth-child(5) {
    border-left-color: var(--purple);
}

.capability-item:nth-child(6) {
    border-left-color: var(--orange);
}

.capability-item:nth-child(7) {
    border-left-color: var(--blue-primary);
}

.capability-item:nth-child(8) {
    border-left-color: var(--red-dark);
}

.capability-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.capability-item i {
    font-size: 2rem;
    color: var(--red-primary);
    margin-bottom: 15px;
}

.capability-item:nth-child(2) i {
    color: var(--blue-light);
}

.capability-item:nth-child(3) i {
    color: var(--yellow);
}

.capability-item:nth-child(4) i {
    color: var(--green);
}

.capability-item:nth-child(5) i {
    color: var(--purple);
}

.capability-item:nth-child(6) i {
    color: var(--orange);
}

.capability-item:nth-child(7) i {
    color: var(--blue-primary);
}

.capability-item:nth-child(8) i {
    color: var(--red-dark);
}

.capability-item h4 {
    margin-bottom: 10px;
    color: var(--gray-900);
}

.capability-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.centered-cta {
    text-align: center;
    margin-top: 20px;
}

/* ========== Why Choose Section ========== */
.why-choose {
    padding: var(--section-padding);
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

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

.why-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red-primary), var(--orange));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.why-item h3 {
    margin-bottom: 15px;
    color: var(--gray-900);
}

.why-item p {
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--orange) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========== Footer ========== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-description {
    color: var(--gray-300);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--red-primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--gray-300);
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray-300);
}

.footer-contact i {
    color: var(--red-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 25px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--red-primary);
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-showcase,
    .additional-services,
    .why-choose {
        padding: var(--section-padding-mobile);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        background: var(--gray-50);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

.founder-photos {
    float: right;
    width: 380px;
    height: 320px;
    position: relative;
    margin: 0 0 30px 40px;
}

.founder-photos img {
    position: absolute;
    width: 260px;
    height: auto;
    border: 8px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.founder-photos .photo-1 {
    top: 0;
    left: 0;
    transform: rotate(-4deg);
    z-index: 1;
}

.founder-photos .photo-2 {
    bottom: 0;
    right: 0;
    transform: rotate(3deg);
    z-index: 2;
}

/* Clear float after the section */
.founder-photos + p {
    overflow: hidden;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .founder-photos {
        float: none;
        margin: 30px auto;
        width: 100%;
        max-width: 380px;
    }
}

/* Add this to your CSS file */
.founder-photos img {
    cursor: pointer;
    transition: all 0.4s ease;
}

.founder-photos img.active {
    z-index: 10 !important;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}