/**
 * İtimat Mezar - Ana CSS Dosyası
 * Tasarım sistemi, layout ve animasyonlar
 * v1.0.0
 */

/* ════════════════════════════════════════
   CUSTOM PROPERTIES (DESIGN TOKENS)
════════════════════════════════════════ */
:root {
  /* Renk Paleti */
  --clr-forest:    #1a3a2a;
  --clr-forest-md: #1e4530;
  --clr-forest-lt: #2d6447;
  --clr-sage:      #4a7c5f;
  --clr-sage-lt:   #6b9e82;
  --clr-gold:      #b89a5e;
  --clr-gold-lt:   #d4b87a;
  --clr-cream:     #f8f5f0;
  --clr-white:     #ffffff;
  --clr-gray-100:  #f4f4f2;
  --clr-gray-200:  #e8e6e1;
  --clr-gray-300:  #c8c5bc;
  --clr-gray-500:  #7a7870;
  --clr-gray-700:  #3d3c39;
  --clr-text:      #1e1e1c;
  --clr-error:     #c0392b;

  /* Tipografi */
  --ff-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body:   'Jost', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Boyutlar */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Gölgeler */
  --shadow-xs: 0 1px 3px rgba(26,58,42,0.06);
  --shadow-sm: 0 2px 8px rgba(26,58,42,0.08);
  --shadow-md: 0 8px 32px rgba(26,58,42,0.12);
  --shadow-lg: 0 20px 60px rgba(26,58,42,0.16);
  --shadow-xl: 0 40px 100px rgba(26,58,42,0.22);

  /* Geçişler */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.35s var(--ease-default);
  --transition-fast: 0.2s var(--ease-default);

  /* Layout */
  --max-width: 1200px;
  --nav-h: 80px;
  --section-py: clamp(4rem, 8vw, 6rem);
  --section-px: max(1.25rem, 5vw);
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Focus visible için erişilebilir outline */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip nav */
.skip-nav {
  position: absolute; top: -100%; left: 1rem;
  background: var(--clr-forest); color: var(--clr-white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999; font-weight: 500;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ════════════════════════════════════════
   PAGE LOADER
════════════════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--clr-forest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none; /* Loader arkasındaki linkleri tıklanabilir tutar */
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: var(--ff-serif); font-size: 2rem; font-weight: 600;
  color: var(--clr-white); letter-spacing: 0.04em;
}
.loader-logo span { color: var(--clr-gold-lt); }

.loader-bar {
  width: 180px; height: 2px; background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full); overflow: hidden;
}
.loader-progress {
  height: 100%; background: var(--clr-gold-lt); border-radius: var(--radius-full);
  animation: loaderProgress 1.6s ease forwards;
}
@keyframes loaderProgress { from { width: 0 } to { width: 100% } }

/* ════════════════════════════════════════
   HEADER / NAVIGATION
════════════════════════════════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  padding: 1.5rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#header.scrolled {
  background: rgba(26,58,42,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  padding: 1rem 0;
}

.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--section-px);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}
.nav-logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--clr-forest);
  transition: transform var(--transition-fast);
}
.nav-logo:hover .nav-logo-icon { transform: scale(1.08); }
.nav-logo-text {
  font-family: var(--ff-serif); font-size: 1.35rem; font-weight: 600;
  color: var(--clr-white); line-height: 1.2;
}
.nav-logo-text span {
  display: block; font-size: 0.68rem; font-family: var(--ff-body);
  font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clr-gold-lt);
}

.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
}
.nav-links a {
  font-size: 0.83rem; font-weight: 400; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8); text-transform: uppercase;
  position: relative; padding-bottom: 4px;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--clr-gold-lt);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--clr-white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--clr-gold) !important;
  color: var(--clr-forest) !important;
  padding: 0.55rem 1.35rem; border-radius: var(--radius-full);
  font-weight: 600 !important; font-size: 0.82rem !important;
  text-transform: none !important; letter-spacing: 0.03em !important;
  transition: background var(--transition-fast), transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--clr-gold-lt) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 5px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--clr-white); border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--clr-forest);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-serif); font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 400;
  color: rgba(255,255,255,0.85); transition: color var(--transition-fast);
}
.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] { color: var(--clr-gold-lt); }
.nav-close {
  position: absolute; top: 2rem; right: 2rem;
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  width: 44px; height: 44px; color: var(--clr-white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.nav-close:hover { background: rgba(255,255,255,0.16); }

/* ════════════════════════════════════════
   SECTION COMMONS
════════════════════════════════════════ */
.section { padding: var(--section-py) var(--section-px); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-cream   { background: var(--clr-cream); }
.section-white   { background: var(--clr-white); }
.section-forest  { background: var(--clr-forest); color: var(--clr-white); }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--clr-sage); margin-bottom: 1rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: ''; height: 1px; background: currentColor; min-width: 28px;
}
.section-eyebrow-center { display: flex; justify-content: center; }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600; line-height: 1.2; color: var(--clr-forest);
  margin-bottom: 1rem; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--clr-gold); }
.section-title-center { text-align: center; }
.section-title-white { color: var(--clr-white); }

.section-lead {
  font-size: 1.05rem; color: var(--clr-gray-500);
  max-width: 54ch; line-height: 1.8; font-weight: 300;
}
.section-lead-center { margin: 0 auto; text-align: center; }
.section-lead-white { color: rgba(255,255,255,0.65); }

/* ════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s var(--ease-default), transform 0.7s var(--ease-default);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--clr-gold); color: var(--clr-forest);
  padding: 0.875rem 2.1rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.93rem; letter-spacing: 0.03em;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(184,154,94,0.3);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--clr-gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,154,94,0.4);
}
.btn-primary svg { width: 18px; height: 18px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--clr-white);
  padding: 0.875rem 2.1rem; border-radius: var(--radius-full);
  font-weight: 400; font-size: 0.93rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
}
.btn-outline svg { width: 18px; height: 18px; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: #25d366; color: var(--clr-white);
  padding: 0.875rem 2.1rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.93rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all var(--transition);
}
.btn-whatsapp:hover {
  background: #20bb5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}

/* ════════════════════════════════════════
   FLOATING BUTTONS
════════════════════════════════════════ */
.float-btns {
  position: fixed; bottom: 2rem; right: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  z-index: 500;
}
.float-wa {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition); position: relative;
}
.float-wa:hover { background: #20bb5a; transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
.float-wa-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.45);
  animation: waPulse 2.5s ease infinite;
}
@keyframes waPulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
.float-top {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-white); border: 1.5px solid var(--clr-gray-200);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
  color: var(--clr-forest);
  transition: all var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
.float-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-top:hover { background: var(--clr-forest); color: var(--clr-white); }

/* ════════════════════════════════════════
   COOKIE BANNER
════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  max-width: 410px; z-index: 1500;
  background: var(--clr-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); padding: 1.4rem 1.5rem;
  border: 1px solid var(--clr-gray-200);
  transition: transform 0.4s var(--ease-default), opacity 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-icon { font-size: 1.4rem; margin-bottom: 0.65rem; }
.cookie-text { font-size: 0.83rem; color: var(--clr-gray-500); line-height: 1.6; margin-bottom: 1.1rem; }
.cookie-text a { color: var(--clr-sage); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.65rem; align-items: center; }
.cookie-accept {
  flex: 1; padding: 0.55rem; background: var(--clr-forest); color: var(--clr-white);
  border: none; border-radius: var(--radius-sm);
  font-size: 0.83rem; font-weight: 500; cursor: pointer;
  transition: background var(--transition-fast);
}
.cookie-accept:hover { background: var(--clr-forest-lt); }
.cookie-reject {
  padding: 0.55rem 0.9rem; background: none; color: var(--clr-gray-500);
  border: 1px solid var(--clr-gray-200); border-radius: var(--radius-sm);
  font-size: 0.83rem; cursor: pointer; transition: all var(--transition-fast);
}
.cookie-reject:hover { border-color: var(--clr-gray-300); color: var(--clr-gray-700); }
.cookie-more { font-size: 0.78rem; color: var(--clr-sage); text-decoration: underline; white-space: nowrap; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: #0c1a12; color: rgba(255,255,255,0.55);
  padding: 4.5rem var(--section-px) 2.5rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-logo { font-family: var(--ff-serif); font-size: 1.4rem; font-weight: 600; color: var(--clr-white); }
.footer-logo span { color: var(--clr-gold-lt); }
.footer-brand p {
  font-size: 0.87rem; line-height: 1.75; margin-top: 1rem; max-width: 28ch;
}
.footer-contact-quick {
  display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem;
}
.footer-contact-quick a {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer-contact-quick a:hover { color: var(--clr-gold-lt); }

.footer-col h3 {
  font-size: 0.73rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1.25rem; font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.87rem; color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--clr-gold-lt); }

.footer-social {
  display: flex; gap: 0.6rem; margin-top: 1.5rem;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}
.footer-social a:hover { background: var(--clr-forest-lt); border-color: transparent; color: var(--clr-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--clr-gold-lt); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

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

  .cookie-banner { left: 1rem; right: 1rem; max-width: none; }
  .float-btns { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .float-btns { bottom: 1rem; right: 1rem; }
}

/* Print */
@media print {
  #header, .float-btns, #cookie-banner, #page-loader { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
}
