@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --text: #1a2520;
  --muted: #617068;
  --line: #d8d3c7;
  --accent: #9e2f2f;
  --accent-dark: #762121;
  --deep: #102a24;
  --gold: #c39b49;
  --shadow: 0 16px 40px rgba(25, 35, 31, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(850px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-left {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto 0 max(20px, calc((100% - 1120px)/2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 211, 199, .7);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 25px;
}

.brand-mark img {
  width: 150%;
  height: 150%;
  object-fit: contain;
  display: block;
}

.brand-text {
  letter-spacing: -.02em;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active,
.nav-dropdown-toggle.active {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;

  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--accent);
}

.dropdown-arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 30;

  display: none;
  min-width: 190px;
  padding: 8px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);

  transform: translateX(-50%);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;

  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--accent);
  background: rgba(158, 47, 47, 0.07);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact {
  flex-grow: 1;
  display: flex;
  align-items: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 82px 0;
  background: #d9cfbd;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  padding: 104px 0 90px;
  background:
    radial-gradient(circle at 85% 20%, rgba(195, 155, 73, .2), transparent 30%),
    linear-gradient(140deg, #f8f4eb, #ece5d6);
}

.hero.compact {
  padding: 95px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(46px, 6vw, 78px);
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(34px, 4.5vw, 54px);
  margin: 0 0 20px;
}

h3 {
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  font-size: clamp(19px, 2.2vw, 25px);
  color: #3f4b45;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--deep);
  color: var(--deep);
}

.hero-visual {
  text-align: center;
}

.rotation-animation {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 2rem auto;
}

.circle {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .08) 0 28%, transparent 29%),
    conic-gradient(from 0deg, #183e34, #8f2b2b, #c39b49, #183e34);
  box-shadow: var(--shadow);
  border: 14px solid rgba(255, 255, 255, .5);
}

.circle span {
  font-family: "Playfair Display";
  font-size: 120px;
  font-weight: 700;
}

.visual-caption {
  display: flex;
  flex-direction: column;
  font-size: 18px;
}

.visual-caption span {
  color: var(--muted);
}

.principles,
.section {
  padding: 92px 0;
}

.alt {
  background: var(--surface);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .56);
}

.card h3 {
  margin-top: 0;
  font-size: 22px;
}

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

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.prose {
  font-size: 18px;
  color: #3d4943;
}

.prose p:first-child {
  margin-top: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.steps {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.steps article {
  padding: 30px;
  background: var(--deep);
  color: white;
  border-radius: 22px;
}

.steps p {
  color: #cbd8d2;
}

.step-number {
  color: var(--gold);
  font-weight: 800;
}

.statement {
  padding: 80px 0;
  background: #e8dfce;
}

.statement.dark {
  background: var(--deep);
  color: white;
}

.statement-text {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
}

.statement-text p {
  margin: 0;
}

.statement-kiegyezes .statement-text {
  margin-bottom: 40px;
}

.statement-explanation {
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
  opacity: 0.85;
  margin: 0 auto 40px;
}

.statement-conclusion {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  margin: 0;
}

.statement-text p+p {
  margin-top: 1.25rem;
}

.decision-tree {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tree-item {
  width: min(700px, 100%);
  padding: 22px 28px;
  text-align: center;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tree-item span {
  display: block;
  font-weight: 800;
  font-size: 20px;
}

.tree-item small {
  color: var(--muted);
}

.tree-arrow {
  font-size: 26px;
  color: var(--accent);
  line-height: 1.2;
  padding: 4px;
}

.level-1 {
  width: min(520px, 100%);
}

.level-2 {
  width: min(570px, 100%);
}

.level-3 {
  width: min(620px, 100%);
}

.level-4 {
  width: min(670px, 100%);
}

.level-5 {
  width: min(720px, 100%);
}

.checklist p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.legal-page .lead {
  font-size: clamp(17px, 1.9vw, 21px);
  max-width: 760px;
}

.legal-page .prose {
  font-size: 16px;
  line-height: 1.75;
}

.legal-page h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-list {
  margin: 14px 0 24px 1.25rem;
  padding: 0;
}

.legal-list li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.contact {
  padding: 82px 0;
  background: #d9cfbd;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-placeholder {
  padding: 18px;
  background: rgba(255, 255, 255, .55);
  border-radius: 12px;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

footer {
  padding: 28px 0;
  background: #0a1c17;
  color: #b7c5bf;
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.footer-left {
  flex: 1;
}

.footer-right {
  width: 300px;
  text-align: left;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.footer-social {
  color: inherit;
  text-decoration: none;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
}

.footer-social:hover {
  color: white;
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

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

  .main-nav a {
    padding: 16px 20px;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 50px;
  }

  .card-grid.four,
  .card-grid.three,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .narrow-left {
    width: min(100% - 40px, 900px);
    margin: 0 auto;
  }

  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.35);
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 13px 20px 13px 38px;
    border-radius: 0;
  }
}

@media (max-width: 540px) {
  .brand-text {
    font-size: 14px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
  }
}
