/* ============================================================
   Agárdi Autójavító — „műhelylap" design system
   Vanilla CSS, nincs framework. Tokenek → komponensek → oldalak.
   ============================================================ */

/* ---------- Betűtípus (self-hosted Archivo variable) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-var-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-var-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 {
  --paper: #F5F1E6;
  --paper-2: #ECE5D2;
  --paper-3: #E2D9C0;
  --ink: #26221B;
  --ink-2: #57503F;
  --rule: #C9BFA4;
  --straw: #E3A82B;
  --straw-deep: #8F6410;
  --reed: #3F5A40;
  --danger: #A03921;
  --ok: #3F5A40;

  --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.2rem, 1.3rem + 3.2vw, 3.4rem);
  --fs-h1: clamp(2rem, 1.2rem + 3.2vw, 3.3rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --measure: 68ch;
  --wrap: 72rem;
  --radius: 4px;
}

/* ---------- Alap ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--straw-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  font-weight: 760;
  font-stretch: 115%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-stretch: 108%; }
p { margin: 0 0 var(--space-2); max-width: var(--measure); }
ul, ol { padding-inline-start: 1.3em; max-width: var(--measure); }
li { margin-block: 0.35em; }
strong { font-weight: 680; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.skip-link {
  position: absolute; inset-inline-start: -200vw; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.2rem; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { inset-inline-start: 0.5rem; top: 0.5rem; }

/* ---------- Kicker (szekciócímke) ---------- */
.kicker {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--straw-deep); margin-bottom: var(--space-2);
}
.kicker::before { content: ''; width: 2.2rem; height: 3px; background: var(--straw); flex: none; }

/* ---------- Fejléc ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 4.6rem; flex-wrap: wrap; padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-weight: 790; font-stretch: 115%; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 0.5rem 0.9rem; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer;
}
.site-nav ul { display: flex; gap: clamp(0.6rem, 2vw, 1.6rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 570; padding: 0.4rem 0.15rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--straw); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--straw); font-weight: 720; }

.header-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 0.62rem 1.1rem; border-radius: var(--radius); font-weight: 660; white-space: nowrap;
}
.header-call:hover { background: var(--straw-deep); color: var(--paper); }
.header-call svg { width: 1em; height: 1em; }

@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-block; order: 3; }
  .js .site-nav { display: none; width: 100%; order: 5; }
  .js .site-nav.open { display: block; padding-block: 0.5rem 0.8rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--rule); margin: 0; }
  .site-nav a { display: block; padding: 0.8rem 0.2rem; border-bottom: none; }
  .site-nav a[aria-current="page"] { color: var(--straw-deep); }
  .header-call { order: 4; }
  html:not(.js) .site-nav { width: 100%; order: 5; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; gap: var(--space-4);
  padding-block: var(--space-5) var(--space-5);
  background-image: radial-gradient(var(--paper-3) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 1fr); align-items: center; } }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; font-stretch: 122%; letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.hero h1 em { font-style: normal; color: var(--straw-deep); }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--straw); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Munkalap-kártya (hero jobb oldal) */
.worksheet {
  background: #FBF8F0; border: 1.5px solid var(--ink); border-radius: 6px;
  box-shadow: 6px 6px 0 var(--paper-3);
}
.worksheet-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.8rem 1.2rem; border-bottom: 1.5px solid var(--ink);
  font-size: 0.78rem; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase;
}
.worksheet-head .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--straw); }
.worksheet-body { padding: 1.2rem; display: grid; gap: 0.9rem; }
.ws-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--rule); padding-bottom: 0.65rem; }
.ws-row:last-child { border-bottom: none; padding-bottom: 0; }
.ws-row dt { color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; }
.ws-row dd { margin: 0; font-weight: 700; text-align: right; }
.ws-row dd a { color: var(--ink); text-decoration: none; }
.ws-row dd a:hover { color: var(--straw-deep); }
.ws-note { font-size: var(--fs-small); color: var(--ink-2); margin: 0; }
.stars { color: var(--straw-deep); letter-spacing: 0.1em; }

/* ---------- Fotó-dokumentum ---------- */
figure.doc { margin: 0; border: 1px solid var(--rule); background: #FBF8F0; border-radius: 6px; overflow: hidden; }
figure.doc img { width: 100%; }
figure.doc figcaption {
  padding: 0.6rem 1rem; font-size: 0.8rem; color: var(--ink-2);
  border-top: 1px solid var(--rule); display: flex; gap: 0.6rem; align-items: baseline;
}
figure.doc figcaption::before { content: '—'; color: var(--straw-deep); font-weight: 700; }

.hero-band { padding-block: 0 var(--space-5); }
.hero-band figure.doc { box-shadow: 8px 8px 0 var(--paper-3); }

/* ---------- Szekciók ---------- */
.section { padding-block: var(--space-5); }
.section.alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section-head { max-width: 52rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--ink-2); }

/* ---------- Szolgáltatásrács (munkalap-tételek) ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:last-child { grid-column: 1 / -1; }
}
@media (min-width: 64rem) { .svc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.svc {
  background: var(--paper); padding: 1.5rem 1.4rem 1.4rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 0.55rem; position: relative; min-height: 11rem;
}
.svc:hover { background: #FBF8F0; }
.svc:hover .svc-title { color: var(--straw-deep); }
.svc-num { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.14em; color: var(--straw-deep); }
.svc-title { font-size: 1.18rem; font-weight: 740; font-stretch: 110%; line-height: 1.2; }
.svc p { font-size: 0.94rem; color: var(--ink-2); margin: 0; }
.svc-more { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.svc:hover .svc-more { color: var(--straw-deep); }
.svc svg.icon { width: 2rem; height: 2rem; stroke: var(--ink); position: absolute; top: 1.35rem; right: 1.3rem; opacity: 0.85; }

/* ---------- Statisztika-sáv ---------- */
.stats { display: grid; gap: var(--space-3); text-align: left; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 3px solid var(--straw); padding-top: 0.9rem; }
.stat b { display: block; font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.4rem); font-weight: 800; font-stretch: 120%; line-height: 1; letter-spacing: -0.02em; }
.stat span { color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; }

/* ---------- Vélemények ---------- */
.review-grid { display: grid; gap: var(--space-3); }
.review-grid.photo-duo { align-items: start; }
/* fekvő (680×510) + álló (710×830) kép egy sorban: az oszlopszélességek
   aránya úgy van megválasztva, hogy a két kép magassága megegyezzen */
@media (min-width: 40rem) { .review-grid.photo-duo { grid-template-columns: 1.55fr 1fr; align-items: start; } }
@media (min-width: 40rem) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .review-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.review {
  background: #FBF8F0; border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.5rem 1.5rem 1.3rem; position: relative; display: flex; flex-direction: column;
}
.review::before {
  content: '„'; position: absolute; top: 0.2rem; left: 1.1rem;
  font-size: 3.2rem; line-height: 1; color: var(--straw); font-weight: 800;
}
.review blockquote { margin: 0 0 1rem; padding-top: 1.6rem; font-size: 1.02rem; line-height: 1.55; }
.review footer { margin-top: auto; font-size: var(--fs-small); font-weight: 720; letter-spacing: 0.04em; }
.review footer span { display: block; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-top: 0.15rem; }

.rating-line { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: var(--space-3); }
.rating-line b { font-size: 2.6rem; font-weight: 800; font-stretch: 118%; line-height: 1; }
.rating-line .stars { font-size: 1.3rem; }
.rating-line span { color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- CTA-panel ---------- */
.cta-panel {
  background: var(--ink); color: var(--paper); border-radius: 8px;
  padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; gap: var(--space-3); align-items: center;
}
@media (min-width: 56rem) { .cta-panel { grid-template-columns: 1.5fr 1fr; } }
.cta-panel h2 { color: var(--paper); margin-bottom: 0.6rem; }
.cta-panel p { color: #CFC7B2; margin-bottom: 0; }
.cta-panel .hours-note { font-size: var(--fs-small); }
.cta-actions { display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch; }
.cta-actions .btn { justify-content: center; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--straw); color: var(--ink); }
.btn-outline-paper { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline-paper:hover { background: var(--paper); color: var(--ink); }

/* ---------- Tartalmi oldalak ---------- */
.page-head { padding-block: var(--space-5) var(--space-4); border-bottom: 1px solid var(--rule); background-image: radial-gradient(var(--paper-3) 1.2px, transparent 1.2px); background-size: 26px 26px; }
.breadcrumb { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--straw-deep); }
.page-head .lead { font-size: clamp(1.02rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }

.article { padding-block: var(--space-5); display: grid; gap: var(--space-4); }
@media (min-width: 62rem) { .article { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.article h2 { margin-top: var(--space-4); }
.article h2:first-child { margin-top: 0; }
.article-aside { display: grid; gap: var(--space-3); position: sticky; top: 1.5rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-inline-start: 1.7em; position: relative; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.48em; width: 0.95em; height: 0.55em;
  border-left: 2.5px solid var(--straw-deep); border-bottom: 2.5px solid var(--straw-deep);
  transform: rotate(-45deg);
}

.info-strip { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding: 0.9rem 0; border-block: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-2); }
.info-strip b { color: var(--ink); }

/* ---------- Nyitvatartás táblázat ---------- */
table.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
table.hours caption { text-align: left; font-weight: 750; margin-bottom: 0.6rem; font-size: 1.05rem; }
table.hours th, table.hours td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px dashed var(--rule); font-size: 0.98rem; }
table.hours th { font-weight: 600; color: var(--ink-2); }
table.hours td { font-weight: 700; text-align: right; }
table.hours tr.today th, table.hours tr.today td { color: var(--straw-deep); }
table.hours tr.today th::after { content: ' · ma'; font-size: 0.78em; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
table.hours .closed { color: var(--ink-2); font-weight: 600; }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; gap: var(--space-4); padding-block: var(--space-5); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.contact-block { display: grid; gap: var(--space-3); }
.contact-card { border: 1px solid var(--rule); border-radius: 6px; background: #FBF8F0; padding: 1.4rem; }
.contact-card h2, .contact-card h3 { margin-bottom: 0.8rem; }
.contact-card p:last-child { margin-bottom: 0; }
.tel-big { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; font-stretch: 115%; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 0.6rem; }
.tel-big:hover { color: var(--straw-deep); }
.tel-big svg { width: 1em; height: 1em; flex: none; }
.tel-role { font-size: var(--fs-small); color: var(--ink-2); margin: 0.1rem 0 0; }

.map-frame { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.map-frame iframe { display: block; width: 100%; height: 24rem; border: 0; }

/* ---------- Űrlap ---------- */
form.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 680; font-size: 0.95rem; }
.field label .opt { font-weight: 500; color: var(--ink-2); font-size: 0.85em; }
.field input, .field textarea {
  font: inherit; padding: 0.7rem 0.85rem; border: 1.5px solid var(--ink-2); border-radius: var(--radius);
  background: #FBF8F0; color: var(--ink); width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--straw); outline-offset: 1px; border-color: var(--ink); }
.field .error-msg { display: none; color: var(--danger); font-size: var(--fs-small); font-weight: 620; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.form-status { border-radius: var(--radius); padding: 0.9rem 1.1rem; font-weight: 620; display: none; }
.form-status.ok { display: block; background: #E4EBE0; border: 1px solid var(--ok); color: #273A28; }
.form-status.err { display: block; background: #F3E0D8; border: 1px solid var(--danger); color: #6E2716; }
.hp-field { position: absolute !important; left: -200vw !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--ink); color: #CFC7B2; margin-top: var(--space-6); }
.footer-grid { display: grid; gap: var(--space-4); padding-block: var(--space-5) var(--space-4); }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--straw); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-block: 0.45em; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; color: var(--paper); text-decoration: none; margin-bottom: 1rem; }
.footer-brand svg { width: 2.2rem; height: 2.2rem; }
.footer-brand b { font-weight: 780; font-stretch: 115%; font-size: 1.1rem; }
.site-footer .small { font-size: var(--fs-small); }
.footer-legal { border-top: 1px solid #453D2E; padding-block: 1.1rem; font-size: 0.8rem; color: #A79D85; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

/* ---------- 404 ---------- */
.error-page { padding-block: var(--space-6); text-align: left; }
.error-page .code { font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--paper-3); }

/* ---------- Belépő animáció (mértékkel) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero-ctas, .hero .worksheet {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero .lead { animation-delay: 0.08s; }
  .hero-ctas { animation-delay: 0.16s; }
  .hero .worksheet { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Nyomtatás ---------- */
@media print {
  .site-header, .site-footer, .cta-panel, .hero-ctas { display: none; }
}
