:root {
  --ink: #111827;
  --muted: #5f6877;
  --line: #d8dde5;
  --paper: #f7f8f5;
  --white: #ffffff;
  --wine: #5a1628;
  --forest: #173f35;
  --gold: #b98b3c;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 24px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  width: clamp(280px, 27vw, 390px);
  height: 58px;
  min-width: 0;
}

.brand-logo {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: left center;
  transition: opacity 180ms ease;
}

.brand-logo-dark {
  opacity: 1;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.brand-logo-light {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.is-open .brand-logo-dark {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light {
  opacity: 1;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.72;
}

.brand-fallback {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 54px;
  color: var(--white);
  background: var(--ink);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.56) 52%, rgba(17, 24, 39, 0.28)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 46%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
  padding-bottom: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4.7rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.section .button.secondary,
.social .button.secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-card {
  width: min(420px, 100%);
  padding: 28px;
  border-top: 3px solid var(--gold);
  margin-left: auto;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card-logo {
  width: 100%;
  height: 122px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: center;
}

.hero-card strong {
  display: block;
  margin: 10px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.12;
}

.hero-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  background: var(--white);
}

.intro-text {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.practice {
  background: var(--paper);
}

.practice .section-heading {
  max-width: 870px;
  margin-bottom: 48px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.practice-grid article {
  min-height: 250px;
  padding: clamp(24px, 4vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.practice-grid .practice-wide {
  min-height: 210px;
  grid-column: 1 / -1;
}

.practice-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 800;
}

.practice-grid p,
.social p {
  color: var(--muted);
  line-height: 1.7;
}

.values {
  color: var(--white);
  background: var(--forest);
}

.values-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 8vw, 96px);
  align-items: start;
}

.values ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.values li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.social {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  gap: 28px;
  align-items: end;
  background: var(--white);
}

.social h2 {
  max-width: 760px;
}

.contact {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(rgba(90, 22, 40, 0.88), rgba(90, 22, 40, 0.88)),
    url("assets/social-preview.svg") center/cover;
}

.contact-content {
  max-width: 840px;
}

.contact p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 26px 0 28px;
  font-style: normal;
  font-weight: 700;
}

.contact-list a {
  display: inline-flex;
  width: fit-content;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer strong {
  color: var(--white);
}

.footer-logo {
  width: min(390px, 78vw);
  height: 128px;
  padding: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
}

.footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--white);
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  color: var(--white);
  background: #147a4b;
  box-shadow: 0 14px 36px rgba(20, 122, 75, 0.34);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-whatsapp.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 20px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 16px;
  }

  .hero {
    min-height: 92vh;
    padding: 112px 20px 32px;
  }

  .hero::after {
    background:
      linear-gradient(rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.62)),
      linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .intro,
  .values-panel,
  .social {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    margin-left: 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 10px;
    width: min(218px, 58vw);
    height: 46px;
  }

  .brand-logo {
    height: 100%;
  }

  .brand strong {
    max-width: 180px;
    font-size: 0.9rem;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .section,
  .contact {
    padding-right: 20px;
    padding-left: 20px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    min-height: 48px;
    padding: 0 16px;
  }
}
