:root {
  --color-primary: #1A1A2E;
  --color-secondary: #C9A84C;
  --color-surface: #F5F3EF;
  --color-text: #1C1C1C;
  --color-muted: #6B6B6B;
  --color-border: #DDD8CE;
  --color-cta: #C9A84C;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--color-text);
  background: var(--color-surface);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

section {
  padding: 80px 0;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: #b8972f;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}

.btn-link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  transition: box-shadow .25s ease, background .25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  box-shadow: 0 2px 12px rgba(26, 26, 46, .06);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

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

@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-secondary);
}

.nav .btn {
  padding: 10px 20px;
  font-size: 12px;
}

.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  transition: transform .25s, opacity .25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F5F3EF 0%, #EFEBE0 100%);
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portrait-wrap {
  position: relative;
  padding: 24px;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 60%;
  border: 2px solid var(--color-secondary);
  z-index: 0;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  border: 2px solid var(--color-primary);
  z-index: 0;
}

.portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(45deg, rgba(201, 168, 76, .06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #222244 0%, #1A1A2E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-family: 'Playfair Display', serif;
  font-size: 88px;
  letter-spacing: .05em;
}

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 36px 28px;
  transition: border-color .25s ease, transform .25s ease;
}

.card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.card .icon {
  width: 48px;
  height: 48px;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card p {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.card a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 2px;
  transition: color .25s;
}

.card a:hover {
  color: var(--color-secondary);
}

/* About */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat {
  border-top: 2px solid var(--color-secondary);
  padding-top: 16px;
}

.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--color-primary);
  line-height: 1;
}

.stat .lbl {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 8px;
  font-weight: 700;
}

.bio p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.bio p:first-of-type {
  color: var(--color-text);
}

/* Results */
.results {
  background: var(--color-surface);
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px)/3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) transparent;
}

.scroller::-webkit-scrollbar {
  height: 6px;
}

.scroller::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
}

.result-card {
  scroll-snap-align: start;
  background: var(--color-primary);
  color: #EAE6DA;
  padding: 36px 28px;
  border-top: 3px solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.result-card .type {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
}

.result-card h3 {
  color: #fff;
  font-size: 22px;
}

.result-card p {
  color: #B8B3A4;
  font-size: 15px;
  margin-top: auto;
}

/* Testimonials */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 36px 28px;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 88px;
  color: var(--color-secondary);
  line-height: 1;
}

.stars {
  color: var(--color-secondary);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial blockquote {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
  display: block;
}

.testimonial .case {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* CTA Banner */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-surface);
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-banner p {
  color: #B8B3A4;
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-banner .reassure {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-top: 20px;
  font-weight: 700;
}

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

.info-block {
  margin-bottom: 32px;
}

.info-block .lbl {
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

.info-block .val {
  font-size: 17px;
  color: var(--color-text);
}

.info-block .val a:hover {
  color: var(--color-secondary);
}

form {
  display: grid;
  gap: 20px;
}

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

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color .25s, box-shadow .25s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .18);
}

.field .error {
  display: none;
  color: #a02b2b;
  font-size: 13px;
  margin-top: 6px;
}

.field.invalid .error {
  display: block;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #a02b2b;
}

.form-success,
.form-error {
  position: relative;
  display: none;
  padding: 14px 40px 14px 16px;
  margin-bottom: 20px;
  border-radius: 2px;
  font-size: 15px;
}

.form-success {
  background: #EFEBE0;
  border-left: 3px solid var(--color-secondary);
  color: var(--color-primary);
}

.form-error {
  background: #fdf3f3;
  border-left: 3px solid #a02b2b;
  color: #a02b2b;
}

.form-success.show,
.form-error.show {
  display: block;
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 4px;
  line-height: 1;
  transition: opacity .2s;
}

.close-btn:hover {
  opacity: 1;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: #B8B3A4;
  padding: 64px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

footer h4 {
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer a {
  font-size: 14px;
  color: #B8B3A4;
  transition: color .25s;
}

footer a:hover {
  color: var(--color-secondary);
}

.foot-logo {
  margin-bottom: 12px;
}

.foot-logo img {
  height: 50px;
  width: auto;
}

.foot-tag {
  font-size: 14px;
  max-width: 280px;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.disclaimer {
  font-size: 11px;
  color: #7a7665;
  margin-top: 16px;
  max-width: 880px;
  line-height: 1.6;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive: Tablet */
@media (max-width:900px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-grid,
  .why-grid,
  .contact-grid,
  .grid-3,
  .test-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .scroller {
    grid-auto-columns: 85%;
  }

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

/* Responsive: Mobile */
@media (max-width:700px) {
  section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .cta-banner h2 {
    font-size: 28px;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links .btn {
    margin-top: 12px;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    width: 100%;
  }

  .hero-ctas .btn-link {
    width: auto;
  }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(37, 211, 102, 0.25);
  z-index: 1000;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
  animation: wa-pulse 2.5s infinite;
}

.whatsapp-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  background-color: #20ba59;
  box-shadow: 0 6px 20px rgba(32, 186, 89, 0.4);
}

.whatsapp-float:hover svg {
  transform: scale(1.05);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: #EAE6DA;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2px;
  margin-left: 20px;
  margin-right: 8px;
}

@media (max-width: 1100px) {
  .lang-switch {
    margin-left: 10px;
  }
}

.lang-btn {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  background: transparent;
  color: var(--color-muted);
  transition: all 0.25s ease;
  border: none;
}

.lang-btn:hover {
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: var(--color-secondary);
}

@media (max-width: 700px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .lang-switch {
    margin: 12px 0;
    width: 90px;
    align-self: flex-start;
  }
}