/* ═══════════════════════════════════════════════════════════════
   KIROĞLU ÇİFTLİĞİ — SHARED SITE STYLES
   Design tokens, reset, nav, footer, sticky WhatsApp, modal base,
   reveal animations. Loaded by all pages.
═══════════════════════════════════════════════════════════════ */

:root {
  --green-deep: #2D4A1E;
  --green-mid: #3D6129;
  --green-light: #5A7F3F;
  --cream: #F5ECD7;
  --cream-dark: #EAD9BB;
  --cream-soft: #FBF6ED;
  --gold: #C9963A;
  --gold-light: #E2B96A;
  --gold-dark: #A67828;
  --text-dark: #1C2A12;
  --text-mid: #4A5C38;
  --text-light: #7A8C6A;
  --white: #FEFCF8;
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius-card: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(45, 74, 30, 0.10);
  --shadow-lift: 0 12px 40px rgba(45, 74, 30, 0.18);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream-soft);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ─── REVEAL ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══════ NAV ══════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(45, 74, 30, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 150, 58, 0.25);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover { background: rgba(245,236,215,0.10); }
.nav-link.active { background: rgba(201,150,58,0.20); color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 24px;
  letter-spacing: 0.3px;
  transition: background .2s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--gold-dark); }
.nav-cta:active { transform: scale(0.97); }

@media (max-width: 560px) {
  .nav-inner { padding: 8px 16px; gap: 6px; }
  .nav-logo img { height: 44px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
}

@media (min-width: 768px) {
  .nav-inner { padding: 12px max(24px, calc((100vw - 1240px) / 2)); max-width: none; }
  .nav-logo img { height: 64px; }
  .nav-link { font-size: 14px; padding: 8px 14px; }
  .nav-cta { font-size: 14px; padding: 11px 22px; }
}

/* ══════ FOOTER ══════ */
footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 40px 20px 30px;
  text-align: center;
}
.footer-logo img { height: 64px; margin: 0 auto 10px; }
.footer-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(245,236,215,0.75);
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-link {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(226,185,106,0.4);
  padding-bottom: 1px;
}
.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(226,185,106,0.3);
  margin: 18px auto;
}
.footer-copy {
  font-size: 11px;
  color: rgba(245,236,215,0.5);
  letter-spacing: 0.3px;
}
.footer-copy a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(226,185,106,0.4);
}
@media (min-width: 768px) {
  footer { padding: 56px max(24px, calc((100vw - 1240px) / 2)) 40px; }
  .footer-logo img { height: 72px; }
  .footer-slogan { font-size: 16px; }
}

/* ══════ STICKY WHATSAPP ══════ */
.sticky-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.40);
  z-index: 90;
  transition: transform .2s ease;
}
.sticky-wa:hover { transform: scale(1.08); }
.sticky-wa:active { transform: scale(0.95); }
@media (min-width: 768px) {
  .sticky-wa { width: 64px; height: 64px; bottom: 28px; right: 28px; }
}

/* ══════ A11Y / FOCUS ══════ */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
