/* Manrope – helyben tárolt változó betűtípus (SIL Open Font License 1.1, lásd assets/fonts/OFL.txt).
   Korábban a Google Fonts szolgáltatásból töltődött be. A helyi kiszolgálás miatt a honlap
   megnyitásakor a látogatóról semmilyen adat nem jut külső szolgáltatóhoz. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --ink: #1e2328;
  --muted: #5b6066;
  --accent: #c96b2c;
  --accent-2: #1f6b5e;
  --accent-3: #d7b58a;
  --card: #ffffff;
  --line: #e3dccf;
  --shadow: 0 18px 40px rgba(20, 18, 15, 0.12);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --pad: 24px;
}

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

body {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

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

/* Highlight inline links (not nav, buttons, or logo) */
p a, li a, .details-content a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
p a:hover, li a:hover, .details-content a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
}

section {
  padding: 56px 0;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  margin: 12px 0 20px;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 12px;
}

p {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 5px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: 1;
  gap: 24px;
}

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

.nav-main {
  grid-column: 2;
  justify-self: center;
}

.nav-right {
  justify-self: end;
  grid-column: 3;
}

.nav a,
.nav-contact {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a.active,
.nav a:hover,
.nav-contact.active,
.nav-contact:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

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

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  pointer-events: auto;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: 0 12px 26px rgba(21, 20, 18, 0.12);
  z-index: 10;
  overflow: hidden;
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
  flex-direction: column;
}

section[id],
details[id] {
  scroll-margin-top: 100px;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(31, 107, 94, 0.08);
  color: var(--accent-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(201, 107, 44, 0.28);
}

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

.btn-secondary {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(31, 107, 94, 0.18);
}

.btn-toggle {
  background: transparent;
  box-shadow: none;
}

.btn-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 22px rgba(201, 107, 44, 0.28);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 107, 44, 0.18), transparent 70%);
  top: -120px;
  right: -120px;
  z-index: 0;
}

.hero::after {
  width: 520px;
  height: 520px;
  left: -200px;
  top: 220px;
  background: radial-gradient(circle, rgba(31, 107, 94, 0.18), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 107, 94, 0.1);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.tag.secondary {
  background: rgba(201, 107, 44, 0.1);
  color: var(--accent);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card {
  background: var(--card);
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(21, 20, 18, 0.08);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(215, 181, 138, 0.2);
  color: #8a5c2f;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.list li::before {
  content: "•";
  color: var(--accent-2);
  font-weight: 700;
}

.list + p,
p + .list {
  margin-top: 14px;
}

.section-accent {
  background: #f0ebe3;
}

.process {
  counter-reset: step;
}

.process li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
}

.process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.cta {
  background: linear-gradient(120deg, rgba(31, 107, 94, 0.12), rgba(201, 107, 44, 0.12));
  border-radius: var(--radius-lg);
  padding: 42px;
  border: 1px solid var(--line);
}

.details-grid {
  display: grid;
  gap: 18px;
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 12px 26px rgba(21, 20, 18, 0.06);
}

details summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

details[open] summary {
  margin-bottom: 10px;
}

details summary::marker {
  color: var(--accent);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.details-content {
  display: grid;
  gap: 12px;
}

.reference-list {
  display: grid;
  margin-top: 6px;
  gap: 32px;
}

.text-link {
  color: var(--accent-2);
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
}

.section-tight {
  padding-top: 36px;
}

.pdf-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.image-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.image-stack img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: block;
}

.ref-img-center {
  display: block;
  margin: 28px auto 0;
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius-md);
}

.pdf-stack {
  display: grid;
  gap: 24px;
}

.pdf-frame {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(21, 20, 18, 0.08);
}

.pdf-page {
  width: 100%;
  height: 100%;
  border: 0;
}

.photo-placeholder {
  margin: 18px 0;
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed rgba(91, 96, 102, 0.4);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

footer {
  padding: 50px 0 70px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight {
  color: var(--ink);
  font-weight: 600;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.notice {
  font-size: 0.85rem;
  color: #8a5c2f;
  background: rgba(215, 181, 138, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(138, 92, 47, 0.4);
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.success {
  background: rgba(31, 107, 94, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(31, 107, 94, 0.3);
}

.form-status.error {
  background: rgba(201, 107, 44, 0.1);
  color: var(--accent);
  border: 1px solid rgba(201, 107, 44, 0.3);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .dropdown-menu {
    display: none !important;
  }

  .nav-dropdown {
    display: contents;
  }

  .nav-dropdown > a {
    display: block;
  }

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

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

  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-wrap {
    width: 100%;
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
  }

  .js .nav-wrap {
    display: none;
  }

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

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.04);
    margin: 8px 0 0 0;
    border-radius: 0;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.is-open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 10px 16px;
    border-bottom: none;
    font-size: 0.85rem;
    padding-left: 32px;
  }

  .nav-dropdown > a {
    width: 100%;
  }

  .nav-main {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }

  .nav-right {
    grid-column: 1;
    justify-self: start;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

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

@media (max-width: 600px) {
  section {
    padding: 48px 0;
  }

  .cta {
    padding: 24px;
  }

  .pdf-embed {
    height: 50vh;
  }

  .list li {
    font-size: 0.9rem;
  }

  .list li a {
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
