/* ====== Yerel Şriftler ====== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prata";
  src: url("../fonts/Prata-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ====== Temel Değişkenler ====== */
:root{
  --pr-bg: #e8f5ff;             /* açık mozaik derz tonu */
  --pr-blue-1:#0f6ba8;          /* lacivert mavi */
  --pr-blue-2:#1aa3ff;          /* canlı mavi */
  --pr-wood-1:#8a5a3b;          /* sıcak ahşap */
  --pr-wood-2:#c08a5b;          /* açık ahşap */
  --pr-ink:#0e1a22;             /* metin rengi */
  --pr-ink-dim:#2a3a46;
  --pr-white:#ffffff;
  --shadow: 0 10px 25px rgba(15, 40, 70, .15);
  --radius-2xl: 1.25rem;
  --wrap: min(1180px, 100% - 2rem);
}

/* ====== Mozaik Arkaplan (banyo/pool tile) ====== */
.pr-body{
  min-height:100%;
  background:
    /* mozaik grid */
    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px) 0 0/14px 14px,
    linear-gradient(0deg,  rgba(255,255,255,.45) 1px, transparent 1px) 0 0/14px 14px,
    radial-gradient(120% 120% at 10% 0%, rgba(26,163,255,.07), transparent 50%),
    radial-gradient(120% 120% at 90% 100%, rgba(15,107,168,.08), transparent 50%),
    linear-gradient(180deg, #cfeeff 0%, #ebf7ff 100%);
  color: var(--pr-ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}

/* ====== Erişilebilirlik ====== */
* { box-sizing: border-box; }
a { color: var(--pr-blue-1); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display:block; width:100%; height:auto; max-width:350px; border-radius: 12px; }

/* ====== Layout yardımcıları ====== */
.pr-wrap{ width: var(--wrap); margin-inline:auto; }
.anchor{ position: relative; top:-88px; height:0; }

/* ====== Header (ahşap-izli) ====== */
.pr-header{
  position: sticky; top:0; z-index: 50;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 35%),
    repeating-linear-gradient( 8deg, var(--pr-wood-2) 0 12px, var(--pr-wood-1) 12px 24px);
  color: var(--pr-white);
  box-shadow: var(--shadow);
}
.pr-header__bar{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.pr-logo{
  font-family:"Prata", serif;
  font-size:1.5rem; letter-spacing:.5px; color:var(--pr-white);
  position: relative;
}
.pr-logo::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: translateY(4px);
  animation: wave-underline 5s ease-in-out infinite;
}
@keyframes wave-underline{
  0%,100%{ transform: translateY(4px) }
  50%{ transform: translateY(0) }
}
.pr-nav__list{ display:flex; gap:1rem; }
.pr-nav__link{
  color:var(--pr-white); padding:.5rem .75rem; border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease;
}
.pr-nav__link:hover{ background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* Burger */
.pr-burger{ display:none; background:none; border:0; cursor:pointer; }
.pr-burger__bar{
  display:block; width:28px; height:2px; background: var(--pr-white); margin:6px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.pr-nav-mobile{
  display:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 35%),
    repeating-linear-gradient( 8deg, var(--pr-wood-2) 0 12px, var(--pr-wood-1) 12px 24px);
  padding: .5rem 1rem 1rem;
}
.pr-nav-mobile__list{ display:grid; gap:.25rem; }
.pr-nav-mobile__link{
  color:var(--pr-white); padding:.75rem 1rem; border-radius:.75rem; background: rgba(255,255,255,.12);
}

/* ====== Main & Typography ====== */
.pr-main{ padding-top: 24px; }
.pr-h1{
  font-family:"Prata", serif;
  font-weight:400; letter-spacing:.2px;
  font-size: clamp(1.4rem, 2.2vw + 1rem, 2.2rem);
  color: var(--pr-blue-1);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  margin: 1.25rem auto 0;
  width: var(--wrap);
}

/* ====== Reveal (IntersectionObserver) ====== */
.reveal{ opacity: 0; transform: translateY(18px); transition: .6s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* ====== Footer ====== */
.pr-footer{
  margin-top: 4rem; padding: 2rem 0;
  background: linear-gradient(180deg, rgba(26,163,255,.06), rgba(15,107,168,.08));
}
.pr-footer__grid{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.pr-footer__nav{ display:flex; gap:.75rem; }
.pr-copy{ color: var(--pr-ink-dim); font-size:.95rem; }

/* ====== Medya sorguları ====== */
@media (max-width: 1024px){
  .pr-nav__list{ display:none; }
  .pr-burger{ display:block; }
  .pr-nav-mobile[aria-hidden="false"]{ display:block; }
}
@media (max-width: 640px){
  .pr-header__bar{ height:64px; }
  .pr-copy{ width:100%; order:2; }
}

/* Hareket azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
/* Глобально отключаем горизонтальный скролл от повёрнутых блоков */
html, body, .pr-body { overflow-x: hidden; }
/* === FIXED HEADER PATCH === */
:root { --header-h: 72px; }

.pr-header{
  position: fixed;         /* было sticky */
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
}

.pr-header__bar{ height: var(--header-h); }

/* контент отступает вниз на высоту шапки */
.pr-main{ padding-top: calc(var(--header-h) + 24px); }

/* якоря прокручиваются с поправкой на фикс-хедер */
.anchor{ top: calc(-1 * (var(--header-h) + 8px)); }

/* мобильное меню как оверлей под шапкой */
.pr-nav-mobile{
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow: auto;
  z-index: 90;
  box-shadow: var(--shadow);
  display: none;           /* по умолчанию скрыто */
}

/* открываем меню на мобильных */
@media (max-width: 1024px){
  .pr-nav__list{ display: none; }
  .pr-burger{ display: block; }
  .pr-nav-mobile[aria-hidden="false"]{ display: block; }
}

/* высота шапки на узких экранах */
@media (max-width: 640px){
  :root { --header-h: 64px; }
  .pr-header__bar{ height: var(--header-h); }
}

/* блокируем горизонтальный скролл от фикс-слоёв */
html, body, .pr-body { overflow-x: hidden; }

/* когда меню открыто — запрещаем скролл страницы */
body.menu-open{ height: 100dvh; overflow: hidden; }
/* ==== DOCK FOOTER (дерево + мозаика) ==== */
.pr-footer--dock{
  --tile: 14px;
  background:
    linear-gradient(180deg, rgba(26,163,255,.05), rgba(15,107,168,.08)),
    linear-gradient(#fff,#fff) padding-box;
  position: relative;
  padding: 2.25rem 0 2rem;
}
.pr-footer__rope{
  height: 18px; margin-bottom: 1rem;
  background:
    radial-gradient(closest-side, #d9b38a 60%, transparent 62%) left/28px 100% repeat-x,
    linear-gradient(90deg, rgba(0,0,0,.12) 0 28px, transparent 28px);
  opacity: .7;
}
.pr-footer__layout{
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  align-items: start;
}
@media (max-width: 960px){
  .pr-footer__layout{ grid-template-columns: 1fr; }
}

/* Brand */
.pr-footer__logo{
  font-family: "Prata", serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw + 1rem, 1.6rem);
  color: var(--pr-blue-1);
  margin: 0 0 .25rem;
}
.pr-footer__tag{ color: var(--pr-ink-dim); margin: 0 0 .5rem; }
.pr-footer__top{
  display: inline-block;
  background: linear-gradient(180deg, rgba(26,163,255,.12), rgba(26,163,255,.2));
  padding: .5rem .75rem; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pr-footer__top:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

/* Navs */
.pr-footer__navs{
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.pr-footer__navs ul{ list-style: none; margin: 0; padding: 0; }
.pr-footer__navs a{
  display: inline-block; padding: .2rem 0;
  color: var(--pr-ink-dim);
}
.pr-footer__navs a:hover{ color: var(--pr-blue-1); text-decoration: underline; }

/* Legal pills */
.pr-footer__legal{ display: grid; gap: .6rem; justify-items: start; }
.legal-caps{ display: flex; gap: .6rem; flex-wrap: wrap; }
.legal-pill{
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: .5rem; padding: .6rem .8rem; border-radius: 999px;
  background: var(--pr-white); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.legal-pill:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15,40,70,.18); }
.pill-badge{
  width: 22px; height: 22px; border-radius: 999px;
  background:
    radial-gradient(40% 40% at 30% 30%, #9cc7ff, #1aa3ff);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6);
}
.pill-badge--wood{
  background: linear-gradient(180deg, rgba(0,0,0,.07), transparent 30%),
              repeating-linear-gradient( 10deg, var(--pr-wood-2) 0 12px, var(--pr-wood-1) 12px 24px);
}
.pill-title{ font-weight: 700; color: var(--pr-ink); line-height: 1; }
.pill-note{ color: var(--pr-ink-dim); line-height: 1; display: block; }

/* Copyright */
.pr-copy{ color: var(--pr-ink-dim); font-size: .95rem; margin: .25rem 0 0; }
/* ========= Footer legal: page-specific variants ========= */

/* CATALOG */
.pr-footer__legal-cat { }
.pr-footer__legal-cat .legal-caps{
  display:flex; gap:.5rem; flex-wrap:wrap;
}
.pr-footer__legal-cat .legal-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .7rem; border-radius:.8rem;
  background: rgba(26,163,255,.08);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pr-footer__legal-cat .legal-pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,40,70,.14);
}
.pr-footer__legal-cat .pill-badge{
  width:.75rem; height:.75rem; border-radius:999px;
  background: linear-gradient(90deg, #9cc7ff, #1aa3ff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.pr-footer__legal-cat .pill-badge--wood{
  background: linear-gradient(90deg, #f2c79a, #c08a5b);
}
.pr-footer__legal-cat .pill-title{ font-weight:700; color: var(--pr-ink); }
.pr-footer__legal-cat .pill-note{ font-size:.8rem; opacity:.72; color: var(--pr-ink-dim); }
.pr-footer__legal-cat .pr-copy{ color: var(--pr-ink-dim); }

/* GUIDE */
.pr-footer__legal-guide { }
.pr-footer__legal-guide .legal-caps{
  display:flex; gap:.5rem; flex-wrap:wrap;
}
.pr-footer__legal-guide .legal-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .7rem; border-radius:.8rem;
  background: rgba(26,163,255,.08);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pr-footer__legal-guide .legal-pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,40,70,.14);
}
.pr-footer__legal-guide .pill-badge{
  width:.75rem; height:.75rem; border-radius:999px;
  background: linear-gradient(90deg, #9cc7ff, #1aa3ff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.pr-footer__legal-guide .pill-badge--wood{
  background: linear-gradient(90deg, #f2c79a, #c08a5b);
}
.pr-footer__legal-guide .pill-title{ font-weight:700; color: var(--pr-ink); }
.pr-footer__legal-guide .pill-note{ font-size:.8rem; opacity:.72; color: var(--pr-ink-dim); }
.pr-footer__legal-guide .pr-copy{ color: var(--pr-ink-dim); }

/* PRIVACY-POLICY */
.pr-footer__legal-pp { }
.pr-footer__legal-pp .legal-caps{
  display:flex; gap:.5rem; flex-wrap:wrap;
}
.pr-footer__legal-pp .legal-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem .7rem; border-radius:.8rem;
  background: rgba(26,163,255,.08);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pr-footer__legal-pp .legal-pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,40,70,.14);
}
.pr-footer__legal-pp .pill-badge{
  width:.75rem; height:.75rem; border-radius:999px;
  background: linear-gradient(90deg, #9cc7ff, #1aa3ff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.pr-footer__legal-pp .pill-badge--wood{
  background: linear-gradient(90deg, #f2c79a, #c08a5b);
}
.pr-footer__legal-pp .pill-title{ font-weight:700; color: var(--pr-ink); }
.pr-footer__legal-pp .pill-note{ font-size:.8rem; opacity:.72; color: var(--pr-ink-dim); }
.pr-footer__legal-pp .pr-copy{ color: var(--pr-ink-dim); }
