/* ================================
   PERLA PAINT - LAYOUT SYSTEM
   ================================ */

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Sayfa seçimi */
::selection {
    background-color: var(--perla-bordo);
    color: var(--perla-light);
}

/* Genel container */
.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.container-wide {
    width: min(var(--container-wide), calc(100% - 48px));
    margin-inline: auto;
}

/* Section sistemi */
.section {
    position: relative;
    padding-block: var(--section-padding);
}

.section-sm {
    padding-block: 80px;
}

.section-dark {
    background-color: var(--perla-bordo);
    color: var(--text-light);
}

.section-light {
    background-color: var(--perla-light);
    color: var(--text-dark);
}

.section-soft {
    background-color: var(--color-soft-section);
    color: var(--text-dark);
}

.section-antrasit {
    background-color: var(--perla-antrasit);
    color: var(--text-light);
}

/* İnce ayırıcı çizgi */
.section-line {
    border-top: 1px solid var(--border-light);
}

.section-dark .section-line {
    border-top-color: var(--border-white);
}

/* Grid sistemleri */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Başlık sistemi */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--perla-gold);
}

.section-label::before {
    content: "";
    width: 42px;
    height: 1px;
    background-color: currentColor;
}

.page-kicker {
    display: block;
    margin-bottom: 18px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--perla-gold);
}

.h1,
.h2,
.h3,
.page-title,
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.022em;
}

.page-title {
    font-size: var(--type-page-title);
    line-height: 1.02;
}

.section-title {
    max-width: 780px;
    font-size: var(--type-section-title);
    line-height: 1.08;
}

.title-md {
    font-family: var(--font-heading);
    font-size: var(--type-section-title);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.title-sm {
    font-family: var(--font-heading);
    font-size: var(--type-feature-title);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

/* Metin sistemi */
.lead {
    max-width: 720px;
    font-size: var(--type-body-lg);
    font-weight: 400;
    line-height: 1.78;
    color: var(--text-muted);
}

.section-dark .lead,
.section-antrasit .lead {
    color: rgba(234, 233, 229, 0.74);
}

.text {
    font-size: var(--type-body);
    line-height: 1.85;
    color: var(--text-muted);
}

.section-dark .text,
.section-antrasit .text {
    color: rgba(234, 233, 229, 0.72);
}

.text-small {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--text-muted);
}

/* Sayfa hero genel yapısı */
.page-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 90px;
    overflow: hidden;
}

.page-hero.is-dark {
    background-color: var(--perla-bordo);
    color: var(--text-light);
}

.page-hero.is-light {
    background-color: var(--perla-light);
    color: var(--text-dark);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.page-hero .lead {
    margin-top: 28px;
}

/* Büyük arka plan numarası / editoryal detay */
.editorial-number {
    position: absolute;
    right: 6vw;
    bottom: -30px;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(160px, 28vw, 420px);
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.09em;
    color: rgba(234, 233, 229, 0.08);
    pointer-events: none;
    user-select: none;
}

.page-hero.is-light .editorial-number {
    color: rgba(56, 10, 20, 0.06);
}

/* İçerik blokları */
.content-block {
    max-width: 760px;
}

.content-block > * + * {
    margin-top: 22px;
}

/* Görsel alanları */
.image-frame {
    position: relative;
    overflow: hidden;
    background-color: var(--perla-gold-soft);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-frame.large {
    min-height: 560px;
}

.image-frame.medium {
    min-height: 420px;
}

.image-frame.rounded {
    border-radius: var(--radius-lg);
}

/* Kurumsal ince çizgili kutu */
.refined-box {
    position: relative;
    padding: 38px;
    border: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.32);
}

.section-dark .refined-box {
    border-color: var(--border-white);
    background-color: rgba(255, 255, 255, 0.035);
}

/* Altın çizgi detay */
.gold-line {
    width: 100%;
    height: 1px;
    background-color: var(--border-gold);
}

/* Sayfa geçiş animasyonları için temel */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Erişilebilirlik */
.skip-link {
    position: absolute;
    top: -100px;
    left: 24px;
    z-index: 9999;
    padding: 12px 18px;
    background-color: var(--perla-bordo);
    color: var(--perla-light);
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 24px;
}
