/* Betta Yazılım örnek şablonları - ortak temel katman.
   Renkler her şablonda :root üzerinden ezilir. */

:root {
    --brand: #2a9d8f;
    --brand-dark: #21867a;
    --brand-soft: #e6f4f2;
    --accent: #f4a261;
    --ink: #16232e;
    --body: #4a5b68;
    --muted: #7d8b98;
    --surface: #ffffff;
    --canvas: #f7fafb;
    --line: #e5edf1;
    --radius: 18px;
    --shadow-sm: 0 4px 16px rgba(22, 35, 46, 0.06);
    --shadow-md: 0 14px 40px rgba(22, 35, 46, 0.1);
    --shadow-lg: 0 26px 70px rgba(22, 35, 46, 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-head: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--body);
    background: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 14px;
}

p {
    margin: 0 0 16px;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap {
    width: min(1180px, 100% - 40px);
    margin: 0 auto;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--tight {
    padding: 70px 0;
}

.section--canvas {
    background: var(--canvas);
}

.section-head {
    max-width: 660px;
    margin: 0 0 52px;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    border-color: currentColor;
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.btn--light {
    background: #fff;
    color: var(--ink);
}

.btn--light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn--block {
    width: 100%;
}

/* ---------- Üst bar ---------- */
.demo-ribbon {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    text-align: center;
    padding: 9px 16px;
}

.demo-ribbon a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.demo-ribbon a:hover {
    border-color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-color: var(--line);
}

.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.brand .mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    position: relative;
    color: var(--body);
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: var(--brand);
    border-radius: 2px;
    transition: width 0.32s var(--ease);
}

.nav a:hover,
.nav a.is-active {
    color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle span {
    top: 50%;
    margin-top: -1px;
}

.menu-toggle span::before {
    content: "";
    top: -7px;
    left: 50%;
}

.menu-toggle span::after {
    content: "";
    top: 7px;
    left: 50%;
}

.menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5.2vw, 58px);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 18px;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    color: var(--muted);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    z-index: -1;
    animation: floaty 9s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ink);
    animation: floaty 5.5s ease-in-out infinite;
}

.floating-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: 15px;
}

.floating-card .dot {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 17px;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- İstatistik ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-sm);
}

.stat b {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(26px, 3.4vw, 38px);
    color: var(--brand);
    line-height: 1.1;
}

.stat span {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Kartlar ---------- */
.card-grid {
    display: grid;
    gap: 26px;
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width 0.5s var(--ease);
}

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

.card:hover::before {
    width: 100%;
}

.card .icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 24px;
    margin-bottom: 18px;
    transition: transform 0.4s var(--ease), background 0.3s ease, color 0.3s ease;
}

.card:hover .icon {
    transform: rotate(-8deg) scale(1.06);
    background: var(--brand);
    color: #fff;
}

.card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

.card .card-link {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s var(--ease);
}

.card:hover .card-link {
    gap: 12px;
}

/* ---------- Görsel + metin ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split img {
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 15px;
}

.check-list li::before {
    content: "✓";
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

/* ---------- Adımlar ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.step b {
    counter-increment: step;
    font-family: var(--font-head);
    font-size: 34px;
    color: var(--brand);
    opacity: 0.32;
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 17px;
}

.step p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ---------- Yorumlar ---------- */
.quote-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    height: 100%;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.quote-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.quote-card .stars {
    color: #f4b740;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.quote-card p {
    font-size: 15px;
    font-style: italic;
    color: var(--body);
}

.quote-card .who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.quote-card .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--font-head);
}

.quote-card .who b {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.quote-card .who span {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- SSS ---------- */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.is-open {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 20px 24px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question::after {
    content: "+";
    font-size: 22px;
    color: var(--brand);
    transition: transform 0.35s var(--ease);
    flex: none;
}

.faq-item.is-open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}

.faq-item.is-open .faq-answer {
    max-height: 420px;
}

.faq-answer p {
    padding: 0 24px 22px;
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

/* ---------- Sekmeler ---------- */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-buttons button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--body);
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.tab-buttons button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.tab-buttons button.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

[data-tab-panel] {
    display: none;
    animation: fadeUp 0.5s var(--ease);
}

[data-tab-panel].is-active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Filtre (emlak portföyü, restoran menüsü) ---------- */
.tab-buttons--center {
    justify-content: center;
    margin-bottom: 40px;
}

[data-filter-tags] {
    animation: fadeUp 0.45s var(--ease);
}

[data-filter-tags].is-hidden {
    display: none;
}

.filter-empty {
    display: none;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    padding: 40px 0;
}

.filter-empty.is-visible {
    display: block;
}

/* ---------- Form ---------- */
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--canvas);
    border-radius: 11px;
    padding: 13px 15px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.field .has-error,
.field input.has-error {
    border-color: #e05a4b;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-status {
    margin-top: 14px;
    font-size: 14px;
    border-radius: 10px;
    padding: 11px 14px;
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.form-status.is-error {
    background: #fdecea;
    color: #c0392b;
}

.form-note {
    font-size: 12.5px;
    color: var(--muted);
    margin: 12px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 64px 0 26px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 44px;
}

.site-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.site-footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer .brand {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer .brand small {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 13.5px;
}

/* ---------- Yüzen butonlar ---------- */
.float-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 10px;
    z-index: 70;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-size: 21px;
    border: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease), background 0.3s ease;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.float-btn--wa {
    background: #25d366;
}

.float-btn--top {
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
}

.float-btn--top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ---------- Reveal animasyonu ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal="left"] {
    transform: translateX(-30px);
}

[data-reveal="right"] {
    transform: translateX(30px);
}

[data-reveal="zoom"] {
    transform: scale(0.94);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid,
    .split {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-media {
        max-width: 460px;
        margin-inline: auto;
    }

    .card-grid--4,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 84vw);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 92px 30px 30px;
        box-shadow: -18px 0 50px rgba(0, 0, 0, 0.16);
        transform: translateX(105%);
        transition: transform 0.42s var(--ease);
        z-index: 55;
    }

    .nav.is-open {
        transform: none;
    }

    .nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

    .header-actions .btn {
        display: none;
    }

    .section {
        padding: 68px 0;
    }

    .hero {
        padding: 60px 0 70px;
    }
}

@media (max-width: 640px) {
    .card-grid--2,
    .card-grid--3,
    .card-grid--4,
    .steps,
    .field-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        padding: 26px 20px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .floating-card {
        display: none;
    }

    .hero-media img {
        aspect-ratio: 4 / 3.4;
    }
}
