/* Optimized contact.css - Performance focused */

/* CSS Custom Properties */
:root {
    --primary-color: #0078D4;
    --primary-dark: #106ebe;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #ccc;
    --bg-light: #f8f9fa;
    --white: #fff;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 120, 212, 0.1);
    --border-radius: 20px;
    --border-radius-small: 15px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', serif;
    --container-max-width: 1200px;
    --container-padding: 20px;
}

/* Reset and Base Styles - Optimized */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container utility */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Improved focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Styles - Optimized */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    will-change: transform;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-svg {
    transition: transform 0.3s ease;
    will-change: transform;
}

.logo-svg:hover {
    transform: scale(1.1);
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    font-family: var(--font-display);
}

.navigation {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 120, 212, 0.1);
}

/* Mobile Menu Button - Optimized */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    flex-direction: column;
    width: 30px;
    height: 25px;
    justify-content: space-around;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
    will-change: transform;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Optimized */
.hero-section {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Contact Info Section - Optimized */
.contact-info-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 60px;
    position: relative;
    font-family: var(--font-display);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    will-change: transform, border-color, background-color;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow-heavy);
}

.contact-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.contact-link:hover {
    background: rgba(0, 120, 212, 0.1);
    transform: translateY(-2px);
}

/* Phone number styling */
.phones {
    margin-bottom: 20px;
}

.phones1 {
    padding-top: 10px;
}

/* Gallery Section - Optimized */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.gallery-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    transition: var(--transition);
    will-change: transform;
}

.gallery-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 120, 212, 0.2);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 120, 212, 0.9));
    padding: 40px 30px;
    color: var(--white);
}

.overlay-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.overlay-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Map Section - Optimized */
.map-section {
    padding: 100px 0 0;
    background: var(--white);
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    margin: 60px auto;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 1400px;
}

.map-placeholder {
    height: 600px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info {
    background: var(--bg-light);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.map-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.map-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.detail-item strong {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.detail-item span {
    color: var(--text-light);
}

/* FAQ Section - Optimized */
.faq-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-small);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-heavy);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: rgba(0, 120, 212, 0.05);
}

.faq-question h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-display);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 120, 212, 0.1);
    will-change: transform;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Button Styles - Optimized */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
    background: none;
    position: relative;
    overflow: hidden;
    will-change: transform, background-color, color;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 20px;
    font-size: 14px;
    min-width: auto;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.3);
}

/* Footer - Optimized */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-display);
}
.footer-section1 h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-display);
    padding-left: 70px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .company-name {
    color: var(--white);
    font-family: var(--font-display);
}

.footer-section p {
    color: var(--text-lighter);
    line-height: 1.6;
    text-align: justify;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    padding-left: 70px;
}

.footer-links a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-lighter);
}

.contact-info a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: var(--text-lighter);
}

/* Animations - Optimized for performance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Card Animation */
.contact-card {
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

/* Performance optimizations */

/* Reduce motion for users who prefer it */
@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;
    }
}

/* GPU acceleration for frequently animated elements */
.logo-svg,
.btn,
.contact-card,
.gallery-image,
.faq-toggle {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Critical path optimization */
.hero-section {
    contain: layout style paint;
}

/* Lazy loading optimization for below-the-fold content */
.gallery-section,
.map-section,
.faq-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1024px) {
    .gallery-container {
        gap: 40px;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 15px 15px;
    }

    .navigation.active {
        display: flex;
    }

    .navigation .nav-link {
        color: var(--text-color);
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-image {
        min-height: 300px;
    }

    .btn {
        min-width: 200px;
    }

    .map-info {
        padding: 30px 25px;
    }

    .faq-question {
        padding: 20px 25px;
    }

    .faq-answer p {
        padding: 0 25px 20px;
    }

    .contact-info-section,
    .gallery-section,
    .map-section,
    .faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 300px;
        height: 40vh;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .gallery-image {
        min-height: 250px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }

    .map-placeholder {
        height: 300px;
    }

    .map-info {
        padding: 25px 20px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h4 {
        font-size: 1.1rem;
    }

    .faq-answer p {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-btn,
    .gallery-section {
        display: none;
    }
    
    .hero-section {
        margin-top: 0;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .contact-card,
    .faq-item {
        break-inside: avoid;
    }
}