/* Durusu public site — admin colours, fluid layout for all screens. */

:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --surface: #131c2e;
  --surface-2: #1c2740;
  --border: #2a3654;
  --text: #ffffff;
  --muted: #9aa8bf;
  --accent: #f6b94d;
  --accent-soft: rgba(246, 185, 77, 0.14);
  --success: #3bc6a8;
  --danger: #f0645c;
  --radius: 12px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 720px;
  --max-wide: 960px;
  --pad-x: clamp(1rem, 4vw, 1.75rem);
  --pad-y: clamp(1.25rem, 4vw, 2.75rem);
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(246, 185, 77, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 198, 168, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%, #080e1a);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.92;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ---- shell ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(var(--pad-x), env(safe-area-inset-right))
    0.75rem
    max(var(--pad-x), env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: var(--tap);
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
}

.site-main {
  width: min(100% - (var(--pad-x) * 2), var(--max-wide));
  margin: 0 auto;
  padding: var(--pad-y) 0 calc(var(--pad-y) + 1rem);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding:
    1.4rem
    max(var(--pad-x), env(safe-area-inset-right))
    max(1.8rem, env(safe-area-inset-bottom))
    max(var(--pad-x), env(safe-area-inset-left));
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--muted);
  display: inline-block;
  padding: 0.25rem 0.15rem;
  min-height: 2rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---- home ---- */

.hero {
  min-height: min(68dvh, 580px);
  display: grid;
  align-content: center;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(1.5rem, 5vw, 3rem);
  animation: rise 700ms ease both;
}

.hero .eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

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

.hero .lede {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0b1220;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.legal-strip {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  animation: rise 900ms 120ms ease both;
}

.legal-strip h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.35rem);
}

.legal-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  font-weight: 700;
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* ---- legal docs ---- */

.doc {
  width: min(100%, var(--max));
  margin: 0 auto;
  animation: rise 550ms ease both;
}

.doc-header {
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.doc-header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.doc-body h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.doc-body h2 {
  margin: clamp(1.5rem, 4vw, 2.1rem) 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.doc-body h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
}

.doc-body p,
.doc-body li {
  color: #d7deea;
}

.doc-body p {
  margin: 0 0 1rem;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.doc-body li + li {
  margin-top: 0.35rem;
}

.doc-body strong {
  color: var(--text);
  font-weight: 700;
}

/* Tables: horizontal scroll on narrow screens, no layout blowout */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(19, 28, 46, 0.55);
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.doc-body table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  margin: 0;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  display: table;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  hyphens: auto;
}

.doc-body tr:last-child td {
  border-bottom: 0;
}

.doc-body th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  white-space: nowrap;
}

.doc-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-nav a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Phones */
@media (max-width: 640px) {
  .site-header {
    align-items: stretch;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.65rem 0.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.25rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .doc-body table {
    min-width: 28rem;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.15rem;
  }

  .doc-body table {
    min-width: 24rem;
  }
}

/* Tablets / small laptops */
@media (min-width: 641px) and (max-width: 900px) {
  .hero {
    min-height: min(60dvh, 520px);
  }
}

/* Large screens — keep readable measure */
@media (min-width: 1200px) {
  .hero .lede {
    max-width: 42ch;
  }
}

/* Touch: no sticky hover jank */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }
}
