/* MasterSlate v2 layer: tidier rhythm, new sections, restrained motion.
   Loaded last on every page. All motion is disabled under prefers-reduced-motion. */
:root {
  --v2-ease: cubic-bezier(.22, .8, .24, 1);
  --v2-red: #E90117;
  --v2-ink: #151515;
  --v2-stone: #F2F2F2;
}

/* ---------- consistency ---------- */
h1, h2, h3, h4 { letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
.btn { transition: transform .35s var(--v2-ease), box-shadow .35s var(--v2-ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn:active { transform: translateY(0); }
.btn-outline-dark { background: transparent; color: var(--v2-ink); border: 2px solid var(--v2-ink); }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--v2-ink); color: #fff; }
:focus-visible { outline: 3px solid rgba(233, 1, 23,.55); outline-offset: 3px; }
.v2-kicker, .onehand-band .section-subtitle, .stats-v2 .section-subtitle, .kozelrol-v2 .section-subtitle, .coverage-v2 .section-subtitle, .prices-v2 .section-subtitle, .reviews-v2 .section-subtitle {
  display: block; font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--v2-red); margin-bottom: .6rem;
}
.section-action { margin-top: 36px; text-align: center; }

/* images and cards: gentle lift */
.gallery-item, .feature-item, .service-card, .material-card, .sample-preview, .price-tile, .rv-card, .stat {
  transition: transform .5s var(--v2-ease), box-shadow .5s var(--v2-ease);
}
.gallery-item img, .sample-preview img, .material-card img { transition: transform 1.2s var(--v2-ease), filter 1.2s var(--v2-ease); }
.gallery-item:hover img, .sample-preview:hover img, .material-card:hover img { transform: scale(1.045); filter: brightness(1.06) saturate(1.05); }
.feature-item:hover, .sample-preview:hover { transform: translateY(-4px); }

/* ---------- reveal on scroll ---------- */
.js-v2 .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--v2-ease) var(--d, 0ms), transform .9s var(--v2-ease) var(--d, 0ms); }
.js-v2 .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero (index) ---------- */
.hero.hero-v2 { min-height: min(86vh, 820px); background-position: center 58%; }
.hero.hero-v2::before { background: linear-gradient(90deg, rgba(14,14,14,.66) 0%, rgba(14,14,14,.34) 42%, rgba(14,14,14,0) 70%); }
.hero.hero-v2::after { opacity: .16; }
.hero.hero-v2 > .container { max-width: 1440px; }
.hero.hero-v2 .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: clamp(32px, 10vw, 220px); }
.hero.hero-v2 .hero-content h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero.hero-v2 .hero-content h1 .h1-accent { display: block; color: #fff; font-weight: 600; font-size: .62em; margin-top: .45em; letter-spacing: 0; }
.hero.hero-v2 .hero-content p { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero.hero-v2 .hero-inquiry { max-width: 380px; padding: 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero.hero-v2 .hero-inquiry .ms-form h3 { font-size: 1.15rem; }
.hero.hero-v2 .hero-inquiry .ms-upload { padding: 12px; }
.js-v2 .hero-v2 .hero-content > * { animation: v2-rise 1s var(--v2-ease) both; }
.js-v2 .hero-v2 .hero-content > *:nth-child(2) { animation-delay: .12s; }
.js-v2 .hero-v2 .hero-content > *:nth-child(3) { animation-delay: .24s; }
.js-v2 .hero-v2 .hero-inquiry { animation: v2-rise 1.1s var(--v2-ease) .3s both; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) {
  .hero.hero-v2 .hero-layout { grid-template-columns: 1fr; }
  .hero.hero-v2 .hero-inquiry { max-width: 100%; justify-self: stretch; }
  .hero.hero-v2::before { background: linear-gradient(180deg, rgba(14,14,14,.6), rgba(14,14,14,.35)); }
}

/* ---------- stats band ---------- */
.stats-v2 { background: var(--v2-ink); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.stats-v2::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px), radial-gradient(circle at 85% 10%, rgba(233, 1, 23,.28), transparent 40%); }
.stats-v2 .container { position: relative; }
.stats-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.stats-head h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.stats-head p { color: rgba(255,255,255,.75); margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 24px; background: rgba(255,255,255,.03); }
.stat:hover { transform: translateY(-4px); border-color: rgba(233, 1, 23,.6); }
.stat i { color: var(--v2-red); font-size: 1.6rem; }
.stat .stat-num { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; margin: 10px 0 4px; line-height: 1.1; }
.stat p:last-child { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .stats-head { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- stone close-up accordion ---------- */
.kozelrol-v2 { background: #fff; }
.kozelrol-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 32px; }
.kozelrol-head h2 { margin: 0; }
.kozelrol-head p { margin: 0; }
.acc { display: flex; gap: 10px; height: 460px; }
.acc-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 10px; cursor: pointer; background: #111;
  transition: flex-grow 1.1s var(--v2-ease), box-shadow 1.6s var(--v2-ease); }
.acc-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  filter: brightness(.6) saturate(.8); transform: scale(1.06); transition: filter 2.4s ease, transform 2.4s var(--v2-ease); }
.acc-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); pointer-events: none; transition: opacity 1.6s; }
.acc-panel.is-active { flex-grow: 4.2; box-shadow: 0 0 60px rgba(255,190,90,.25); }
.acc-panel.is-active img { filter: brightness(1.12) saturate(1.1); transform: scale(1); }
.acc-panel.is-active::after { opacity: .85; }
.acc-vtitle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(180deg); writing-mode: vertical-rl; color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: .08em; white-space: nowrap; z-index: 2; transition: opacity .5s; }
.acc-panel.is-active .acc-vtitle { opacity: 0; }
.acc-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 2; color: #fff; opacity: 0; transform: translateY(14px);
  transition: opacity .7s .35s, transform .7s .35s var(--v2-ease); max-width: 520px; }
.acc-panel.is-active .acc-content { opacity: 1; transform: none; }
.acc-content h3 { color: #fff; margin: 4px 0 6px; font-size: 1.35rem; }
.acc-content p { color: rgba(255,255,255,.88); margin: 0; }
.acc-no { font-family: 'Montserrat', sans-serif; color: #E90117; font-weight: 700; font-size: .85rem; }
@media (max-width: 760px) {
  .kozelrol-head { grid-template-columns: 1fr; }
  .acc { flex-direction: column; height: auto; }
  .acc-panel { flex: none; height: 84px; transition: height 1s var(--v2-ease); }
  .acc-panel.is-active { height: 340px; }
  .acc-vtitle { writing-mode: horizontal-tb; transform: translate(-50%, -50%); }
}

/* ---------- door reveal gallery ---------- */
.door-stage { position: relative; perspective: 1800px; }
.door { position: absolute; inset: -6px; z-index: 5; display: flex; pointer-events: none; }
.door-leaf { flex: 1; background-image: url('assets/client/2026-03-kofurner-burkolas-kulso-burkolas-2000x900-11.webp'); background-size: 200% 100%; border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25); transition: transform 1.8s var(--v2-ease), opacity 1.8s ease; backface-visibility: hidden; }
.door-l { background-position: left center; transform-origin: left center; border-radius: 10px 0 0 10px; }
.door-r { background-position: right center; transform-origin: right center; border-radius: 0 10px 10px 0; }
.door-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(255,255,255,.92); color: var(--v2-ink);
  padding: 8px 16px; border-radius: 30px; font-size: .85rem; font-weight: 600; transition: opacity .6s; }
.door-stage.is-open .door-l { transform: rotateY(-108deg); opacity: 0; }
.door-stage.is-open .door-r { transform: rotateY(108deg); opacity: 0; }
.door-stage.is-open .door-hint { opacity: 0; }
.no-js .door, .door-stage:not(.door-armed) .door { display: none; }
.door-stage .gallery-item { opacity: 1; }
.js-v2 .door-stage.door-armed .gallery-item { opacity: 0; transform: scale(.94); transition: opacity .9s var(--v2-ease), transform .9s var(--v2-ease); }
.js-v2 .door-stage.is-open .gallery-item { opacity: 1; transform: none; }
.js-v2 .door-stage.is-open .gallery-item:nth-child(2) { transition-delay: .55s; }
.js-v2 .door-stage.is-open .gallery-item:nth-child(1) { transition-delay: .45s; }
.js-v2 .door-stage.is-open .gallery-item:nth-child(3) { transition-delay: .65s; }
.js-v2 .door-stage.is-open .gallery-item:nth-child(4) { transition-delay: .75s; }
.js-v2 .door-stage.is-open .gallery-item:nth-child(5) { transition-delay: .85s; }
.js-v2 .door-stage.is-open .gallery-item:nth-child(6) { transition-delay: .95s; }

/* ---------- real reviews ---------- */
.reviews-v2 { background: var(--v2-stone); }
.rv-score { margin: 6px 0 0; color: #444; }
.rv-score strong { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; color: var(--v2-ink); }
.rv-score .review-stars { color: #E90117; letter-spacing: 2px; }
.rv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.rv-card { grid-column: span 2; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; color: var(--v2-ink); position: relative; overflow: hidden; }
.rv-card:nth-child(4) { grid-column: 2 / span 2; }
.rv-card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.rv-head { display: flex; justify-content: space-between; align-items: center; }
.rv-head .google-source { color: inherit; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.rv-head .google-source img { width: 18px; height: 18px; border-radius: 50%; }
.rv-head .review-stars { color: #E90117; letter-spacing: 2px; }
.rv-card blockquote { margin: 0; font-size: 1rem; line-height: 1.65; flex: 1; color: inherit; }
.rv-card footer { display: flex; align-items: center; gap: 10px; }
.rv-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); }
.tone-slate { background: #2d3138; color: #f3f3f3; } .tone-slate blockquote, .tone-slate strong { color: #f3f3f3; }
.tone-sand { background: #efe3cf; }
.tone-copper { background: #b5562f; color: #fff; } .tone-copper blockquote, .tone-copper strong { color: #fff; }
.tone-sage { background: #dfe6da; }
.tone-gold { background: #FFFFFF; }
@media (max-width: 900px) { .rv-grid { grid-template-columns: 1fr 1fr; } .rv-card, .rv-card:nth-child(4) { grid-column: auto; } .rv-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .rv-grid { grid-template-columns: 1fr; } }

/* ---------- one-hand band ---------- */
.onehand-band { background: linear-gradient(110deg, #1b1b1b, #2a2522); color: #fff; padding: 56px 0; }
.onehand-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.onehand-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: #fff; margin: 0 0 8px; line-height: 1.25; }
.onehand-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 720px; }
.onehand-band .btn { flex-shrink: 0; }
@media (max-width: 760px) { .onehand-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- coverage map ---------- */
.coverage-v2 { background: #fff; }
.cov-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cov-lead { font-size: 1.1rem; color: #333; }
.cov-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.cov-list li { display: flex; gap: 14px; align-items: flex-start; }
.cov-list i { color: var(--v2-red); font-size: 1.4rem; margin-top: 2px; }
.cov-list strong { display: block; color: var(--v2-ink); }
.cov-list span { color: #5f5f5f; font-size: .95rem; }
.cov-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map-land { fill: #F2F2F2; stroke: #C9C9C9; stroke-width: 2; }
.map-river { fill: none; stroke: #9fc3dd; stroke-width: 3; }
.map-water { fill: #bcd8ea; }
.map-zone { transform-origin: 455px 262px; }
.m-dot { fill: var(--v2-red); stroke: #fff; stroke-width: 3; }
.m-pulse { fill: var(--v2-red); opacity: .35; transform-origin: 436.9px 243px; animation: v2-pulse 2.6s ease-out infinite; }
.m-label { font: 700 26px 'Montserrat', sans-serif; fill: var(--v2-ink); }
.m-sub { font: 600 18px 'Open Sans', sans-serif; fill: #5f5f5f; }
.cov-note { font-size: .85rem; color: #777; margin-top: 10px; }
.js-v2 .cov-map .map-zone { transform: scale(.2); opacity: 0; transition: transform 1.8s var(--v2-ease) .3s, opacity 1.8s .3s; }
.js-v2 .cov-map.is-in .map-zone { transform: none; opacity: 1; }
@keyframes v2-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 860px) { .cov-grid { grid-template-columns: 1fr; } }

/* ---------- contact with photo ---------- */
.contact-section.contact-photo { background-image: linear-gradient(100deg, rgba(14,14,14,.9) 0%, rgba(14,14,14,.72) 55%, rgba(14,14,14,.5)), url('assets/client/2026-03-kofurner-burkolas-ajanlatkeres-hatter-webp.webp'); background-size: cover; background-position: center; }
.contact-info .service-area-line { color: #ddd !important; font-size: .95rem !important; margin-top: 0 !important; }

/* ---------- price tiles (Árak) ---------- */
.prices-v2 { background: var(--v2-stone); }
.price-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; perspective: 1200px; }
.price-tile { position: relative; border-radius: 14px; padding: 30px 26px; color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  background-size: cover; background-position: center; isolation: isolate; transform-style: preserve-3d; will-change: transform; }
.price-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(10,10,10,.78), rgba(10,10,10,.55)); transition: opacity .8s; }
.price-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.22), transparent 45%); }
.price-tile:hover::after { opacity: 1; }
.price-tile:hover::before { opacity: .88; }
.tile-a { background-image: url('assets/images/csillampala-silver-grey-1.webp'); }
.tile-b { background-image: url('assets/images/agyagpala-california-gold-1.webp'); }
.tile-c { background-image: url('assets/images/csillampala-copper-1.webp'); }
.price-tile h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.price-tile p { color: rgba(255,255,255,.86); margin: 0; }
.tile-no { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #E90117; letter-spacing: .1em; }
.tile-price { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.7rem; color: #fff !important; margin-top: 8px !important; }
.tile-price small { font-size: .55em; font-weight: 600; opacity: .8; }
.tile-price-2 { margin-top: 0 !important; font-size: 1.35rem; }
.tile-note { font-size: .88rem; }
.price-tile .btn { margin-top: auto; align-self: flex-start; }
.js-v2 .price-tile.is-in { animation: v2-float 7s ease-in-out infinite; animation-delay: var(--d, 0ms); }
.js-v2 .price-tile:hover { animation-play-state: paused; }
@keyframes v2-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.labor-v2 { margin-top: 28px; background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.labor-head h3 { margin: 0 0 18px; }
.labor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.labor-card { border: 1px solid #e6e1d9; border-radius: 12px; padding: 22px; transition: transform .5s var(--v2-ease), border-color .4s; }
.labor-card:hover { transform: translateY(-4px); border-color: var(--v2-red); }
.labor-card .tile-price { color: var(--v2-ink) !important; }
.labor-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.labor-card li { padding-left: 18px; position: relative; color: #444; }
.labor-card li::before { content: ''; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--v2-red); }
.labor-label { display: inline-block; background: var(--v2-ink); color: #fff; border-radius: 30px; padding: 4px 12px; font-size: .8rem; font-weight: 700; }
.labor-foot { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 20px; }
.labor-foot p { margin: 0; color: #555; font-size: .95rem; }
@media (max-width: 900px) { .price-tiles, .labor-grid { grid-template-columns: 1fr; } .labor-foot { flex-direction: column; align-items: flex-start; } }

/* ---------- GYIK bullet points ---------- */
.faq-points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.faq-points li { padding-left: 20px; position: relative; }
.faq-points li::before { content: ''; position: absolute; left: 0; top: .7em; width: 9px; height: 9px; border-radius: 2px; background: var(--v2-red); transform: translateY(-50%) rotate(45deg); }

/* ---------- swatch placeholder ---------- */
.swatch-pending { aspect-ratio: 16 / 10; width: 100%; display: grid; place-items: center; text-align: center; color: #5b5146; font-weight: 600;
  background: repeating-linear-gradient(172deg, #e9dfcf 0 9px, #e2d5c1 9px 13px, #eee6d8 13px 24px); border-radius: 4px; }
.swatch-pending small { font-weight: 400; color: #7a6f62; }

/* ---------- translucent teaser readability (belteri) ---------- */
.translucent-teaser p { color: #fff !important; font-weight: 600; text-shadow: 0 2px 14px rgba(0,0,0,.6); font-size: 1.08rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-v2 .reveal, .js-v2 .door-stage.door-armed .gallery-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .door { display: none !important; }
  .js-v2 .hero-v2 .hero-content > *, .js-v2 .hero-v2 .hero-inquiry, .js-v2 .price-tile.is-in, .m-pulse { animation: none !important; }
  .acc-panel, .acc-panel img, .acc-content, .btn, .gallery-item img, .price-tile, .rv-card, .stat, .labor-card { transition: none !important; }
  .js-v2 .cov-map .map-zone { transform: none; opacity: 1; transition: none; }
}
