/* ================================================================
   AVESTA TRAVEL — Footer  (Pixel-Perfect Redesign)
================================================================ */

/* ── Footer accent color: yellow/gold as shown in the design ── */
.main-footer {
    --footer-accent: #f5c518;
}

/* ── Root wrapper ── */
.main-footer {
    background: #090909; /* Derin siyah */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 197, 24, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 197, 24, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
    color: rgba(255,255,255,0.65);
    position: relative;
    font-family: var(--font-body, 'Inter', sans-serif);
    overflow: hidden;
}

/* Premium Noise Overlay */
.main-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Glowing Top Border */
.main-footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 197, 24, 0.4) 20%, 
        rgba(245, 197, 24, 0.6) 50%, 
        rgba(245, 197, 24, 0.4) 80%, 
        transparent 100%);
    z-index: 2;
    filter: blur(0.5px);
}

/* ════════════════════════════════════════════════
   PREMIUM BACKGROUND VISUALS (ORBS & STRIPES)
   ════════════════════════════════════════════════ */
.footer-bg-visuals {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: #050505; /* Deep base */
}

/* Vertical Pinstripes for structure */
.footer-pinstripes {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 80px);
    z-index: 1;
}

/* Glowing Orbs (Aurora Effect) */
.footer-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: 2;
}

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #f5c518 0%, transparent 70%);
    top: -200px; left: -100px;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #f5c518 0%, transparent 70%);
    bottom: -250px; right: -150px;
    animation: orbFloat 25s infinite alternate-reverse ease-in-out;
    opacity: 0.08;
}

.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: 50%; left: 40%;
    animation: orbFloat 18s infinite alternate ease-in-out;
    opacity: 0.04;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.1); }
}

/* Remove old wave clip-path overrides */
.main-footer.clip-wave { clip-path: none !important; margin-top: 0 !important; padding-top: 0 !important; }
.footer-wave { display: none !important; }

/* ── Divider between main content and page ── */
.footer-top-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
}

.footer-inner {
    position: relative;
    z-index: 1;
}

/* ================================================================
   UPPER SECTION  — 5 columns
================================================================ */
.footer-top {
    padding: 60px 0 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr 1.4fr;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Vertical separator between columns */
.footer-top > * + * {
    border-left: 1px solid rgba(255,255,255,0.07);
    padding-left: 36px;
    margin-left: 0;
}
.footer-top > *:not(:last-child) {
    padding-right: 36px;
}

/* ── Brand Column ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-brand .logo-mark {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-brand .logo-mark img {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Orijinal logo rengi — filtre uygulanmıyor */
}

.footer-brand .brand-name {
    font-family: var(--font-display, 'Inter', sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand-p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.45);
    margin-bottom: 28px;
    max-width: 280px;
}

/* Licenses (hidden in this design, replaced by social icons) */
.footer-brand-licenses {
    display: none;
}

/* ── Social Icons ── */
.footer-socials {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition:
        background  0.22s ease,
        border-color 0.22s ease,
        color        0.22s ease,
        transform    0.22s cubic-bezier(.34,1.56,.64,1),
        box-shadow   0.22s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.social-btn svg {
    width: 17px;
    height: 17px;
    display: block;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
}

.social-btn:hover {
    background: var(--footer-accent, #f5c518);
    border-color: var(--footer-accent, #f5c518);
    color: #111;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(245,197,24,0.25);
}

.social-btn:hover svg {
    transform: scale(1.12);
}

.social-btn:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 3px 8px rgba(245,197,24,0.18);
}

/* ── Nav Columns ── */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: default;
    pointer-events: none;
    display: block;
    text-align: left;
    width: 100%;
}

.footer-col-toggle h4,
.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px 0;
    position: relative;
    padding-bottom: 12px;
}

/* Yellow underline accent on column headings */
.footer-col-toggle h4::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2.5px;
    background: var(--footer-accent, #f5c518);
    border-radius: 2px;
}

.footer-col-chevron { display: none !important; }

.footer-col-body {
    overflow: visible;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--footer-accent, #f5c518);
    padding-left: 4px;
}

/* ── Contact Column ── */
.footer-col-contact-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-contact-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-contact-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2.5px;
    background: var(--footer-accent, #f5c518);
    border-radius: 2px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.footer-contact-item .icon {
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.35);
    width: 18px;
    height: 18px;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-item a:hover {
    color: var(--footer-accent, #f5c518);
}

/* ── Newsletter ── */
.footer-newsletter-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px 0;
}

.footer-newsletter-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 11px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3);
}

.footer-newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.3);
}

.footer-newsletter-form button {
    padding: 11px 16px;
    background: var(--footer-accent, #f5c518);
    border: 1px solid var(--footer-accent, #f5c518);
    border-radius: 0 6px 6px 0;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.footer-newsletter-form button:hover {
    background: #e6b800;
    border-color: #e6b800;
    transform: scale(1.05);
}

/* ================================================================
   BOTTOM BAR
================================================================ */
.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

.footer-copy a {
    color: var(--footer-accent, #f5c518);
    text-decoration: none;
    font-weight: 600;
}

/* ── Licenses / Badges ── */
.footer-licenses {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
    max-height: 50px;
    overflow: hidden;
}

.footer-licenses img {
    height: auto;
    max-height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.75);
    transition: opacity 0.3s ease;
}

.footer-licenses img:hover {
    opacity: 1;
}

.license-img-tursab {
    width: 70% !important;
}

.license-img-iso {
    width: 30% !important;
}

@media (max-width: 768px) {
    .footer-licenses {
        justify-content: flex-start;
        margin-bottom: 20px;
        max-width: 240px;
    }
}

/* Bottom center links */
.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 8px;
    max-width: 620px;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    padding: 0 14px;
    line-height: 1.4;
    transition: color 0.2s;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom-links a:last-child {
    border-right: none;
}

.footer-bottom-links a:first-child {
    padding-left: 0;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Payment icons - Simplified & Bright */
.footer-payment-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.fpay-fa-icon {
    font-size: 30px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.fpay-fa-icon:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(255,255,255,0.2));
}

/* Brand specific slight tints on hover */
.fa-cc-visa:hover { color: #5d8aff; }
.fa-cc-mastercard:hover { color: #ff5f00; }

/* ================================================================
   TABLET  (≤ 1100px)
================================================================ */
@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 0;
    }

    .footer-top > *:nth-child(n+4) {
        margin-top: 40px;
    }

    /* Contact + newsletter span together on next row */
    .footer-col-contact-full {
        grid-column: 1 / -1;
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.07);
        padding-top: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ================================================================
   MOBILE  (≤ 767px)
================================================================ */
@media (max-width: 767px) {

    .footer-top {
        grid-template-columns: 1fr !important;
        padding: 30px 0 0 !important;
        border-bottom: none !important;
        gap: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .footer-top > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .footer-brand {
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        margin-bottom: 5px !important;
    }

    .footer-brand-p { max-width: 100%; }

    /* Accordion behaviour on mobile */
    .footer-col-toggle {
        pointer-events: auto;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: background 0.3s ease;
    }

    .footer-col-toggle:active {
        background: rgba(255,255,255,0.02);
    }

    .footer-col-toggle h4 {
        margin-bottom: 0;
        padding-bottom: 0;
        font-size: 0.82rem;
        font-weight: 700;
        color: rgba(255,255,255,0.9);
        letter-spacing: 0.1em;
    }

    .footer-col-toggle h4::after { display: none; }

    .footer-col-chevron {
        display: flex !important;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,0.03);
        color: rgba(255,255,255,0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-col-toggle.is-open .footer-col-chevron {
        transform: rotate(180deg);
        background: rgba(245, 197, 24, 0.1);
        color: #f5c518;
    }

    /* Smooth Height Animation using Grid */
    .footer-col-body {
        display: grid !important;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
        overflow: hidden;
        opacity: 0;
        visibility: visible !important;
        padding-bottom: 0;
    }

    .footer-col-toggle.is-open + .footer-col-body {
        grid-template-rows: 1fr;
        padding-top: 15px;
        padding-bottom: 25px;
        opacity: 1;
    }

    .footer-col-body ul, 
    .footer-col-body > * {
        min-height: 0;
    }

    .footer-col-body ul li {
        padding: 8px 0;
    }

    .footer-col-body ul li a {
        font-size: 0.9rem;
        width: 100%;
    }

    .footer-col-contact-full {
        padding: 10px 0 40px;
    }

    .footer-col-contact-full .footer-contact-list { 
        margin-top: 20px;
        margin-bottom: 30px; 
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 0 40px;
        gap: 20px;
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-bottom-links a {
        border-right: none;
        padding: 0 6px;
    }

    .footer-payment-icons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-copy { font-size: 0.78rem; }

    .footer-col-contact-full {
        grid-column: 1 / 1;
        display: flex;
        flex-direction: column;
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.07) !important;
        padding-top: 28px !important;
    }
}

/* ================================================================
   SMALL PHONES  (≤ 380px)
================================================================ */
@media (max-width: 380px) {
    .footer-col-toggle { padding: 14px 0; }
    .footer-col-toggle h4 { font-size: 0.75rem; }
    .footer-newsletter-form input[type="email"] { font-size: 0.78rem; }
}
