/* ============================================
   NIRVANA HOLDING — Base Design System
   Warm Oriental / Turkish-Persian tilework
   ============================================ */

:root {
  /* Core palette */
  --cream: #fdf6e3;
  --cream-deep: #f3e9c9;
  --cream-shadow: #e8dcb8;
  --ink: #2a1810;
  --ink-soft: #5a4530;
  --ink-mute: #8a7558;

  /* Accents */
  --red: #c9302c;
  --red-deep: #8a1f1c;
  --green: #2d5016;
  --green-deep: #1a3009;
  --gold: #d4a574;
  --gold-deep: #a8784e;

  --line: rgba(42, 24, 16, 0.18);
  --line-soft: rgba(42, 24, 16, 0.08);

  /* Per-page theme accents (overridden per page) */
  --accent: var(--red);
  --accent-deep: var(--red-deep);
  --accent-soft: rgba(201, 48, 44, 0.08);
  --page-bg: var(--cream);
  --page-fg: var(--ink);

  /* Fonts */
  --font-fa: 'Vazirmatn', 'Estedad', 'Tahoma', sans-serif;
  --font-tr: 'Cormorant Garamond', 'EB Garamond', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 4px;
  --radius-lg: 12px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-fa);
  background: var(--page-bg);
  color: var(--page-fg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
}

body[data-lang="tr"] {
  font-family: var(--font-tr);
  font-weight: 500;
}

body[data-lang="tr"] .fa-only { display: none !important; }
body[data-lang="fa"] .tr-only { display: none !important; }

a { color: inherit; text-decoration: none; }

/* ============================================
   Paper texture overlay
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168, 120, 78, 0.05), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45, 80, 22, 0.04), transparent 50%);
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

main, header, footer, section { position: relative; z-index: 2; }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

body[data-lang="tr"] h1,
body[data-lang="tr"] h2,
body[data-lang="tr"] h3,
body[data-lang="tr"] h4 {
  font-weight: 600;
  letter-spacing: 0.005em;
}

.display {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 900;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ============================================
   Top nav (shared)
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 36px;
  background: rgba(253, 246, 227, 0.85);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand .mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.nav-brand .wordmark {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.nav-brand .tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  inset-inline-start: 14px;
  inset-inline-end: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--cream);
}

.lang-switch button {
  background: none;
  border: none;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--cream);
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 48, 44, 0.35);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 980px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    overflow: visible;
  }

  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 132px);
  }

  .nav-brand .wordmark {
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 6px;
    flex-shrink: 0;
  }

  .lang-switch button {
    padding: 6px 10px;
    letter-spacing: 0.08em;
  }

  .btn-phone {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .btn-phone .btn-phone-text {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--cream);
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: min(70vh, 480px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 110;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
    width: 100%;
    box-sizing: border-box;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-brand .tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 8px 10px;
  }

  .nav-brand {
    max-width: calc(100% - 118px);
  }

  .nav-brand .mark,
  .nav-brand .mark-img {
    width: 32px;
    height: 32px;
  }

  .btn-phone {
    padding: 10px;
  }
}

/* ============================================
   Buttons & form controls
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42, 24, 16, 0.2); }
.btn.primary { background: var(--accent); color: var(--cream); }
.btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--cream); }

/* Form */
.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 4px;
  transition: all 0.2s;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 100px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-file {
  border: 1.5px dashed var(--line);
  padding: 18px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.field-file:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field-file input { display: none; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Decorative tile-border
   ============================================ */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 60px 0;
  color: var(--ink-mute);
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.ornament-divider svg {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 36px 36px;
  margin-top: 100px;
  position: relative;
  z-index: 3;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer a {
  display: block;
  padding: 4px 0;
  color: rgba(253, 246, 227, 0.7);
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

.footer-brand p {
  color: rgba(253, 246, 227, 0.6);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(253, 246, 227, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(253, 246, 227, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================
   Utility
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 36px; }

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-sub {
  color: var(--ink-mute);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 36px;
}

/* RTL adjustments */
[dir="rtl"] .field-file::before { transform: scaleX(-1); }

/* Anim utils */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 5px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
