/* =====================================================
   VATANDAŞ REHBERİ — styles.css
   ===================================================== */

/* === Variables === */
:root {
  --navy:        #1E3A5F;
  --navy-dark:   #152B47;
  --navy-light:  #2A4F80;
  --gold:        #C8A24A;
  --gold-light:  #D4B068;
  --gold-pale:   rgba(200, 162, 74, 0.12);
  --bg:          #F7F8FA;
  --bg-alt:      #EEF1F6;
  --white:       #FFFFFF;
  --text:        #2C3E50;
  --text-light:  #6B7A8D;
  --border:      rgba(30, 58, 95, 0.1);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 4px rgba(30, 58, 95, 0.06);
  --shadow:      0 4px 16px rgba(30, 58, 95, 0.09);
  --shadow-lg:   0 8px 32px rgba(30, 58, 95, 0.14);
  --transition:  0.2s ease;
  --max-width:   1100px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeInUp 0.55s ease both; }
.fade-in-1 { animation-delay: 0.08s; }
.fade-in-2 { animation-delay: 0.18s; }
.fade-in-3 { animation-delay: 0.28s; }
.fade-in-4 { animation-delay: 0.38s; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--navy);
  border-radius: 5px;
  position: relative;
  flex-shrink: 0;
  background: var(--white);
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--gold);
  border-radius: 2px;
}
.logo-mark--light {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
.logo-mark--light::after { background: var(--gold); }

.main-nav ul {
  display: flex;
  gap: 2px;
}
.main-nav a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.main-nav a:hover {
  color: var(--navy);
  background: var(--gold-pale);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.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; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
  padding: 88px 0 76px;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 162, 74, 0.17) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 660px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 162, 74, 0.38);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
  animation: fadeInUp 0.5s ease 0.05s both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 34px;
  animation: fadeInUp 0.6s ease 0.28s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.42s both;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 2px 10px rgba(200, 162, 74, 0.32);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 18px rgba(200, 162, 74, 0.44);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--gold);
  border-radius: 0;
  margin-top: auto;
  transition: all 0.2s ease;
  align-self: flex-start;
}
.btn-card:hover {
  color: var(--gold);
  gap: 10px;
}

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 14px auto 0;
  line-height: 1.7;
}

/* =====================================================
   PUBLICATIONS
   ===================================================== */
.publications {
  padding: 80px 0;
  background: var(--bg);
}
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 95, 0.15);
}
.pub-card:hover::before { transform: scaleX(1); }

.pub-card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.pub-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.pub-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.72;
  flex-grow: 1;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  padding: 80px 0;
  background: var(--bg-alt);
}
.about-inner {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 36px;
  max-width: 700px;
  margin: 0 auto;
}
.about-accent {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 4px;
  align-self: stretch;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.about-content p {
  color: var(--text-light);
  font-size: 0.975rem;
  line-height: 1.78;
  margin-bottom: 12px;
}
.about-content p:last-of-type { margin-bottom: 0; }

.about-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(200, 162, 74, 0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(200, 162, 74, 0.22);
}
.about-disclaimer svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-disclaimer p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy-dark);
  padding: 44px 0 36px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 8px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 24px 16px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 10px 12px; }

  .hero { padding: 56px 0 52px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .publications { padding: 56px 0; }
  .publications-grid { grid-template-columns: 1fr; }

  .about { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 44px; }
  .pub-card { padding: 24px 20px; }
  .about-inner { gap: 24px; }
}

/* =====================================================
   FOOTER — LEGAL NAV
   ===================================================== */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold); }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 28px rgba(30, 58, 95, 0.13);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1;
}
.cookie-btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.cookie-btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}
.cookie-btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.cookie-btn-outline:hover {
  border-color: var(--navy);
  background: var(--gold-pale);
}
.cookie-btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border);
}
.cookie-btn-ghost:hover {
  color: var(--text);
  background: var(--bg);
}

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* =====================================================
   POLICY PAGES
   ===================================================== */
.page-hero {
  background-color: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 44px 0 36px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  transition: color var(--transition);
}
.page-hero-back:hover { color: var(--gold); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-hero-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}

.policy-section {
  padding: 56px 0 80px;
  background: var(--bg);
  min-height: 50vh;
}
.policy-body {
  max-width: 720px;
  margin: 0 auto;
}
.policy-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 36px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p {
  font-size: 0.945rem;
  color: var(--text-light);
  line-height: 1.82;
  margin-bottom: 14px;
}
.policy-body ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
.policy-body ul li {
  font-size: 0.945rem;
  color: var(--text-light);
  line-height: 1.75;
  padding: 4px 0 4px 22px;
  position: relative;
}
.policy-body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.policy-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-body a:hover { color: var(--gold); }
.policy-note {
  background: rgba(200, 162, 74, 0.07);
  border: 1px solid rgba(200, 162, 74, 0.22);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}
.policy-note strong { color: var(--navy); }
.policy-email-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.policy-email-box svg { color: var(--gold); flex-shrink: 0; }

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--navy); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
}

.contact-info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-info-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-info-item a {
  color: var(--navy);
  font-weight: 600;
}
.contact-info-item a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 24px 20px; }
}
