/* ════════════════════════════════════════════════
   ATLAS TURİZM — NATURE / EARTHY DESIGN SYSTEM
   ════════════════════════════════════════════════ */

:root {
    --green:       #2a5032;
    --green-mid:   #3a6640;
    --green-light: #4d8a54;
    --terra:       #b85c3a;
    --terra-soft:  #cc7252;
    --cream:       #f4efe4;
    --cream-dark:  #e9e2d4;
    --sage:        #dbebd0;
    --sage-dark:   #c5dab8;
    --sand:        #e2d0b0;
    --ink:         #1a2e1c;
    --muted:       #5a6e55;
    --line:        rgba(42, 80, 50, 0.14);
    --dark-bg:     #192e1e;
    --shadow:      0 4px 20px rgba(26, 46, 28, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ─── LOADER ─── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--dark-bg);
    color: #fff;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* ─── PAGE TRANSITION ─── */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    background: var(--green);
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active { transform: translateX(0); }

/* ─── HEADER ─── */
.site-header {
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(244, 239, 228, 0.96);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line) !important;
    box-shadow: 0 2px 20px rgba(26, 46, 28, 0.07);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(26, 46, 28, 0.68);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terra);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--terra); }

.mobile-menu-panel {
    background: rgba(244, 239, 228, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s;
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link.active { color: var(--terra); }
.mobile-nav-link:hover { color: var(--terra); }

/* ─── BUTTONS ─── */
.btn-main, .btn-outline, .btn-dark, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-main {
    background: var(--terra);
    color: #fff;
    border: 2px solid var(--terra);
}
.btn-main:hover { background: #9e4b2d; border-color: #9e4b2d; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-1px); }

.btn-dark {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); transform: translateY(-1px); }

.btn-ghost {
    background: rgba(42, 80, 50, 0.09);
    color: var(--green);
    border: 2px solid transparent;
}
.btn-ghost:hover { background: rgba(42, 80, 50, 0.16); transform: translateY(-1px); }

/* ─── SECTION KICKER ─── */
.section-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terra);
}

/* ─── SECTION BACKGROUNDS ─── */
.section-cream      { background: var(--cream); }
.section-sage       { background: var(--sage); }
.section-sand       { background: #ede1c8; }
.section-dark       { background: var(--dark-bg); color: #fff; }
.section-green      { background: var(--green); color: #fff; }
.section-cream-dark { background: var(--cream-dark); }

/* Compatibility for pages that still use legacy dark-panel markup. */
.dark-panel {
    background: var(--cream-dark);
    color: var(--ink);
    border: 1px solid var(--line);
}

.dark-panel [class*="text-white"] {
    color: var(--ink) !important;
}

.dark-panel .section-kicker {
    color: var(--terra);
}

/* ─── STAT NUMBER ─── */
.stat-number { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; }

/* ─── CARDS ─── */
.eco-card, .tour-card, .article-card,
.service-card, .note-card, .soft-card,
.metric-card, .contact-card, .panel, .faq-item {
    background: #fff;
    border: 1px solid var(--line);
}

.eco-card { border-radius: 10px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.eco-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26, 46, 28, 0.1); }

.tour-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(26, 46, 28, 0.12); }

.article-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease;
}
.article-card:hover { transform: translateY(-4px); }

/* ─── FAQ ─── */
.faq-item {
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--green); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.faq-answer > div { overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

.faq-icon { transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--green); }

/* ─── MARQUEE ─── */
.destination-strip { overflow: hidden; }
.destination-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.destination-track span { white-space: nowrap; }

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── SWIPER PAGINATION ─── */
.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: rgba(42, 80, 50, 0.25) !important;
    opacity: 1 !important;
    border-radius: 50% !important;
}
.swiper-pagination-bullet-active {
    background: var(--terra) !important;
    width: 22px !important;
    border-radius: 4px !important;
}

/* ─── FORM ─── */
.form-input, .form-textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(42, 80, 50, 0.12);
}

/* ─── MAP ─── */
.map-frame iframe { width: 100%; min-height: 100%; border: 0; }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
    transform: translateY(120%);
    transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }

/* ─── PROSE (articles / legal) ─── */
.content-prose p {
    margin-top: 1rem;
    color: rgba(26, 46, 28, 0.75);
    line-height: 1.9;
}
.content-prose h2,
.content-prose h3 {
    margin-top: 2rem;
    color: var(--ink);
}
.content-prose ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
    color: rgba(26, 46, 28, 0.75);
}
.content-prose li + li { margin-top: 0.75rem; }

/* ─── HERO OVERLAY ─── */
.hero-overlay {
    background: linear-gradient(
        to right,
        rgba(25, 46, 30, 0.78) 0%,
        rgba(25, 46, 30, 0.45) 55%,
        rgba(25, 46, 30, 0.12) 100%
    );
}

/* ─── ANIMATIONS ─── */
@keyframes spin    { to { transform: rotate(360deg);  } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1023px) {
    .destination-track { animation-duration: 22s; }
}
@media (max-width: 767px) {
    .destination-track { animation-duration: 16s; }
    .section-kicker    { letter-spacing: 0.18em; }
}
