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

/* ===== VARIABLES ===== */
:root {
  --navy: #182c47;
  --mist: #f8fafc;
  --sand: #ba8f4f;
  --black: #0f172a;
  --white: #f8fafc;
  --navy-dark: #2d4360;
  --text-dark: #0f172a;
  --text-mid: #2d4360;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }
p { font-size: 1rem; line-height: 1.8; color: inherit; }

/* ===== UTILITY ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}
.accent-rule {
  width: 60px;
  height: 2px;
  background: var(--sand);
  margin: 1.5rem 0;
}
.accent-rule.centered { margin: 1.5rem auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  border: 2px solid var(--white);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { background: transparent; color: var(--white); box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.btn.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--sand);
}
.btn.btn-outline:hover { background: var(--white); color: var(--black); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  background: rgba(24, 44, 71, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(186, 143, 79, 0.15);
  transition: padding 0.3s ease;
}
.nav.scrolled { padding: 0.8rem 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--sand); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sand); }
.nav-links .nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid var(--black);
}
.nav-links .nav-cta:hover { background: transparent; color: var(--white); border-color: var(--white); }

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

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.nav-mobile.open { max-height: 400px; padding: 1rem 0; }
.nav-mobile a {
  display: block;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248,250,252,0.8);
  border-bottom: 1px solid rgba(248,250,252,0.08);
  transition: color 0.3s ease;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--sand); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(186,143,79,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.hero-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.hero h1 { color: var(--sand); max-width: 720px; }
.hero-rule { width: 60px; height: 2px; background: var(--sand); margin: 2rem 0; }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--white);
  max-width: 580px;
  margin-bottom: 3rem;
}
.hero-firm {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--sand);
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

/* ===== SERVICES ===== */
.services {
  background: var(--mist);
  padding: 6rem 0;
}
.services-header { margin-bottom: 4rem; text-align: center; }
.services-header .accent-rule { margin: 1.5rem auto; }
.services-header .section-label { color: var(--navy); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--white);
  padding: 2.8rem;
  border-top: 3px solid var(--sand);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(24,44,71,0.10);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(24,44,71,0.22);
  border-top-color: var(--navy);
  z-index: 2;
}
.service-card h3 { color: var(--navy); margin-bottom: 1rem; }
.service-card p { color: var(--text-mid); font-size: 0.95rem; }
.service-card ul { margin-top: 1rem; }
.service-card ul li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.4rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--sand);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.service-card-wide { grid-column: span 2; }

/* ===== COLLABORATIVE DIVORCE ===== */
.collab {
  background: var(--navy);
  padding: 6rem 0;
  color: var(--white);
}
.collab-header { text-align: center; margin-bottom: 4rem; }
.collab-header h2 { color: var(--sand); }
.collab-header .section-label { color: var(--white); }
.collab-header p:not(.section-label) { color: var(--white); max-width: 600px; margin: 1.5rem auto 0; font-size: 1rem; }
.collab-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.collab-phase {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(248,250,252,0.3);
  transition: border-color 0.3s ease;
}
.collab-phase:hover { border-color: var(--sand); }
.phase-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}
.collab-phase h4 { color: var(--sand); margin-bottom: 1rem; font-size: 1rem; letter-spacing: 0.05em; }
.collab-phase p { color: var(--white); font-size: 0.9rem; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact {
  background: #0f172a;
  padding: 5rem 0;
  text-align: center;
}
.contact h2 { color: var(--white); margin-bottom: 1rem; }
.contact-tagline { color: var(--white); font-size: 0.95rem; margin-bottom: 3rem; }
.contact-details {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.contact-item { text-align: left; }
.contact-item .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.4rem;
}
.contact-item .value { color: rgba(248,250,252,0.75); font-size: 0.95rem; }

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  padding: 1.5rem 2rem;
  text-align: center;
}
footer p {
  font-size: 0.75rem;
  color: rgba(248,250,252,0.3);
  letter-spacing: 0.05em;
}

/* ===== ABOUT HERO ===== */
.about-hero {
  min-height: 70vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(186,143,79,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.about-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.about-hero-text { flex: 1 1 auto; }
.about-hero h1 { color: var(--sand); }
.about-hero .credentials {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}
.about-hero p { color: var(--white); font-size: 1.1rem; max-width: 560px; margin-top: 1.5rem; }
.about-hero-photo {
  flex: 0 0 auto;
  width: 320px;
  height: 380px;
}
.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  display: block;
}
.about-hero-photo img:hover { transform: scale(1.04); }
@media (max-width: 860px) {
  .about-hero-inner { flex-direction: column-reverse; text-align: center; }
  .about-hero-photo { width: 240px; height: 280px; }
  .about-hero p { margin-left: auto; margin-right: auto; }
}

/* ===== BIO ===== */
.bio {
  background: var(--mist);
  padding: 6rem 0;
}
.bio-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}
.bio p:not(.section-label) { color: var(--text-mid); margin-bottom: 1.5rem; font-size: 1.02rem; line-height: 1.9; }

/* ===== TIMELINE ===== */
.timeline {
  background: var(--navy);
  padding: 6rem 0;
}
.timeline-header { text-align: center; margin-bottom: 4rem; }
.timeline-header h2 { color: var(--white); }
.timeline-items { position: relative; max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.timeline-items::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--sand);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 4rem;
  position: relative;
  align-items: start;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background: var(--sand);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-style: italic;
  color: var(--sand);
  line-height: 1;
  padding-top: 0.2rem;
  text-align: right;
  padding-right: 2.5rem;
}
.timeline-content {
  padding-left: 2.5rem;
}
.timeline-content h4 { color: var(--white); margin-bottom: 0.6rem; }
.timeline-content p { color: var(--white); font-size: 0.93rem; line-height: 1.75; }

/* ===== EDUCATION & AWARDS ===== */
.edu-awards {
  background: var(--mist);
  padding: 6rem 0 3rem;
  color: var(--black);
}
.edu-awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0rem 4rem;
}
.edu-awards h2 { color: var(--black); margin-bottom: 3rem; }
.edu-col h3 { color: var(--sand); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 1.8rem; }
.edu-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(15,23,42,0.1); }
.edu-item:last-child { border-bottom: none; }
.edu-item h4 { color: var(--black); margin-bottom: 0.4rem; font-size: 1rem; }
.edu-item p { color: var(--black); font-size: 0.9rem; line-height: 1.6; }
.award-featured {
  background: rgba(186,143,79,0.1);
  border: 1px solid rgba(186,143,79,0.3);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.award-featured:hover { border-color: var(--sand); box-shadow: 0 12px 32px rgba(15,23,42,0.12); }
.award-featured .award-year { color: var(--sand); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.5rem; }
.award-featured h4 { color: var(--black); font-size: 1.05rem; }
.award-featured p { color: var(--black); font-size: 0.88rem; margin-top: 0.4rem; }

/* ===== AFFILIATIONS ===== */
.affiliations {
  background: var(--mist);
  padding: 2.5rem 0 5rem;
  text-align: left;
}
.affiliations h2 { color: var(--navy); margin-bottom: 1rem; }
.affiliations-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.affiliations-list li {
  font-size: 0.95rem;
  color: var(--text-mid);
  padding: 0.9rem 2rem;
  border: 1px solid rgba(24,44,71,0.2);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.affiliations-list li:hover { border-color: var(--sand); background: rgba(186,143,79,0.1); }
@media (max-width: 640px) {
  .affiliations-list { grid-template-columns: 1fr; }
}

/* ===== PERSONAL CLOSING ===== */
.personal {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.personal-inner { max-width: 640px; margin: 0 auto; padding: 0 2rem; }
.personal h2 { color: var(--sand); margin-bottom: 1.5rem; }
.personal .section-label { color: var(--white); }
.personal p:not(.section-label) { color: var(--white); font-size: 1.02rem; line-height: 1.9; }

/* ===== ANIMATIONS ===== */
.animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.43s cubic-bezier(0.22,1,0.36,1), transform 1.43s cubic-bezier(0.22,1,0.36,1);
}
.animate.from-left { transform: translateX(-40px); }
.animate.from-right { transform: translateX(40px); }
.animate.from-scale { transform: scale(0.96) translateY(16px); }
.animate.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }
.delay-5 { transition-delay: 0.6s; }

/* Load animations (applied immediately via JS) */
.load-anim { opacity: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; }
  .collab-phases { grid-template-columns: 1fr; gap: 1.5rem; }
  .edu-awards-grid { grid-template-columns: 1fr; gap: 3rem; }
  .timeline-items::before { left: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; padding-left: 3rem; }
  .timeline-item::after { left: 20px; }
  .timeline-year { font-size: 1.8rem; text-align: left; padding-right: 0; }
  .timeline-content { padding-left: 0; }
  .contact-details { gap: 2rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger {
    display: flex;
    background: transparent;
    border: none;
  }
  .nav-hamburger span { background: var(--sand); }
  .nav-mobile { display: flex; }
  .affiliations-list li { min-width: 0; width: 90%; }
  .about-hero-text .hero-rule { margin-left: auto; margin-right: auto; }
}
