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

:root {
  --cream:      #f0ece4;
  --cream-dark: #e8e2d8;
  --brown:      #3d2e1e;
  --brown-mid:  #5a4535;
  --brown-light:#8a7060;
  --gold:       #b8943a;
  --gold-light: #c9a84c;
  --white:      #ffffff;
  --card-bg:    #f5f1ea;
  --contact-bg: #4a3728;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.7;
  font-weight: 300;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  border-bottom: 1px solid rgba(61,46,30,0.08);
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand .n1 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.04em;
}
.nav-brand .n2 {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-light);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--brown);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid rgba(61,46,30,0.08);
  padding: 1.5rem 5%;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 199;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding-top: 68px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(150deg, #e4ddd2 0%, #dbd3c6 50%, #d2c9b8 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 80px 5% 60px;
}

.hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.4rem;
  display: block;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  line-height: 1.1;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-text p {
  color: var(--brown-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 460px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--brown);
  color: var(--white);
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: background 0.2s;
  display: inline-block;
}
.btn-dark:hover { background: var(--brown-mid); }

.btn-ghost {
  border: 1.5px solid var(--brown-light);
  color: var(--brown);
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--brown); }

.hero-right {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  /* pull photo up to flush with nav */
  margin-top: calc(-80px - 68px);
  margin-bottom: -60px;
  align-self: stretch;
}

.hero-photo-placeholder {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 5/6;
  overflow: hidden;
  display: block;
  margin-top: 80px;
}

.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.quote-card {
  position: absolute;
  bottom: 60px;
  left: -20px;
  background: var(--gold);
  padding: 1.6rem 1.8rem;
  max-width: 260px;
  z-index: 2;
}
.quote-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a2810;
  font-weight: 400;
}

/* ── SECTIONS ── */
section { padding: 100px 5%; }

.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--brown);
  font-weight: 500;
  line-height: 1.15;
}

/* ── ABOUT ── */
#about {
  background: var(--cream);
  text-align: center;
}
#about .container { max-width: 780px; }
#about .section-title { margin-bottom: 2.2rem; }
#about p {
  color: var(--brown-mid);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 1.4rem;
  font-weight: 300;
}
#about p strong {
  font-weight: 600;
  color: var(--brown);
}
#about p a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
#about p a:hover { color: var(--gold); }

/* ── SERVICES ── */
#services {
  background: var(--cream);
  padding-top: 60px;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.services-header p {
  color: var(--brown-light);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: transparent;
}

.service-card {
  background: #ffffff;
  padding: 2.2rem 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(61,46,30,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(61,46,30,0.11);
  transform: translateY(-2px);
}

.service-num {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.service-card p {
  color: var(--brown-light);
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ── KÖZREMŰKÖDŐK ── */
#kozremukodok {
  background: var(--cream-dark);
}
#kozremukodok .section-title { margin-bottom: 0; }

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.contrib-card {
  background: var(--white);
  padding: 2.5rem 2.2rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(61,46,30,0.06);
  border-top: 3px solid var(--gold);
}

.contrib-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.contrib-role {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.4rem;
  display: block;
}

.contrib-bio {
  color: var(--brown-light);
  font-size: 0.9rem;
  line-height: 1.78;
  font-weight: 300;
}

/* ── MUNKADÍJ ── */
#munkadij {
  background: var(--cream);
  text-align: center;
}
#munkadij .section-title { margin-bottom: 3rem; }

.munkadij-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.munkadij-card {
  background: var(--card-bg);
  padding: 2.5rem 2.2rem;
  border: 1px solid rgba(61,46,30,0.06);
}

.munkadij-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 1rem;
}

.munkadij-card p {
  color: var(--brown-light);
  font-size: 0.9rem;
  line-height: 1.78;
  font-weight: 300;
}

.munkadij-note {
  color: var(--brown-light);
  font-size: 0.85rem;
  line-height: 1.75;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

/* ── CONTACT ── */
#contact {
  background: var(--contact-bg);
  padding: 100px 5%;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 6rem;
  align-items: start;
}

.contact-left .section-label { color: var(--gold-light); }

.contact-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 1.5rem;
}

.contact-left > p {
  color: rgba(240,236,228,0.65);
  font-size: 0.93rem;
  line-height: 1.78;
  margin-bottom: 3rem;
  font-weight: 300;
}

.c-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.c-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(184,148,58,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
}

.c-body strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.c-body span, .c-body a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 300;
  text-decoration: none;
  display: block;
  line-height: 1.5;
}
.c-body a:hover { color: var(--gold-light); }
.c-body .sub {
  font-size: 0.78rem;
  color: rgba(240,236,228,0.45);
  margin-top: 0.2rem;
}

/* Form */
.cform {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 2.5rem;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.fgroup { margin-bottom: 1.4rem; }

.fgroup label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.5);
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.fgroup input,
.fgroup textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240,236,228,0.22);
  padding: 0.55rem 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.fgroup input::placeholder,
.fgroup textarea::placeholder { color: rgba(240,236,228,0.3); }
.fgroup input:focus,
.fgroup textarea:focus { border-bottom-color: var(--gold-light); }
.fgroup textarea { resize: vertical; min-height: 100px; }

.btn-gold {
  width: 100%;
  background: var(--gold);
  color: var(--brown);
  border: none;
  padding: 1.1rem 2rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
  display: block;
}
.btn-gold:hover { background: var(--gold-light); }

/* ── MAP ── */
.map-container {
  max-width: 1200px;
  margin: 3.5rem auto 0;
}

.map-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.map-frame {
  width: 100%;
  height: 260px;
  border: 1px solid rgba(184,148,58,0.3);
  display: block;
  filter: sepia(25%) brightness(0.8) contrast(1.05) saturate(0.85);
}

/* ── FOOTER ── */
footer {
  background: var(--cream);
  padding: 2rem 5%;
  border-top: 1px solid rgba(61,46,30,0.1);
}

.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.foot-copy {
  color: var(--brown-light);
  font-size: 0.82rem;
  font-weight: 300;
  max-width: 700px;
  line-height: 1.7;
}
.foot-copy p:first-child {
  margin-bottom: 0.8rem;
  font-weight: 400;
  color: var(--brown);
}
.foot-copy a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  flex-shrink: 0;
  align-items: flex-start;
}
.foot-links a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  font-weight: 500;
}
.foot-links a:hover { color: var(--gold); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--brown);
  color: var(--cream);
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { color: var(--gold); flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 60px 5% 50px; }
  .hero-right { justify-content: center; padding-bottom: 50px; }
  .hero-photo-placeholder { max-width: 380px; margin-top: 0; }
  .quote-card { left: 0; }
  .hero-btns { padding-bottom: 8.75rem; }

  .services-header { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  .contrib-grid { grid-template-columns: 1fr; }
  .munkadij-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .foot-inner { flex-direction: column; }
  .foot-links { order: -1; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 70px 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label    { animation: fadeUp 0.6s 0.05s both; }
.hero-text h1  { animation: fadeUp 0.7s 0.15s both; }
.hero-text > p { animation: fadeUp 0.6s 0.25s both; }
.hero-btns     { animation: fadeUp 0.6s 0.35s both; }
.hero-right    { animation: fadeUp 0.8s 0.2s both; }

/* ── SERVICE CARD DETAIL ── */
.service-card--detail {
  cursor: pointer;
}
.service-more {
  display: inline-block;
  margin-top: 1.6rem;
  border: 1px solid var(--brown-light);
  color: var(--brown);
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  font-family: var(--sans);
  transition: border-color 0.2s, color 0.2s;
}
.service-card--detail:hover .service-more {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── SERVICE MODAL ── */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 46, 30, 0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}
.service-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.service-modal {
  background: var(--cream);
  max-width: 660px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-top: 3px solid var(--gold);
  padding: 3rem 3rem 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.service-modal-overlay.open .service-modal {
  transform: translateY(0);
}

.service-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brown-light);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  transition: color 0.2s;
}
.service-modal-close:hover { color: var(--brown); }

.service-modal .service-num { margin-bottom: 0.5rem; }

.service-modal-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--brown);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.service-modal-divider {
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 1.8rem;
}

.service-modal-body {
  color: var(--brown-mid);
  font-size: 0.95rem;
  line-height: 1.82;
  font-weight: 300;
}

.service-modal-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .service-modal {
    padding: 2.2rem 1.5rem 2rem;
    max-height: 92vh;
  }
}

/* scroll-reveal: CSS-driven so content is always visible without JS */
.reveal { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.js-ready .reveal { opacity: 0; transform: translateY(14px); }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
