/* Apple-style Design System for Contact Page */

/* ========== CSS Variables ========== */
:root {
    --apple-black: #000000;
    --apple-white: #ffffff;
    --apple-gray-50: #f5f5f7;
    --apple-gray-100: #e8e8ed;
    --apple-gray-200: #d2d2d7;
    --apple-gray-400: #86868b;
    --apple-gray-600: #424245;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-gradient-start: #f5f5f7;
    --apple-gradient-end: #ffffff;
    --apple-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --apple-shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --apple-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.15);
    --apple-radius-sm: 12px;
    --apple-radius-md: 18px;
    --apple-radius-lg: 28px;
    --apple-radius-xl: 40px;
    --apple-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--apple-font);
    background-color: var(--apple-white);
    color: var(--apple-black);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Typography ========== */
.apple-hero-title {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 20px;
}

.apple-section-title {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.003em;
    color: var(--apple-black);
    text-align: center;
    margin-bottom: 16px;
}

.apple-subtitle {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: var(--apple-gray-400);
    text-align: center;
    margin-bottom: 60px;
}

.apple-body-text {
    font-size: 19px;
    line-height: 1.4211;
    font-weight: 400;
    letter-spacing: 0.012em;
    color: var(--apple-gray-600);
}

.apple-caption {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--apple-gray-400);
}

/* ========== Hero Section ========== */
.apple-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--apple-gray-50) 0%, var(--apple-white) 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.apple-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 113, 227, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 113, 227, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.apple-hero-content {
    max-width: 980px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ========== Contact Cards Grid ========== */
.apple-contact-section {
    padding: 100px 20px;
    background: var(--apple-white);
}

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

.apple-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

@media (max-width: 968px) {
    .apple-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .apple-hero-title {
        font-size: 48px;
    }
    
    .apple-section-title {
        font-size: 32px;
    }
    
    .apple-subtitle {
        font-size: 21px;
    }
}

/* ========== Contact Card ========== */
.apple-contact-card {
    background: var(--apple-white);
    border-radius: var(--apple-radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: var(--apple-transition);
    border: 1px solid var(--apple-gray-100);
    position: relative;
    overflow: hidden;
}

.apple-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--apple-blue) 0%, #5ac8fa 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--apple-shadow-lg);
    border-color: transparent;
}

.apple-contact-card:hover::before {
    transform: scaleX(1);
}

.apple-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--apple-gray-50) 0%, var(--apple-white) 100%);
    border-radius: var(--apple-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: var(--apple-transition);
}

.apple-contact-card:hover .apple-card-icon {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #5ac8fa 100%);
    color: white;
    transform: scale(1.05);
}

.apple-card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 12px;
    letter-spacing: -0.021em;
}

.apple-card-desc {
    font-size: 17px;
    color: var(--apple-gray-400);
    line-height: 1.4;
    margin-bottom: 24px;
}

.apple-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--apple-blue);
    color: white;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--apple-transition);
    border: none;
    cursor: pointer;
}

.apple-card-btn:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.apple-card-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.apple-card-btn:hover svg {
    transform: translateX(4px);
}

/* ========== Company Info Section ========== */
.apple-info-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--apple-white) 0%, var(--apple-gray-50) 100%);
}

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

@media (max-width: 968px) {
    .apple-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.apple-info-content {
    padding: 40px;
}

.apple-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--apple-gray-100);
}

.apple-info-item:last-child {
    border-bottom: none;
}

.apple-info-icon {
    width: 48px;
    height: 48px;
    background: var(--apple-white);
    border-radius: var(--apple-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--apple-shadow-sm);
}

.apple-info-text h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 4px;
}

.apple-info-text p {
    font-size: 15px;
    color: var(--apple-gray-400);
    line-height: 1.4;
}

/* ========== Map Section ========== */
.apple-map-section {
    padding: 0 20px 100px;
    background: var(--apple-gray-50);
}

.apple-map-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--apple-white);
    border-radius: var(--apple-radius-xl);
    overflow: hidden;
    box-shadow: var(--apple-shadow-md);
}

.apple-map-header {
    padding: 40px;
    text-align: center;
    background: var(--apple-white);
}

.apple-map-frame {
    width: 100%;
    height: 500px;
    border: none;
    filter: grayscale(20%) contrast(1.05);
}

/* ========== Footer ========== */
.apple-footer {
    background: var(--apple-gray-50);
    padding: 60px 20px 40px;
    border-top: 1px solid var(--apple-gray-100);
}

.apple-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.apple-footer-logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 20px;
}

.apple-footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.apple-footer-links a {
    font-size: 13px;
    color: var(--apple-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.apple-footer-copy {
    font-size: 12px;
    color: var(--apple-gray-400);
    line-height: 1.8;
}

.apple-footer-copy a {
    color: var(--apple-gray-400);
    text-decoration: none;
}

.apple-footer-copy a:hover {
    text-decoration: underline;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.apple-animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.apple-animate-fadeIn {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.apple-animate-scaleIn {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.apple-delay-1 { animation-delay: 0.1s; }
.apple-delay-2 { animation-delay: 0.2s; }
.apple-delay-3 { animation-delay: 0.3s; }
.apple-delay-4 { animation-delay: 0.4s; }

/* ========== Header Override ========== */
.apple-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.apple-header .h-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.apple-header .logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--apple-black) !important;
}

.apple-header .nav-bar a {
    font-size: 14px;
    color: var(--apple-gray-600) !important;
    transition: color 0.3s ease;
}

.apple-header .nav-bar a:hover {
    color: var(--apple-blue) !important;
}

/* ========== Utility Classes ========== */
.apple-text-center { text-align: center; }
.apple-text-left { text-align: left; }
.apple-text-right { text-align: right; }

.apple-mt-sm { margin-top: 20px; }
.apple-mt-md { margin-top: 40px; }
.apple-mt-lg { margin-top: 60px; }

.apple-mb-sm { margin-bottom: 20px; }
.apple-mb-md { margin-bottom: 40px; }
.apple-mb-lg { margin-bottom: 60px; }

/* ========== Scroll Reveal ========== */
.apple-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-reveal.apple-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Fix for map container ========== */
.apple-map-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.apple-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== Fix for info section alignment ========== */
.apple-info-section .apple-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Fix for responsive issues ========== */
@media (max-width: 768px) {
    .apple-hero {
        min-height: 50vh;
        padding: 100px 20px 60px;
    }
    
    .apple-hero-title {
        font-size: 40px;
    }
    
    .apple-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .apple-contact-section {
        padding: 60px 20px;
    }
    
    .apple-info-section {
        padding: 60px 20px;
    }
    
    .apple-info-content {
        padding: 20px;
    }
    
    .apple-map-container {
        min-height: 300px;
    }
    
    .apple-map-container > div {
        height: 300px !important;
    }
}

/* ========== Fix for button hover states ========== */
.apple-card-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.3);
}

/* ========== Fix for link transitions ========== */
a {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* ========== Fix for SVG icons ========== */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* ========== Fix for footer links ========== */
.apple-footer-links a:focus {
    outline: none;
    color: var(--apple-blue);
}

/* ========== Fix for contact cards on hover ========== */
.apple-contact-card {
    will-change: transform, box-shadow;
}

/* ========== Fix for info items ========== */
.apple-info-item {
    will-change: transform;
}

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

/* ========== Fix for iframe loading ========== */
iframe {
    background-color: var(--apple-gray-50);
}
