/* ==========================================================================
   PX Restoran — Ana Sayfa (self-contained)
   Bu dosya bilinçli olarak Tailwind utility'lerine bağımlı değildir:
   frontend layout derlenmiş statik theme.css kullanır, arbitrary sınıflar orada yoktur.
   ========================================================================== */

.hx-root {
    --h-ink: #120d08;
    --h-ink-2: #1c1410;
    --h-cream: #faf6ef;
    --h-paper: #ffffff;
    --h-gold: #ffc700;
    --h-gold-2: #f59e0b;
    --h-text: #16110c;
    --h-muted: #6f6257;
    --h-line: rgba(18, 13, 8, .1);
    --h-head: 56px;
    --h-display: "Fraunces", "Plus Jakarta Sans", Georgia, serif;
    --h-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --h-ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 1024px) {
    .hx-root { --h-head: 80px; }
}

.hx-root {
    background: var(--h-cream);
    color: var(--h-text);
    font-family: var(--h-body);
    overflow-x: hidden;
}

.hx-wrap {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 20px;
}

@media (min-width: 768px) {
    .hx-wrap { padding-inline: 32px; }
}

/* ---------- Ortak başlık bloğu ---------- */
.hx-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--h-gold-2);
}

.hx-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.hx-title {
    margin: 10px 0 0;
    font-family: var(--h-display);
    font-weight: 600;
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--h-text);
}

.hx-link {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--h-text);
    text-decoration: none;
    border-bottom: 2px solid var(--h-gold);
    padding-bottom: 3px;
    transition: color .2s var(--h-ease), gap .2s var(--h-ease);
}

.hx-link:hover { color: var(--h-gold-2); }

@media (max-width: 640px) {
    .hx-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hx-hero {
    position: relative;
    min-height: calc(100vh - var(--h-head));
    min-height: calc(100svh - var(--h-head));
    display: flex;
    align-items: flex-end;
    background: var(--h-ink);
    isolation: isolate;
    overflow: hidden;
}

.hx-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--h-ease), visibility 1s;
}

.hx-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hx-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.hx-slide.is-active img {
    animation: hx-kenburns 11s var(--h-ease) forwards;
}

@keyframes hx-kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

/* Okunabilirlik eşiği: metin bölgesinde luminance'ı garanti altına alan çift scrim */
.hx-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10, 7, 4, .94) 0%, rgba(10, 7, 4, .72) 32%, rgba(10, 7, 4, .28) 62%, rgba(10, 7, 4, .42) 100%),
        radial-gradient(120% 85% at 12% 88%, rgba(10, 7, 4, .85) 0%, rgba(10, 7, 4, 0) 60%);
}

/* Sıcak ambiyans + film grenli doku (yüzey algısı / derinlik) */
.hx-grain {
    position: absolute;
    inset: 0;
    opacity: .5;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.hx-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 96px 120px;
}

@media (min-width: 1024px) {
    .hx-hero-inner { padding-block: 120px 96px; }
}

.hx-hero-copy { max-width: 780px; }

.hx-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hx-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--h-gold);
    box-shadow: 0 0 0 4px rgba(255, 199, 0, .22);
}

.hx-hero h1 {
    margin: 22px 0 0;
    font-family: var(--h-display);
    font-weight: 600;
    font-size: clamp(44px, 9vw, 116px);
    line-height: .92;
    letter-spacing: -.035em;
    color: #fff;
    text-wrap: balance;
}

.hx-hero h1 em {
    font-style: italic;
    color: var(--h-gold);
}

.hx-hero-sub {
    margin: 22px 0 0;
    max-width: 46ch;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
}

.hx-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* Fitts: mobilde tam genişlik, her yerde >=52px hedef */
.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--h-ease), box-shadow .25s var(--h-ease), background-color .2s, color .2s;
}

.hx-btn-primary {
    background: var(--h-gold);
    color: #16110c;
    box-shadow: 0 14px 34px rgba(255, 199, 0, .3);
}

.hx-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(255, 199, 0, .42);
    background: #ffd426;
}

.hx-btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hx-btn-ghost:hover {
    background: #fff;
    color: #16110c;
    transform: translateY(-3px);
}

/* Hero alt meta şeridi */
.hx-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.hx-meta div { line-height: 1.2; }

.hx-meta b {
    display: block;
    font-family: var(--h-display);
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.hx-meta span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

/* Slider kontrolleri */
.hx-dots {
    position: absolute;
    right: 20px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .hx-dots { right: 32px; bottom: 44px; }
}

.hx-dot {
    position: relative;
    width: 46px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
    overflow: hidden;
}

.hx-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--h-gold);
    border-radius: inherit;
}

.hx-dot.is-active::after {
    animation: hx-progress var(--hx-delay, 6500ms) linear forwards;
}

.hx-paused .hx-dot.is-active::after { animation-play-state: paused; }

@keyframes hx-progress {
    from { width: 0; }
    to   { width: 100%; }
}

.hx-scroll {
    position: absolute;
    left: 20px;
    bottom: 34px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
}

@media (min-width: 768px) {
    .hx-scroll { left: 32px; bottom: 44px; }
}

.hx-scroll::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    transform-origin: left;
    animation: hx-line 2.4s var(--h-ease) infinite;
}

@keyframes hx-line {
    0%, 100% { transform: scaleX(.4); opacity: .5; }
    50%      { transform: scaleX(1);  opacity: 1; }
}

@media (max-width: 640px) {
    .hx-scroll { display: none; }
    .hx-cta { flex-direction: column; align-items: stretch; }
    .hx-btn { width: 100%; }
    /* Yüzen alt menü hero içeriğini kapatmasın */
    .hx-hero-inner { padding-bottom: 140px; }
    .hx-dots { bottom: 104px; }
    .hx-meta { gap: 12px 22px; margin-top: 30px; padding-top: 20px; }
    .hx-meta b { font-size: 20px; }
}

@media (max-width: 1024px) {
    .hx-root { padding-bottom: 0; }
}

/* ==========================================================================
   BÖLÜMLER
   ========================================================================== */
.hx-section { padding-block: 72px; }

@media (min-width: 1024px) {
    .hx-section { padding-block: 104px; }
}

.hx-section--paper { background: var(--h-paper); }
.hx-section--cream { background: var(--h-cream); }

.hx-section--ink {
    background: var(--h-ink);
    color: #fff;
}

/* ---------- Kategoriler: bento ---------- */
.hx-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hx-cats > :first-child { grid-column: span 2; }

@media (min-width: 768px) {
    .hx-cats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .hx-cats > :first-child { grid-column: span 2; grid-row: span 2; }
}

.hx-cat {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 158px;
    padding: 16px;
    border-radius: 22px;
    overflow: hidden;
    background: #241a13;
    text-decoration: none;
    isolation: isolate;
    transition: transform .4s var(--h-ease), box-shadow .4s var(--h-ease);
}

@media (min-width: 768px) {
    .hx-cat { min-height: 196px; padding: 22px; }
    .hx-cats > :first-child { min-height: 408px; }
}

.hx-cat:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(18, 13, 8, .26);
}

.hx-cat img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .7s var(--h-ease);
}

.hx-cat:hover img { transform: scale(1.09); }

.hx-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 7, 4, .9) 0%, rgba(10, 7, 4, .42) 45%, rgba(10, 7, 4, .08) 100%);
}

.hx-cat-body { position: relative; }

.hx-cat h3 {
    margin: 0;
    font-family: var(--h-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.15;
    color: #fff;
}

@media (min-width: 768px) {
    .hx-cats > :first-child h3 { font-size: 34px; }
}

.hx-cat p {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--h-gold);
}

/* ---------- Ürünler ---------- */
.hx-prods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.hx-prod {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--h-paper);
    border: 1px solid var(--h-line);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .35s var(--h-ease), box-shadow .35s var(--h-ease), border-color .3s;
}

.hx-prod:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 199, 0, .6);
    box-shadow: 0 24px 48px rgba(18, 13, 8, .14);
}

.hx-prod-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #efe7dc;
    overflow: hidden;
}

.hx-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--h-ease);
}

.hx-prod:hover .hx-prod-img img { transform: scale(1.08); }

.hx-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding-inline: 9px;
    border-radius: 999px;
    background: rgba(10, 7, 4, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.hx-rank--top {
    background: var(--h-gold);
    color: #16110c;
}

.hx-prod-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
    flex: 1;
}

.hx-prod-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h-muted);
}

.hx-prod h3 {
    margin: 0;
    font-family: var(--h-display);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.2;
    color: var(--h-text);
}

.hx-prod-foot {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.hx-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--h-text);
}

.hx-price-old {
    font-size: 13px;
    font-weight: 600;
    color: var(--h-muted);
    text-decoration: line-through;
}

.hx-prod-go {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3ece2;
    color: var(--h-text);
    font-size: 14px;
    transition: background-color .25s, color .25s, transform .25s var(--h-ease);
}

.hx-prod:hover .hx-prod-go {
    background: var(--h-gold);
    transform: rotate(45deg);
}

/* ---------- Hakkımızda ---------- */
.hx-about {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hx-about { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.hx-about-media {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: #241a13;
}

.hx-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hx-about-text p {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--h-muted);
    white-space: pre-line;
    max-width: 58ch;
}

.hx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--h-paper);
    border: 1px solid var(--h-line);
    font-size: 13px;
    font-weight: 700;
    color: var(--h-text);
}

.hx-section--cream .hx-pill { background: var(--h-paper); }

/* ---------- Çalışma saatleri ---------- */
.hx-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.hx-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    font-size: 14px;
}

.hx-day span:first-child { font-weight: 700; color: rgba(255, 255, 255, .9); }
.hx-day span:last-child  { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }

/* Oryantasyon refleksi: bugün anında seçilir */
.hx-day.is-today {
    background: var(--h-gold);
    border-color: var(--h-gold);
    box-shadow: 0 14px 30px rgba(255, 199, 0, .22);
}

.hx-day.is-today span { color: #16110c !important; }

.hx-day.is-today span:first-child::after {
    content: "Bugün";
    margin-left: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .65;
}

/* ---------- Kapanış CTA ---------- */
.hx-final {
    position: relative;
    border-radius: 32px;
    padding: 56px 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffc700 0%, #f59e0b 100%);
}

@media (min-width: 768px) {
    .hx-final { padding: 84px 48px; }
}

.hx-final h2 {
    position: relative;
    margin: 0;
    font-family: var(--h-display);
    font-weight: 600;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -.025em;
    color: #16110c;
}

.hx-final p {
    position: relative;
    margin: 16px auto 0;
    max-width: 48ch;
    font-size: 16px;
    font-weight: 500;
    color: rgba(22, 17, 12, .74);
}

.hx-final .hx-cta {
    position: relative;
    justify-content: center;
}

.hx-btn-ink {
    background: #16110c;
    color: #fff;
    box-shadow: 0 16px 34px rgba(22, 17, 12, .26);
}

.hx-btn-ink:hover {
    transform: translateY(-3px);
    background: #241a13;
}

.hx-btn-outline-ink {
    background: transparent;
    border-color: rgba(22, 17, 12, .34);
    color: #16110c;
}

.hx-btn-outline-ink:hover {
    background: rgba(22, 17, 12, .08);
    transform: translateY(-3px);
}

/* ==========================================================================
   GİRİŞ ANİMASYONU + ERİŞİLEBİLİRLİK
   ========================================================================== */
.hx-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--h-ease), transform .7s var(--h-ease);
    transition-delay: var(--d, 0ms);
}

.hx-reveal.is-in {
    opacity: 1;
    transform: none;
}

.hx-root a:focus-visible,
.hx-root button:focus-visible {
    outline: 3px solid var(--h-gold);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Vestibüler güvenlik: hareket tercihine tam uyum */
@media (prefers-reduced-motion: reduce) {
    .hx-root *,
    .hx-root *::before,
    .hx-root *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .hx-reveal { opacity: 1; transform: none; }
    .hx-slide.is-active img { animation: none; transform: scale(1); }
    .hx-dot.is-active::after { width: 100%; }
}

/* Koyu tema uyumu */
html.dark .hx-root {
    --h-cream: #100c09;
    --h-paper: #181310;
    --h-text: #f6f1ea;
    --h-muted: #a2958a;
    --h-line: rgba(255, 255, 255, .1);
}

html.dark .hx-prod-img { background: #241a13; }
html.dark .hx-prod-go { background: #241a13; color: #f6f1ea; }
html.dark .hx-prod-go { color: #f6f1ea; }
html.dark .hx-prod:hover .hx-prod-go { color: #16110c; }
