/* =========================================================
   Has Cercis Altın — main stylesheet (mobile-first)
   ========================================================= */

:root {
  --bg: #0b0b0b;
  --bg-2: #131313;
  --bg-3: #1b1b1b;
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #ece6d6;
  --muted: #a49d8c;
  --gold: #d4af37;
  --gold-light: #f5d77a;
  --gold-dark: #a8801f;
  --gold-grad: linear-gradient(135deg, #b8860b 0%, #f5d77a 45%, #c9a227 70%, #8c6a14 100%);
  --up: #3ecf7a;
  --down: #ff5c5c;
  --radius: 14px;
  --header-h: 68px;
  --font-head: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
svg { fill: currentColor; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.gold-text,
.section__head h2,
.hero h1 {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn--gold { background: var(--gold-grad); color: #1a1406; box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4); }
.btn--ghost { border: 1px solid var(--gold); color: var(--gold-light); }
.btn--ghost:hover { background: rgba(212, 175, 55, 0.12); }

/* ---------- Live dot ---------- */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(62, 207, 122, 0.6);
  animation: pulse 2s infinite;
  flex: none;
}
.live-dot.is-error { background: var(--down); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 122, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(62, 207, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 122, 0); }
}

/* ---------- Top bar ---------- */
.topbar { display: none; background: #000; border-bottom: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar__contact { display: flex; gap: 1.5rem; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.2s; }
.topbar__contact a:hover { color: var(--gold-light); }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.topbar__note { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 48px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.45em; color: var(--gold); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--gold); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  background: rgba(11, 11, 11, 0.98);
  border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.nav.is-open { max-height: 420px; }
.nav a {
  padding: 1rem 16px;
  border-top: 1px solid var(--line-soft);
  font-weight: 500; letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav a:hover, .nav a.is-active { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 3rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(11,11,11,0.95)),
    url("/assets/img/texture.webp") center / 600px repeat;
  filter: saturate(0.9);
}
.hero__inner { position: relative; display: grid; gap: 2rem; align-items: center; text-align: center; }
.hero__logo { width: min(240px, 70%); margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(212, 175, 55, 0.2)); border-radius: var(--radius); }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); margin-bottom: 1rem; }
.hero__lead { color: var(--muted); max-width: 34rem; margin: 0 auto 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section__head { text-align: center; margin-bottom: 2.25rem; }
.section__head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.section__head h2::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 0.9rem auto 0;
  background: var(--gold-grad);
}
.section__lead { color: var(--muted); max-width: 36rem; margin: 0.9rem auto 0; }

/* ---------- Prices ---------- */
.prices { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.prices__status {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; text-align: center;
}
.prices__status.is-error #priceStatusText { color: var(--down); }

.prices__grid { display: grid; gap: 1.5rem; align-items: start; }

.price-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.price-card__title {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1406;
  background: var(--gold-grad);
  text-align: center;
}
.price-card__note { padding: 1rem; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line-soft); }
.price-card__note strong { color: var(--gold); }

.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.86rem; }
.price-table th {
  padding: 0.65rem 0.5rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); text-align: right;
  border-bottom: 1px solid var(--line);
}
.price-table th:first-child, .price-table td:first-child { text-align: left; padding-left: 0.85rem; }
.price-table th:last-child, .price-table td:last-child { padding-right: 0.85rem; }
.price-table td { padding: 0.7rem 0.5rem; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
.price-table tbody tr:hover { background: rgba(212, 175, 55, 0.06); }
.price-table td.name { font-weight: 600; color: var(--text); white-space: normal; }
.price-table td.sell { font-weight: 700; color: var(--gold-light); }
.price-table .col-change { display: none; }

.chg { font-weight: 600; font-size: 0.8rem; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--muted); }

.flash-up { animation: flashUp 1.2s ease; }
.flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: rgba(62, 207, 122, 0.35); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(255, 92, 92, 0.35); } 100% { background: transparent; } }

.skeleton {
  display: inline-block; width: 64px; height: 0.9em; border-radius: 4px; vertical-align: middle;
  background: linear-gradient(90deg, #222 0%, #2e2e2e 50%, #222 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Products ---------- */
.products__feature { display: grid; gap: 1.5rem; align-items: center; }
.products__image {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}
.products__image img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem 0; }
.products__list { display: grid; gap: 1rem; }
.product-item {
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.product-item h3 { font-size: 1.35rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.product-item p { color: var(--muted); margin: 0; }
.products__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about__inner { display: grid; gap: 2rem; align-items: center; text-align: center; }
.about__logo { width: 160px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); }
.about h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin-bottom: 1rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 1.5rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.contact__list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.contact__list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.contact__list div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.contact__label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.15rem; }
.contact__list a:hover { color: var(--gold-light); }

.contact__map { display: flex; flex-direction: column; gap: 1rem; }
.contact__map iframe {
  width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius);
  filter: grayscale(0.25) contrast(1.05);
}
.contact__dir { align-self: stretch; }

/* ---------- Footer ---------- */
.footer { background: #000; border-top: 1px solid var(--line); padding-top: 3rem; font-size: 0.9rem; color: var(--muted); }
.footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand img { width: 160px; border-radius: 10px; }
.footer h4 { font-size: 0.95rem; color: var(--gold); margin-bottom: 0.9rem; letter-spacing: 0.08em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--gold-light); }
.social { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; }
.social svg { width: 18px; height: 18px; color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line-soft); padding: 1.1rem 0; font-size: 0.8rem; text-align: center; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 420px) {
  .price-table .col-change { display: table-cell; }
}

@media (min-width: 600px) {
  .price-table { font-size: 0.92rem; }
  .products__image { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__map iframe { height: 380px; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .topbar { display: block; }
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 0.25rem;
    max-height: none; overflow: visible; background: none; border: 0;
  }
  .nav a { border: 0; padding: 0.5rem 0.85rem; font-size: 0.92rem; position: relative; }
  .nav a:not(.nav__cta)::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 1px;
    background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
  }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
  .nav__cta { margin-left: 0.5rem; border: 1px solid var(--gold) !important; border-radius: 999px; color: var(--gold-light); }
  .nav__cta:hover { background: rgba(212, 175, 55, 0.12); }
  .brand img { width: 56px; }
  .brand__name { font-size: 1.25rem; }

  .hero { padding: 5rem 0 5.5rem; }
  .hero__inner { grid-template-columns: 0.9fr 1.1fr; text-align: left; gap: 3rem; }
  .hero__logo { width: 100%; max-width: 420px; }
  .hero__lead { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }

  .section { padding: 5.5rem 0; }
  .prices__grid { grid-template-columns: 1.35fr 1fr; }

  .products__feature { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; max-width: 1000px; margin: 0 auto; }
  .products__image { aspect-ratio: 4 / 5; }

  .about__inner { grid-template-columns: 220px 1fr; text-align: left; gap: 3rem; }
  .about__logo { width: 220px; }

  .contact__grid { grid-template-columns: 1fr 1.4fr; align-items: stretch; }
  .contact__map iframe { height: 100%; min-height: 420px; }
  .contact__dir { align-self: flex-start; }

  .footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
