/* ========================================
   FAQ PAGE - ANDREI VLADULESCU
   ======================================== */
:root {
  --gold: #d4a853;
  --gold-hover: #c49a48;
  --bg-dark: #0a0a0a;
  --bg-light: #f5f5f0;
  --bg-cream: #faf9f7;
  --bg-white: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-light: #ffffff;
  --border-color: #e5e5e5;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
button { border: 0; background: none; cursor: pointer; font-family: inherit; }
.text-gold { color: var(--gold) !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-primary { background: var(--gold); color: var(--text-light); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(245, 245, 240, 0.96);
  transition: padding 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 22px rgba(0, 0, 0, 0.06);
}

.nav-container {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }

.nav-link {
  position: relative;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active { color: var(--gold); }

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--gold);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  padding: 0;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  display: block;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(82vw, 320px);
  height: 100vh;
  z-index: 1001;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--bg-white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transition: right 0.3s ease;
}

.mobile-menu.active { right: 0; }
.mobile-link { font-size: 1.05rem; color: var(--text-primary); padding: 0.35rem 0; }
.mobile-link:hover { color: var(--gold); }
.mobile-cta { margin-top: 0.75rem; }

.faq-hero {
  width: 100%;
  min-height: 48vh;
  padding: 9rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(212, 168, 83, 0.13), transparent 35%), linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

.faq-hero-inner {
  width: min(100%, 920px);
  margin: 0 auto;
}

.faq-label, .side-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.faq-hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.faq-intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.9;
}

.faq-section {
  width: 100%;
  padding: 5rem 2rem 7rem;
  background: var(--bg-light);
}

.faq-layout {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.faq-side-card {
  position: sticky;
  top: 7rem;
  padding: clamp(2rem, 3vw, 3rem);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.045);
}

.faq-side-card h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.faq-side-card p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.85;
}

.faq-list { display: flex; flex-direction: column; gap: 4rem; }
.category-heading {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.category-heading span {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.18em;
}

.category-heading h2 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  color: var(--text-primary);
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item:hover, .faq-item.active {
  border-color: rgba(212, 168, 83, 0.55);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  min-height: 76px;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  color: var(--text-primary);
}

.faq-question span:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  line-height: 1.35;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 360px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  max-width: 850px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.9;
}

.footer {
  background: var(--bg-dark);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-light);
}

.footer-tagline, .footer-links a, .footer-links span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { width: min(100%, 1440px); margin: 0 auto; padding-top: 2rem; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

.scroll-hidden {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-side-card {
    position: static;
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 0; }
  .navbar.scrolled { padding: 0.75rem 0; }
  .nav-container { padding: 0 1rem; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .faq-hero {
    min-height: auto;
    padding: 7.5rem 1.25rem 3rem;
    text-align: left;
  }

  .faq-hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .faq-intro {
    margin: 0;
    font-size: 0.95rem;
  }

  .faq-section {
    padding: 2rem 1rem 4rem;
  }

  .faq-side-card {
    padding: 1.5rem;
  }

  .faq-side-card h2 {
    font-size: 2rem;
  }

  .faq-list {
    gap: 3rem;
  }

  .category-heading {
    gap: 0.85rem;
  }

  .faq-question {
    min-height: 68px;
    padding: 1.1rem 1rem;
    gap: 1rem;
  }

  .faq-question span:first-child {
    font-size: 1.12rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1.2rem;
  }

  .faq-answer p {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}