/* GreenLeaf İzmir — mavi ağırlıklı, üyelik öncelikli ana sayfa (Kasım 2026)
   Yalnızca ana sayfalarda (TR/EN/RU) yüklenir; tüm kurallar .gl-home altında. */

.gl-home {
  --h-ink: #143D51;
  --h-join-bg: #eff7fb;
  --h-blue: #146483;
  --h-green: #19513f;
  --h-soft: #eaf5fa;
  --h-warm: #f4f9fc;
  --h-line: #d4e5ed;
  --h-muted: #415f6e;
  color: var(--h-ink);
}
.gl-home .h-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.gl-home h1, .gl-home h2, .gl-home h3 { color: var(--h-ink); }
.gl-home .h-section { margin: 0 auto 56px; }
.gl-home .h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.gl-home .h-head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.gl-home .h-head p { margin: 6px 0 0; color: var(--h-muted); }
.gl-home .h-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-blue); }
.gl-home .h-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.gl-home .h-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; color: #fff; background: var(--h-green); border: 0; }
.gl-home .h-btn:hover, .gl-home .h-btn:focus-visible { filter: brightness(.9); color: #fff; }
.gl-home .h-btn-blue { background: var(--h-blue); }
.gl-home .h-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--h-blue); text-decoration: none; }
.gl-home .h-link:hover, .gl-home .h-link:focus-visible { text-decoration: underline; }

/* 1. Açılış: iki başvuru yolu yan yana (DOM ve dar ekran sırası: önce ön başvuru), altında ince Ege şeridi ve tam genişlik ürün bandı */
.gl-home .h-hero { margin: 16px auto 14px; }
.gl-home .h-paths { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
.gl-home .h-path { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--h-line); border-radius: 14px; }
.gl-home .h-pre { background: var(--h-join-bg); }
.gl-home .h-pre h1 { margin: 0; max-width: 14ch; font-size: clamp(1.85rem, 3.1vw, 2.65rem); line-height: 1.07; letter-spacing: -.025em; }
.gl-home .h-pre p { margin: 11px 0 14px; max-width: 41ch; color: var(--h-muted); }
.gl-home .h-join { background: #fbfcfb; }
.gl-home .h-join-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 14px; width: 100%; }
.gl-home .h-join h2 { margin: 0; max-width: 13ch; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.08; letter-spacing: -.02em; }
.gl-home .h-join-copy p { margin: 10px 0 0; color: var(--h-muted); }
.gl-home .h-join .h-team { display: block; margin: 0; aspect-ratio: 8 / 5; border-radius: 9px; overflow: hidden; background: var(--h-warm); }
.gl-home .h-join .h-team img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Üyelik kartı: düğme üstte; iki bağlantı altında. Bağlantı yazıları düğmenin içindeki yazıyla aynı soldan başlar;
   yan yana sığmazsa alt alta geçer, hizası bozulmaz. */
.gl-home .h-join > .h-actions { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 14px; }
.gl-home .h-join-links { display: flex; flex-wrap: wrap; column-gap: 7px; }
.gl-home .h-join-links .h-link { padding-inline-start: 19px; white-space: nowrap; }
.gl-home .h-btn-outline { background: #fff; color: var(--h-blue); border: 1px solid var(--h-blue); }
.gl-home .h-btn-outline:hover, .gl-home .h-btn-outline:focus-visible { filter: none; background: var(--h-soft); color: var(--h-blue); }
/* Ege kıyısı şeridi: iki kartın altında ince dekoratif panorama + Crown Team logosu */
.gl-home .h-ege-banner { position: relative; height: 58px; margin-top: 14px; overflow: hidden; border-radius: 10px; }
.gl-home .h-ege-banner .h-ege-background { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-home .h-ege-banner::after { content: ""; position: absolute; inset: 0 auto 0 0; width: min(110px, 40%); background: linear-gradient(90deg, rgb(241 248 251 / 80%) 0 45%, transparent); pointer-events: none; }
.gl-home .h-ege-banner .h-ege-crown { position: absolute; z-index: 1; inset-inline-start: 14px; top: 50%; height: 46px; width: auto; max-width: none; transform: translateY(-50%); }
/* Greenleaf ürünleri: içerik genişliğinde yatay bant; metin solda, altı ürünlü fotoğraf sağda */
.gl-home .h-shop { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--h-line); border-radius: 14px; background: #fff; }
.gl-home .h-shop-copy { align-self: center; padding: 20px clamp(16px, 2.4vw, 26px); }
.gl-home .h-shop h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }
.gl-home .h-shop-copy > p { margin: 0 0 12px; color: var(--h-muted); }
.gl-home .h-shop-media { position: relative; min-height: 100%; aspect-ratio: 2.1 / 1; background: var(--h-warm); }
.gl-home .h-shop-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 67% 55%; }

/* Üst menü: Greenleaf amblemi */
.site-header .brand-mark { display: block; align-self: center; width: 34px; height: 34px; margin-inline-end: 2px; object-fit: contain; }

/* Lefi karşılaması ana sayfada Ege şeridinin hizasında durur (yalnız geniş ekran; konum gunluk JS'te ölçülür) */
@media (min-width: 761px) {
  body:has(.gl-home) #lefi-widget { --lefi-top: var(--h-lefi-top, 112px); }
}

/* 2. Adımlar */
.gl-home .h-steps-wrap { margin-bottom: 14px; }
.gl-home .h-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 10px 0; background: transparent; border: 0; border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); border-radius: 0; }
.gl-home .h-step { display: flex; gap: 12px; align-items: flex-start; }
.gl-home .h-step-no { font-family: var(--font-display, Georgia, serif); font-size: 1.45rem; line-height: 1; color: var(--h-blue); }
.gl-home .h-step strong { display: block; color: var(--h-ink); }
.gl-home .h-step p { margin: 1px 0 0; font-size: .86rem; line-height: 1.35; color: var(--h-muted); }

/* 3. Üyelik paketleri */
.gl-home #paketler .h-head { margin-bottom: 12px; }
.gl-home .h-package-off img { object-fit: cover; }
.gl-home .h-package-status { display: inline-block; margin: 2px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--h-soft); color: var(--h-muted); font-size: .85rem; font-weight: 700; }
.gl-home .h-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gl-home .h-package { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--h-line); border-radius: 12px; background: #fff; }
.gl-home .h-package img { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; background: var(--h-warm); }
.gl-home .h-package h3 { margin: 0 0 6px; font-family: var(--font-body, sans-serif); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.gl-home .h-package-meta { margin: 0 0 4px; font-weight: 700; color: var(--h-ink); }
.gl-home .h-section-note { margin: 14px 0 0; font-size: .92rem; color: var(--h-muted); }

/* 6. Crown Team */
.gl-home .h-team-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border: 1px solid var(--h-line); border-radius: 14px; overflow: hidden; background: var(--h-warm); }
.gl-home .h-team-lead { background: var(--h-soft); padding: 24px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.gl-home .h-team-lead p:not(.h-eyebrow) { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.35rem; line-height: 1.25; color: var(--h-ink); }
.gl-home .h-team-copy { padding: 24px 28px; }
.gl-home .h-team-copy h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.gl-home .h-team-copy p { margin: 0 0 10px; color: var(--h-muted); }

/* 7. Greenleaf Günlüğü */
.gl-home .h-journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gl-home .h-album { border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 15px rgb(16 57 79 / 5%); }
.gl-home .h-album-cover { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--h-warm); }
.gl-home .h-album-body { padding: 14px 16px 16px; }
.gl-home .h-album-tag { margin: 0; font-size: .78rem; font-weight: 700; color: var(--h-blue); }
.gl-home .h-album h3 { margin: 4px 0 6px; font-size: 1.45rem; }
.gl-home .h-album-summary { margin: 0; font-size: .92rem; color: var(--h-muted); }
.gl-home .h-album details { margin-top: 8px; }
.gl-home .h-album summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--h-blue); list-style: none; }
.gl-home .h-album summary::-webkit-details-marker { display: none; }
.gl-home .h-album summary::after { content: "→"; margin-left: 6px; }
.gl-home .h-album details[open] summary::after { content: "×"; }
.gl-home .h-album summary:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; border-radius: 4px; }
.gl-home .h-album-story { margin: 4px 0 10px; font-size: .92rem; color: var(--h-muted); }
.gl-home .h-gallery { display: grid; gap: 10px; }
.gl-home .h-gallery figure { margin: 0; border: 1px solid var(--h-line); border-radius: 8px; overflow: hidden; background: var(--h-warm); }
.gl-home .h-gallery img { display: block; width: 100%; height: auto; }
.gl-home .h-gallery figcaption { padding: 8px 10px; font-size: .85rem; color: var(--h-muted); }

/* Açılan albüm geniş ekranda tam satıra yayılır, fotoğraflar yan yana dizilir */
@media (min-width: 761px) {
  .gl-home .h-journal { grid-auto-flow: row dense; }
  .gl-home .h-album:has(details[open]) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .gl-home .h-album:has(details[open]) .h-album-cover { height: 100%; aspect-ratio: auto; max-height: 420px; }
  .gl-home .h-album details[open] .h-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: start; }
}

/* 8. Kategoriler (ikinci erişim noktası) */
.gl-home .h-cats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.gl-home .h-cat { display: block; border: 1px solid var(--h-line); border-radius: 10px; overflow: hidden; background: var(--h-warm); text-decoration: none; color: var(--h-ink); }
.gl-home .h-cat img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gl-home .h-cat span { display: block; padding: 9px 10px; font-size: .9rem; font-weight: 700; }
.gl-home .h-cat:hover span, .gl-home .h-cat:focus-visible span { text-decoration: underline; }

/* 9. Sık sorulanlar */
.gl-home .h-faq details { border-top: 1px solid var(--h-line); }
.gl-home .h-faq details:last-of-type { border-bottom: 1px solid var(--h-line); }
.gl-home .h-faq summary { padding: 12px 4px; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--h-ink); }
.gl-home .h-faq details p { margin: 0 4px 14px; color: var(--h-muted); }
.gl-home .h-cta { margin-top: 24px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--h-soft); border: 1px solid var(--h-line); border-radius: 14px; }
.gl-home .h-cta h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.gl-home .h-cta p { margin: 0; color: var(--h-muted); }

/* Duyuru ve öne çıkanlar bu sayfada yeni yerleşime uyar */
.gl-home .gl-duyuru { width: auto; padding: 0; margin: 24px 0 0; }

@media (max-width: 1060px) {
  .gl-home .h-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gl-home .h-packages { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .gl-home .h-journal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gl-home .h-wrap { width: calc(100% - 32px); }
  .gl-home .h-section { margin-bottom: 40px; }
  .gl-home .h-hero { margin: 12px auto 12px; }
  .gl-home .h-paths { grid-template-columns: 1fr; gap: 11px; }
  .gl-home .h-path { border-radius: 12px; }
  .gl-home .h-join-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .gl-home .h-ege-banner { height: 48px; margin-top: 11px; }
  .gl-home .h-ege-banner .h-ege-crown { height: 38px; inset-inline-start: 12px; }
  .gl-home .h-shop { grid-template-columns: 1fr; margin-top: 11px; }
  .gl-home .h-shop-copy { padding: 16px 16px 14px; }
  .gl-home .h-shop-media { min-height: 0; aspect-ratio: 2 / 1; }
  .gl-home .h-steps { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .gl-home .h-steps-wrap { margin-bottom: 10px; }
  .gl-home #paketler .h-head { margin-bottom: 10px; }
  .gl-home .h-journal { grid-template-columns: 1fr; }
  .gl-home .h-team-band { grid-template-columns: 1fr; }
  .gl-home .h-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gl-home .h-btn { width: 100%; justify-content: center; }
  .gl-home .h-hero .h-btn { width: auto; justify-content: flex-start; }
}
@media (max-width: 430px) {
  .gl-home .h-path { padding: 16px 14px; }
}
}
@media (max-width: 600px) {
  .site-header .brand-mark { width: 29px; height: 29px; }
}
/* Amblemle birlikte dar telefonlarda marka, dil, hesap, sepet ve menü tek satırda kalsın */
@media (max-width: 480px) {
  body:has(.gl-home) .header-inner { padding-inline: 16px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
}
@media (max-width: 380px) {
  body:has(.gl-home) .header-inner { padding-inline: 12px; }
  body:has(.gl-home) .brand { gap: 5px; }
  .site-header .brand-mark { width: 26px; height: 26px; margin-inline-end: 5px; }
}

/* Kasım 2026 — Greenleaf Türkiye Açılışı: Günlük'te öne çıkan albüm (tam satır, büyük kapak) */
.gl-home .h-album-featured { grid-column: 1 / -1; scroll-margin-top: 96px; border-color: #9cc3d5; box-shadow: 0 8px 24px rgb(16 57 79 / 10%); }
.gl-home .h-album-featured .h-album-cover { aspect-ratio: 16 / 10; }
.gl-home .h-album-yeni { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--h-green); color: #fff; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.gl-home .h-album-featured { overflow: clip; }
.gl-home .h-album-featured .h-gallery a { display: block; }
.gl-home .h-album-featured .h-gallery img { aspect-ratio: 3 / 4; object-fit: cover; }
.gl-home .h-album-featured .h-gallery a:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }
@media (min-width: 761px) {
  .gl-home .h-album-featured { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .gl-home .h-album-featured .h-album-cover { height: 100%; min-height: 320px; }
  .gl-home .h-album-featured .h-album-body { align-self: center; padding: 26px 28px; }
  .gl-home .h-album-featured h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
  .gl-home .h-album-featured .h-album-summary { font-size: 1rem; }
  .gl-home .h-album-featured:has(details[open]) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .gl-home .h-album-featured:has(details[open]) .h-album-body { align-self: start; }
  .gl-home .h-album-featured:has(details[open]) .h-album-cover { position: sticky; top: 90px; align-self: start; height: auto; min-height: 0; aspect-ratio: 16 / 10; max-height: none; }
  .gl-home .h-album-featured details[open] .h-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
  .gl-home .h-album-featured details[open] .h-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gl-home .h-album-featured .h-gallery figcaption { padding: 6px 8px; font-size: .78rem; }
}
