/*!
Theme Name: milat
Theme URI: https://milathukuk.com/
Author: Milat Hukuk Bürosu
Description: Milat Hukuk Bürosu özel teması — dark/gold one-page tasarım.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: milat
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

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

html {
  scroll-padding-top: 112px;
}

/* ── Dot pattern background ───────────────────────────────────────────────── */
.dot-pattern {
  background-color: #0D1421;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(30, 58, 108, 0.45) 0%, transparent 60%),
    radial-gradient(circle, #1D2D44 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
}

/* ── Gold gradient text ───────────────────────────────────────────────────── */
.text-gold-gradient {
  background: linear-gradient(135deg, #9B7B2E 0%, #C49A3C 40%, #D4AF62 60%, #C49A3C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gold border gradient ─────────────────────────────────────────────────── */
.border-gold-gradient {
  border-image: linear-gradient(90deg, transparent, #C49A3C, transparent) 1;
}

/* ── Navbar scroll effect ─────────────────────────────────────────────────── */
#navbar {
  background: linear-gradient(180deg, #111D2F 0%, #0D1421 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  border-bottom-color: rgba(196, 154, 60, 0.18);
  box-shadow: 0 4px 40px rgba(7, 12, 28, 0.9);
}

/* ── Section divider ──────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(196,154,60,0.4) 50%, transparent 100%);
}

/* ── Practice area card hover ─────────────────────────────────────────────── */
.practice-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.practice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,154,60,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.practice-card:hover::before { opacity: 1; }
.practice-card:hover { border-color: rgba(196,154,60,0.5) !important; transform: translateY(-2px); }

/* ── Team card ────────────────────────────────────────────────────────────── */
.team-card:hover .team-overlay { opacity: 1; }
.team-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Publication card ─────────────────────────────────────────────────────── */
.pub-card {
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pub-card:hover {
  border-color: rgba(196,154,60,0.4) !important;
  background: rgba(196,154,60,0.04);
}

/* ── Scroll reveal animation ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: fadeInUp 0.7s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; animation: none !important; }
}

/* ── Nav link underline effect ────────────────────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #C49A3C;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Mobile menu ──────────────────────────────────────────────────────────── */
#mobile-menu {
  transition: max-height 0.4s ease, opacity 0.4s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── Form inputs ──────────────────────────────────────────────────────────── */
.form-input:focus {
  outline: none;
  border-color: rgba(196,154,60,0.6) !important;
  box-shadow: 0 0 0 3px rgba(196,154,60,0.1);
}

/* ── Hero line animation ──────────────────────────────────────────────────── */
.hero-line {
  width: 0;
  animation: lineExpand 1.2s ease 0.8s forwards;
}
@keyframes lineExpand { to { width: 80px; } }

/* ── Scroll indicator bounce ──────────────────────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
.scroll-bounce { animation: bounce 2s ease-in-out infinite; }

/* ── Hero scroll hide ─────────────────────────────────────────────────────── */
.hero-scroll-hide { transition: opacity 0.4s ease; }

/* ── Randevu Modal — CF7 uyumu ───────────────────────────────────────────── */
#randevu-modal .wpcf7-form p { margin: 0; }
#randevu-modal .wpcf7-form .wpcf7-text,
#randevu-modal .wpcf7-form .wpcf7-email,
#randevu-modal .wpcf7-form .wpcf7-tel,
#randevu-modal .wpcf7-form .wpcf7-date,
#randevu-modal .wpcf7-form .wpcf7-textarea {
  display: block;
  width: 100%;
  background: #1B2A40;
  border: 1px solid rgba(196,154,60,0.15);
  color: rgba(245,237,214,0.85);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color-scheme: dark;
}
#randevu-modal .wpcf7-form .wpcf7-text:focus,
#randevu-modal .wpcf7-form .wpcf7-email:focus,
#randevu-modal .wpcf7-form .wpcf7-tel:focus,
#randevu-modal .wpcf7-form .wpcf7-date:focus,
#randevu-modal .wpcf7-form .wpcf7-textarea:focus {
  outline: none;
  border-color: rgba(196,154,60,0.6);
  box-shadow: 0 0 0 3px rgba(196,154,60,0.1);
}
#randevu-modal .wpcf7-form .wpcf7-textarea { resize: none; min-height: 110px; }
#randevu-modal .wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  background: #C49A3C;
  color: #0D1421;
  border: none;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
#randevu-modal .wpcf7-form .wpcf7-submit:hover { background: #D4AF62; }

/* ── Hero Carousel ────────────────────────────────────────────────────────── */
#hero-carousel { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active { opacity: 1; }

.hero-slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.06);
  transition: transform 0.9s ease;
}
.hero-slide.active .hero-slide-img {
  animation: heroKenBurns 10s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* Navy gradient overlay — okunaklılık için üst ve alt koyu, orta açık */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(13, 20, 33, 0.88) 0%,
      rgba(13, 20, 33, 0.42) 40%,
      rgba(13, 20, 33, 0.55) 70%,
      rgba(13, 20, 33, 0.88) 100%);
}

/* Bar stilinde dot göstergeleri */
.hero-dot {
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(196, 154, 60, 0.28);
  border: none;
  padding: 8px 0;            /* tıklama alanını genişlet */
  background-clip: content-box;
  cursor: pointer;
  transition: background-color 0.4s ease, width 0.4s ease;
}
.hero-dot.active {
  width: 44px;
  background-color: #C49A3C;
  background-clip: content-box;
}
.hero-dot:hover:not(.active) { background-color: rgba(196, 154, 60, 0.55); }
.hero-dot:focus-visible {
  outline: 1px solid rgba(196, 154, 60, 0.7);
  outline-offset: 3px;
}

/* Prev / Next ok butonları */
.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#hero:hover .hero-arrow,
#hero:focus-within .hero-arrow { opacity: 1; }
.hero-arrow:hover circle        { stroke: rgba(196, 154, 60, 0.7); }
.hero-arrow:focus-visible       { outline: 1px solid rgba(196, 154, 60, 0.6); outline-offset: 4px; }
#hero-prev:hover                { transform: translateY(-50%) translateX(-3px); }
#hero-next:hover                { transform: translateY(-50%) translateX(3px); }

@media (max-width: 640px) {
  .hero-arrow svg { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide            { transition: none; }
  .hero-slide-img        { animation: none !important; }
  .hero-arrow            { transition: opacity 0.15s ease; }
}

/* ── Stat number ──────────────────────────────────────────────────────────── */
.stat-number { font-variant-numeric: tabular-nums; }

/* ── CF7 form overrides ───────────────────────────────────────────────────── */
.wpcf7-form p { margin: 0; }
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-date,
.wpcf7-form .wpcf7-textarea {
  display: block;
  width: 100%;
  background: #1B2A40;
  border: 1px solid rgba(196,154,60,0.15);
  color: rgba(245,237,214,0.8);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color-scheme: dark;
}
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-tel:focus,
.wpcf7-form .wpcf7-date:focus,
.wpcf7-form .wpcf7-textarea:focus {
  outline: none;
  border-color: rgba(196,154,60,0.6);
  box-shadow: 0 0 0 3px rgba(196,154,60,0.1);
}
.wpcf7-form .wpcf7-textarea { resize: none; min-height: 140px; }
.wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  background: #C49A3C;
  color: #0D1421;
  border: none;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.wpcf7-form .wpcf7-submit:hover { background: #D4AF62; }
.wpcf7-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 2px;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(196,154,60,0.3);
  background: #1B2A40;
  accent-color: #C49A3C;
  flex-shrink: 0;
}
.wpcf7-response-output {
  margin-top: 0.75rem !important;
  border: 1px solid rgba(196,154,60,0.2) !important;
  color: rgba(196,154,60,0.7) !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.75rem !important;
  text-align: center !important;
  padding: 0.5rem 1rem !important;
  background: transparent !important;
}
.wpcf7-not-valid-tip {
  color: #e57373 !important;
  font-size: 0.7rem !important;
  font-family: 'Lato', sans-serif !important;
}

/* ── Blog / Archive styles ────────────────────────────────────────────────── */
.blog-content img { max-width: 100%; height: auto; }
.blog-content a { color: #C49A3C; text-decoration: underline; }
.blog-content h2,
.blog-content h3 { font-family: 'Cormorant Garamond', Georgia, serif; color: #F5EDD6; margin: 1.5em 0 0.5em; }
.blog-content p { margin-bottom: 1.25em; line-height: 1.9; }
.blog-content ul,
.blog-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.blog-content blockquote {
  border-left: 2px solid rgba(196,154,60,0.5);
  padding-left: 1.5rem;
  margin: 1.5em 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: rgba(245,237,214,0.7);
  font-size: 1.15rem;
}

/* ── Custom Logo boyutları ────────────────────────────────────────────────── */
/* Navbar: index.html'de h-20 = 80px */
#navbar .custom-logo-link,
#navbar .custom-logo-link img,
#navbar .custom-logo {
  display: block;
  height: 5rem;      /* h-20 */
  width: auto;
  object-fit: contain;
}

/* Footer: index.html'de h-14 = 56px */
footer .custom-logo-link,
footer .custom-logo-link img,
footer .custom-logo {
  display: block;
  height: 3.5rem;    /* h-14 */
  width: auto;
  object-fit: contain;
}

/* Hero: index.html'de h-36, md:h-48 / max-w-xs, md:max-w-sm */
#hero .custom-logo-link,
#hero .custom-logo-link img,
#hero .custom-logo {
  display: block;
  height: 9rem;       /* h-36 */
  width: auto;
  max-width: 20rem;   /* max-w-xs */
  object-fit: contain;
}
@media (min-width: 768px) {
  #hero .custom-logo-link img,
  #hero .custom-logo {
    height: 12rem;    /* h-48 */
    max-width: 24rem; /* max-w-sm */
  }
}

/* ── Accessibility: skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 999;
  background: #C49A3C;
  color: #0D1421;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }
