/* ========================================
   HEADER — Coast Air Center
   header.css — tek kaynak, asla başka yerde header CSS yazma
   ======================================== */

/* ─── Fixed Header Shell ─── */
.ac-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: saturate(120%) blur(24px);
    backdrop-filter: saturate(120%) blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ac-header-spacer { height: 88px; }

/* ─── Top Bar ─── */
.ac-topbar { border-bottom: 1px solid rgba(0,0,0,0.07); }

.ac-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.55);
}
.ac-topbar-left strong {
    color: #0071E3;
    font-weight: 700;
    letter-spacing: .22em;
}
.ac-topbar-left::before {
    display: none;
}
.ac-topbar-sep-dot {
    color: rgba(0,0,0,0.2);
    font-size: 9px;
}

/* ─── CC Aviation Network Button (topbar) ─── */
.ac-topbar-network-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 11px 3px 10px;
    border: 1px solid rgba(0,113,227,0.35);
    border-radius: 100px;
    color: #0071E3;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(0,113,227,0.06);
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.ac-topbar-network-btn i {
    font-size: 8px;
    opacity: .75;
    transition: transform .2s;
}
.ac-topbar-network-btn:hover {
    background: rgba(0,113,227,0.12);
    border-color: #2997FF;
    color: #0064cc;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,113,227,0.18);
}
.ac-topbar-network-btn:hover i {
    transform: translate(1px, -1px);
}

.ac-topbar-location,
.ac-topbar-nationwide {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ac-topbar-location i {
    font-size: 9px;
    color: #2997FF;
}
.ac-topbar-nationwide {
    color: #0071E3;
    font-weight: 600;
    letter-spacing: .15em;
}
.ac-topbar-nationwide i {
    font-size: 9px;
    color: #0071E3;
    animation: globe-spin 8s linear infinite;
}
@keyframes globe-spin {
    0%   { transform: rotate(0deg);   }
    100% { transform: rotate(360deg); }
}

.ac-topbar-right { display: flex; align-items: center; gap: 20px; }

.ac-topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px 6px 13px;
    background: linear-gradient(135deg, #2997FF 0%, #0071E3 100%);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 2px 12px rgba(0,113,227,0.35), 0 1px 0 rgba(255,255,255,0.25) inset;
    transition: box-shadow .2s, transform .2s, background .2s;
}
.ac-topbar-phone:hover {
    background: linear-gradient(135deg, #4AABFF 0%, #0080FF 100%);
    box-shadow: 0 4px 18px rgba(0,113,227,0.5), 0 1px 0 rgba(255,255,255,0.3) inset;
    transform: translateY(-1px);
    color: #fff;
}
.ac-topbar-phone i { font-size: 10px; color: rgba(255,255,255,0.85); }

.ac-topbar-sep { width: 1px; height: 16px; background: rgba(0,0,0,0.1); }

.ac-topbar-social { display: flex; align-items: center; gap: 12px; }
.ac-topbar-social a { color: rgba(0,0,0,0.35); text-decoration: none; font-size: 11px; transition: color .2s; }
.ac-topbar-social a:hover { color: #0071E3; }

/* ─── Nav Bar ─── */
.ac-nav { height: 52px; display: flex; align-items: center; width: 100%; }

.ac-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%; height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.ac-logo-link { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ac-logo-img  { height: 40px; width: auto; display: block; transition: opacity .25s; border-radius: 4px; }
.ac-logo-link:hover .ac-logo-img { opacity: .8; }

.ac-nav-list  { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ac-nav-left  { justify-content: flex-end; }
.ac-nav-right { justify-content: flex-start; }

.ac-nav-link {
    color: rgba(0,0,0,0.8);
    text-decoration: none;
    font-size: 13.5px;
    letter-spacing: -0.01em;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color .2s, background .2s;
    white-space: nowrap;
    display: block;
}
.ac-nav-link:hover { color: #000; background: rgba(0,0,0,0.06); text-decoration: none; }

/* ─── Hamburger ─── */
.ac-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s;
    flex-shrink: 0;
    position: relative;
    margin-left: auto;
}
.ac-hamburger:hover { background: rgba(0,0,0,.06); }

.ac-bar {
    display: block;
    width: 18px; height: 1.5px;
    background: rgba(0,0,0,0.8);
    border-radius: 2px;
    position: absolute;
    transform-origin: center;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s cubic-bezier(.4,0,.2,1);
}
.ac-bar-1 { transform: translateY(-5px); }
.ac-bar-2 { transform: translateY(0); }
.ac-bar-3 { transform: translateY(5px); }
.ac-hamburger.is-open .ac-bar-1 { transform: translateY(0) rotate(45deg); }
.ac-hamburger.is-open .ac-bar-2 { opacity: 0; transform: scaleX(0); }
.ac-hamburger.is-open .ac-bar-3 { transform: translateY(0) rotate(-45deg); }

/* ─── Mobile Menu — Apple style ─── */
.ac-mobile-menu {
    position: fixed;
    top: 88px; right: 0; bottom: 0; left: 0;
    z-index: 10000;
    background: #fff;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
        transform .44s cubic-bezier(.76,0,.24,1),
        visibility 0s linear .44s;
}
.ac-mobile-menu.is-open {
    visibility: visible;
    pointer-events: all;
    transform: translateX(0);
    transition:
        transform .44s cubic-bezier(.76,0,.24,1),
        visibility 0s linear 0s;
}

/* blue top border */
.ac-mobile-menu::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2997FF 40%, #2997FF 60%, transparent);
    flex-shrink: 0;
}

/* Hamburger → blue circle X when open */
.ac-hamburger.is-open {
    border-radius: 50%;
    border: 1.5px solid rgba(0,113,227,0.55);
    background: rgba(0,113,227,0.06);
}
.ac-hamburger.is-open:hover {
    background: rgba(0,113,227,0.12);
    border-color: #0071E3;
}
.ac-hamburger.is-open .ac-bar {
    background: #0071E3;
    width: 16px;
}

/* Nav content */
.ac-mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    padding: 36px 40px 48px;
    overflow-y: auto;
}

.ac-mobile-list { list-style: none; margin: 0; padding: 0; }

.ac-mobile-list li {
    border-bottom: 1px solid rgba(0,113,227,0.12);
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .42s cubic-bezier(.22,1,.36,1) calc(var(--i, 0) * 65ms + 80ms),
        transform .42s cubic-bezier(.22,1,.36,1) calc(var(--i, 0) * 65ms + 80ms);
}
.ac-mobile-menu.is-open .ac-mobile-list li {
    opacity: 1;
    transform: translateY(0);
}

.ac-mobile-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    color: #1a1610;
    text-decoration: none;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: 'Cormorant Garamond', Georgia, serif;
    transition: color .2s, padding-left .22s;
}
.ac-mobile-list a::after {
    content: '→';
    font-size: 20px;
    font-weight: 400;
    color: rgba(0,113,227,0.35);
    transition: color .2s, transform .25s cubic-bezier(.22,1,.36,1);
    transform: translateX(0);
    flex-shrink: 0;
}
.ac-mobile-list a:hover {
    color: #0071E3;
    padding-left: 6px;
}
.ac-mobile-list a:hover::after {
    color: #0071E3;
    transform: translateX(5px);
}

/* ─── Mobile CC Aviation Network Button ─── */
.ac-mobile-network-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, rgba(0,113,227,0.06) 0%, rgba(0,100,204,0.12) 100%);
    border: 1px solid rgba(0,113,227,0.25);
    border-radius: 12px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity .42s cubic-bezier(.22,1,.36,1) calc(13 * 65ms + 80ms),
        transform .42s cubic-bezier(.22,1,.36,1) calc(13 * 65ms + 80ms),
        background .25s, border-color .25s;
}
.ac-mobile-menu.is-open .ac-mobile-network-btn {
    opacity: 1;
    transform: translateY(0);
}
.ac-mobile-network-btn:hover {
    background: linear-gradient(135deg, rgba(0,113,227,0.12) 0%, rgba(0,100,204,0.2) 100%);
    border-color: rgba(0,113,227,0.45);
}
.ac-mobile-network-label {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ac-mobile-network-label > i {
    font-size: 18px;
    color: #2997FF;
    animation: globe-spin 8s linear infinite;
}
.ac-mobile-network-label span {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
}
.ac-mobile-network-label strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #0071E3;
    font-family: 'Cormorant Garamond', Georgia, serif;
    text-transform: none;
}
.ac-mobile-network-arrow {
    font-size: 11px;
    color: rgba(0,113,227,0.5);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.ac-mobile-network-btn:hover .ac-mobile-network-arrow {
    transform: translate(3px, -3px);
    color: #0071E3;
}

/* ─── Mobile Location Block ─── */
.ac-mobile-location-block {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 0 22px;
    margin-bottom: 4px;
    border-top: 1px solid rgba(0,113,227,0.12);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s cubic-bezier(.22,1,.36,1) .48s, transform .4s cubic-bezier(.22,1,.36,1) .48s;
}
.ac-mobile-menu.is-open .ac-mobile-location-block {
    opacity: 1;
    transform: translateY(0);
}
.ac-mobile-loc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.ac-mobile-loc-item i {
    font-size: 11px;
    color: #2997FF;
    flex-shrink: 0;
}
.ac-mobile-loc-item span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    line-height: 1.4;
}
.ac-mobile-loc-item span em {
    font-style: normal;
    font-weight: 700;
    color: #0071E3;
    display: block;
    font-size: 12px;
    letter-spacing: .1em;
}
.ac-mobile-loc-divider {
    width: 1px;
    height: 32px;
    background: rgba(0,113,227,0.2);
    margin: 0 20px;
    flex-shrink: 0;
}

/* Footer — phone + socials */
.ac-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    margin-top: 16px;
    border-top: 1px solid rgba(0,113,227,0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s cubic-bezier(.22,1,.36,1) .52s, transform .4s cubic-bezier(.22,1,.36,1) .52s;
}
.ac-mobile-menu.is-open .ac-mobile-footer {
    opacity: 1;
    transform: translateY(0);
}

.ac-mobile-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0071E3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s;
}
.ac-mobile-tel:hover { opacity: .75; color: #0071E3; }
.ac-mobile-tel i { font-size: 11px; }

.ac-mobile-socials { display: flex; gap: 18px; }
.ac-mobile-socials a {
    color: rgba(0,0,0,0.3);
    font-size: 15px;
    text-decoration: none;
    transition: color .2s;
}
.ac-mobile-socials a:hover { color: #0071E3; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .ac-nav-content { grid-template-columns: auto 1fr auto; }
    .ac-nav-left    { display: none; }
    .ac-nav-right   { display: none; }
    .ac-hamburger   { display: flex; }
    .ac-header-spacer { height: 88px; }
    .ac-topbar-left { display: none; }
    .ac-logo-link   { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .ac-mobile-list a { font-size: 26px; padding: 18px 0; }
}

@media (max-width: 400px) {
    .ac-topbar-inner {
        padding: 0 12px;
        height: 32px;
    }
    .ac-topbar-phone {
        padding: 4px 10px 4px 9px;
        font-size: 11px;
        gap: 5px;
    }
    .ac-topbar-sep,
    .ac-topbar-social { display: none; }

    .ac-nav-content { padding: 0 12px; }
    .ac-logo-img    { height: 34px; }
    .ac-header-spacer { height: 80px; }

    .ac-mobile-menu { top: 80px; }
    .ac-mobile-nav  { padding: 24px 20px 36px; }
    .ac-mobile-list a {
        font-size: 20px;
        padding: 14px 0;
    }
    .ac-mobile-tel  { font-size: 12px; }
}
