/* ──────────────────────────────────────────────────────────────
   pages.css — legal & support document pages for
   application.esenyurtkuyumcusu.com.
   Shares the antique-gold palette & typography of style.css,
   but lays out long-form readable documents instead of the
   single-screen "coming soon" stage.
   ────────────────────────────────────────────────────────────── */
:root {
  --bg:        #f5efe3;  /* warm ivory */
  --bg-2:      #efe6d4;  /* sand */
  --panel:     #fffdf7;  /* cream */
  --gold:      #b08218;  /* deep gold */
  --gold-soft: #caa23f;  /* lit gold */
  --gold-deep: #8a6412;  /* antique gold */
  --ink:       #2a2218;  /* espresso */
  --muted:     #8a7d63;  /* soft brown */
  --line:      #ddd0b3;  /* soft sand line */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -8%, #fffdf7 0%, var(--bg) 46%),
    var(--bg);
  padding: 0 22px 64px;
}

/* ── Atmosphere (shared with home, calmer) ── */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 460px; height: 460px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(202,162,63,.40), transparent 68%);
}
.glow-2 {
  width: 320px; height: 320px;
  bottom: -160px; right: -100px;
  background: radial-gradient(circle, rgba(176,130,24,.22), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .055;
  mix-blend-mode: multiply;
  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='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Top bar ── */
.topbar {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 8px;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.home-link .mark {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--panel);
  filter: drop-shadow(0 6px 14px rgba(80,60,20,.16));
}
.home-link .mark-txt {
  display: flex; flex-direction: column; line-height: 1;
}
.home-link .mt-1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--muted);
}
.home-link .mt-2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700; font-size: 18px; letter-spacing: .02em;
  color: var(--ink);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,253,247,.6);
  transition: color .3s, border-color .3s, gap .3s;
}
.back svg { width: 15px; height: 15px; }
.back:hover { color: var(--gold-deep); border-color: var(--gold-soft); gap: 11px; }

/* ── Document shell ── */
.doc {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 26px auto 0;
}

.doc-head {
  text-align: center;
  margin-bottom: 30px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(176,130,24,.07);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.doc-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.02;
  letter-spacing: .01em;
  background: linear-gradient(180deg, var(--ink), var(--gold) 82%, var(--gold-deep));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.doc-sub {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}
.doc-lede {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Paper card ── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 5vw, 48px);
  box-shadow: 0 16px 44px rgba(80,60,20,.10);
}
.card + .card { margin-top: 22px; }

/* ── Legal sections ── */
.sec { padding: 24px 0; border-top: 1px solid var(--line); }
.sec:first-child { padding-top: 0; border-top: 0; }
.sec:last-child { padding-bottom: 0; }
.sec h2 {
  display: flex;
  align-items: baseline;
  gap: 13px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.sec h2 .num {
  font-size: 14px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  letter-spacing: .04em;
  color: var(--gold);
  flex: none;
  min-width: 1.6em;
}
.sec p {
  font-size: 15px;
  line-height: 1.78;
  color: #4a4030;
}
.sec p + p { margin-top: 12px; }

.sec ul {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 11px;
}
.sec ul li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a4030;
}
.sec ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
}
.sec ul li b, .sec p b { color: var(--ink); font-weight: 600; }

a.inline {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(138,100,18,.35);
  transition: border-color .25s, color .25s;
}
a.inline:hover { color: var(--gold); border-color: var(--gold); }

/* ── Support: contact grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb, #fdfaf1);
  text-decoration: none;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
}
.contact:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  box-shadow: 0 12px 24px rgba(80,60,20,.12);
}
.contact .ic {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(176,130,24,.10);
  color: var(--gold-deep);
}
.contact .ic svg { width: 21px; height: 21px; }
.contact .ct { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact .ct .lbl {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.contact .ct .val {
  font-size: 15px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hours {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(176,130,24,.05);
}
.hours .h-lbl {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase;
}
.hours .h-lbl svg { width: 17px; height: 17px; color: var(--gold-deep); }
.hours .h-val { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ── FAQ accordion ── */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb, #fdfaf1);
  overflow: hidden;
  transition: border-color .3s;
}
.faq details[open] { border-color: var(--gold-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  margin-left: auto;
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.faq summary .chev svg { width: 18px; height: 18px; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq summary .q-no {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px; font-weight: 700; color: var(--gold);
  flex: none;
}
.faq .ans {
  padding: 0 20px 18px 53px;
  font-size: 14.5px;
  line-height: 1.72;
  color: #4a4030;
}

/* ── Footer ── */
.foot {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(138,125,99,.85);
  text-align: center;
}
.foot a { color: var(--muted); text-decoration: none; transition: color .25s; }
.foot a:hover { color: var(--gold-deep); }
.foot .sep { opacity: .5; }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .glow { animation: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .faq summary .chev, .contact { transition: none; }
}

@media (max-width: 480px) {
  .home-link .mark-txt { display: none; }
  .faq .ans { padding-left: 20px; }
}
