/* Dr. Vida Ügyvédi Iroda – arculati tábla szerinti stílusok */
:root {
  --primary: #ACCBC8;   /* Elsődleges / kiemelt */
  --light: #CDE6E4;     /* Világos */
  --dark: #011111;      /* Sötét */
  --text: #62636A;      /* Szöveg */
  --white: #FFFFFF;
  --paper: #F2F2F0;     /* törtfehér a hangulattábláról */
  --primary-ink: #4F7F7A; /* olvasható kiemelő szín világos háttéren */
  --line: #DADCDC;

  --f-display: "Cinzel", Georgia, serif;
  --f-deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --f-logo: "Playfair Display", Georgia, serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --header-h: 76px;
  --container: 1200px;
  --shadow: 0 10px 30px rgba(1, 17, 17, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.75rem); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
p { margin: 0 0 1em; }
.subtitle { font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--primary); margin-bottom: .6em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* ---------- Gombok (Web-Gombok.pdf) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  padding: 14px 30px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-solid:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 600px) { .btn { padding: 12px 22px; font-size: 15px; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); text-decoration: none; transition: color .2s; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
a:hover .link-arrow, .link-arrow:hover { color: var(--dark); }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Logó ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-logo); font-size: 22px; letter-spacing: .08em; color: #6E7076; }
.brand-sub { font-family: var(--f-body); font-size: 8.5px; letter-spacing: .42em; margin-top: 5px; color: #6E7076; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(1,17,17,.05); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) { font-weight: 600; font-size: 15px; color: var(--dark); text-decoration: none; position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--dark); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px; box-shadow: 0 12px 24px rgba(1,17,17,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 16px; }
  .brand-name { font-size: 19px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 900px); padding-top: var(--header-h); display: grid; grid-template-columns: 58% 42%; background: var(--white); overflow: hidden; }
.hero-media { position: relative; display: block; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 30%; }
.hero-inner { display: flex; align-items: center; padding: 60px clamp(24px, 5vw, 80px) 60px clamp(32px, 4vw, 64px); max-width: none; margin: 0; }
.hero-copy { max-width: 520px; }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 18px; }
.hero h1 { margin-bottom: .4em; font-size: clamp(2.3rem, 4.2vw, 3.75rem); }
.lead { font-size: 1.1rem; line-height: 1.6; color: #4a4b51; margin-bottom: 2em; }

@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 38% 30%; }
  .hero-inner { display: block; padding: 36px 16px 56px; }
  .hero-copy { max-width: none; }
}

/* ---------- Szekciók ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.watercolor-bg { position: relative; background: var(--light) url("../img/akvarell.jpg") center / cover; }
.watercolor-bg::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); }
.watercolor-bg > * { position: relative; }

/* Bemutatkozás */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro-mark { text-align: center; }
.watercolor-tile {
  aspect-ratio: 1; max-width: 380px; margin: 0 auto; display: grid; place-items: center;
  background: url("../img/akvarell.jpg") center / cover; box-shadow: var(--shadow);
}
.watercolor-tile span { font-family: var(--f-deco); font-size: clamp(9rem, 20vw, 15rem); line-height: 1; color: var(--white); transform: translateY(4%); }
.intro-sig { font-family: var(--f-display); font-weight: 700; letter-spacing: .3em; color: var(--dark); margin-top: 26px; font-size: 15px; }
.intro-sig small { font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: .3em; color: var(--text); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--dark); line-height: 1.1; }
.facts span { font-size: 14px; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .watercolor-tile { max-width: 240px; }
  .intro-mark { order: 2; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr 1fr; } .facts strong { font-size: 1.5rem; } }

/* Szolgáltatás kártyák */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border-radius: var(--radius); padding: 32px 28px 28px; box-shadow: var(--shadow);
  border-top: 3px solid var(--primary); transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(1,17,17,.12); }
.service-card h3 { font-size: 1.3rem; margin-top: 10px; }
.service-card p { flex: 1; }
.card-num { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .15em; color: var(--primary); }
@media (max-width: 960px) { .service-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-cards { grid-template-columns: 1fr; gap: 14px; } .service-card { padding: 24px 20px; } }

/* Tapadó témamenü */
.topic-nav { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.topic-nav-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.topic-nav-inner::-webkit-scrollbar { display: none; }
.topic-nav a {
  flex: 0 0 auto; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); transition: all .2s;
}
.topic-nav a:hover { border-color: var(--primary); color: var(--dark); }
.topic-nav a.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* Részletes leírások */
.service-detail.alt { background: var(--paper); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.detail-head .card-num { display: block; margin-bottom: 8px; }
.detail-body { display: grid; gap: 24px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.alt .panel { box-shadow: none; }
.panel-light { background: var(--light) !important; }
.panel h3, .faq h3 { font-size: 1.3rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid #EEF0F0; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23011111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.callout { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--primary); background: rgba(205, 230, 228, .35); }
.callout h4 { font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }

.faq { padding: 4px 0 0; }
.faq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-list button {
  font: 500 14px/1.4 var(--f-body); color: var(--dark); text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--primary); border-radius: var(--radius);
  padding: 9px 14px; transition: background-color .2s, color .2s, border-color .2s;
}
.faq-list button:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }
.faq-hint { font-size: 13px; margin-top: 12px; color: #8a8b90; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .panel { padding: 22px 18px; } }

/* Miért mi */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.why-photo { margin: 0; position: relative; }
.why-photo::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: url("../img/akvarell.jpg") center / cover; z-index: 0; }
.why-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.values { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.values li { display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--dark); }
.v-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--light); display: grid; place-items: center; }
.v-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-photo { max-width: 440px; margin: 0 auto 20px; width: calc(100% - 20px); }
  .why-photo::before { inset: 18px -18px -18px 18px; }
}

/* Kapcsolat */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.contact-card, .contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.c-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--light); display: grid; place-items: center; }
.c-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8a8b90; }
.contact-list a { font-weight: 600; color: var(--dark); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--primary-ink); text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--primary); transition: all .2s; }
.social a:hover { background: var(--dark); border-color: var(--dark); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover svg { stroke: var(--white); }

/* Űrlap (Web-Űrlapok.pdf) */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 16px; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--dark);
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9ba0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(172, 203, 200, .35); }
.field .invalid { border-color: #c0605a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--dark); flex: 0 0 auto; }
.check a { color: var(--primary-ink); font-weight: 700; text-decoration: none; }
.check a:hover { text-decoration: underline; }
.contact-form .btn { border-radius: 0; }
.form-msg { min-height: 0; margin: 0; font-size: 14px; font-weight: 600; }
.form-msg:not(:empty) { margin-bottom: 14px; }
.form-msg.err { color: #b04c46; }
.form-msg.ok { color: var(--primary-ink); }

/* Térkép */
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); height: clamp(340px, 36vw, 460px); position: relative; }
.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: 24px; text-align: center;
  background: linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)), url("../img/akvarell.jpg") center / cover; }
.map-consent p { margin: 0; max-width: 420px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Lábléc */
.site-footer { background: var(--dark); color: #b9c4c3; padding: 48px 0 40px; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.site-footer .brand-name, .site-footer .brand-sub { color: var(--white); }
.brand-footer { margin-bottom: 16px; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.footer-small { font-size: 13px; color: #7f8b8a; margin-top: 8px !important; }

/* Vissza a tetejére */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 46px; height: 46px; border-radius: var(--radius); background: var(--primary); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--dark); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Megjelenési animáció */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Akvarell háttéren a világos kiemelőszín nem olvasható – sötétebb árnyalat */
.watercolor-bg .subtitle { color: var(--primary-ink); }
