/* ============================================================
   HaniftaCRM – main.css  |  Global Stiller
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Değişkenler ───────────────────────────────────────────── */
:root {
  --bg:          #f0c0c0;
  --bg-light:    #f8f4f4;
  --title:       #5a1a1a;
  --text:        #8B1A1A;
  --mid:         #a06060;
  --dark:        #7a3a3a;
  --white:       #fffafa;
  --shadow:      rgba(90,26,26,0.14);
  --shadow-deep: rgba(90,26,26,0.28);

  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Lora', Georgia, serif;

  --nav-h:    70px;
  --radius:   14px;
  --radius-lg:26px;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-display); border: none; background: none; }

/* ── Grain doku ────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  gap: 1.5rem;
  background: rgba(240,192,192,0.72);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(90,26,26,0.10);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(248,244,244,0.94);
  box-shadow: 0 4px 30px var(--shadow);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav__logo {
  width: 36px; height: 36px; object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.nav__brand:hover .nav__logo { transform: rotate(-6deg) scale(1.08); }
.nav__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem;
  color: var(--title); letter-spacing: -0.02em;
}
.nav__links {
  display: flex; align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin: 0 auto;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 500; font-size: 0.875rem;
  color: var(--dark); letter-spacing: 0.02em;
  position: relative; padding-bottom: 3px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--title); border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--title); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.lang-switcher {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.lang-switcher a {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dark); padding: 3px 7px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.lang-switcher a.active,
.lang-switcher a:hover {
  background: rgba(90,26,26,0.12); color: var(--title);
}
.lang-switcher span { color: var(--mid); font-size: 0.65rem; }

.nav__cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.48rem 1.25rem;
  background: var(--title); color: var(--white);
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.83rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav__cta:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow-deep);
}
.nav__cta::after { display: none !important; }

.nav__hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 6px; margin-left: auto;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--title); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; z-index: 8999;
  background: rgba(248,244,244,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem) 1.75rem;
  gap: 0;
  border-bottom: 1px solid rgba(90,26,26,0.12);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__mobile.open { display: flex; opacity: 1; transform: translateY(0); }
.nav__mobile a {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  color: var(--dark); padding: 0.85rem 0;
  border-bottom: 1px solid rgba(90,26,26,0.07);
  transition: color 0.2s, padding-left 0.2s;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--title); padding-left: 6px; }
.nav__mobile .nav__cta { margin-top: 1rem; justify-content: center; padding: 0.75rem; }
.nav__mobile .lang-switcher { margin-top: 0.5rem; justify-content: center; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--title);
  color: rgba(255,250,250,0.75);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3.5rem) 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--mid), var(--dark), var(--mid));
}
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer__brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.footer__brand-logo img { width: 32px; filter: brightness(10); }
.footer__brand-logo span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem; color: var(--white);
}
.footer__brand p { font-size: 0.88rem; line-height: 1.7; opacity: 0.75; }
.footer__brand .footer__email {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; font-family: var(--font-display);
  font-weight: 600; font-size: 0.85rem;
  color: rgba(255,250,250,0.9);
  transition: opacity 0.2s;
}
.footer__brand .footer__email:hover { opacity: 1; }

.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.75rem;
  color: var(--white); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col ul a {
  font-size: 0.88rem; opacity: 0.7;
  transition: opacity 0.2s, padding-left 0.2s;
}
.footer__col ul a:hover { opacity: 1; padding-left: 5px; }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,250,250,0.10);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.78rem; opacity: 0.55;
  font-family: var(--font-display);
}

/* ── YARDIMCI ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--mid);
  padding: 0.32rem 0.85rem;
  background: rgba(90,26,26,0.06);
  border: 1px solid rgba(90,26,26,0.14);
  border-radius: 99px; margin-bottom: 0.85rem;
}
.section-tag::before {
  content: ''; display: block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mid);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.78rem 1.8rem;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--shadow-deep); }
.btn--primary { background: var(--title); color: var(--white); }
.btn--primary:hover { background: var(--dark); }
.btn--outline { background: transparent; border: 2px solid var(--title); color: var(--title); }
.btn--outline:hover { background: var(--title); color: var(--white); }
.btn--white { background: var(--white); color: var(--title); }
.btn--white:hover { background: var(--bg-light); box-shadow: 0 8px 24px rgba(90,26,26,0.2); }

/* ── SCROLL ANİMASYON ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }
.delay-5 { transition-delay: 0.40s !important; }
.delay-6 { transition-delay: 0.48s !important; }