/* ============================================================
   Dr. Pillér Benedek – ügyvéd | stíluslap
   ============================================================ */

/* ---------- Betűtípusok (saját tárhelyről) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cinzel-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: "Cinzel";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cinzel-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;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600-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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-600-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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;
}

/* ---------- Tokenek ---------- */
:root {
  --navy: #0A1A2F;
  --navy-deep: #07121F;
  --gold: #C9A86A;
  --gold-soft: #E6DCC6;
  --gold-ink: #86672E;   /* arany szöveg világos háttéren (AA kontraszt) */
  --ivory: #F4F1EA;
  --paper: #F7F5F0;
  --ink: #1D2430;
  --muted: #5B6472;
  --line: #E4DED2;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-monogram: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
address { font-style: normal; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--navy);
  font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.todo { background: #FFE8A3; color: #5A4300; padding: 0 4px; border-radius: 3px; }

/* ---------- Tipográfia elemek ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 16px; }
.section--paper { background: var(--paper); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}
.section-title--left { text-align: left; }

.rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 28px;
}
.rule--center { margin-left: auto; margin-right: auto; margin-bottom: clamp(32px, 5vw, 56px); }

.eyebrow {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.text-link__icon { width: 18px; height: 18px; color: var(--gold-ink); transition: transform .2s; }
.text-link:hover .text-link__icon { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: background-color .2s, color .2s;
}
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #D8BC86; }
.btn--outline { background: transparent; color: var(--gold); }
.btn--outline:hover { background: rgba(201, 168, 106, .12); }

/* ---------- Felső sáv + navigáció ---------- */
.topbar {
  position: absolute;
  z-index: 5;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vw, 26px) var(--gutter);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar__logo { width: 40px; height: 40px; color: var(--gold); flex: none; }
.topbar__logo text,
.hero-home__logo text,
.site-footer__logo text { fill: currentColor; font-family: var(--font-monogram); font-weight: 600; }

.site-nav { position: relative; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--gold);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav__toggle { display: none; }

/* ---------- Hero – kezdőoldal ---------- */
.hero-home {
  position: relative;
  height: clamp(520px, 57vw, 100svh);
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
}

.hero-home__bg img,
.page-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-home__bg img { object-position: center bottom; }

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 47, .45) 0%, rgba(10, 26, 47, 0) 30%);
  pointer-events: none;
}

.hero-home__brand {
  position: absolute;
  z-index: 2;
  left: 29.5%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-display);
  width: max-content;
  max-width: calc(100% - 32px);
}

.hero-home__logo {
  width: clamp(64px, 6vw, 104px);
  height: auto;
  color: var(--gold);
  margin-bottom: clamp(12px, 1.4vw, 22px);
}

.hero-home__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.hero-home__name {
  font-weight: 500;
  font-size: clamp(1.45rem, 2.1vw, 2.35rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.hero-home__role {
  display: flex;
  align-items: center;
  gap: .9em;
  margin-top: .7em;
  color: var(--gold);
  font-size: clamp(.8rem, 1vw, 1.1rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.3;
}
.hero-home__role::before,
.hero-home__role::after {
  content: "";
  width: 1.9em;
  height: 1px;
  background: currentColor;
}

.hero-home__rule {
  width: clamp(40px, 3.6vw, 60px);
  height: 1px;
  background: var(--gold);
  margin: clamp(14px, 1.3vw, 22px) 0;
}

.hero-home__tagline {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35em;
  font-size: clamp(.82rem, 1vw, 1.1rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.3;
}
.hero-home__tagline--gold { color: var(--gold); }

/* ---------- Hero – aloldalak ---------- */
.page-hero {
  position: relative;
  height: clamp(260px, 30vw, 380px);
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
  display: grid;
  place-items: center;
}
.page-hero__bg img { object-position: 30% 38%; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 47, .7) 0%, rgba(10, 26, 47, .55) 60%, rgba(10, 26, 47, .8) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px var(--gutter) 0;
  text-align: center;
}
.page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.15;
}
.page-hero .rule { margin: 18px auto 0; }

/* ---------- Szakterületek ---------- */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 28px);
}

.area {
  flex: 1 1 320px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--navy);
  color: var(--gold-soft);
  border: 1px solid rgba(201, 168, 106, .45);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(10, 26, 47, .12);
  scroll-margin-top: 24px;
}
.area p { margin: 0; font-size: .95rem; line-height: 1.7; }

.area__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.area__icon { width: 36px; height: 36px; color: var(--gold); flex: none; }
.area__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--gold);
}

/* ---------- Bemutatkozás (kezdőoldali blokk) ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-teaser__media,
.about__media { position: relative; max-width: 420px; }
.about-teaser__media::before,
.about__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.about-teaser__media img,
.about__media img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(10, 26, 47, .18);
}
.about-teaser__text p { max-width: 60ch; color: var(--ink); }
.about-teaser__text .text-link { margin-top: 8px; }

/* ---------- CTA sáv ---------- */
.cta {
  background: var(--navy);
  color: var(--gold-soft);
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid rgba(201, 168, 106, .35);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.cta__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: .05em;
  color: var(--ivory);
}
.cta p { margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bemutatkozás oldal ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about__media { position: sticky; top: 32px; }
.about__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: .05em;
  color: var(--navy);
}
.about__role {
  margin: 6px 0 28px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.about__text p:not(.about__role) { max-width: 66ch; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--gold);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 24px;
  padding: 0 0 28px 28px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.timeline__when {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold-ink);
  letter-spacing: .04em;
}
.timeline__what { color: var(--ink); }

/* ---------- Kapcsolat ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.contact__name {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--navy);
}
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.contact__list a { color: var(--navy); font-weight: 500; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact__icon {
  width: 44px; height: 44px; padding: 10px; flex: none;
  color: var(--gold); background: var(--navy); border-radius: 50%;
}

.map {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 16px 40px rgba(10, 26, 47, .15);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  color: var(--gold-soft);
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 168, 106, .12), transparent 55%),
    var(--navy);
}
.map__consent p { max-width: 42ch; margin: 0; font-size: .9rem; }
.map__icon { width: 44px; height: 44px; color: var(--gold); }
.map__external { color: var(--gold); font-size: .9rem; }

/* ---------- Jogi oldalak ---------- */
.legal h2 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--navy);
}
.legal section:first-child h2 { margin-top: 0; }
.legal dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal dl > div { display: grid; grid-template-columns: 240px 1fr; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 600; color: var(--muted); }
.legal dd { margin: 0; }

.notfound { text-align: center; }

/* ---------- Lábléc ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--gold-soft);
  padding: 56px 0 28px;
  font-size: .92rem;
}
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(201, 168, 106, .25);
}
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__logo { width: 56px; height: 56px; color: var(--gold); flex: none; }
.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory);
}
.site-footer__role { margin: 0; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
.site-footer__contact p { margin: 0 0 4px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.site-footer__legal { padding-top: 24px; font-size: .8rem; color: rgba(230, 220, 198, .7); }
.site-footer__legal p { margin: 0 0 6px; max-width: 110ch; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .about-teaser,
  .about,
  .contact { grid-template-columns: 1fr; }

  .about-teaser__media,
  .about__media { max-width: 360px; margin: 0 18px 18px 0; position: relative; top: 0; }

  .timeline li { grid-template-columns: 1fr; }
  .legal dl > div { grid-template-columns: 1fr; }
}

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  .topbar__brand span { display: none; }

  .hero-home {
    height: 100svh;
    min-height: 560px;
    max-height: 900px;
  }
  .hero-home__bg img { object-position: 20% bottom; }
  .hero-home__brand { left: 50%; top: 42%; }
  .hero-home__role { letter-spacing: .22em; }

  .site-nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(10, 26, 47, .55);
    border: 1px solid rgba(201, 168, 106, .5);
    border-radius: 8px;
    cursor: pointer;
  }
  .site-nav__bar,
  .site-nav__bar::before,
  .site-nav__bar::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--gold);
    position: relative;
    transition: transform .2s, background-color .2s;
  }
  .site-nav__bar::before,
  .site-nav__bar::after { content: ""; position: absolute; left: 0; }
  .site-nav__bar::before { top: -6px; }
  .site-nav__bar::after { top: 6px; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bar { background: transparent; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bar::before { transform: translateY(6px) rotate(45deg); }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav ul {
    display: none;
    position: absolute;
    right: 0;
    top: 54px;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    padding: 8px 0;
    background: rgba(10, 26, 47, .97);
    border: 1px solid rgba(201, 168, 106, .35);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  }
  .site-nav__toggle[aria-expanded="true"] + ul { display: flex; }
  .site-nav a { display: block; padding: 12px 20px; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--ivory); }

  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1 1 100%; }

  .site-footer__grid { grid-template-columns: 1fr; }
}
