/* ============================================================
   AE SOLUTIONS - Complete Final Stylesheet
   ============================================================ */

/* Root Colors */
:root {
    --gold: #D4AF37;
    --dark-teal: #1A5F7A;
    --light-beige: #F5F1E8;
    --dark-gray: #333333;
    --light-gray: #E0E0E0;
    --light-blue: #A8D5E5;
    --off-white: #F8F8F8;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-beige);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-teal);
}

/* Navigation */
.navbar {
    background-color: var(--light-beige);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--gold);
}

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: white;
    padding: 12px 24px;
}

.btn-primary:hover {
    background-color: #c99a2a;
    border-color: #c99a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--dark-teal);
    border-color: var(--dark-teal);
    color: white;
    padding: 12px 24px;
}

.btn-secondary:hover {
    background-color: #154b61;
    border-color: #154b61;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Hero Section - Final Mobile-First Version */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 76px;
    position: relative;
    padding: 20px 0;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 15px;
}

/* Mobile Hero Content */
.hero-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-mobile-content .hero-logo {
    margin-bottom: 1.5rem;
}

.hero-mobile-content .hero-logo img {
    max-width: 200px;
    height: auto;
}

.hero-mobile-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-teal);
}

.hero-mobile-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-teal);
    max-width: 500px;
}

.hero-mobile-content .btn-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.hero-mobile-content .btn {
    width: 100%;
}

/* Desktop Hero Content */
.hero-desktop-content {
    width: 100%;
}

.hero-desktop-content .row {
    align-items: center;
}

.hero-desktop-content .hero-content {
    text-align: left;
}

.hero-desktop-content .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-teal);
}

.hero-desktop-content .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-teal);
}

.hero-desktop-content .hero-content .btn-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.hero-desktop-content .logo-container {
    display: flex;
    justify-content: center;
}

.hero-desktop-content .logo-container img {
    max-width: 400px;
    height: auto;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-title {
    color: var(--dark-teal);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

/* Pillars List */
.pillars-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pillars-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.pillars-list li:before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Quote Banner */
.quote-banner {
    background-color: var(--dark-teal);
    color: white;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 8px;
    position: relative;
}

.quote-banner::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    font-family: 'Playfair Display', serif;
}

.quote-banner blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

/* Consultant Cards */
.consultant-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.consultant-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: -60px auto 1rem;
    object-fit: cover;
    display: block;
    border: 4px solid white;
}

.consultant-info {
    padding: 1.5rem;
    text-align: center;
}

.consultant-info h3 {
    color: var(--dark-teal);
    margin-bottom: 0.5rem;
}

.consultant-info p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* CAB Services */
.cab-service {
    background-color: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.cab-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cab-service h4 {
    color: var(--dark-teal);
    margin-bottom: 0.75rem;
}

/* Events */
.event-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.event-img {
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Lead Magnet */
.lead-magnet {
    background: linear-gradient(135deg, var(--dark-teal), var(--gold));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
    border-radius: 8px;
}

.lead-magnet h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lead-magnet p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-control {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 100%;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.form-select {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-teal);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

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

.social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--gold);
}

/* ============================================================
   RESPONSIVE DESIGN - Final Version with Centered Mobile Hero
   ============================================================ */

/* Tablet devices (992px and down) */
@media (max-width: 991px) {
    /* Navigation */
    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* Mobile devices (767px and down) */
@media (max-width: 767px) {
    /* Hero Section - Mobile Specific with Centered Content */
    .hero-desktop-content {
        display: none !important;
    }

    .hero-mobile-content {
        display: flex !important;
        min-height: calc(100vh - 100px);
        justify-content: center;
        align-items: center;
    }

    .hero .container {
        height: calc(100vh - 100px);
    }

    .hero-mobile-content h1 {
        font-size: 1.6rem;
    }

    .hero-mobile-content p {
        font-size: 0.95rem;
    }

    .hero-mobile-content .hero-logo img {
        max-width: 180px;
    }

    .hero-mobile-content .btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }
}

/* Extra small devices (576px and down) */
@media (max-width: 575px) {
    .hero-mobile-content h1 {
        font-size: 1.4rem;
    }

    .hero-mobile-content .hero-logo img {
        max-width: 160px;
    }

    .hero-mobile-content .btn {
        max-width: 250px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Very small devices (375px and down) */
@media (max-width: 375px) {
    .hero-mobile-content h1 {
        font-size: 1.3rem;
    }

    .hero-mobile-content .btn {
        max-width: 230px;
    }

    .hero {
        min-height: calc(100vh - 80px);
    }

    .hero .container {
        height: calc(100vh - 80px);
    }
}