/*
Theme Name: FormLab Plus
Theme URI: https://formlabplus.com
Author: FormLab+
Author URI: https://formlabplus.com
Description: FormLab+ Clinic — Çayyolu, Ankara. Vücut şekillendirme, bölgesel incelme ve cilt bakımı için editöryel, sade ve prestijli bir klinik teması. BTL teknolojilerini öne çıkaran özel sayfa şablonları, otomatik menü ve özelleştirilebilir renk paletiyle gelir.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: formlabplus
Tags: business, one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready, threaded-comments, block-styles
*/

/* =========================================================
   FormLab+ — Editorial Clinical Theme
   Design system: warm bone, deep forest, muted gold
   ========================================================= */

:root {
    --cream: #F5F1EA;
    --bone: #EDE7DB;
    --bone-soft: #F9F6EF;
    --ink: #171A18;
    --ink-soft: #3A413D;
    --ink-muted: #6B6F69;
    --forest: #2D4A3E;
    --forest-deep: #1F352C;
    --gold: #B8924A;
    --gold-soft: #D4B67A;
    --line: #D4CCB8;
    --line-soft: #E6DFCE;
    --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
a:hover { opacity: 0.7; }

/* Typography ------------------------------------------------ */
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.eyebrow::before {
    content: "";
    width: 36px; height: 1px;
    background: var(--ink-soft);
}
.eyebrow.center::after {
    content: "";
    width: 36px; height: 1px;
    background: var(--ink-soft);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(44px, 7vw, 108px); }
h2 { font-size: clamp(32px, 4.5vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 34px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); }

p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }

em { font-family: var(--serif); font-style: italic; }

/* Layout ---------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(60px, 6vw, 100px) 0; }

/* Header / Navigation -------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding:
        max(20px, env(safe-area-inset-top, 0px))
        max(var(--gutter), env(safe-area-inset-right, 0px))
        20px
        max(var(--gutter), env(safe-area-inset-left, 0px));
    background: rgba(245, 241, 234, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: 14px;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo {
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: -0.01em;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
}
.site-logo-plus {
    color: var(--forest);
    font-style: italic;
    font-weight: 500;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 400; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
.site-nav a.current { color: var(--forest); }
.site-nav .nav-cta {
    border: 1px solid var(--ink);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease);
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--cream); opacity: 1; }

/* Journal (blog) link rendered as compact notebook icon on desktop,
   expands to icon + label inside the mobile drawer. */
.site-nav .nav-journal,
.nav-journal {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    color: var(--ink);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    flex-shrink: 0;
    border: 1px solid transparent;
}
.site-nav .nav-journal:hover,
.nav-journal:hover {
    background: var(--bone);
    border-color: var(--line);
    opacity: 1;
    color: var(--forest);
}
.site-nav .nav-journal.current,
.nav-journal.current {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--cream);
}
.nav-journal-icon { display: block; pointer-events: none; flex-shrink: 0; }
.nav-journal-label { display: none; }

/* Header actions wrapper (mobile: journal icon + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Always-visible journal icon shown on mobile only (desktop has it in nav) */
.header-journal-link {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ink);
    flex-shrink: 0;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.header-journal-link:hover,
.header-journal-link:focus-visible {
    background: var(--bone);
    color: var(--forest);
    opacity: 1;
}
.header-journal-link svg { display: block; pointer-events: none; }

@media (max-width: 900px) {
    .header-journal-link { display: inline-flex; }
    /* Hide the journal entry inside the drawer since header already has it */
    .site-nav .nav-journal { display: none !important; }
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 110;
    flex-shrink: 0;
}
.menu-toggle span {
    width: 22px; height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -----------------------------------------------------------
   MOBILE NAVIGATION DRAWER
   Robust across iOS Safari (dvh), notched devices (safe-area),
   and covers full viewport with a solid background + high z-index.
   ----------------------------------------------------------- */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        padding:
            calc(90px + env(safe-area-inset-top, 0px))
            max(var(--gutter), env(safe-area-inset-right, 0px))
            calc(40px + env(safe-area-inset-bottom, 0px))
            max(var(--gutter), env(safe-area-inset-left, 0px));
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 105;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: -20px 0 60px rgba(23, 26, 24, 0.08);
    }
    .site-nav.open { transform: translateX(0); }

    .site-nav a {
        font-size: 26px;
        font-family: var(--serif);
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: -0.01em;
        padding: 12px 0;
        width: 100%;
        white-space: normal;
        color: var(--ink);
    }
    .site-nav a.current { color: var(--forest); }

    /* Journal link: expand into icon + label row */
    .site-nav .nav-journal {
        width: auto;
        height: auto;
        border-radius: 0;
        justify-content: flex-start;
        gap: 14px;
        padding: 12px 0;
        background: none !important;
        color: var(--ink);
    }
    .site-nav .nav-journal.current { background: none !important; color: var(--forest); }
    .site-nav .nav-journal-icon { width: 22px; height: 22px; flex-shrink: 0; }
    .site-nav .nav-journal-label {
        display: inline;
        font-size: 26px;
        font-family: var(--serif);
        line-height: 1.3;
    }

    /* CTA inside mobile drawer */
    .site-nav .nav-cta {
        margin-top: 28px;
        padding: 16px 30px;
        font-size: 14px;
        font-family: var(--sans);
        letter-spacing: 0.04em;
        align-self: flex-start;
        width: auto;
        white-space: nowrap;
    }
}

/* Scroll lock the page while drawer is open. iOS needs position:fixed. */
body.menu-open {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

/* Buttons --------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 999px;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    background: transparent;
    color: var(--ink);
}
.btn .arrow { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--cream); opacity: 1; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--forest); border-color: var(--forest); opacity: 1; }
.btn-forest { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-deep); border-color: var(--forest-deep); opacity: 1; }

/* Hero ------------------------------------------------------ */
.hero {
    padding: 110px var(--gutter) 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-main { max-width: 720px; min-width: 0; }
.hero-eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    padding: 6px 16px;
    border: 1px solid var(--gold);
    border-radius: 999px;
}
.hero-title {
    font-size: clamp(48px, 7.5vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-top: 0;
    color: var(--ink);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}
.hero-title .word-shape { color: var(--forest); font-style: italic; font-weight: 300; }
.hero-title .sep {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 12px 12px 0;
    vertical-align: middle;
}
.hero-sub {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(18px, 1.8vw, 26px);
    color: var(--ink-soft);
    margin-top: 20px;
    line-height: 1.4;
}
.hero-body { margin-top: 28px; max-width: 54ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero building image (right column) */
.hero-building {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-building img {
    width: 100%;
    height: auto;
    max-width: 560px;
    max-height: 440px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(23, 26, 24, 0.18));
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-building-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--cream);
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(23, 26, 24, 0.25);
    white-space: nowrap;
}
.hero-building-pin {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 146, 74, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(184, 146, 74, 0); }
}

/* Hero meta bar (bottom info strip) */
.hero-meta-bar {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 28px 0 32px;
    border-top: 1px solid var(--line);
    align-items: start;
}
.hero-meta-bar .hero-meta-item .label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    display: block;
}
.hero-meta-bar .hero-meta-item .value {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink);
    line-height: 1.35;
    display: block;
}
.hero-meta-bar .hero-meta-item .value em {
    color: var(--forest);
    font-style: italic;
}
.hero-meta-bar .hero-meta-item .value a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: border-color 0.25s var(--ease);
}
.hero-meta-bar .hero-meta-item .value a:hover {
    border-color: var(--forest);
    opacity: 1;
}

/* Legacy hero-meta (column variant — kept for compat if used elsewhere) */
.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.hero-meta-item .label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    display: block;
}
.hero-meta-item .value {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    line-height: 1.3;
}
.hero-meta-item .value em { color: var(--forest); }

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 40px; }
    .hero-building img { max-width: 480px; }
    .hero-meta-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
    .hero { padding: 120px var(--gutter) 0; }
    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding-bottom: 40px;
    }
    .hero-building { order: 2; }
    .hero-building img { max-width: 100%; }
    .hero-building-label { font-size: 11px; padding: 10px 18px; }
    .hero-meta-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        padding: 20px 0 28px;
    }
    .hero-meta-bar .hero-meta-item .value { font-size: 14px; }
    .hero-eyebrow { font-size: 11px; padding: 5px 14px; }
}
@media (max-width: 640px) {
    .hero-title { font-size: clamp(36px, 9vw, 48px); }
    .hero-sub { font-size: 17px; }
    .hero-body { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: space-between; }
    .hero-actions .btn .arrow { margin-left: auto; }
    .hero-building-label {
        position: static;
        transform: none;
        display: inline-flex;
        margin-top: 14px;
    }
    .hero-building { flex-direction: column; }
}
@media (max-width: 480px) {
    .hero-meta-bar { grid-template-columns: 1fr !important; }
    .hero-title { font-size: clamp(32px, 9vw, 42px); }
    .hero-title .sep { margin: 0 8px 8px 0; width: 6px; height: 6px; }
}

/* Page hero with building (used on iletisim page) */
.page-hero-with-building .page-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.page-hero-building img {
    width: 100%;
    height: auto;
    max-width: 520px;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(23, 26, 24, 0.15));
}
@media (max-width: 900px) {
    .page-hero-with-building .page-hero-inner {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .page-hero-building img { max-width: 380px; margin: 0 auto; }
}

/* Decorative elements -------------------------------------- */
.deco-circle {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 50%;
    pointer-events: none;
}
.hero .deco-circle {
    display: none;
}
.hero .deco-circle::after {
    content: "";
    position: absolute;
    inset: 60px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
}

/* Intro section -------------------------------------------- */
.intro-section {
    background: var(--bone);
    padding: clamp(80px, 10vw, 160px) 0;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.intro-heading { font-size: clamp(32px, 4vw, 56px); line-height: 1.1; }
.intro-heading em { color: var(--forest); }
.intro-text { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.intro-text p + p { margin-top: 18px; }

@media (max-width: 800px) {
    .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Categories (Slim / Shape / Skin) -------------------------- */
.categories {
    padding: clamp(100px, 12vw, 180px) 0;
    background: var(--cream);
}
.categories-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 80px;
    gap: 40px;
    flex-wrap: wrap;
}
.categories-head h2 { max-width: 14ch; }
.categories-head p { max-width: 44ch; font-size: 15px; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cat-card {
    background: var(--cream);
    padding: 48px 36px 42px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
    transition: background 0.4s var(--ease);
    cursor: default;
}
.cat-card:hover { background: var(--bone-soft); }
.cat-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--forest);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.cat-name {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    margin-bottom: 18px;
    color: var(--ink);
}
.cat-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--ink-soft);
    margin-bottom: 22px;
    max-width: 28ch;
    line-height: 1.4;
}
.cat-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin-bottom: auto; }
.cat-link {
    margin-top: 28px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}
.cat-link svg { transition: transform 0.3s var(--ease); }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

@media (max-width: 800px) {
    .cat-grid { grid-template-columns: 1fr; }
    .cat-card { min-height: 260px; }
}

/* Technologies (editorial list) ---------------------------- */
.tech-section {
    background: var(--forest);
    color: var(--cream);
    padding: clamp(100px, 12vw, 180px) 0;
    position: relative;
    overflow: hidden;
}
.tech-section h2, .tech-section h3 { color: var(--cream); }
.tech-section .eyebrow { color: rgba(245, 241, 234, 0.7); }
.tech-section .eyebrow::before { background: rgba(245, 241, 234, 0.5); }

/* Teknolojilerimiz page — light cream background variant */
.tech-features-section {
    background: var(--cream);
    color: var(--ink);
    padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
}

.tech-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: end;
}
.tech-head h2 { max-width: 14ch; font-size: clamp(38px, 5vw, 68px); }
.tech-head p { color: rgba(245, 241, 234, 0.75); max-width: 48ch; font-size: 16px; }

.tech-list {
    border-top: 1px solid rgba(245, 241, 234, 0.18);
}
.tech-item {
    display: grid;
    grid-template-columns: 80px 280px 1fr 40px;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(245, 241, 234, 0.18);
    align-items: start;
    transition: padding 0.4s var(--ease);
    cursor: default;
}
.tech-item:hover { padding-left: 12px; padding-right: 12px; }
.tech-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--gold-soft);
    padding-top: 6px;
}
.tech-cat {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.6);
    padding-top: 10px;
    line-height: 1.5;
}
.tech-content h3 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    margin-bottom: 14px;
    font-weight: 400;
}
.tech-content h3 em { font-style: italic; color: var(--gold-soft); font-weight: 300; }
.tech-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(245, 241, 234, 0.8);
    max-width: 60ch;
}
.tech-arrow {
    font-size: 22px;
    color: rgba(245, 241, 234, 0.5);
    padding-top: 4px;
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.tech-item:hover .tech-arrow { transform: translateX(6px); color: var(--gold-soft); }

@media (max-width: 900px) {
    .tech-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
    .tech-item { grid-template-columns: 40px 1fr; gap: 20px; padding: 32px 0; }
    .tech-cat { grid-column: 2; padding-top: 0; margin-bottom: -6px; }
    .tech-content { grid-column: 2; }
    .tech-arrow { display: none; }
}

/* Founders -------------------------------------------------- */
.founders-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--bone);
}
.founders-head {
    max-width: 700px;
    margin-bottom: clamp(50px, 6vw, 80px);
}
.founders-head h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-weight: 400;
}
.founders-head h2 em { font-style: italic; color: var(--forest); }
.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
}
.founder-card {
    display: flex;
    flex-direction: column;
}
.founder-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: var(--cream);
    box-shadow: 0 20px 50px rgba(23, 26, 24, 0.1);
    margin-bottom: 28px;
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1s var(--ease);
}
.founder-card:hover .founder-photo img { transform: scale(1.03); }
.founder-info h3 {
    font-family: var(--serif);
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--ink);
    margin: 0 0 10px;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.founder-role {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 4px;
}
.founder-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.founder-info p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 42ch;
}
.intro-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(17px, 1.6vw, 21px) !important;
    color: var(--forest) !important;
    margin-top: 28px !important;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
    .founders-grid { grid-template-columns: 1fr; gap: 48px; }
    .founder-photo { max-width: 420px; }
}

/* Why us ---------------------------------------------------- */
.why-section { padding: clamp(100px, 12vw, 180px) 0; background: var(--cream); }
.why-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 100px;
    align-items: start;
}
.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.why-list li {
    padding: 26px 0;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 24px;
    align-items: baseline;
}
.why-list li:first-child { border-top: 1px solid var(--line-soft); }
.why-list .n {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--forest);
}
.why-list .txt {
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.3;
    color: var(--ink);
    font-weight: 400;
}
.why-list .txt em { color: var(--forest); font-style: italic; }

@media (max-width: 900px) {
    .why-inner { grid-template-columns: 1fr; gap: 50px; }
}

/* About teaser --------------------------------------------- */
.about-teaser {
    background: var(--bone);
    padding: clamp(100px, 12vw, 160px) 0;
    position: relative;
    overflow: hidden;
}

/* New: 2-column about teaser with clinic pano image */
.about-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.about-teaser-visual {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--cream);
    box-shadow: 0 30px 80px rgba(23, 26, 24, 0.08);
}
.about-teaser-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease);
}
.about-teaser-grid:hover .about-teaser-visual img { transform: scale(1.02); }

.about-teaser-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

/* Big device feature blocks (Teknolojilerimiz page) */
.tech-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(50px, 7vw, 100px);
    align-items: center;
    padding: clamp(60px, 8vw, 100px) 0;
    border-bottom: 1px solid var(--line);
}
.tech-feature:last-child { border-bottom: none; }
.tech-feature--reverse .tech-feature-visual { order: 2; }
.tech-feature--reverse .tech-feature-content { order: 1; }

.tech-feature-visual {
    aspect-ratio: 4 / 5;
    max-height: 720px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--cream);
    box-shadow: 0 20px 60px rgba(23, 26, 24, 0.08);
}
.tech-feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s var(--ease);
}
.tech-feature:hover .tech-feature-visual img { transform: scale(1.02); }

.tech-feature-content {
    display: flex;
    flex-direction: column;
}
.tech-feature-num {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 24px;
}
.tech-feature-content .eyebrow {
    margin-bottom: 16px;
}
.tech-feature-content h2 {
    font-family: var(--serif);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-weight: 400;
    margin: 0 0 18px;
}
.tech-feature-content h2 em {
    font-style: italic;
    color: var(--forest);
}
.tech-feature-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 1.8vw, 22px);
    color: var(--ink);
    margin-bottom: 24px;
    line-height: 1.4;
}
.tech-feature-content > p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 24px;
    max-width: 50ch;
}
.tech-feature-points {
    list-style: none;
    padding: 0;
    margin: 12px 0 28px;
}
.tech-feature-points li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.tech-feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 1px;
    background: var(--gold);
}
.tech-feature-points li strong {
    color: var(--ink);
    font-weight: 500;
}
.tech-feature-areas {
    font-size: 13.5px;
    color: var(--ink-soft);
    padding-top: 20px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
}
.tech-feature-areas strong {
    color: var(--ink);
    font-weight: 500;
}

/* Mobile: collapse all */
@media (max-width: 900px) {
    .about-teaser-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .about-teaser-visual { max-width: 480px; margin: 0 auto; }

    .tech-feature {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 50px 0;
    }
    .tech-feature--reverse .tech-feature-visual { order: 1; }
    .tech-feature--reverse .tech-feature-content { order: 2; }
    .tech-feature-visual {
        max-width: 380px;
        margin: 0 auto;
        aspect-ratio: 4 / 5;
    }
}

.about-quote {
    font-family: var(--serif);
    font-size: clamp(26px, 3.4vw, 48px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 24ch;
    margin-bottom: 48px;
    position: relative;
}
.about-quote::before {
    content: "“";
    font-family: var(--serif);
    font-size: 120px;
    line-height: 0.8;
    color: var(--gold);
    position: absolute;
    top: -30px;
    left: -60px;
    font-style: italic;
    font-weight: 300;
    opacity: 0.6;
}
.about-quote em { color: var(--forest); font-style: italic; }
.about-signature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}
.about-sig-line { width: 60px; height: 1px; background: var(--ink); }
.about-sig-text {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.about-sig-text strong { color: var(--ink); font-weight: 500; }

@media (max-width: 700px) {
    .about-quote::before { font-size: 80px; left: -10px; top: -20px; }
}

/* CTA ------------------------------------------------------- */
.cta-section {
    background: var(--ink);
    color: var(--cream);
    padding: clamp(100px, 12vw, 160px) 0;
    position: relative;
    overflow: hidden;
}
.cta-section h2, .cta-section h3 { color: var(--cream); }
.cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}
.cta-title {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    margin-bottom: 24px;
}
.cta-title em { font-style: italic; color: var(--gold-soft); font-weight: 300; }
.cta-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 1.6vw, 22px);
    color: rgba(245, 241, 234, 0.75);
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 42ch;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-section .btn { border-color: var(--cream); color: var(--cream); }
.cta-section .btn:hover { background: var(--cream); color: var(--ink); }
.cta-section .btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cta-section .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid rgba(245, 241, 234, 0.25);
    padding-left: 40px;
}
.cta-info-item { display: flex; flex-direction: column; gap: 6px; }
.cta-info-item .label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.55);
}
.cta-info-item .value {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--cream);
    line-height: 1.4;
}
.cta-info-item a:hover { opacity: 1; color: var(--gold-soft); }

@media (max-width: 900px) {
    .cta-inner { grid-template-columns: 1fr; gap: 50px; }
    .cta-info { border-left: none; border-top: 1px solid rgba(245, 241, 234, 0.25); padding: 40px 0 0; }
}

/* Footer ---------------------------------------------------- */
.site-footer {
    background: var(--bone);
    padding: 80px 0 36px;
    border-top: 1px solid var(--line);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand .site-logo { font-size: 32px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); max-width: 36ch; }
.footer-col h4 {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--ink); }
.footer-col p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom p { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-muted); }

@media (max-width: 800px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* Page header (inner pages) -------------------------------- */
.page-hero {
    padding: 180px var(--gutter) 80px;
    background: var(--cream);
    position: relative;
}
.page-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
}
.page-hero h1 {
    font-size: clamp(48px, 7vw, 104px);
    line-height: 1;
    letter-spacing: -0.03em;
}
.page-hero h1 em { color: var(--forest); font-weight: 300; }
.page-hero .lead { margin-top: 0; }
@media (max-width: 900px) {
    .page-hero-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .page-hero h1 { font-size: clamp(36px, 9vw, 52px); }
    .intro-heading { font-size: clamp(28px, 8vw, 42px) !important; }
    .tech-feature-content h2 { font-size: clamp(34px, 9vw, 48px) !important; }
    h2 { word-wrap: break-word; }
}

/* Page content (generic) ----------------------------------- */
.page-content { padding: clamp(60px, 7vw, 100px) 0; }
.page-content-inner { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.page-content-inner h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 48px 0 20px; }
.page-content-inner h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 36px 0 16px; }
.page-content-inner p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; color: var(--ink-soft); }
.page-content-inner ul, .page-content-inner ol { margin: 0 0 20px 24px; }
.page-content-inner li { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 8px; }
.page-content-inner blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.4;
    color: var(--ink);
    margin: 40px 0;
    padding-left: 32px;
    border-left: 2px solid var(--forest);
}

/* FAQ ------------------------------------------------------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 30px;
    font-family: var(--serif);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
    color: var(--ink);
}
.faq-toggle {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease), background 0.3s var(--ease);
    margin-top: 4px;
}
.faq-toggle::before {
    content: "+";
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 300;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--forest); color: var(--cream); border-color: var(--forest); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), margin-top 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 600px; margin-top: 20px; }
.faq-a p { max-width: 64ch; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* Contact grid --------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 36px; }
.contact-info-list .info-item { border-top: 1px solid var(--line); padding-top: 20px; }
.contact-info-list .label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    display: block;
}
.contact-info-list .value {
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 30px);
    color: var(--ink);
    line-height: 1.3;
}
.contact-info-list .value a:hover { color: var(--forest); opacity: 1; }

.contact-map {
    aspect-ratio: 4 / 5;
    background: var(--bone);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(0.95); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Section heading helper ----------------------------------- */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 60px;
    gap: 40px;
    flex-wrap: wrap;
}
.section-heading h2 { max-width: 16ch; }
.section-heading p { max-width: 44ch; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* Page transitions ----------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive refinements ----------------------------------- */
@media (max-width: 600px) {
    .btn { padding: 14px 22px; font-size: 13px; }
    .section-heading { flex-direction: column; align-items: start; gap: 20px; }
}

/* Utility --------------------------------------------------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }


/* ==========================================================
   LOGO (image-based)
   ========================================================== */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    line-height: 1;
}
.site-logo-img { display: block; height: 30px; width: auto; max-width: 220px; }
.site-logo-desktop { display: block; }
.site-logo-mobile { display: none; }

@media (max-width: 420px) {
    .site-logo-desktop { display: none; }
    .site-logo-mobile { display: block; height: 34px; width: auto; }
}

.site-logo-wrap .custom-logo-link { display: inline-block; }
.site-logo-wrap .custom-logo { display: block; height: 36px; width: auto; max-width: 240px; }

/* Footer logo */
.footer-logo { display: inline-block; margin-bottom: 24px; line-height: 0; }
.footer-logo img { height: 100px; width: auto; max-width: 180px; }


/* ==========================================================
   BLOG — Archive (home.php)
   ========================================================== */
.blog-archive {
    padding: clamp(60px, 8vw, 120px) 0;
    background: var(--cream);
}

.blog-featured {
    padding: 24px 0 48px;
    max-width: 880px;
}
.blog-featured-meta,
.blog-card-meta,
.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.blog-cat {
    background: var(--forest);
    color: var(--cream);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}
.blog-date,
.blog-reading,
.post-date,
.post-reading {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-weight: 400;
}

.blog-featured-title {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    font-weight: 400;
    color: var(--ink);
}
.blog-featured-title a { color: inherit; }
.blog-featured-title a:hover { color: var(--forest); opacity: 1; }
.blog-featured-excerpt {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 58ch;
    margin-bottom: 28px;
}

.blog-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 48px 0 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
    margin-top: 20px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    transition: transform 0.4s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-title {
    font-family: var(--serif);
    font-size: clamp(22px, 2vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 14px;
    flex-grow: 0;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--forest); opacity: 1; }
.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    align-self: flex-start;
    transition: gap 0.3s var(--ease);
}
.blog-link-arrow span { transition: transform 0.3s var(--ease); display: inline-block; }
.blog-card:hover .blog-link-arrow span,
.blog-featured:hover .blog-link-arrow span { transform: translateX(4px); }

/* Pagination */
.blog-archive .navigation.pagination,
.navigation.pagination {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-family: var(--sans);
    font-size: 14px;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.navigation.pagination .page-numbers:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
    opacity: 1;
}
.navigation.pagination .page-numbers.current {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}
.navigation.pagination .page-numbers.dots { border: none; background: none; color: var(--ink-muted); }


/* ==========================================================
   BLOG — Single Post (single.php)
   ========================================================== */
.post-hero {
    padding: 160px var(--gutter) 60px;
    background: var(--cream);
}
.post-meta-top {
    margin-bottom: 32px;
    justify-content: space-between;
}
.post-back {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.3s var(--ease);
}
.post-back:hover { color: var(--forest); opacity: 1; }

.post-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5.5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 32px;
    max-width: 22ch;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
}
.post-author { display: flex; flex-direction: column; gap: 2px; }
.post-author-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.post-author-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--ink);
    line-height: 1.3;
}
.post-meta-sep {
    color: var(--ink-muted);
    font-size: 16px;
    padding: 0 2px;
}

/* Post body prose */
.post-body {
    padding: clamp(40px, 5vw, 80px) 0 clamp(40px, 5vw, 80px);
    background: var(--cream);
}
.post-body .container-narrow { max-width: 780px; }

.post-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.post-body > .container-narrow > p:first-of-type {
    font-family: var(--serif);
    font-size: clamp(19px, 1.8vw, 22px);
    line-height: 1.55;
    color: var(--ink);
    font-style: normal;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.005em;
}

.post-body h2 {
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 400;
    color: var(--ink);
    margin: 56px 0 20px;
    padding-top: 8px;
    position: relative;
}
.post-body h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--forest);
}
.post-body h3 {
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 26px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 400;
    color: var(--ink);
    margin: 36px 0 14px;
}
.post-body h3 em { color: var(--forest); font-style: italic; }

.post-body strong { font-weight: 500; color: var(--ink); }
.post-body em { font-family: var(--serif); font-style: italic; }

.post-body a {
    color: var(--forest);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.post-body a:hover { color: var(--forest-deep); opacity: 1; }

.post-body ul, .post-body ol {
    margin: 0 0 28px 22px;
    padding-left: 6px;
}
.post-body li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 10px;
    padding-left: 4px;
}
.post-body ul li::marker { color: var(--gold); }
.post-body ol li::marker { color: var(--forest); font-family: var(--serif); font-style: italic; }

.post-body blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.45;
    color: var(--ink);
    margin: 40px 0;
    padding: 20px 0 20px 32px;
    border-left: 2px solid var(--forest);
    max-width: 56ch;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 36px 0;
    font-size: 15px;
    border: 1px solid var(--line);
}
.post-body table th {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--cream);
    background: var(--forest);
    text-align: left;
    padding: 14px 16px;
    vertical-align: top;
}
.post-body table td {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    line-height: 1.55;
    vertical-align: top;
}
.post-body table tr:nth-child(even) td { background: var(--bone-soft); }

/* Author Card */
.post-author-card {
    padding: clamp(50px, 7vw, 90px) 0;
    background: var(--bone);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.author-card-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 50px;
    align-items: start;
}
.author-card-label { padding-top: 8px; }
.author-card-name {
    font-family: var(--serif);
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 14px;
}
.author-card-bio {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 56ch;
}

/* Related Posts */
.related-posts {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--cream);
}


/* ==========================================================
   MOBILE RESPONSIVE — Comprehensive fixes
   Breakpoint system: 1024 / 900 / 768 / 600 / 480
   ========================================================== */

/* Tablet and below (<=1024px) — gutters and spacing only.
   Grid stacking for mobile lives in <=900px / <=768px blocks below.
   Do NOT set grid-template-columns here or it overrides mobile. */
@media (max-width: 1024px) {
    :root { --gutter: clamp(18px, 4vw, 32px); }
    .header-inner { gap: 18px; }
    .site-nav { gap: 22px; }
    .site-nav a { font-size: 13.5px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
    .categories-head { margin-bottom: 60px; }
}

/* Narrow desktop — prevent nav overflow in tablet landscape */
@media (max-width: 1100px) and (min-width: 901px) {
    .site-nav { gap: 18px; }
    .site-nav a { font-size: 13px; }
    .site-nav .nav-cta { padding: 9px 14px; font-size: 12px; }
    .nav-journal { width: 34px; height: 34px; }
    .nav-journal-icon { width: 18px; height: 18px; }
}

/* Mobile header breakpoint (<=900px) */
@media (max-width: 900px) {
    .site-header { padding: 14px var(--gutter); }
    .site-header.scrolled { padding: 12px var(--gutter); }
    .site-logo-img { height: 30px; }
    .page-hero { padding: 120px var(--gutter) 60px; }
    .post-hero { padding: 130px var(--gutter) 40px; }
}

/* Medium mobile (<=768px) */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; gap: 32px; }
    .author-card-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .author-card-label { padding-top: 0; }
    .hero {
        padding: 120px var(--gutter) 60px;
        min-height: auto;
    }
    .hero-actions { gap: 12px; }
    .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }
    .about-quote { max-width: 100%; padding-left: 12px; }
    .categories-head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .categories-head p { max-width: none; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
    .section-heading p { max-width: none; }
    .cat-card { padding: 40px 28px 36px; min-height: auto; }
    .cat-card + .cat-card { border-top: 1px solid var(--line); }
    .post-title { margin-bottom: 24px; }
    .post-meta { gap: 10px; }
    .post-meta-sep { display: none; }
    .post-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .post-body table td, .post-body table th {
        white-space: normal;
        min-width: 140px;
    }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero .deco-circle { display: none; }
    .blog-featured-title { font-size: clamp(28px, 7vw, 40px); }
    .post-title { font-size: clamp(32px, 7vw, 48px); }
    .post-body p { font-size: 16px; }
    .post-body li { font-size: 16px; }
}

/* Small mobile (<=600px) */
@media (max-width: 600px) {
    h1 { font-size: clamp(36px, 10vw, 56px); }
    h2 { font-size: clamp(28px, 8vw, 44px); }
    h3 { font-size: clamp(20px, 5.5vw, 28px); }
    .hero-title { font-size: clamp(44px, 12vw, 72px); line-height: 0.98; }
    .hero-sub { font-size: clamp(18px, 5vw, 24px); margin-top: 16px; }
    .hero-body { font-size: 15px; margin-top: 28px; }
    .hero-actions { margin-top: 32px; }
    .btn { padding: 14px 22px; font-size: 13px; }
    .eyebrow { font-size: 11px; gap: 10px; }
    .eyebrow::before { width: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-meta { gap: 22px; }
    .hero-meta-item { flex: 1 1 45%; min-width: 140px; }
    .blog-featured-meta, .blog-card-meta, .post-meta-top {
        gap: 10px;
        font-size: 11px;
    }
    .blog-cat { font-size: 10px; padding: 5px 10px; }
    .post-body h2 { margin-top: 40px; }
    .post-body blockquote { padding-left: 18px; margin: 28px 0; }
    .faq-q { font-size: 18px; gap: 16px; }
    .contact-info-list { gap: 24px; }
    .contact-info-list .value { font-size: clamp(18px, 5vw, 24px); }
    .section-heading h2 { max-width: none; }
}

/* Extra-small (<=420px, iPhone SE class) */
@media (max-width: 420px) {
    :root { --gutter: 18px; }
    .header-inner { gap: 12px; }
    .site-header { padding: 14px var(--gutter); }
    .hero { padding: 100px var(--gutter) 50px; }
    .page-hero { padding: 100px var(--gutter) 48px; }
    .post-hero { padding: 110px var(--gutter) 36px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-title { font-size: clamp(40px, 13vw, 60px); letter-spacing: -0.03em; }
    .post-title { font-size: clamp(28px, 8.5vw, 42px); }
    .footer-brand p { max-width: none; }
    .about-quote::before { display: none; }
    .cta-title { font-size: clamp(30px, 9vw, 48px); }
    .post-body p, .post-body li { font-size: 15.5px; line-height: 1.75; }
    .post-body > .container-narrow > p:first-of-type { font-size: 17px; }
}

/* Prevent awkward orphan words / line breaks on mobile headings */
@media (max-width: 768px) {
    h1, h2, h3, .hero-title, .post-title, .blog-featured-title, .cta-title {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Ensure images in post body don't overflow */
.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px auto;
    border-radius: 2px;
}

/* ==========================================================
   IMAGERY — hero background, service visuals, tech strip
   ========================================================== */

/* Hero decorative background image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}
.hero > *:not(.hero-bg-image) { position: relative; z-index: 2; }

/* Service category visuals (Slim/Shape/Skin cards on front page) */
.cat-visual {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--bone);
    border-radius: 2px;
    position: relative;
}
.cat-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}
.cat-card:hover .cat-visual img { transform: scale(1.03); }

/* Technology visuals strip (4 cards above tech-list) */
.tech-visuals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 0 80px;
}
.tech-visual-item {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bone);
    border-radius: 4px;
    transition: transform 0.5s var(--ease);
    position: relative;
}
.tech-visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.tech-visual-item:hover { transform: translateY(-4px); }

/* About / Contact / Consultation visuals (reusable) */
.content-visual {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bone);
    border-radius: 4px;
}
.content-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Intro section with visual on left (About page) */
.intro-grid-with-visual {
    grid-template-columns: 2fr 3fr;
    align-items: start;
    gap: 80px;
}
.intro-visual { position: sticky; top: 120px; }
.intro-visual .content-visual { aspect-ratio: 14 / 9; max-height: 600px; }

/* 5-up tech visuals grid (front-page + Teknolojilerimiz page) */
.tech-visuals-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 90px;
}
.tech-visuals-5 .tech-visual-item {
    aspect-ratio: 4 / 5;
}
.tech-visual-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(245, 241, 234, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-align: center;
    border-radius: 2px;
}

@media (max-width: 1100px) {
    .tech-visuals-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .intro-grid-with-visual {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .intro-visual { position: static; top: auto; }
    .intro-visual .content-visual { aspect-ratio: 4 / 3; max-width: 420px; margin: 0 auto; }
    .tech-visuals-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 50px; }
    .tech-visual-label { font-size: 10px; padding: 5px 8px; }
}

/* cat-card-wide (Hizmetlerimiz page) — ensure mobile collapse */
@media (max-width: 768px) {
    .cat-card-wide {
        display: block !important;
        padding: 40px 24px !important;
    }
    .cat-card-wide > div { margin-bottom: 32px; }
    .cat-card-wide > div:last-child { margin-bottom: 0; }
    .cat-card-wide .content-visual {
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }
}


@media (max-width: 900px) {
    .tech-visuals {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 50px;
    }
    .cat-visual { aspect-ratio: 4 / 3; margin-bottom: 20px; }
}
@media (max-width: 480px) {
    .tech-visuals { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    max-width: 620px;
    margin: 0 auto;
    padding: 22px 26px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(23, 26, 24, 0.35);
    font-family: var(--sans);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner.visible { opacity: 1; transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 280px; min-width: 0; }
.cookie-banner h3 {
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--cream);
}
.cookie-banner p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(245, 241, 234, 0.82);
    margin: 0;
}
.cookie-banner a {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner a:hover { color: var(--gold); opacity: 1; }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner .btn {
    padding: 11px 22px;
    font-size: 12px;
    letter-spacing: 0.1em;
}
.cookie-banner .btn.btn-ghost {
    background: transparent;
    border: 1px solid rgba(245, 241, 234, 0.3);
    color: var(--cream);
}
.cookie-banner .btn.btn-ghost:hover {
    background: rgba(245, 241, 234, 0.1);
    border-color: rgba(245, 241, 234, 0.6);
}
.cookie-banner .btn.btn-primary {
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--cream);
}
.cookie-banner .btn.btn-primary:hover {
    background: var(--bone);
    border-color: var(--bone);
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px 20px;
    }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* Footer legal links row */
.footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.footer-legal a {
    color: rgba(245, 241, 234, 0.72);
    transition: color 0.25s var(--ease);
}
.footer-legal a:hover { color: var(--cream); opacity: 1; }
.footer-legal span { color: rgba(245, 241, 234, 0.35); }


/* ==========================================================
   FINAL MOBILE OVERRIDE — highest specificity, last in source.
   Guarantees every multi-column grid collapses to 1 column on mobile,
   regardless of earlier rules. This is the safety net.
   ========================================================== */
@media (max-width: 900px) {
    .hero-inner,
    .intro-grid,
    .tech-head,
    .why-inner,
    .cta-inner,
    .contact-grid,
    .page-hero-inner,
    .author-card-inner {
        grid-template-columns: 1fr !important;
    }
    .hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Right-column info blocks (YAKLAŞIM, TEKNOLOJİ, UZMAN) should not
       float alongside hero text on mobile — move below. */
    .hero-side,
    .hero-meta,
    .cta-info {
        margin-top: 40px;
    }
    /* Ensure nothing can ever overflow horizontally on small screens */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 3px;
    border-radius: 2px;
}
