/* Evde Baklava Ustası — tr-TR | 30.01.2026 */
:root {
    --color-bg: #faf8f5;
    --color-surface: #fff;
    --color-text: #2c2416;
    --color-muted: #5c5344;
    --color-accent: #8b6914;
    --color-border: #e0d9cc;
    --font-sans: "Segoe UI", system-ui, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --space: 1.25rem;
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    text-decoration: none;
    color: var(--color-accent);
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space) 1rem;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-anchors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.nav-anchors a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-anchors a:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.nav-anchors a.active {
    font-weight: 600;
    color: var(--color-surface);
    background: var(--color-accent);
}

.nav-anchors a.active:hover {
    color: var(--color-surface);
    background: var(--color-accent);
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    /* Только на мобильных: более заметное выделение текущего этапа */
    .nav-anchors a.active {
        margin-left: 0;
        background: var(--color-accent);
        color: var(--color-surface);
        font-weight: 700;
        padding: 0.65rem 0.75rem 0.65rem 1rem;
        border-left: 0 solid var(--color-surface);
        box-shadow: 0 2px 8px rgba(139, 105, 20, 0.35);
    }

    .nav-anchors a.active:hover {
        background: var(--color-accent);
        color: var(--color-surface);
        filter: brightness(1.08);
    }
    .nav-toggle {
        display: flex;
    }

    /* Меню сразу в столбик: полная ширина, колонка, скрыто по умолчанию */
    .nav-anchors {
        order: 2;
        width: 100%;
        min-width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        margin: 0;
        border-top: 1px solid transparent;
        transition: max-height 0.35s ease-out, opacity 0.25s ease-out, padding 0.2s ease-out, margin 0.2s ease-out, border-color 0.2s;
    }

    .nav-anchors.is-open {
        max-height: 420px;
        opacity: 1;
        padding: 1rem 0 0;
        margin-top: 0.5rem;
        border-top-color: var(--color-border);
    }

    /* Ссылки в столбик: блок на всю ширину */
    .nav-anchors a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0.6rem 0;
        text-align: left;
    }
}

/* Main */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Hero */
.hero {
    position: relative;
    margin: 0 -1rem 2rem;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.hero picture,
.hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.hero-lead {
    margin: 0;
    font-size: 0.95rem;
    opacity: .95;
}

/* Sections */
.section {
    margin-bottom: 2.5rem;
}

.section h2 {
    margin: 0 0 var(--space);
    padding-bottom: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-border);
}

.section h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.section p {
    margin: 0 0 1rem;
    color: var(--color-text);
}

/* Step countdown */
.step-countdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.countdown-label {
    font-weight: 500;
    color: var(--color-muted);
}

.countdown-value {
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
}

.btn-countdown {
    margin-left: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    background: transparent;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    cursor: pointer;
}

.btn-countdown:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Steps list */
.steps-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.steps-list li {
    margin-bottom: 0.75rem;
}

/* Harç grid */
.harc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space);
    margin: 1.5rem 0;
}

.harc-card {
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.harc-card h3 {
    margin-top: 0;
}

/* Tables */
.table-proportions,
.table-layers {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-proportions caption,
.table-layers caption {
    padding: 0.5rem 0;
    font-weight: 600;
    color: var(--color-muted);
    text-align: left;
}

.table-proportions th,
.table-proportions td,
.table-layers th,
.table-layers td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.table-proportions thead,
.table-layers thead {
    background: var(--color-surface);
}

.table-proportions th,
.table-layers th {
    font-weight: 600;
    color: var(--color-accent);
}

/* Schema layers */
.schema-wrap {
    margin: 1.5rem 0;
}

.schema-layers {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 280px;
    margin: 0 auto;
}

.layer {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 2px;
}

.layer-yufka {
    background: #f5e6c8;
    border: 1px solid #d4b896;
}

.layer-yag {
    background: #f0e0b0;
    border: 1px solid #c9a227;
}

.layer-harc {
    background: #c4a574;
    color: #fff;
    border: 1px solid #8b6914;
}

/* Checklist */
.checklist {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.checklist li {
    margin-bottom: 0.5rem;
}

/* Kesim list */
.kesim-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.kesim-list li {
    margin-bottom: 0.75rem;
}

/* Golden rules */
.golden-rules {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.golden-rules li {
    margin-bottom: 0.6rem;
}

/* Content with image (text + image together) */
.content-with-image {
    margin: 1.5rem 0;
}

.content-with-image > p {
    margin-bottom: 0.75rem;
}

.content-with-image .img-block {
    margin-top: 0;
}

/* Img block */
.img-block {
    margin: 1.5rem 0;
}

.img-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.img-block figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Accordion */
.accordion {
    margin: 1rem 0;
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item.is-open {
    border-color: var(--color-accent);
    box-shadow: 0 2px 12px rgba(139, 105, 20, 0.12);
}

.accordion-trigger {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--color-text);
    background: var(--color-surface);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.25s ease, color 0.2s ease;
}

.accordion-trigger::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--color-accent);
    transition: transform 0.35s ease;
}

.accordion-trigger[aria-expanded="true"] {
    background: rgba(139, 105, 20, 0.08);
    color: var(--color-accent);
}

.accordion-trigger[aria-expanded="true"]::after {
    content: "−";
    transform: rotate(180deg);
}

.accordion-trigger:hover {
    background: var(--color-bg);
}

.accordion-item.is-open .accordion-trigger:hover {
    background: rgba(139, 105, 20, 0.12);
}

/* Плавное открытие через grid (без рывков) */
.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 1.25rem;
    background: var(--color-surface);
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease-out;
}

.accordion-panel.is-open {
    grid-template-rows: 1fr;
    padding-bottom: 1rem;
}

.accordion-panel[hidden] {
    display: grid;
    grid-template-rows: 0fr;
}

.accordion-panel > * {
    overflow: hidden;
    min-height: 0;
}

.accordion-panel p {
    margin: 0;
    padding: 0.75rem 0 0;
    line-height: 1.65;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .accordion-item.is-open {
        margin-left: -1rem;
        border-radius: 0 var(--radius) var(--radius) 0;
    }
    .accordion-item.is-open .accordion-trigger {
        padding-left: calc(1rem + 1.25rem);
        border-radius: 0 var(--radius) 0 0;
    }
}

/* Form — ayrı bölüm (standalone) */
.form-standalone {
    margin: 2.5rem 0;
    padding: 2rem 0;
}

.form-standalone-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.form-standalone .contact-form {
    margin-top: 1.5rem;
}

.contact-info-standalone {
    margin-top: 0.5rem;
}

/* Toast — sağ üst bildirim */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 360px;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(120%);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.toast.toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.toast.toast-error {
    border-color: #c44;
    background: #fef5f5;
}

@media (max-width: 480px) {
    .toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
        transform: translateY(-100%);
    }
    .toast.toast-visible {
        transform: translateY(0);
    }
}

/* Form + Contact block (legacy / contact-info) */
.section-form {
    padding: 1.5rem 0;
}

.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info {
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-info h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.contact-info a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.contact-form {
    max-width: 100%;
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 400;
}

.contact-form .checkbox-label input {
    width: auto;
    margin-top: 0.25rem;
}

.contact-form .required {
    color: #c00;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-form button {
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.contact-form button:hover {
    filter: brightness(1.1);
}

@media (max-width: 640px) {
    .contact-block {
        grid-template-columns: 1fr;
    }
}

/* Legal pages */
.nav-legal {
    display: flex;
    gap: 1rem;
}

.nav-legal a {
    font-weight: 500;
}

.nav-legal a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.legal-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.legal-article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
}

.legal-article h1 {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-accent);
}

.legal-meta {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.legal-article h2 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.15rem;
    color: var(--color-text);
}

.legal-article p,
.legal-article ul {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.legal-article ul {
    padding-left: 1.5rem;
}

.legal-article a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

/* Footer */
.site-footer {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-muted);
    text-align: center;
}

.site-footer p {
    margin: 0.5rem 0;
}

.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.site-footer a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.footer-logo {
    font-weight: 600;
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}

.cookie-banner[aria-hidden="true"] {
    display: none;
}

.cookie-banner p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 105, 20, 0.15);
}

.cookie-accept {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.cookie-accept:hover {
    background: #a67a1a;
    color: #fff;
    border-color: #a67a1a;
}

.cookie-reject {
    background: var(--color-surface);
}

.cookie-reject:hover {
    background: var(--color-border);
}

.cookie-settings-panel #cookieSaveSettings:hover {
    background: var(--color-accent);
    color: #fff;
}

.cookie-settings-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.cookie-settings-panel label {
    display: block;
    margin: 0.5rem 0;
}

.cookie-settings-panel #cookieSaveSettings {
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    transition: background 0.2s, color 0.2s;
}

@media (max-width: 640px) {
    .hero-content {
        padding: 1.5rem 1rem 1rem;
    }
    .step-countdown {
        flex-wrap: wrap;
    }
    .btn-countdown {
        margin-left: 0;
        width: 100%;
    }
}
