/*
Theme Name: Stitching Treehouse Coaching
Theme URI: https://stitchingtreehouse.org
Author: Your Name
Description: A colorful, block-based theme for Treehouse Coaching, inspired by Dutch Design.
Version: 1.1
Text Domain: stitching
*/

:root {
    /* Renk Paleti */
    --color-bg: #F4F1DE;
    --color-text: #1D1D1D;
    --color-green: #D4EDDA;  /* Umut Yeşili */
    --color-orange: #FF8C42; /* Enerji Turuncusu */
    --color-blue: #4EA5D9;   /* Bilgi Mavisi */
    --color-yellow: #F9DC5C; /* Vurgu Sarısı */
    --color-border: #000000; /* Kalın Siyah Çizgiler */
    
    /* Ölçüler */
    --border-width: 3px;
    --spacing-md: 2rem;
    --spacing-sm: 1rem;
}

/* --- 1. TEMEL AYARLAR & RESET --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. GRID SİSTEMİ (LAYOUT) --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0; /* Tam genişlik, kenar boşluğu yok */
}

.block-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0; /* Bloklar yapışık */
    border: var(--border-width) solid var(--color-border);
    background-color: var(--color-border);
}

.block-item {
    background-color: #fff;
    padding: var(--spacing-md);
    min-height: 200px;
    position: relative;
    height: 100%; /* Grid hücresini doldur */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.block-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Link olan bloklar */
a.block-item {
    text-decoration: none;
    color: inherit;
}

/* Grid Sütunları (Span) */
.span-12 { grid-column: span 12; }
.span-9  { grid-column: span 9; }
.span-8  { grid-column: span 8; }
.span-7  { grid-column: span 7; }
.span-6  { grid-column: span 6; }
.span-5  { grid-column: span 5; }
.span-4  { grid-column: span 4; }
.span-3  { grid-column: span 3; }

/* --- 3. HEADER & NAVİGASYON --- */
.site-header {
    border-bottom: var(--border-width) solid var(--color-border);
    background: #fff;
    padding: 0;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0; /* Kenar boşluksuz */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex-shrink: 0;
}

.site-title a {
    font-size: 1.75rem; /* Desktop Boyutu */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    text-decoration: none;
    color: #000;
}

/* Masaüstü Menü */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-navigation a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--color-orange);
}

/* Header Butonu */
.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    white-space: nowrap;
}

/* Hamburger İkonu (Desktop'ta Gizli) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}
.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
}

/* Mobil Menü Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-yellow);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-content {
    text-align: center;
    width: 80%;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-nav-list li {
    margin-bottom: 1.5rem;
}

.mobile-nav-list a {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    transition: color 0.2s;
}

.mobile-nav-list a:hover {
    color: #fff;
}

.mobile-btn {
    font-size: 1.5rem;
    padding: 15px 40px;
}

/* --- 4. BUTONLAR & RENKLER --- */
.btn-block {
    display: inline-block;
    padding: 10px 20px;
    border: var(--border-width) solid var(--color-border);
    background-color: var(--color-orange);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px var(--color-border);
    text-decoration: none;
}

.btn-block:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--color-border);
}

/* Arka Plan Renkleri */
.bg-green { background-color: var(--color-green); }
.bg-blue { background-color: var(--color-blue); }
.bg-yellow { background-color: var(--color-yellow); }
.bg-orange { background-color: var(--color-orange); }
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; color: #fff; }
.bg-light-gray { background-color: #E5E5E5; color: #000; }

.bg-image {
    background-size: cover;
    background-position: center;
    position: relative;
}
.bg-image .overlay-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 5px 5px 0 #000;
}

/* Hover Efektleri */
.block-item.hover-effect {
    transition: transform 0.2s ease;
}
.block-item.hover-effect:hover {
    transform: scale(1.01);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- 5. TİPOGRAFİ UTILITIES --- */
/* Standart Yapı: Overline -> Headline -> Subtext */
.overline {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.headline {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.subtext {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 90%;
}

.big-title { /* Eski class uyumluluğu için */
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.medium-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.arrow-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
    border-bottom: 3px solid transparent;
}
.arrow-link:hover {
    border-bottom-color: #000;
}

/* --- 6. BLOK ÖZEL STİLLERİ --- */

/* Hero Block */
.hero-block {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}
.hero-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-title { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 900; text-shadow: 2px 2px 0 #000; }

/* Team (Yuvarlak Fotolar) */
.team-faces { display: flex; gap: 10px; margin-top: 1rem; }
.team-face { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #000; object-fit: cover; background: #ccc; }
.team-face.more { background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }

/* Events (Takvim Hizalaması) */
.events-flex { display: flex; flex-direction: row; justify-content: space-between; height: 100%; gap: 1rem; }
.events-info { flex: 1; display: flex; flex-direction: column; }
.mini-calendar { flex: 0 0 260px; background: #fff; border: 3px solid #000; padding: 15px; box-shadow: 5px 5px 0 rgba(0,0,0,0.1); align-self: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 0.8rem; margin-top: 10px; }
.cal-head { font-size: 0.7rem; color: #666; margin-bottom: 5px; }
.cal-cell { background: #eee; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.cal-cell.today { border: 2px solid #000; }
.cal-cell.active { background: var(--color-orange); color: #fff; font-weight: bold; }

/* FAQ (Metin ve Link) */
.faq-content h2 { color: #fff; }
.faq-content p { color: #fff; opacity: 0.9; }
.faq-content .arrow-link { color: #fff; border-bottom: 3px solid transparent; }
.faq-content .arrow-link:hover { border-bottom-color: #fff; }

/* FAQ Akordeon (Arşiv Sayfası) */
details.faq-item { border-bottom: 3px solid #000; transition: all 0.3s ease; }
details.faq-item:last-child { border-bottom: none; }
details.faq-item[open] { background-color: #f9f9f9; }
summary.faq-question { padding: 1.5rem 2rem; font-weight: 800; font-size: 1.2rem; cursor: pointer; list-style: none; position: relative; padding-right: 4rem; }
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question .icon { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); font-size: 2rem; font-weight: 300; line-height: 1; }
details[open] summary.faq-question .icon { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 2rem 2rem 2rem; font-size: 1.1rem; line-height: 1.6; color: #333; max-width: 900px; }

/* News (Read More) */
.read-more-btn { display: inline-block; background: #000; color: #fff; padding: 8px 16px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; margin-top: auto; align-self: flex-start; text-decoration: none; }
.read-more-btn:hover { background: var(--color-orange); color: #000; }

/* --- 7. FORMLAR (CF7) --- */
.custom-form-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row label { display: block; font-weight: 800; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 0.5rem; letter-spacing: 0.5px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
    width: 100%; padding: 15px; border: 3px solid #000; background-color: #fff; font-family: inherit; font-size: 1rem; border-radius: 0; box-shadow: 4px 4px 0 rgba(0,0,0,0.1); transition: all 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-orange); box-shadow: 4px 4px 0 #000; transform: translate(-2px, -2px); }
.form-row.two-col { display: flex; gap: 1.5rem; }
.form-row.two-col .col { flex: 1; }
input.wpcf7-submit {
    background-color: #000; color: #fff; border: 3px solid #000; padding: 15px 30px; font-weight: 900; text-transform: uppercase; cursor: pointer; font-size: 1.1rem; width: auto; display: inline-block;
}
input.wpcf7-submit:hover { background-color: var(--color-orange); color: #000; border-color: #000; box-shadow: 6px 6px 0 rgba(0,0,0,0.2); }

/* --- 8. FOOTER --- */
.site-footer {
    border-top: var(--border-width) solid var(--color-border);
    background-color: #111;
    color: #fff;
    padding: 3rem;
}

/* Sayfalama */
.pagination .page-numbers { display: inline-block; padding: 10px 15px; border: 2px solid #000; margin: 0 5px; font-weight: bold; text-decoration: none; transition: 0.2s; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background-color: #000; color: #fff; }

/* --- 9. RESPONSIVE (MEDIA QUERIES) --- */

/* Tablet ve Altı (1024px) */
@media (max-width: 1024px) {
    /* Navigasyon */
    #desktop-navigation { display: none; }
    .menu-toggle { display: flex; }
    .header-btn { display: none; }
    
    /* Header Padding */
    .header-container { padding: 1rem; }
    .container { padding: 0 1rem; }

    /* Başlık */
    .site-title a { font-size: 1.4rem; }
    .site-branding { flex-shrink: 1; margin-right: 1rem; max-width: 70%; }
}

/* Mobil (900px ve altı - Blok düzenlemeleri) */
@media (max-width: 900px) {
    .events-flex { flex-direction: column; }
    .mini-calendar { width: 100%; margin-top: 2rem; }
    .headline { font-size: 2.5rem; }
    .big-title { font-size: 2.5rem; }
}

/* Küçük Mobil (768px ve altı) */
@media (max-width: 768px) {
    /* Grid */
    .block-grid { display: flex; flex-direction: column; }
    .h-lg, .h-md { min-height: auto; }
    
    /* Header */
    .site-header { flex-direction: row; text-align: left; }
    .site-title a { font-size: 1.2rem; white-space: normal; word-wrap: break-word; }
    
    /* Hero */
    .hero-title { font-size: 2.5rem; }
    .hero-block { padding: 2rem; min-height: 300px; }
    
    /* Form */
    .form-row.two-col { flex-direction: column; }
}

/* Çok Küçük Mobil (480px) */
@media (max-width: 480px) {
    .site-title a { font-size: 1rem; }
}


/* --- KOÇ KARTLARI (Responsive & Düzen) --- */
.coach-card-inner {
    display: flex;
    height: 100%;
    flex-direction: row; /* Masaüstünde yan yana */
}

.coach-img-col {
    width: 40%;
    border-right: 3px solid #000;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Resim sıkışmasın */
}

.coach-info-col {
    width: 60%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Mobil Görünüm (768px altı) */
@media (max-width: 768px) {
    .coach-card-inner {
        flex-direction: column; /* Mobilde alt alta */
    }
    
    .coach-img-col {
        width: 100%;
        height: 400px; /* Mobilde resim yüksekliği */
        border-right: none;
        border-bottom: 3px solid #000;
    }
    
    .coach-info-col {
        width: 100%;
        padding: 1.5rem;
    }

}

#menu-footer-menu,
#menu-footer-menu-2 {
    list-style-type: none;
    padding-left: 0px;
}

/* --- MISSION SAYFASI ÖZEL --- */
.highlight-quote {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobilde biraz küçült */
@media (max-width: 768px) {
    .highlight-quote {
        font-size: 2rem;
    }
}