/* ===== VARIABLES ===== */
:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2d42;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f7f4ef;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f0ede8;
  --text: #1a1a2e;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(13,27,42,0.08);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { line-height: 1.75; color: var(--gray); font-size: 0.95rem; }
em { font-style: italic; color: var(--gold); }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.section-dark { background: var(--navy); }
.section-cream { background: var(--cream); }

.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-top: 0.5rem; }
.section-header.center { text-align: center; }

/* ===== LABELS ===== */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.section-label.light { color: var(--gold-light); }
.section-dark h2, .section-dark p { color: rgba(255,255,255,0.85); }
.section-dark .section-header h2 { color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.full { width: 100%; justify-content: center; }

/* ===== FLASH ===== */
.flash-container { position: fixed; top: 80px; right: 1.5rem; z-index: 1000; }
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s ease;
}
.flash-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.lang-switch {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 2px;
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  transition: var(--transition) !important;
}
.lang-switch:hover { background: var(--gold); color: var(--navy) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }
.lang-switch-mobile { color: var(--gold) !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0f2236 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  max-width: 720px;
  padding-left: 2rem;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text h2 { margin-bottom: 1.5rem; color: var(--text); }
.about-text p { margin-bottom: 1rem; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--cream);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--gray); font-weight: 500; }

/* ===== PRACTICE AREAS ===== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.area-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.area-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.area-card:hover::before { transform: scaleX(1); }
.area-icon { font-size: 1.8rem; display: block; margin-bottom: 1rem; }
.area-card h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.05rem; }
.area-card p { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.65; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 2rem;
}
.team-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}
.team-info h3 { color: var(--text); margin-bottom: 0.25rem; font-size: 1.3rem; }
.team-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.team-bar { font-size: 0.82rem; color: var(--gray); margin-bottom: 0.75rem; }
.team-bio { font-size: 0.88rem; line-height: 1.75; margin-bottom: 1rem; }
.team-contact { display: flex; flex-direction: column; gap: 0.3rem; }
.team-contact a { font-size: 0.82rem; color: var(--navy); transition: color var(--transition); }
.team-contact a:hover { color: var(--gold); }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-category { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.blog-card h3 { color: var(--text); font-size: 1.25rem; line-height: 1.35; }
.blog-card p { font-size: 0.88rem; flex: 1; }
.blog-read { font-size: 0.82rem; font-weight: 500; color: var(--navy); margin-top: 0.5rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { color: var(--text); margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-icon { font-size: 1.2rem; margin-top: 0.1rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.35rem; }
.contact-item p { margin-bottom: 0.2rem; font-size: 0.9rem; }
.contact-item a { color: var(--gray); transition: color var(--transition); }
.contact-item a:hover { color: var(--gold); }

.contact-form-wrap {
  background: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(13,27,42,0.15);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 0.15rem;
}
.footer-tagline { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BLOG DETAIL ===== */
.blog-detail { padding: 140px 0 80px; max-width: 740px; margin: 0 auto; }
.blog-detail h1 { margin-bottom: 1rem; }
.blog-meta { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2.5rem; }
.blog-body h3 { margin: 2rem 0 0.75rem; color: var(--text); font-size: 1.4rem; }
.blog-body p { margin-bottom: 1.25rem; font-size: 0.97rem; }
.blog-body ul, .blog-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.blog-body li { margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--gray); line-height: 1.7; }
.blog-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gold); margin-bottom: 2rem; }
.blog-back:hover { text-decoration: underline; }

/* ===== ÇEREZ BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  z-index: 9000;
  padding: 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner.hide { transform: translateY(100%); }
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text p { color: rgba(255,255,255,0.85); font-size: 0.88rem; line-height: 1.6; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-link { color: var(--gold); text-decoration: underline; }
.cookie-link:hover { color: var(--gold-light); }
.cookie-btn {
  padding: 0.7rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.cookie-btn-settings { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); }
.cookie-btn-settings:hover { border-color: var(--gold); color: var(--gold); }
.cookie-btn-accept { background: var(--gold); color: var(--navy); font-weight: 600; }
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-reject { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cookie-btn-save { background: var(--navy-mid); color: var(--white); border: 1px solid rgba(201,168,76,0.4); }
.cookie-btn-save:hover { border-color: var(--gold); }
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.cookie-modal-overlay.show { display: flex; }
.cookie-modal {
  background: #1a2d42;
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-modal.show { transform: scale(1); opacity: 1; }
.cookie-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cookie-modal-header h3 { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; color: var(--white); }
.cookie-modal-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer; padding: 0.25rem; transition: color var(--transition); }
.cookie-modal-close:hover { color: var(--white); }
.cookie-modal-body { padding: 1.75rem; }
.cookie-modal-intro { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.cookie-modal-footer { display: flex; gap: 0.75rem; padding: 1.25rem 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; justify-content: flex-end; }
.cookie-category { background: rgba(255,255,255,0.05); border-radius: 6px; padding: 1.25rem 1.25rem 1rem; margin-bottom: 0.75rem; border: 1px solid rgba(255,255,255,0.08); }
.cookie-category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.cookie-category-title { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 600; color: var(--white); }
.cookie-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; background: #ef4444; color: white; padding: 0.2rem 0.5rem; border-radius: 3px; }
.cookie-category-desc { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.55); }
.cookie-toggle { position: relative; display: inline-block; width: 48px; height: 26px; cursor: pointer; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.2); border-radius: 26px; transition: background 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.3s; }
.cookie-toggle input:checked + .toggle-slider { background: #22c55e; }
.cookie-toggle input:checked + .toggle-slider::before { transform: translateX(22px); }
.cookie-toggle.disabled { opacity: 0.6; cursor: not-allowed; }
.cookie-toggle input:disabled + .toggle-slider { background: #22c55e; }
.cookie-contact { margin-top: 1.5rem; padding: 1rem 1.25rem; background: rgba(255,255,255,0.04); border-radius: 6px; border-left: 3px solid var(--gold); }
.cookie-contact strong { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.cookie-contact p { color: rgba(255,255,255,0.65); font-size: 0.82rem; line-height: 1.8; }
.cookie-contact a { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .team-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero-content { padding: 8rem 1.5rem 5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .container { padding: 0 1.25rem; }
}
