/* ============================================================
   Moreno Ferro Law — Design System
   ============================================================ */

:root {
  --navy-deep:   #080f1c;
  --navy:        #0d1b2e;
  --navy-mid:    #152d4a;
  --navy-light:  #1e3f63;
  --gold:        #c9963a;
  --gold-light:  #e6b84f;
  --gold-pale:   #f5e6c8;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --text:        #0f172a;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --radius:      8px;
  --radius-lg:   16px;
}

*, *::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);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
em { font-style: italic; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Language Toggle ─────────────────────────────────── */

.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: rgba(8, 15, 28, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 150, 58, 0.3);
  border-radius: 24px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 150, 58, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-mid);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ── Section Labels ──────────────────────────────────── */

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 48px;
  line-height: 1.2;
}
.section-title.light { color: var(--white); }

/* ── Hero + Carousel ─────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 120px;
}

/* Carousel */
.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,15,28,0.55) 0%,
    rgba(8,15,28,0.45) 40%,
    rgba(8,15,28,0.70) 100%
  );
  z-index: 1;
}

/* Carousel controls */
.carousel-controls {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel-btn:hover {
  background: rgba(201,150,58,0.4);
  border-color: var(--gold);
  color: var(--gold-light);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 3px;
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 860px;
  animation: heroFadeUp 0.9s var(--ease-out) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.hero-name::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px auto 0;
}

.hero-credentials {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-lang-note {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,150,58,0.6), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Credentials Strip ──────────────────────────────── */

.cred-strip {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201,150,58,0.2);
  border-bottom: 1px solid rgba(201,150,58,0.2);
  padding: 48px 24px;
}

.cred-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cred-item {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 24px 32px;
}

.cred-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.cred-degree {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.cred-school {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.cred-divider {
  width: 1px;
  height: 60px;
  background: rgba(201,150,58,0.25);
  flex-shrink: 0;
}

/* ── About ──────────────────────────────────────────── */

.about {
  padding: 120px 0;
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-photo {
  text-align: center;
}

.photo-frame {
  aspect-ratio: 3/4;
  max-width: 380px;
  margin: 0 auto 16px;
  background: linear-gradient(145deg, var(--gray-100), var(--gray-300));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,150,58,0.08) 0%, transparent 60%);
}

.photo-placeholder {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gray-400);
}

.photo-caption {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  text-transform: uppercase;
}

.about-text .section-label { display: block; }

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.about-text .btn-outline {
  margin-top: 12px;
}

/* ── Services ────────────────────────────────────────── */

.services {
  padding: 120px 0;
  background: var(--navy);
}

.services .container {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 8px;
  text-align: left;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 40px 32px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover {
  background: rgba(201,150,58,0.06);
  border-color: rgba(201,150,58,0.2);
  transform: translateY(-4px);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: rgba(201,150,58,0.3);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
}

.service-line { display: none; }

/* ── FAQ ─────────────────────────────────────────────── */

.faq {
  padding: 120px 0;
  background: var(--off-white);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq-header {
  position: sticky;
  top: 40px;
}

.faq-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--gray-300);
}

.faq-item {
  border-bottom: 1px solid var(--gray-300);
}

.faq-item summary {
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item[open] summary {
  color: var(--gold);
}
.faq-item p {
  padding: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-500);
}

/* ── Contact ─────────────────────────────────────────── */

.contact {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-deep) 0%, #0a1e38 50%, var(--navy) 100%);
}

.contact-inner {
  position: relative;
  z-index: 2;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.contact-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 48px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-phone {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--white); }

.contact-note {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 48px;
}

.disclaimer {
  max-width: 560px;
  margin: 0 auto;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(255,255,255,0.2);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,150,58,0.15);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-creds {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-location {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.footer-right { text-align: right; }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.footer-managed {
  font-size: 10px;
  color: rgba(255,255,255,0.18);
}
.footer-managed a {
  color: rgba(201,150,58,0.45);
  transition: color 0.2s;
}
.footer-managed a:hover { color: var(--gold); }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-photo { order: -1; }
  .photo-frame { max-width: 280px; }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-header { position: static; }

  .cred-strip-inner { flex-direction: column; }
  .cred-divider { width: 60px; height: 1px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}

@media (max-width: 600px) {
  .about, .services, .faq, .contact { padding: 80px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .lang-toggle { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
