/* ════════════════════════════════════════════════════
   MİRRA — Shared design system (nav, footer, legal pages)
   ════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.65);
  --text-dim: rgba(245, 245, 247, 0.4);
  --accent: #c9a882;
  --accent-2: #e8d5b7;
  --accent-glow: #ffd7a8;
  --accent-deep: #a88a6a;
  --pink: #f4a5b8;
  --lavender: #b8a5f4;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ Background orbs (shared) ═══ */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  top: 30%; right: -200px;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  bottom: -100px; left: 30%;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ Scroll progress ═══ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--lavender));
  z-index: 9999;
  box-shadow: 0 0 10px var(--accent);
}

/* ═══ Navigation ═══ */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.main-nav.scrolled {
  padding: 12px 40px;
  background: rgba(10, 10, 15, 0.88);
  border-bottom-color: var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 44px;
  width: auto;
  border-radius: 10px;
  transition: filter 0.3s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 20px rgba(201, 168, 130, 0.25));
}
.logo:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 6px 30px rgba(201, 168, 130, 0.45));
}
nav.main-nav.scrolled .logo img { height: 38px; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  font-size: 0.75rem;
}
.lang-switch a {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.3s;
}
.lang-switch a.active {
  background: var(--accent);
  color: #0a0a0f;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ═══ Page container (for subpages) ═══ */
.page {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 160px 40px 80px;
}
.page-header {
  text-align: center;
  margin-bottom: 60px;
}
.page-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-header h1 .italic {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-2), var(--pink), var(--lavender));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.page-date {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ═══ Legal / prose content ═══ */
.prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 56px 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prose h2::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 14px;
  transform: translateY(-4px);
  box-shadow: 0 0 12px var(--accent);
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201,168,130,0.3);
  transition: border-color 0.2s;
}
.prose a:hover { border-bottom-color: var(--accent); }
.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-2);
}

/* ═══ Info card (used in legal pages) ═══ */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 24px 0;
}
.info-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.info-card.emphasis {
  background: linear-gradient(180deg, rgba(201,168,130,0.06), transparent);
  border-color: rgba(201,168,130,0.25);
}

/* ═══ Contact page ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s;
}
.contact-card:hover {
  border-color: rgba(201,168,130,0.3);
  transform: translateY(-4px);
}
.contact-card .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px -10px rgba(201, 168, 130, 0.4);
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.contact-card a.mail {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-card a.mail:hover { border-bottom-color: var(--accent); }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}
.form-card h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.form-card > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 3px rgba(201,168,130,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent), var(--pink));
  background-size: 200% 200%;
  color: #0a0a0f;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
  animation: gradientShift 6s ease infinite;
}
.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(201, 168, 130, 0.5);
}

/* ═══ About page values grid ═══ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.4s;
}
.value-card:hover {
  border-color: rgba(201,168,130,0.3);
  transform: translateY(-4px);
}
.value-card .value-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.value-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ═══ Footer ═══ */
footer.main-footer {
  position: relative;
  z-index: 2;
  padding: 70px 40px 30px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
  background: rgba(10, 10, 15, 0.4);
}
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 14px 0 20px;
  max-width: 340px;
  line-height: 1.55;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
  transform: translateY(-3px);
}
.social-links svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══ Reveals ═══ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═══ Responsive ═══ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  nav.main-nav { padding: 14px 20px; }
  nav.main-nav.scrolled { padding: 10px 20px; }
  .page { padding: 130px 20px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-content { grid-template-columns: 1fr 1fr; padding: 0 4px; }
  footer.main-footer { padding: 50px 20px 30px; }
}
@media (max-width: 560px) {
  .footer-content { grid-template-columns: 1fr; }
  .prose h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
