:root {
  --purple-900: #241a45;
  --purple-800: #2f2158;
  --purple-700: #3d2a6b;
  --purple-600: #4e3789;
  --gold-500: #c9a227;
  --gold-400: #d9b84a;
  --cream-50: #faf8f5;
  --cream-100: #f2ede4;
  --ink-900: #1e1b29;
  --ink-600: #4a4557;
  --ink-400: #766f87;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(36, 26, 69, 0.08);
  --shadow-md: 0 12px 32px rgba(36, 26, 69, 0.14);
  --shadow-lg: 0 24px 64px rgba(36, 26, 69, 0.22);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--purple-900);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold-500);
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--purple-900); color: var(--cream-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--cream-100); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--ink-600); font-size: 17px; }
.section--dark .section-head p { color: rgba(250, 248, 245, 0.75); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--purple-900);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border-color: rgba(250, 248, 245, 0.4);
  color: var(--white);
}
.btn--outline:hover { background: rgba(250, 248, 245, 0.1); }

.btn--outline-dark {
  border-color: var(--purple-700);
  color: var(--purple-800);
}
.btn--outline-dark:hover { background: var(--purple-900); color: var(--white); }

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.btn--block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(36, 26, 69, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  line-height: 1.1;
}
.brand-text strong { display: block; font-size: 17px; letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(250, 248, 245, 0.85);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-400); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(28, 20, 56, 0.97) 26%, rgba(31, 22, 61, 0.86) 48%, rgba(36, 26, 69, 0.6) 78%, rgba(36, 26, 69, 0.42) 100%),
    linear-gradient(to top, rgba(20, 14, 40, 0.55), transparent 40%);
}

.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-content { max-width: 640px; }

.hero-content h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--white);
  margin-bottom: 22px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-400);
}

.hero-content p {
  font-size: 18px;
  color: rgba(250, 248, 245, 0.82);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(250, 248, 245, 0.18);
  padding-top: 28px;
}

.hero-stats div strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold-400);
}

.hero-stats div span {
  font-size: 13px;
  color: rgba(250, 248, 245, 0.7);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-media { position: relative; }

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}

.about-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--purple-800);
  margin-bottom: 4px;
}
.about-badge span { font-size: 13px; color: var(--ink-400); }

.about-body p { color: var(--ink-600); font-size: 16.5px; margin-bottom: 18px; }

.about-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-900);
}

.about-list svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-500); }

/* Practice areas */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.practice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(36, 26, 69, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.practice-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  margin-bottom: 24px;
}

.practice-card h3 { font-size: 21px; margin-bottom: 12px; }
.practice-card p { color: var(--ink-600); font-size: 15px; margin-bottom: 20px; }

.practice-card ul li {
  font-size: 14px;
  color: var(--ink-600);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.practice-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--purple-800);
}

.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(36, 26, 69, 0.85), transparent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-item--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(250, 248, 245, 0.55);
  border: 1.5px dashed rgba(250, 248, 245, 0.25);
  cursor: default;
}
.gallery-item--placeholder span { font-size: 13px; font-weight: 500; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 40px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  background: none; border: none; color: var(--white);
  font-size: 32px; cursor: pointer; line-height: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--purple-900);
  border-radius: var(--radius);
  padding: 44px 38px;
  color: var(--cream-100);
  height: 100%;
}

.contact-info-card h3 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.contact-info-card > p { color: rgba(250, 248, 245, 0.7); font-size: 15px; margin-bottom: 32px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.contact-item .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 14px; color: var(--white); margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: 14.5px; color: rgba(250, 248, 245, 0.8); }
.contact-item a:hover { color: var(--gold-400); }

.map-embed {
  margin-top: 32px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 245, 0.15);
}
.map-embed iframe { width: 100%; height: 200px; border: 0; display: block; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(36, 26, 69, 0.06);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple-900);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(36, 26, 69, 0.14);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--cream-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-top: 14px;
  text-align: center;
}

.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}
.form-feedback.is-visible { display: block; }
.form-feedback--success { background: #e8f7ef; color: #1c7c46; }
.form-feedback--error { background: #fdecec; color: #b3261e; }

/* Footer */
.site-footer {
  background: var(--purple-900);
  color: rgba(250, 248, 245, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 320px; color: rgba(250, 248, 245, 0.6); }

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; color: rgba(250, 248, 245, 0.7); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(250, 248, 245, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

@media (max-width: 980px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media img { height: 340px; }
  .about-badge { position: static; margin-top: -40px; margin-left: 20px; }
  .practice-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 80vw);
  background: var(--purple-900);
  z-index: 110;
  padding: 32px 28px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a { color: var(--cream-100); font-size: 17px; font-weight: 500; }
.mobile-menu-close { align-self: flex-end; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(20, 14, 38, 0.6);
  z-index: 105; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
.reveal-delay-4.is-visible { transition-delay: 0.4s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* Hero entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content .eyebrow { animation-delay: 0.05s; }
.hero-content h1 { animation-delay: 0.18s; }
.hero-content p { animation-delay: 0.32s; }
.hero-content .hero-actions { animation-delay: 0.46s; }
.hero-content .hero-stats { animation-delay: 0.6s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-bg {
  transform: scale(1.08);
  animation: hero-zoom 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-bg { animation: none; opacity: 1; transform: none; }
}

/* Micro interactions */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.25);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: inherit;
}
.btn:active::after { transform: scaleX(1); transition: none; }

.practice-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.practice-card:hover .practice-icon { transform: rotate(-8deg) scale(1.08); }

.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--gold-400);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.wa-float {
  animation: wa-pulse 2.6s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}

.about-badge { animation: float-badge 5s ease-in-out infinite; }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gallery-item, .practice-card { will-change: transform; }

.form-feedback.is-visible { animation: feedback-in 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes feedback-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page load */
html.is-loading body { overflow: hidden; }
.page-loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--purple-900);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.page-loader svg { width: 46px; height: 46px; animation: loader-spin 1s linear infinite; color: var(--gold-500); }
@keyframes loader-spin { to { transform: rotate(360deg); } }
