/*
 * Boice Coffee — tanıtım sitesi (one-page)
 * Menü ve yönetim panelinden bağımsız, kendi tasarım dili. Renkler ve ölçüler :root değişkenlerinden gelir.
 */

:root {
  --bg: #14100d;
  --bg-raised: #1c1612;
  --bg-light: #f6f0e7;
  --text: #f4ece0;
  --text-muted: rgba(244, 236, 224, 0.68);
  --text-dark: #2a1d14;
  --text-dark-muted: #6d5a4a;
  --gold: #c9a15b;
  --gold-strong: #d8b473;
  --line: rgba(244, 236, 224, 0.14);
  --line-dark: rgba(42, 29, 20, 0.14);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --header-height: 64px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.icon { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 2.5rem; padding: 0 1.125rem; font-size: 0.875rem; }
.btn--gold { background: var(--gold); color: #1d130b; }
.btn--gold:hover { background: var(--gold-strong); }
.btn--glass { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.16); }

/* ---------- Üst çubuk ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  height: var(--header-height);
  padding: 0 max(1.25rem, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.header.is-solid { border-color: var(--line); background: rgba(20, 16, 13, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header__brand { display: block; justify-self: start; }
.header .btn { justify-self: end; }
.header__brand img { width: auto; height: 4.5rem; margin-block: -0.75rem; } /* logo dosyasında kenar boşluğu var */
.header__nav { display: flex; gap: 2rem; font-size: 0.9375rem; font-weight: 500; }
.header__nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.2s; }
.header__nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  container-type: size; /* video ölçüsü hero'ya göre (cqw/cqh) hesaplanır */
  background: var(--bg);
}

/* Video dikey (9:16). Geniş ekranda 90° yatırılır: kutu önce 100cqh × 100cqw çizilir, döndürülünce ekranı tam kaplar. */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100cqw;
  height: 100cqh;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
@media (min-aspect-ratio: 1/1) {
  .hero__video { width: 100cqh; height: 100cqw; transform: translate(-50%, -50%) rotate(90deg); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 8, 5, 0.35) 0%, rgba(12, 8, 5, 0.7) 100%),
    linear-gradient(to bottom, rgba(12, 8, 5, 0.5) 0%, rgba(12, 8, 5, 0) 30%, rgba(12, 8, 5, 0.55) 100%);
}

.hero__content { position: relative; display: grid; justify-items: center; gap: 1.25rem; padding: calc(var(--header-height) + 1rem) 1.5rem 4.5rem; text-align: center; }
.hero__logo { width: clamp(9rem, 22vw, 13.5rem); height: auto; margin-bottom: 0.25rem; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45)); animation: rise 1s var(--ease) both; }
.hero__title { max-width: 18ch; font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; animation: rise 1s 0.12s var(--ease) both; }
.hero__lead { max-width: 34rem; color: rgba(255, 255, 255, 0.82); font-size: clamp(1rem, 2.2vw, 1.1875rem); text-wrap: balance; animation: rise 1s 0.24s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; animation: rise 1s 0.36s var(--ease) both; }

.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: -1.375rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; color: #fff; animation: bob 2.4s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

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

.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--bg-light); color: var(--text-dark); }
.section--dark { background: var(--bg); color: var(--text); }
.eyebrow { margin-bottom: 0.75rem; color: var(--gold); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.section__title { max-width: 20ch; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.section__lead { max-width: 40rem; margin-top: 1rem; color: var(--text-dark-muted); font-size: 1.0625rem; }
.section__cta { margin-top: 2.5rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.feature { position: relative; display: block; overflow: hidden; border-radius: calc(var(--radius) + 6px); aspect-ratio: 4 / 3; text-decoration: none; color: #fff; isolation: isolate; }
.feature__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 8, 5, 0.82) 0%, rgba(12, 8, 5, 0.1) 60%); }
.feature:hover .feature__image { transform: scale(1.05); }
.feature__body { position: absolute; inset: auto 0 0 0; display: grid; gap: 0.25rem; padding: 1.5rem; }
.feature__title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.feature__text { color: rgba(255, 255, 255, 0.8); font-size: 0.9375rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tags li { padding: 0.4375rem 0.9375rem; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--text-dark-muted); font-size: 0.875rem; font-weight: 500; }

/* ---------- İletişim ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; margin-top: 3rem; }
.info-list { display: grid; gap: 1.5rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; }
.info__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-raised); color: var(--gold); }
.info__text { display: grid; gap: 0.125rem; }
.info__label { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.info__text a, .info__text address, .info__value { font-size: 1.125rem; line-height: 1.45; text-decoration: none; }
.info__text a:hover { color: var(--gold); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.contact__map { overflow: hidden; min-height: 22rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--bg-raised); }
.contact__map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; }

/* ---------- Alt bilgi ---------- */

.footer { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); color: var(--text-muted); font-size: 0.875rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer__logo { width: auto; height: 3.5rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--gold); }
.footer__credit { margin-top: 1.75rem; color: rgba(244, 236, 224, 0.4); font-size: 0.75rem; text-align: center; letter-spacing: 0.04em; }
.footer__credit a { text-decoration: none; transition: color 0.2s; }
.footer__credit a:hover { color: var(--gold); }

/* ---------- Mobil hızlı eylem çubuğu ---------- */

.dock { display: none; }

/* ---------- Görünme animasyonu (site.js .js sınıfını ekler) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Duyarlılık ---------- */

@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
}

@media (max-width: 640px) {
  :root { --header-height: 58px; }
  .header__brand img { height: 3.75rem; margin-block: -0.75rem; }
  .header .btn { display: none; }
  .hero__actions { width: 100%; max-width: 20rem; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .contact__actions .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }

  .dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(20, 16, 13, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .dock a { display: grid; justify-items: center; align-content: center; gap: 0.25rem; height: 3.75rem; color: var(--text); font-size: 0.75rem; font-weight: 600; text-decoration: none; }
  .dock .icon { width: 1.375rem; height: 1.375rem; }
  .dock a:first-child { color: var(--gold); }
  .dock a + a { border-left: 1px solid var(--line); }
  .footer { padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)); }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
