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

:root {
    --primary-navy: #1a365d;
    --secondary-navy: #2d4a68;
    --accent-gold: #c8a96e;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-cream: #faf9f7;
    --border-light: #e2e8f0;
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Header & Navigation - Optimized with fixed clip-path */
.header {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: none;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    will-change: transform, backdrop-filter;
}

.header::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 255, 255, 0.6), 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.2), 
        rgba(26, 54, 93, 0.3), 
        rgba(26, 54, 93, 0.7), 
        rgba(26, 54, 93, 0.95)
    );
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    pointer-events: none;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.6);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    will-change: backdrop-filter;
}

.header.scrolled {
    background: rgba(26, 54, 93, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}

.header.scrolled::before {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1), 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.5), 
        rgba(26, 54, 93, 0.4), 
        rgba(26, 54, 93, 0.7), 
        rgba(26, 54, 93, 0.9), 
        rgba(26, 54, 93, 0.98)
    );
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}

.header::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at center top, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.4) 40%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}

/* Left Navigation */
.nav-left {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: absolute;
    left: 20px;
}

/* Center Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(200, 169, 110, 0.4);
    animation: logoLineGlow 3s ease-in-out infinite;
}

@keyframes logoLineGlow {
    0%, 100% {
        width: 80px;
        opacity: 0.8;
        box-shadow: 0 2px 8px rgba(200, 169, 110, 0.4);
    }
    50% {
        width: 100px;
        opacity: 1;
        box-shadow: 0 4px 20px rgba(200, 169, 110, 0.8);
    }
}

.logo-image {
    width: 132px;
    height: 132px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Right Navigation */
.nav-right {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    position: absolute;
    right: 20px;
}

/* Navigation Links */
.nav-left a,
.nav-right a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--accent-gold);
}

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

.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

/* CTA Button */
.cta-button {
    background: var(--accent-gold) !important;
    color: var(--primary-navy) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: white !important;
    color: var(--primary-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button::after {
    display: none;
}

/* Phone Number */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-phone i {
    color: var(--accent-gold);
    font-size: 1rem;
}

/* Mobile Menu Toggle - Fixed visibility */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Section with Moving Background */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.8)), 
                url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQwMCIgaGVpZ2h0PSI4MDAiIHZpZXdCb3g9IjAgMCAxNDAwIDgwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE0MDAiIGhlaWdodD0iODAwIiBmaWxsPSIjMWEzNjVkIi8+CjxwYXRoIGQ9Ik0wIDQwMEwxNDAwIDUwMFY4MDBIMFY0MDBaIiBmaWxsPSIjMmQ0YTY4IiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8Y2lyY2xlIGN4PSIzMDAiIGN5PSIyMDAiIHI9IjEwMCIgZmlsbD0iIzJkNGE2OCIgZmlsbC1vcGFjaXR5PSIwLjEiLz4KPGNpcmNsZSBjeD0iMTAwMCIgY3k9IjMwMCIgcj0iMTUwIiBmaWxsPSIjMmQ0YTY4IiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8Y2lyY2xlIGN4PSIxMDAiIGN5PSI2MDAiIHI9IjgwIiBmaWxsPSIjMmQ0YTY4IiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
    padding: 180px 0 120px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, 
        rgba(200, 169, 110, 0.05) 0%, 
        transparent 50%, 
        rgba(26, 54, 93, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(26, 54, 93, 0.9), 
        rgba(26, 54, 93, 0.8), 
        rgba(26, 54, 93, 0.6), 
        rgba(26, 54, 93, 0.4), 
        rgba(26, 54, 93, 0.2), 
        rgba(26, 54, 93, 0.1), 
        rgba(26, 54, 93, 0.05), 
        transparent
    );
    backdrop-filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 50px rgba(26, 54, 93, 0.3);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Enhanced Professional Typography */
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 600;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    position: relative;
}

.hero-text .highlight {
    color: var(--accent-gold);
    font-style: italic;
    position: relative;
    display: inline-block;
}

/* Remove the animated underline from the highlight text */

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Enhanced Button Styles */
.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 20px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: white;
    color: var(--primary-navy);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 20px 40px;
    border: 3px solid white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--primary-navy);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: white;
}

/* Clean and simple design - no moving shapes */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
}

/* Enhanced Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(200, 169, 110, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    font-size: 1.8rem;
    animation: bounce 2.5s infinite;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator:hover {
    color: white;
    transform: translateX(-50%) scale(1.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* Performance optimizations for moving shapes */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none;
    }
    
    .hero-text .highlight::after {
        animation: none;
        transform: scaleX(1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .shape {
        background: rgba(200, 169, 110, 0.3);
    }
    
    .hero-text .highlight::after {
        background: var(--accent-gold);
        height: 3px;
    }
}

/* Remove hero-image and hero-visual sections */
.hero-image,
.hero-visual {
    display: none;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, 
        rgba(26, 54, 93, 0.3), 
        rgba(26, 54, 93, 0.2), 
        rgba(26, 54, 93, 0.1), 
        rgba(26, 54, 93, 0.05), 
        transparent
    );
    backdrop-filter: blur(20px);
    pointer-events: none;
    box-shadow: 0 0 30px rgba(26, 54, 93, 0.2);
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

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

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

.about-features {
    display: grid;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.feature-content h4 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-navy));
}

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

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

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

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-light);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Team Section */
.team {
    padding: 120px 0;
    background: var(--bg-white);
}

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

.team-member {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.member-header {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    padding: 2.5rem;
    text-align: center;
}

.member-photo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent-gold);
}

.member-photo i {
    font-size: 2.5rem;
    color: white;
}

.member-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-title {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-content {
    padding: 2.5rem;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.member-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.specialty-tag {
    background: var(--bg-cream);
    color: var(--primary-navy);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

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

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-item-content h4 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Phone and Email Link Styling */
.phone-link,
.email-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.phone-link:hover,
.email-link:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.phone-link:active,
.email-link:active {
    color: var(--secondary-navy);
}

/* Footer link styling */
.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: var(--bg-white);
}

/* Cross-browser select field styling */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Ensure consistent styling across all browsers */
.form-group select::-ms-expand {
    display: none;
}

.form-group select::-webkit-select-placeholder {
    color: var(--text-light);
}

.form-group select:invalid {
    color: var(--text-light);
}

.form-group select:valid {
    color: var(--text-primary);
}

/* iOS/Safari specific select styling */
@supports (-webkit-touch-callout: none) {
    .form-group select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        -webkit-appearance: none;
        border-radius: 4px;
    }
}

/* Firefox specific select styling */
@-moz-document url-prefix() {
    .form-group select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        -moz-appearance: none;
    }
}

/* Select field focus and hover states */
.form-group select:hover {
    border-color: var(--accent-gold);
    background-color: var(--bg-light);
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

/* Select option styling */
.form-group select option {
    padding: 12px 16px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

/* Textarea styling */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mobile-specific select optimizations */
@media (max-width: 768px) {
    .form-group select {
        padding: 14px 16px;
        padding-right: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly height */
    }
    
    .form-group select option {
        padding: 14px 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-group select {
        padding: 16px 16px;
        padding-right: 48px;
        min-height: 52px;
    }
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-contact i {
    color: var(--accent-gold);
    width: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--secondary-navy);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
}

/* Mobile Navigation - Fixed positioning and visibility */
.mobile-nav {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    background: rgba(26, 54, 93, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    z-index: 999;
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

.mobile-nav .cta-button {
    background: var(--accent-gold) !important;
    color: var(--primary-navy) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav .cta-button:hover {
    background: white !important;
    color: var(--primary-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design - Fixed mobile navigation */
@media (max-width: 1024px) {
    .nav-left,
    .nav-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .logo {
        margin: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
        padding: 0 25px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nav-container {
        padding: 15px 25px;
    }
    
    .nav-left, .nav-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 140px 0 80px;
        min-height: 90vh;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Ensure logo and gold line are visible on mobile */
    .logo {
        margin: 0;
        z-index: 1002;
    }
    
    .logo::after {
        bottom: -12px;
        width: 70px;
        height: 2.5px;
    }
    
    .logo-image {
        width: 110px;
        height: 110px;
    }
    
    .header {
        clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
    }
    
    .header::before {
        clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
    }
    
    .nav-container {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

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

    .btn-primary,
    .btn-secondary {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

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

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}



/* Performance optimizations for interactive elements */
.btn-primary,
.btn-secondary,
.service-card,
.team-member {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimized hover effects */
@media (hover: hover) {
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-2px) translateZ(0);
        box-shadow: var(--shadow-large);
    }
    
    .service-card:hover,
    .team-member:hover {
        transform: translateY(-5px) translateZ(0);
        box-shadow: var(--shadow-large);
    }
}

/* Lazy loading styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy.loaded {
    opacity: 1;
}

/* Enhanced Mobile Menu Toggle */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 30px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
        padding: 0 25px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nav-container {
        padding: 15px 25px;
    }
    
    .nav-left, .nav-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 140px 0 80px;
        min-height: 90vh;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }
    
    .header::before {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .btn-primary, .btn-secondary {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .team-member {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    /* Mobile logo and navigation optimizations */
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .logo::after {
        bottom: -10px;
        width: 60px;
        height: 2px;
    }
    
    .mobile-menu-toggle {
        right: 15px;
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }
    
    .mobile-nav {
        top: 110px;
        padding: 1.5rem;
    }
    
    .header {
        clip-path: polygon(0 0, 100% 0, 100% 94%, 50% 100%, 0 94%);
    }
    
    .header::before {
        clip-path: polygon(0 0, 100% 0, 100% 94%, 50% 100%, 0 94%);
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .service-card:hover,
    .team-member:hover {
        transform: none;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-left a:hover,
    .nav-right a:hover {
        color: var(--accent-gold);
    }
}

/* Animations - Ultra-fast for services section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity, transform;
}

/* Prevent flash by setting initial states - ultra-fast transitions */
.service-card,
.team-member,
.feature-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.service-card.fade-in,
.team-member.fade-in,
.feature-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile-specific phone link optimizations */
@media (max-width: 768px) {
    .phone-link,
    .email-link {
        padding: 4px 0;
        display: inline-block;
        min-height: 24px;
        min-width: 44px; /* Touch-friendly minimum size */
    }
    
    .contact-item-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .contact-item-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .phone-link,
    .email-link {
        padding: 6px 0;
        min-height: 28px;
        min-width: 48px;
    }
    
    .contact-item-content p {
        font-size: 0.9rem;
    }
}

/* Header Phone Number Styling */
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-phone i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.header-phone-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.header-phone-link:hover {
    color: var(--accent-gold);
}

.header-phone-link:active {
    color: var(--accent-gold);
}

/* Mobile navigation phone styling */
.mobile-nav .header-phone {
    justify-content: center;
    padding: 10px 0;
}

.mobile-nav .header-phone-link {
    color: white;
    font-weight: 500;
}

.mobile-nav .header-phone-link:hover {
    color: var(--accent-gold);
}
