/* ═══════════════════════════════════════════════════════════════
   PÉREZ SANZ & ASOCIADOS — VARIANT B
   "THE EDITORIAL LAW FIRM"
   Cormorant Garamond + DM Sans | Navy #2C3E6B | Gold #C9A84C
═══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #2C3E6B;
  --steel:  #4A6FA5;
  --gold:   #C9A84C;
  --gold-d: #A8883A;
  --bg:     #FAFAF8;
  --white:  #FFFFFF;
  --text:   #1A1A2A;
  --muted:  #6B7280;
  --border: #E5E2DC;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 1200px;
  --radius: 4px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: var(--radius);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-d); border-color: var(--gold-d); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

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

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__monogram {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--navy); color: var(--white); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: stretch;
  background: var(--bg);
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 60% 40%;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  align-items: center;
  gap: 4rem;
}

.hero__text {
  padding: 6rem 0 4rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.hero__line1 {
  display: block;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-style: italic;
}

.hero__line2 {
  display: block;
  font-size: clamp(4.5rem, 7.5vw, 7.5rem);
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__credentials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero__credentials .sep { color: var(--gold); }

.hero__image {
  display: flex;
  align-items: stretch;
  height: calc(100vh - 72px);
}

.hero__img-frame {
  width: 100%;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.85;
  filter: grayscale(20%);
}

/* ─── SECTION HEADERS ─── */
.section-header {
  margin-bottom: 4rem;
  max-width: 680px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
}
.section-header--light h2 { color: var(--white); }
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── ABOUT ─── */
.about {
  padding: 7rem 0;
  background: var(--white);
}

.about__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.about__big-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 8vw, 8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.about__num-label {
  display: block;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}
.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ─── SERVICES ─── */
.services {
  padding: 7rem 0;
  background: var(--bg);
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0;
}

.service-item--right {
  grid-template-columns: 1fr 80px;
  text-align: right;
}
.service-item--right .service-item__number {
  order: 2;
}
.service-item--right .service-item__body {
  order: 1;
}

.service-item__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
  padding-top: 0.25rem;
}

.service-item__body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-item__body p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}
.service-item--right .service-item__body p {
  margin-left: auto;
}

.service-divider {
  height: 1px;
  background: var(--border);
}

/* ─── WHY US ─── */
.why-us {
  background: var(--navy);
  padding: 7rem 0;
}

.why-us .section-header h2 { color: var(--white); }
.why-us .section-label { color: var(--gold); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.why-check {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-weight: 700;
}

.why-item strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.why-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── CONTACT ─── */
.contact {
  padding: 7rem 0;
  background: var(--bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact__info h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact__desc {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
}
.contact__icon { font-size: 1.1rem; flex-shrink: 0; }
.contact__detail a:hover { color: var(--gold); }

.contact__accred {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact__accred span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--steel);
  background: rgba(74,111,165,0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
}

/* ─── FORM ─── */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__monogram {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}
.footer__name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ─── MOBILE ─── */
.nav__hamburger { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav__hamburger { display: flex; }

  .hero__content {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
  }
  .hero__image { display: none; }
  .hero__text { padding: 2rem 0 1rem; }

  .about__top {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }
  .about__stats { grid-template-columns: 1fr; gap: 2rem; }

  .service-item,
  .service-item--right {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .service-item__number { font-size: 2.5rem; }
  .service-item--right .service-item__body p { margin-left: 0; }

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

  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }

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

@media (max-width: 480px) {
  .hero__line1 { font-size: 2.8rem; }
  .hero__line2 { font-size: 3.5rem; }
  .container { padding: 0 1rem; }
  .about, .services, .why-us, .contact { padding: 4rem 0; }
}
