/*
 * Ereğli Tarih ve Kültür Rehberi.
 * Kitapçığın tasarım dili web düzeninde: mavi #3b689f, gri #e6e6e6, büyük harfli kalın bölüm başlığı ve
 * ekran kenarından gelen mavi şerit, KONUM/LOCATION etiketli QR, köşeli fotoğraflar.
 * Yazı tipi: kitapçıktaki Arboria'nın en yakın web karşılığı Lexend.
 */

.rb {
    --rb-blue: #3b689f;
    --rb-blue-deep: #2d5288;
    --rb-ink: #1c2230;
    --rb-muted: #555e70;
    --rb-grey: #e6e6e6;
    --rb-soft: #f3f4f6;
    --rb-line: rgba(28, 34, 48, 0.12);
    --rb-font: 'Lexend', 'Farro', system-ui, sans-serif;
    --rb-gap: clamp(1.5rem, 3vw, 2.5rem);

    font-family: var(--rb-font);
    color: var(--rb-ink);
    background: #fff;
    overflow-x: clip;
}

.rb *,
.rb *::before,
.rb *::after {
    box-sizing: border-box;
}

.rb img {
    max-width: 100%;
}

/* Genişlik sitenin .container'ından gelir (menü ve logo ile aynı hiza). */
.rb-wrap {
    position: relative;
}

/* Sitenin genel stili Farro için başlıkları ve "title"/"heading" sınıflarını 400'e sabitler;
   rehberdeki Lexend başlıkları kitapçıktaki gibi kalın kalır. */
.rb .rb-hero__title,
.rb .rb-heading__title,
.rb .rb-title,
.rb .rb-closing__cta p {
    font-weight: 700 !important;
}

.rb .rb-heading__title {
    font-weight: 800 !important;
}

.rb .rb-prose strong,
.rb .rb-prose b,
.rb .rb-heading__bar,
.rb .rb-facilities__list a {
    font-weight: 600 !important;
}

.rb .rb-mayor__tag strong {
    font-weight: 700 !important;
}

/* ---------- Giriş ---------- */

.rb-hero {
    color: #fff;
    background:
        radial-gradient(70% 90% at 85% 10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%),
        var(--rb-blue);
}

.rb-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: var(--rb-gap);
}

.rb-hero__text {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    align-self: center;
}

.rb-hero__brand {
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.9;
}

.rb-hero__title {
    margin: 0.9rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.rb-hero__subtitle {
    margin: 0.2rem 0 0;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.rb-hero__intro {
    max-width: 40ch;
    margin: 1.5rem 0 2rem;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.rb-hero__art {
    display: block;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin-block: clamp(2rem, 4vw, 3rem);
    /* Kolajdaki dalgalar kapak kenarında kesik biter; uçlar zemine yumuşakça karışır. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

/* ---------- Düğmeler ---------- */

.rb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rb-btn small {
    font-weight: 400;
    opacity: 0.75;
}

.rb-btn--light {
    color: var(--rb-blue-deep);
    background: #fff;
}

.rb-btn--light:hover,
.rb-btn--light:focus-visible {
    color: var(--rb-blue-deep);
    background: #e3eaf4;
}

/* ---------- İçindekiler ---------- */

.rb-toc {
    border-bottom: 1px solid var(--rb-line);
    background: #fff;
}

.rb-toc__list {
    display: flex;
    gap: 0.25rem 1.75rem;
    margin: 0;
    padding: 1rem 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.rb-toc__list::-webkit-scrollbar {
    display: none;
}

.rb-toc__list a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--rb-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.rb-toc__list a:hover,
.rb-toc__list a:focus-visible {
    color: var(--rb-blue);
    border-bottom-color: var(--rb-blue);
}

/* ---------- Bölümler ---------- */

.rb-section {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.rb-chapter:nth-of-type(even),
.rb-mayor {
    background: var(--rb-soft);
}

.rb-chapter {
    scroll-margin-top: 5rem;
}

.rb-chapter .rb-wrap {
    container-type: inline-size;
}

.rb-heading {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rb-heading__title {
    margin: 0 0 0.5rem;
    font-family: var(--rb-font);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: var(--rb-blue);
}

/* Kitapçıktaki gibi: ekranın sol kenarından gelen mavi şerit; içinde diğer dildeki başlık */
.rb-heading__bar {
    display: inline-block;
    margin: 0 0 0 calc((100vw - 100%) / -2);
    padding: 0.45rem 2.5rem 0.45rem calc((100vw - 100%) / 2);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    background: var(--rb-blue);
}

.rb-title {
    margin: 0 0 1rem;
    font-family: var(--rb-font);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rb-ink);
}

.rb-title--sm {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.rb-prose {
    max-width: 64ch;
    font-size: clamp(1rem, 0.7rem + 0.4vw, 1.15rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--rb-ink);
}

.rb-prose p {
    margin: 0 0 1em;
}

.rb-prose p:last-child {
    margin-bottom: 0;
}

.rb-prose strong,
.rb-prose b {
    font-weight: 600;
}

.rb-prose--lead {
    font-size: 1.125rem;
    line-height: 1.8;
}

.rb-prose--sm {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Başkanın mesajı ---------- */

.rb-mayor__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

/* Mesaj metni sütununu doldurur; geniş ekranda yazı büyür, satır uzunluğu okunur kalır. */
.rb-mayor .rb-prose {
    max-width: none;
    font-size: clamp(1.05rem, 0.55rem + 0.75vw, 1.3rem);
    line-height: 1.8;
}

.rb-mayor__photo {
    position: relative;
    margin: 0;
}

.rb-mayor__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 45% 30%;
}

.rb-mayor__tag {
    position: absolute;
    right: -1rem;
    bottom: 1.5rem;
    display: grid;
    padding: 0.8rem 1.3rem;
    text-align: right;
    background: #fff;
    box-shadow: 0 12px 30px -14px rgba(28, 34, 48, 0.45);
}

.rb-mayor__tag strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rb-blue);
}

.rb-mayor__tag span {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--rb-muted);
}

/* ---------- Öne çıkan madde ---------- */

.rb-feature {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.rb-feature + .rb-feature,
.rb-feature + div,
div + .rb-feature {
    margin-top: clamp(4rem, 8vw, 6.5rem);
}

.rb-feature.is-flipped {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.rb-feature.is-flipped .rb-feature__media {
    order: 2;
}

.rb-feature__photo {
    display: block;
    overflow: hidden;
    background: var(--rb-grey);
}

.rb-feature__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rb-feature__photo:hover img {
    transform: scale(1.03);
}

.rb-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.rb-thumbs a {
    display: block;
    overflow: hidden;
    background: var(--rb-grey);
}

.rb-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.rb-thumbs a:hover img {
    opacity: 0.85;
}

/* Fotoğrafsız metin: geniş iki sütun */
.rb-feature--text {
    grid-template-columns: minmax(0, 1fr);
}

.rb-feature--text .rb-prose {
    max-width: none;
    columns: 2;
    column-gap: clamp(2rem, 5vw, 4rem);
}

/* Mavi panel: metin, kitapçıktaki mavi kutuda; fotoğrafın üstüne biraz taşar */
.rb-feature--panel {
    column-gap: 0;
    align-items: center;
}

.rb-feature--panel .rb-feature__photo img {
    aspect-ratio: 5 / 4;
}

.rb-feature--panel .rb-feature__body {
    position: relative;
    z-index: 1;
    margin-left: clamp(-6rem, -6vw, -3rem);
    padding: clamp(1.75rem, 3.5vw, 3rem);
    color: #fff;
    background: var(--rb-blue);
    box-shadow: 0 24px 50px -24px rgba(29, 51, 87, 0.55);
}

.rb-feature--panel.is-flipped .rb-feature__body {
    margin-left: 0;
    margin-right: clamp(-6rem, -6vw, -3rem);
}

.rb-feature--panel .rb-title,
.rb-feature--panel .rb-prose,
.rb-feature--panel .rb-prose strong {
    color: #fff;
}

.rb-feature--panel .rb-prose {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.rb-feature--panel .rb-loc__link {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.rb-feature--panel .rb-loc__link:hover,
.rb-feature--panel .rb-loc__link:focus-visible {
    color: var(--rb-blue-deep);
    background: #fff;
}

/* ---------- Konum: QR + "Haritada aç" ---------- */

.rb-loc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.rb-qr {
    display: inline-flex;
    flex-direction: column;
    width: 92px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--rb-line);
    text-decoration: none;
}

.rb-qr__code {
    display: block;
    padding: 7px;
    line-height: 0;
}

.rb-qr__code svg {
    width: 100%;
    height: auto;
}

.rb-qr__label {
    display: block;
    padding: 4px 2px;
    font-size: 0.5rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    color: #fff;
    background: var(--rb-blue);
}

.rb-loc__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(59, 104, 159, 0.4);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rb-blue);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rb-loc__link:hover,
.rb-loc__link:focus-visible {
    color: #fff;
    background: var(--rb-blue);
}

.rb-loc--sm {
    margin-top: 1.25rem;
    gap: 0.75rem;
}

.rb-loc--sm .rb-qr {
    width: 64px;
}

.rb-loc--sm .rb-qr__code {
    padding: 5px;
}

.rb-loc--sm .rb-qr__label {
    display: none;
}

.rb-loc--sm .rb-loc__link {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* ---------- Liste kartları (türbeler, köprüler) ---------- */

.rb-cards {
    --rb-n: 3;
    display: grid;
    grid-template-columns: repeat(var(--rb-n), minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1199.98px) {
    .rb-cards {
        grid-template-columns: repeat(min(var(--rb-n), 2), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rb-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 0 0 1px var(--rb-line);
}

.rb-card__photo {
    display: block;
    overflow: hidden;
    background: var(--rb-grey);
}

.rb-card__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rb-card__photo:hover img {
    transform: scale(1.04);
}

.rb-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.6rem;
}

.rb-card__body .rb-loc {
    margin-top: auto;
    padding-top: 1.25rem;
}

/* ---------- Coğrafi işaretli ürünler ---------- */

.rb-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.rb-product {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--rb-grey);
}

.rb-product__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.6rem;
}

.rb-product__photo {
    display: block;
    overflow: hidden;
    background: #fff;
}

.rb-product__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Türk Patent tescil belgesi: kırmızı çerçeveli */
.rb-product__photo--doc {
    border: 3px solid #c8102e;
}

.rb-product__photo--doc img {
    object-fit: contain;
}

/* ---------- Yöresel lezzetler ---------- */

.rb-dishes {
    --rb-cols: 3;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--rb-cols), minmax(0, 1fr));
    gap: 2.5rem 2rem;
    padding-top: 2rem;
}

/* Kitapçıktaki mavi bant: ekran boyunca uzanır, fotoğrafların üst kısmının arkasında durur */
.rb-dishes::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc((100vw - 100%) / -2);
    right: calc((100vw - 100%) / -2);
    height: calc(2rem + ((100cqw - (var(--rb-cols) - 1) * 2rem) / var(--rb-cols)) * 0.75 * 0.6);
    background: var(--rb-blue);
    z-index: 0;
}

.rb-dish {
    position: relative;
    z-index: 1;
}

.rb-dish__photo {
    display: block;
    margin-bottom: 1.4rem;
    overflow: hidden;
    background: var(--rb-grey);
    box-shadow: 0 18px 36px -22px rgba(28, 34, 48, 0.6);
}

.rb-dish__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rb-dish__photo:hover img {
    transform: scale(1.04);
}

/* ---------- Tesislerimiz ---------- */

.rb-facilities__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.rb-facilities__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rb-facilities__list li {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.rb-facilities__list a {
    font-weight: 700;
    color: var(--rb-ink);
    text-decoration: none;
}

.rb-facilities__list a:hover,
.rb-facilities__list a:focus-visible {
    color: var(--rb-blue);
}

.rb-facilities__list span {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--rb-muted);
}

.rb-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    font-weight: 600;
    color: var(--rb-blue);
    text-decoration: none;
}

.rb-more:hover,
.rb-more:focus-visible {
    color: var(--rb-blue-deep);
}

.rb-apps {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.rb-apps__row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rb-apps__row p {
    flex: 1 1 auto;
    margin: 0;
    padding: 0.9rem 1.2rem;
    border-radius: 0 999px 999px 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: var(--rb-blue);
}

.rb-apps__stores {
    display: flex;
    gap: 0.6rem;
}

.rb-qr--store {
    width: 84px;
}

.rb-qr--store .rb-qr__label {
    font-size: 0.58rem;
    background: var(--rb-ink);
}

.rb-facilities__photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.rb-facilities__photos a {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--rb-grey);
}

.rb-facilities__photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rb-facilities__photos a:hover img {
    transform: scale(1.04);
}

.rb-facilities__photos span {
    position: absolute;
    inset: auto 0 0;
    padding: 2.5rem 1rem 0.9rem;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(16, 24, 40, 0.75));
}

/* ---------- Kapanış ---------- */

.rb-closing {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    color: #fff;
    background: var(--rb-blue);
}

.rb-closing__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--rb-gap);
}

.rb-closing__art {
    display: block;
    width: min(100%, 560px);
    height: auto;
}

.rb-closing__cta p {
    margin: 0 0 1.25rem;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ---------- Odak ---------- */

.rb a:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 3px;
}

/* ---------- Duyarlı ---------- */

@media (max-width: 991.98px) {
    .rb-hero__grid,
    .rb-mayor__grid,
    .rb-feature,
    .rb-facilities__grid,
    .rb-closing__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-hero__text {
        padding-bottom: 0;
    }

    .rb-hero__art {
        margin-top: 0;
    }

    .rb-mayor__photo {
        max-width: 26rem;
    }

    .rb-feature.is-flipped {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-feature.is-flipped .rb-feature__media {
        order: 0;
    }

    .rb-hero__art {
        width: 100%;
        max-width: 640px;
    }

    .rb-feature--panel .rb-feature__body,
    .rb-feature--panel.is-flipped .rb-feature__body {
        margin: -3rem 1rem 0;
    }

    .rb-feature--text .rb-prose {
        columns: 1;
    }

    .rb-products {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-dishes {
        --rb-cols: 2;
    }
}

@media (max-width: 767.98px) {
    .rb-prose {
        font-size: 1rem;
    }

    /* Telefonda ekrandaki QR okutulamaz; "Haritada aç" bağlantısı yeterli. */
    .rb-loc .rb-qr {
        display: none;
    }

    .rb-loc {
        margin-top: 1.25rem;
    }

    .rb-mayor__tag {
        right: 0;
    }

    .rb-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-product__media {
        max-width: 18rem;
    }

    .rb-dishes {
        --rb-cols: 1;
    }

    .rb-facilities__list,
    .rb-facilities__photos {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-apps__row {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb *,
    .rb *::before,
    .rb *::after {
        transition: none !important;
    }
}

/* Telefonda sitenin genel %90 genişliği + 24 px iç boşluk metni çok daraltıyordu; kenar boşluğu 16 px. */
@media (max-width: 767.98px) {
    .rb .container {
        width: 100% !important;
        padding-left: 16px;
        padding-right: 16px;
    }
}
