/* ============================================
   GALIP HUKUK BÜROSU — Design System
   Colors: Dark Navy, Anthracite, Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy-deepest: #0a0e1a;
  --navy-deep: #0f1528;
  --navy: #141c33;
  --navy-light: #1a2540;
  --anthracite: #2a2d35;
  --anthracite-light: #3a3d45;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dim: #a08535;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --white: #f5f2ec;
  --white-soft: rgba(245, 242, 236, 0.85);
  --white-muted: rgba(245, 242, 236, 0.55);
  --white-ghost: rgba(245, 242, 236, 0.08);

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-deepest);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section Base ---- */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition-smooth),
              padding var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-box {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.logo-img {
  height: 100%;
  width: 100%;
  transform: scale(1.65);
  transition: transform var(--transition-smooth);
}

.header.scrolled .logo-box {
  width: 45px;
  height: 45px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-soft);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.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);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.5) 0%,
    rgba(10, 14, 26, 0.7) 50%,
    rgba(10, 14, 26, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  padding-top: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gold-dim);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 2rem;
  background: var(--gold-glow);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-title .gold {
  color: var(--gold);
  font-style: italic;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--white-muted);
  margin-bottom: 2.5rem;
  max-width: 750px;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-deepest);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deepest);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white-soft);
  border: 1px solid var(--anthracite-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: var(--anthracite-light);
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0% { top: -100%; }
  100% { top: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
  background: var(--navy-deep);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  position: relative;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  border: 1px solid var(--white-ghost);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  transition: all 0.5s ease;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  font-size: 1.2rem;
  color: var(--gold);
}

.team-card .name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.team-card .title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.team-card .bio {
  font-size: 0.92rem;
  color: var(--white-muted);
  line-height: 1.7;
}

.team-contact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--white-ghost);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--white-muted);
  transition: color 0.3s ease;
}

.team-contact a:hover {
  color: var(--gold);
}

.team-contact a svg {
  stroke: var(--gold-dim);
  flex-shrink: 0;
  transition: stroke 0.3s ease;
}

.team-contact a:hover svg {
  stroke: var(--gold-light);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--navy-deepest);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  border: 1px solid var(--white-ghost);
  border-radius: 8px;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
}

.contact-item:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-item:hover .contact-icon {
  background: var(--gold);
  color: var(--navy-deepest);
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  transition: fill 0.4s ease;
}

.contact-item:hover .contact-icon svg {
  fill: var(--navy-deepest);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--white-ghost);
  height: 100%;
  min-height: 280px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  filter: grayscale(0.6) brightness(0.7) contrast(1.1);
  transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
  filter: grayscale(0.3) brightness(0.8) contrast(1.05);
}



/* ============================================
   NEWS / RSS SECTION
   ============================================ */
.news-section {
  background: var(--navy-deep);
  overflow: hidden;
}

.news-ticker-wrapper {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
}

.news-ticker-wrapper::before,
.news-ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.news-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy-deep), transparent);
}

.news-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy-deep), transparent);
}

.news-ticker {
  display: flex;
  gap: 2rem;
  animation: ticker 150s linear infinite;
  width: max-content;
}

.news-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  border: 1px solid var(--white-ghost);
  border-radius: 6px;
  max-width: 400px;
  transition: all 0.3s ease;
}

.news-item:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-2px);
}

.news-item-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.news-item a {
  font-size: 0.88rem;
  color: var(--white-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item a:hover {
  color: var(--gold);
}

.news-loading {
  text-align: center;
  padding: 2rem;
  color: var(--white-muted);
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deepest);
  border-top: 1px solid var(--white-ghost);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.footer-logo span {
  color: var(--gold);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--white-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--white-muted);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--white-ghost);
  transition: all 0.4s ease;
}

.social-link:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--white-soft);
  transition: fill 0.3s ease;
}

.social-link:hover svg {
  fill: var(--gold);
}

/* ============================================
   WHATSAPP STICKY
   ============================================ */
.whatsapp-sticky {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.whatsapp-btn {
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-btn svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-menu {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: var(--navy-deep);
  border: 1px solid var(--white-ghost);
  border-radius: 8px;
  padding: 0.5rem 0;
  width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.whatsapp-sticky:hover .whatsapp-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-menu a {
  display: block;
  padding: 0.8rem 1.25rem;
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.whatsapp-menu a:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--white-ghost);
  }

  .whatsapp-sticky {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .section {
    padding: 5rem 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
