/* ==========================================================================
   Yusuf Göçmen Bedachungen — Main Stylesheet
   ========================================================================== */

:root {
    --navy: #0e244d;
    --navy-dark: #081a3a;
    --red: #e2231a;
    --red-dark: #c11810;
    --light: #f5f7fb;
    --grey: #6b7280;
    --border: #e2e6ee;
    --white: #ffffff;
    --text: #1a2334;
    --shadow-sm: 0 2px 8px rgba(14, 36, 77, 0.08);
    --shadow-md: 0 10px 30px rgba(14, 36, 77, 0.12);
    --shadow-lg: 0 20px 50px rgba(14, 36, 77, 0.18);
    --radius: 14px;
    --header-h: 84px;
    --max: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 32px;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    text-align: center;
    line-height: 1.2;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(226, 35, 26, 0.3);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(226, 35, 26, 0.4); }
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }

/* ---------- Header ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: height .3s var(--ease), box-shadow .3s;
}
#header.scrolled { height: 68px; box-shadow: var(--shadow-md); }

.logo-box img {
    height: 56px;
    width: auto;
    transition: height .3s var(--ease);
}
#header.scrolled .logo-box img { height: 46px; }

.header-contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 8px;
}
.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light);
    display: grid;
    place-items: center;
    color: var(--red);
}
.contact-icon-wrapper svg { width: 22px; height: 22px; }
.contact-details { display: flex; flex-direction: column; line-height: 1.2; }
.contact-sub { font-size: .72rem; color: var(--grey); text-transform: uppercase; letter-spacing: .05em; }
.contact-main-link { font-weight: 700; font-size: 1.1rem; color: var(--navy); }

nav#main-nav, header nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
nav a {
    padding: 8px 14px;
    font-weight: 600;
    color: var(--navy);
    border-radius: 8px;
    transition: color .2s, background .2s;
}
nav a:not(.btn-quote):hover { color: var(--red); }
.btn-quote {
    background: var(--red);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(226, 35, 26, .3);
}
.btn-quote:hover { background: var(--red-dark); }

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 8px;
    background: var(--light);
    border-radius: 50px;
    padding: 4px;
}
.lang-link {
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: .8rem;
    color: var(--grey);
    padding: 6px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.lang-link.active { background: var(--navy); color: #fff; }

/* Mobile actions */
.mobile-actions { display: none; align-items: center; gap: 12px; }
.mobile-phone-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--light); color: var(--red);
    display: grid; place-items: center;
}
.mobile-phone-btn svg { width: 22px; height: 22px; }
.hamburger-btn {
    width: 44px; height: 44px;
    border: none; background: var(--light); border-radius: 10px;
    cursor: pointer; display: grid; place-items: center; gap: 5px;
    padding: 11px;
}
.hamburger-btn span {
    display: block; width: 100%; height: 2.5px;
    background: var(--navy); border-radius: 3px;
    transition: transform .3s var(--ease), opacity .2s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#nav-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 26, 58, .5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0; transition: opacity .3s;
}
#nav-overlay.show { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) clamp(16px, 5vw, 60px) 60px;
    background: linear-gradient(rgba(8,26,58,.15), rgba(8,26,58,.15)), url('../images/catiyenileme.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(8,26,58,.92) 0%, rgba(14,36,77,.78) 45%, rgba(14,36,77,.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.01em;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 560px;
    margin-bottom: 34px;
    color: rgba(255,255,255,.9);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Section helpers ---------- */
.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.section-title .accent { color: var(--red); }
.section-subtitle {
    text-align: center;
    color: var(--grey);
    max-width: 620px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services-section { padding: clamp(60px, 9vw, 110px) clamp(16px, 5vw, 60px); background: var(--light); }
.services-container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.service-box {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    display: flex;
    flex-direction: column;
}
.service-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-img-wrapper { overflow: hidden; aspect-ratio: 16 / 10; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-box:hover .service-img { transform: scale(1.07); }
.service-box h3 {
    font-size: 1.25rem;
    color: var(--navy);
    padding: 20px 22px 6px;
}
.service-box p { padding: 0 22px 24px; color: var(--grey); font-size: .96rem; }

/* ---------- About ---------- */
.about-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(60px, 9vw, 110px) clamp(16px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}
.about-media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.eyebrow, .about-content .eyebrow {
    display: inline-block;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    margin-bottom: 12px;
}
.about-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
}
.about-content p { color: var(--grey); margin-bottom: 22px; }
.about-list { margin-bottom: 28px; display: grid; gap: 12px; }
.about-list li {
    position: relative;
    padding-left: 34px;
    font-weight: 600;
    color: var(--text);
}
.about-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 24px; height: 24px;
    background: var(--red); color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: .8rem;
}

/* ---------- Stats ---------- */
.stats-section {
    background: var(--navy);
    color: #fff;
    padding: clamp(50px, 7vw, 80px) clamp(16px, 5vw, 60px);
}
.stats-container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-box { padding: 10px; }
.stat-number, .stat-plus {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-plus { color: var(--red); }
.stat-title { margin-top: 10px; color: rgba(255,255,255,.75); font-weight: 600; }

/* ---------- CTA ---------- */
.contact-cta {
    padding: clamp(60px, 9vw, 110px) clamp(16px, 5vw, 60px);
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
    text-align: center;
    color: #fff;
}
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.85); margin-bottom: 30px; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.main-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); }
.footer-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 60px clamp(16px, 5vw, 60px) 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}
.main-footer h3, .main-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.main-footer p { margin-bottom: 6px; }
.main-footer a:hover { color: var(--red); }
.social-icons { margin-top: 14px; }
.social-btn {
    display: inline-block;
    background: rgba(255,255,255,.1);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    transition: background .2s;
}
.social-btn:hover { background: var(--red); color: #fff; }
.footer-map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.footer-map-container iframe { width: 100%; height: 180px; border: 0; display: block; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-badge { background: #fff; padding: 8px; border-radius: 8px; height: auto; width: auto; max-height: 60px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px clamp(16px, 5vw, 60px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
}
.legal-links { display: flex; gap: 20px; }
.legal-links a:hover { color: var(--red); }

/* ---------- Checklist / Ratgeber ---------- */
.checklist-section {
    padding: clamp(60px, 9vw, 110px) clamp(16px, 5vw, 60px);
    background: var(--light);
}
.checklist-inner { max-width: var(--max); margin: 0 auto; }
.checklist-head { text-align: center; margin-bottom: 46px; }
.checklist-head .eyebrow { display: block; margin-bottom: 10px; }
.checklist-head .section-subtitle { margin-bottom: 0; }
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    counter-reset: none;
}
.checklist-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.checklist-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.checklist-num {
    position: absolute;
    top: -18px; left: 26px;
    width: 44px; height: 44px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 12px;
    display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(226,35,26,.35);
}
.checklist-card h3 { color: var(--navy); font-size: 1.15rem; margin: 12px 0 8px; }
.checklist-card p { color: var(--grey); font-size: .95rem; }
.checklist-cta-card {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    border: none;
}
.checklist-cta-card h3 { color: #fff; }
.checklist-cta-card p { color: rgba(255,255,255,.85); }
.checklist-cta-card .btn-primary { margin-top: 6px; }

/* ---------- Floating actions (WhatsApp + Call) ---------- */
.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.floating-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 8px 22px rgba(14,36,77,.28);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-btn svg { width: 30px; height: 30px; }
.floating-whatsapp { background: #25d366; animation: pulse-wa 2.4s infinite; }
.floating-call { background: var(--red); display: none; }
.floating-call svg { width: 26px; height: 26px; }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
.desktop-only { display: flex; }

@media (max-width: 992px) {
    .about-section { grid-template-columns: 1fr; }
    .about-media { order: -1; }
}

@media (max-width: 860px) {
    :root { --header-h: 70px; }
    .desktop-only { display: none; }
    .mobile-actions { display: flex; }

    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 340px);
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        background: #fff;
        padding: calc(var(--header-h) + 20px) 26px 40px;
        box-shadow: -10px 0 40px rgba(14,36,77,.2);
        transition: right .35s var(--ease);
        z-index: 999;
        overflow-y: auto;
    }
    nav#main-nav.open { right: 0; }
    nav#main-nav a { width: 100%; font-size: 1.1rem; padding: 14px 12px; border-bottom: 1px solid var(--border); }
    nav#main-nav a.btn-quote { text-align: center; margin-top: 14px; border: none; }
    .lang-switcher { margin: 16px 0 0; }

    .floating-call { display: grid; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
    .stats-container { grid-template-columns: 1fr; gap: 22px; }
    .hero { min-height: 88vh; background-attachment: scroll; }
    .btn-primary, .btn-outline { width: 100%; }
    .hero-btns { width: 100%; }
    .checklist-grid { grid-template-columns: 1fr; gap: 26px; }
    .checklist-section { padding-top: 56px; }
    .checklist-cta-card { align-items: stretch; text-align: center; }
    .floating-actions { right: 14px; bottom: 14px; gap: 12px; }
    .floating-btn { width: 52px; height: 52px; }
    .floating-btn svg { width: 27px; height: 27px; }
    .floating-call svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
