/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors based on aimedadvisors.ae official design */
    --primary-color: #2E8B7A; /* Elegant teal - better contrast on white */
    --primary-dark: #236B5C;
    --header-color: #122523; /* Official Aimed Advisors header color */
    --secondary-color: #122523;
    --accent-color: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --background: #ffffff;
    --background-dark: #122523; /* Using official header color for dark sections */
    --gradient-primary: linear-gradient(135deg, #2E8B7A 0%, #236B5C 100%);
    --gradient-secondary: linear-gradient(135deg, #122523 0%, #1a3330 100%);
    --gradient-hero: linear-gradient(135deg, rgba(18, 37, 35, 0.05) 0%, rgba(18, 37, 35, 0.02) 100%);
    --shadow: 0 10px 30px rgba(18, 37, 35, 0.1);
    --shadow-hover: 0 15px 40px rgba(18, 37, 35, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

.btn-loading {
    display: none;
}

/* Toggle buttons removed - no longer needed */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-color);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(18, 37, 35, 0.1);
}

.navbar {
    padding: 1.25rem 0;
}

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

.logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Language switcher default (desktop) */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.language-option {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
}
.language-option .flag-icon { font-size: 1.125rem; line-height: 1; }
.language-option.active { border-color: var(--primary-color); }
.language-switcher--mobile { display: none; }

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    z-index: 2;
}

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

/* Removed hero title options - now using single title */

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-cta {
    margin-bottom: 2rem;
}

/* Removed CTA options and hero toggle - now using single CTA */

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 37, 35, 0.3) 0%, rgba(46, 139, 122, 0.2) 100%), 
                url('assets/img/The-Dubai-Marina-District.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(18, 37, 35, 0.2);
    overflow: hidden;
}

/* Section Styles */
section {
    padding: 80px 0;
    scroll-margin-top: 80px; /* Additional scroll offset for each section */
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--accent-color);
}

/* Removed about title options - now using single title */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--header-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--header-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.service-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-cta {
    color: var(--header-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-cta:hover {
    gap: 12px;
}

/* Center the last service card (Technology & Innovation Advisory) */
.service-card-centered {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

/* Why Us Section */
.why-us {
    background: var(--accent-color);
}

.why-us-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.why-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon i {
    font-size: 1.25rem;
    color: var(--text-light);
}

.why-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--text-light);
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details p {
    margin: 0;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center; /* Reverted from stretch to prevent height issues, and centered for better alignment */
    margin-bottom: 2rem;
}

.monogram-img {
    height: 120px; /* Increased from 60px for better visual balance */
    width: auto;
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 500;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.whatsapp-btn i {
    font-size: 1.25rem;
}

/* Message Modal */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.message-modal {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.message-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.message-icon.success {
    background: #27ae60;
    color: white;
}

.message-icon.error {
    background: #e74c3c;
    color: white;
}

.message-title {
    margin-bottom: 1rem;
}

.message-text {
    margin-bottom: 2rem;
}

/* Responsive Design */
/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--header-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links {
        width: 100%;
    }
    
    /* Hide in-menu switcher on mobile; show header variant instead */
    .nav-links .language-switcher { display: none; }
    .language-switcher--mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 10px;
    }
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: var(--header-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .logo-img {
        height: 50px;
        max-width: 150px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Ensure readable mobile nav items */
    .nav-links .nav-link {
        color: var(--text-light);
        font-size: 1.125rem;
    }
    .nav-links .nav-link:hover {
        color: var(--primary-color);
    }

    /* Larger, clearer language flags on mobile */
    .language-switcher--mobile .language-option {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 6px;
        padding: 6px;
        cursor: pointer;
    }
    .language-switcher--mobile .language-option.active { border-color: var(--primary-color); }
    .language-switcher--mobile .flag-icon { font-size: 1.5rem; line-height: 1; }

    /* Hero */
    .hero {
        padding-top: 140px; /* Extra ruimte boven hero content op mobiel */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-visual {
        height: 300px;
    }
    
    .hero-gradient-bg {
        width: 95%;
        height: 95%;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Reset the centered service card on mobile */
    .service-card-centered {
        grid-column: 1;
        max-width: 100%;
        margin: 0;
    }

    /* Why Us */
    .why-us-content {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .why-item {
        flex-direction: column;
        text-align: center;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* WhatsApp */
    .whatsapp-text {
        display: none;
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 140px; /* Nog meer ruimte op zeer kleine schermen */
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-form,
    .service-card,
    .why-item {
        padding: 1.25rem;
    }
}

/* Smooth scrolling with proper offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header + breathing room */
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fix iOS automatic phone number styling */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

/* Ensure phone numbers in contact details keep text color */
.contact-details a,
.contact-details a:visited,
.contact-details a:hover,
.contact-details a:active {
    color: inherit;
    text-decoration: none;
}

/* Ensure phone numbers in footer keep text color */
.footer-section a,
.footer-section a:visited,
.footer-section a:hover,
.footer-section a:active {
    color: inherit;
    text-decoration: none;
}

/* Override any iOS automatic phone link detection */
* {
    -webkit-text-size-adjust: none;
}

p, span, div {
    -webkit-touch-callout: inherit;
} 