/* ============================================
   SILA HUKUK — Professional Legal Website
   Design: Navy (#0F1B2D) + Gold (#C9A96E)
   Fonts: Playfair Display + Inter
   Author: Redesigned from scratch
   ============================================ */

/* ─── Custom Properties ─── */
:root {
  --clr-primary: #0F1B2D;
  --clr-primary-light: #1A2D4A;
  --clr-primary-lighter: #243B5E;
  --clr-accent: #C9A96E;
  --clr-accent-light: #E8D5A8;
  --clr-accent-dark: #A8893E;
  --clr-text: #1A1A2E;
  --clr-text-light: #555B6E;
  --clr-text-lighter: #9CA3AF;
  --clr-bg: #FFFFFF;
  --clr-bg-alt: #F7F8FA;
  --clr-border: #E5E7EB;
  --clr-white: #FFFFFF;
  --clr-success: #25D366;

  --shadow-card: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 16px 40px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 80px;
  --section-py: 100px;
  --container: 1200px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; color: var(--clr-text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--clr-text-light); font-size: 1.05rem; line-height: 1.8; }

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

/* ─── Section Utils ─── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 8px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.section-header h2 { margin-top: 8px; }
.section-header p  { margin-top: 16px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  padding: 15px 32px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--clr-accent); color: var(--clr-white); border-color: var(--clr-accent); }
.btn-primary:hover {
  background: var(--clr-accent-dark); border-color: var(--clr-accent-dark);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}

.btn-outline { background: transparent; color: var(--clr-white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }


/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; inset: 0;
  background: var(--clr-primary);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--clr-white); letter-spacing: 2px; margin-bottom: 28px; }
.preloader-logo span { color: var(--clr-accent); }
.preloader-bar { width: 120px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; margin: 0 auto; overflow: hidden; }
.preloader-bar::after {
  content: ''; display: block; width: 40%; height: 100%;
  background: var(--clr-accent); border-radius: 2px;
  animation: preloaderSlide 1.2s infinite ease-in-out;
}
@keyframes preloaderSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-height); display: flex; align-items: center;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled { background: var(--clr-white); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--clr-white); letter-spacing: 1px; transition: color var(--transition); }
.logo span { color: var(--clr-accent); }
.navbar.scrolled .logo { color: var(--clr-primary); }

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.8); padding: 8px 16px; border-radius: var(--radius-sm);
  transition: all var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0); width: 20px; height: 2px;
  background: var(--clr-accent); transition: transform var(--transition); border-radius: 1px;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-links a:hover { color: var(--clr-white); }
.navbar.scrolled .nav-links a { color: var(--clr-text-light); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--clr-primary); }

/* Hamburger */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--clr-white); border-radius: 2px; transition: all var(--transition); }
.navbar.scrolled .menu-toggle span { background: var(--clr-primary); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile overlay */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.mobile-overlay.active { display: block; }


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: url('images/hero-bg.jpg') center/cover no-repeat; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,27,45,0.93) 0%, rgba(15,27,45,0.88) 40%, rgba(26,45,74,0.82) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 840px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: var(--clr-accent); margin-bottom: 28px;
}
.hero-badge::before, .hero-badge::after { content: ''; width: 40px; height: 1px; background: var(--clr-accent); opacity: 0.6; }

.hero h1 { color: var(--clr-white); font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1.2; margin-bottom: 24px; }
.hero-desc { color: rgba(255,255,255,0.72); font-size: clamp(1rem, 2vw, 1.12rem); max-width: 640px; margin: 0 auto 40px; line-height: 1.85; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: scrollBounce 2.5s infinite;
}
.scroll-indicator span {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.25); border-radius: 11px; position: relative;
}
.scroll-indicator span::after {
  content: ''; width: 3px; height: 8px; background: var(--clr-accent); border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollDot 2.5s infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }
@keyframes scrollDot { 0%{opacity:1;top:6px} 100%{opacity:0;top:20px} }

/* Hero entrance animations */
.hero-content .hero-badge { opacity:0; transform:translateY(20px); animation:heroIn .8s .3s forwards var(--ease); }
.hero-content h1       { opacity:0; transform:translateY(20px); animation:heroIn .8s .5s forwards var(--ease); }
.hero-content .hero-desc  { opacity:0; transform:translateY(20px); animation:heroIn .8s .7s forwards var(--ease); }
.hero-content .hero-ctas  { opacity:0; transform:translateY(20px); animation:heroIn .8s .9s forwards var(--ease); }
@keyframes heroIn { to{opacity:1;transform:translateY(0)} }


/* ============================================
   ABOUT
   ============================================ */
.about { padding: var(--section-py) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.about-text h2 { margin-top: 8px; margin-bottom: 24px; }
.about-text p  { margin-bottom: 16px; }

.about-quote {
  font-family: var(--font-heading); font-style: italic; font-size: 1.15rem;
  color: var(--clr-accent-dark); border-left: 3px solid var(--clr-accent);
  padding: 12px 0 12px 24px; margin: 24px 0 0; line-height: 1.6;
}

.about-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--clr-border); }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--clr-bg-alt); border-radius: var(--radius-sm);
}
.stat-icon svg { width: 22px; height: 22px; stroke: var(--clr-accent); }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--clr-text); }

/* About image */
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-image::before {
  content: ''; position: absolute; top: -14px; right: -14px;
  width: 100%; height: 100%; border: 2px solid var(--clr-accent); border-radius: var(--radius-lg); z-index: -1;
}


/* ============================================
   SERVICES
   ============================================ */
.services { padding: var(--section-py) 0; background: var(--clr-bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
  background: var(--clr-white); border-radius: var(--radius-md); padding: 36px 28px;
  position: relative; overflow: hidden; transition: all var(--transition);
  box-shadow: var(--shadow-card); border: 1px solid transparent;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--clr-accent); transform: scaleX(0); transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: rgba(201,169,110,0.12); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(201,169,110,0.04));
  border-radius: var(--radius-sm); margin-bottom: 20px; transition: all var(--transition);
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--clr-accent); transition: stroke var(--transition); }

.service-card:hover .service-icon { background: var(--clr-accent); transform: scale(1.05); }
.service-card:hover .service-icon svg { stroke: var(--clr-white); }

.service-card h3 { margin-bottom: 12px; transition: color var(--transition); }
.service-card:hover h3 { color: var(--clr-accent-dark); }
.service-card p { font-size: 0.92rem; line-height: 1.7; color: var(--clr-text-light); }


/* ============================================
   CONTACT
   ============================================ */
.contact { padding: var(--section-py) 0; background: var(--clr-primary); position: relative; overflow: hidden; }
.contact-shape {
  position: absolute; top: -250px; right: -250px;
  width: 550px; height: 550px; border-radius: 50%; background: rgba(201,169,110,0.04);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; z-index: 2; }

.contact-info .section-label { color: var(--clr-accent); }
.contact-info h2 { color: var(--clr-white); margin-top: 8px; margin-bottom: 20px; }
.contact-info > p { color: rgba(255,255,255,0.68); margin-bottom: 40px; font-size: 1rem; }

.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; color: rgba(255,255,255,0.78); font-size: 0.95rem; transition: color var(--transition); }
.contact-item:hover { color: var(--clr-white); }
.contact-item strong { display: block; color: rgba(255,255,255,0.95); margin-bottom: 2px; font-size: 0.85rem; letter-spacing: 0.5px; }
.contact-item-icon {
  width: 44px; height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07); border-radius: var(--radius-sm); transition: background var(--transition);
}
.contact-item:hover .contact-item-icon { background: rgba(201,169,110,0.15); }
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-icon svg[fill="currentColor"] { fill: var(--clr-accent); width: 20px; height: 20px; }
.contact-item-icon svg:not([fill="currentColor"]) { stroke: var(--clr-accent); }
.contact-item a { color: var(--clr-accent); }
.contact-item a:hover { color: var(--clr-accent-light); }

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); color: var(--clr-white); font-size: 0.95rem;
  outline: none; transition: all var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--clr-accent); background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 0.95rem; }

/* Form success */
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success.active { display: block; }
.form-success svg { width: 56px; height: 56px; stroke: var(--clr-success); margin: 0 auto 20px; }
.form-success h3 { color: var(--clr-white); font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }


/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0A1420; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo { color: var(--clr-white); display: inline-block; margin-bottom: 16px; font-size: 1.4rem; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; max-width: 320px; line-height: 1.7; }

.footer h4 { color: var(--clr-white); margin-bottom: 20px; font-size: 0.95rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.9rem; transition: all var(--transition); }
.footer-links a:hover { color: var(--clr-accent); padding-left: 4px; }

.footer-contact p { color: rgba(255,255,255,0.45); font-size: 0.9rem; margin-bottom: 6px; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 8px; color: var(--clr-success); font-size: 0.9rem; font-weight: 500; margin-top: 12px; }
.whatsapp-link:hover { color: #1EBE5B; }
.whatsapp-link svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }


/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; background: #25D366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 998;
  transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float::before {
  content: ''; position: absolute; inset: -5px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,0.35);
  animation: waPulse 2s infinite;
}
@keyframes waPulse { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.4);opacity:0} }


/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 100px; right: 32px;
  width: 44px; height: 44px; background: var(--clr-white); border: 1px solid var(--clr-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 997; color: var(--clr-text);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--clr-primary); color: var(--clr-white); border-color: var(--clr-primary); }
.back-to-top svg { width: 20px; height: 20px; }


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.25s; }
.reveal-delay-5 { transition-delay: 0.3s; }
.reveal-delay-6 { transition-delay: 0.35s; }
.reveal-delay-7 { transition-delay: 0.4s; }
.reveal-delay-8 { transition-delay: 0.45s; }


/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  :root { --section-py: 64px; --nav-height: 68px; }

  /* Mobile nav */
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--clr-primary); flex-direction: column; justify-content: center;
    gap: 4px; padding: 24px; transition: right 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3); z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: rgba(255,255,255,0.8) !important; font-size: 0.9rem; padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav-links a:hover { color: var(--clr-white) !important; background: rgba(255,255,255,0.06); }
  .menu-toggle.active span { background: var(--clr-white) !important; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-image::before { display: none; }
  .about-stats { flex-wrap: wrap; gap: 20px; }
  .about-stats .stat { min-width: 140px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Hero */
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }
  .scroll-indicator { display: none; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  :root { --section-py: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
  .contact-form { padding: 28px 20px; }
  .section-header { margin-bottom: 48px; }
}