/* ==========================================================================
   Tóth Testvérek Hidegburkolás — style.css
   Téma: kő / csempe / fuga motívum, meleg terrakotta akcenttel
   ========================================================================== */

:root{
  --stone-50:  #f7f5f1;
  --stone-100: #efece5;
  --stone-200: #e2ddd2;
  --stone-300: #c9c1b2;
  --stone-600: #7d7468;
  --stone-700: #5c564c;
  --stone-900: #2b2823;
  --ink:       #211f1b;

  --clay-400:  #c98355;
  --clay-500:  #b5693a;
  --clay-600:  #9a5429;
  --clay-50:   #fbefe6;

  --grout:     #d8d2c4;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(33,31,27,.08), 0 1px 1px rgba(33,31,27,.06);
  --shadow-md: 0 8px 24px -8px rgba(33,31,27,.25);
  --shadow-lg: 0 20px 50px -16px rgba(33,31,27,.35);

  --maxw: 1180px;
  --font-head: "Poppins", "Segoe UI", -apple-system, Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; }
h1,h2,h3{ font-family: var(--font-head); font-weight:600; line-height:1.18; letter-spacing:-0.01em; margin:0 0 .5em; color: var(--stone-900); }
p{ margin:0 0 1em; color: var(--stone-700); }
.container{ max-width: var(--maxw); margin:0 auto; padding: 0 24px; }
section{ padding: 88px 0; }
.eyebrow{
  display:inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-600);
  font-weight: 700;
  margin-bottom: .9em;
}
.section-head{ max-width: 640px; margin: 0 0 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* subtle tile/grout pattern used as a background texture */
.tile-pattern{
  background-image:
    linear-gradient(var(--grout) 1px, transparent 1px),
    linear-gradient(90deg, var(--grout) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration:none;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--clay-500); color:#fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--clay-600); box-shadow: var(--shadow-md); }
.btn-ghost{ background: transparent; border-color: var(--stone-300); color: var(--stone-900); }
.btn-ghost:hover{ border-color: var(--stone-900); }
.btn-light{ background: #fff; color: var(--stone-900); }
.btn-light:hover{ box-shadow: var(--shadow-md); }
.btn svg{ width:18px; height:18px; flex-shrink:0; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(247,245,241,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone-200);
  padding-top: env(safe-area-inset-top, 0);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 10px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark{
  width: 42px; height:42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-500), var(--clay-600));
  color:#fff; font-family: var(--font-head); font-weight:700; font-size: 1rem; letter-spacing:-0.03em;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family: var(--font-head); font-size: 1.12rem; color: var(--stone-900); }
.brand-text span{ font-size: .74rem; letter-spacing:.08em; text-transform:uppercase; color: var(--clay-600); font-weight:600; }

.nav-links{ display:flex; align-items:center; gap: 30px; list-style:none; margin:0; padding:0; }
.nav-links a{ text-decoration:none; font-weight:600; font-size:.95rem; color: var(--stone-700); }
.nav-links a:hover{ color: var(--clay-600); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-phone{ display:flex; align-items:center; gap:8px; font-weight:700; text-decoration:none; color: var(--stone-900); font-size:.95rem; }
.nav-phone svg{ width:18px; height:18px; color: var(--clay-500); }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 44px; height: 44px;
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:24px; height:24px; color: var(--stone-900); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 0;
  overflow:hidden;
  min-height: 86vh;
  display:flex;
  align-items:center;
  color:#fff;
}
.hero-bg{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(33,31,27,.55), rgba(33,31,27,.78)),
              url("../img/referenciak/full/referencia-42.jpg") center 70%/cover no-repeat;
}
.hero-inner{ position:relative; z-index:1; padding: 160px 0 110px; }
.hero h1{
  color:#fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 760px; margin-bottom:.4em;
}
.hero p.lead{ color: var(--stone-100); font-size: 1.15rem; max-width: 560px; margin-bottom: 1.8em; }
.hero-actions{ display:flex; flex-wrap:wrap; gap: 14px; margin-bottom: 46px; }
.hero-facts{
  display:flex; flex-wrap:wrap; gap: 28px 44px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25);
  max-width: 820px;
}
.hero-fact strong{ display:block; font-family: var(--font-head); font-size: 1.5rem; }
.hero-fact span{ font-size: .85rem; color: var(--stone-200); }

/* ---------- services ---------- */
.services-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px;
}
.service-card{
  background:#fff; border:1px solid var(--stone-200); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.service-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon{
  width: 50px; height:50px; border-radius: 12px;
  background: var(--clay-50); color: var(--clay-600);
  display:flex; align-items:center; justify-content:center; margin-bottom: 18px;
}
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size: 1.12rem; margin-bottom:.4em; }
.service-card p{ font-size: .95rem; margin-bottom: 0; }
.service-card .tag-row{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.tag{
  font-size:.72rem; font-weight:700; letter-spacing:.03em;
  background: var(--stone-100); color: var(--stone-700);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- bemutatkozás (rólunk) ---------- */
.why{ background: var(--stone-900); color: var(--stone-100); }
.why .section-head h2, .why .section-head{ color:#fff; }
.why .eyebrow{ color: var(--clay-400); }
.intro-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items:start;
}
@media (max-width: 880px){ .intro-grid{ grid-template-columns: 1fr; gap:36px; } }
.intro-lead{ color: var(--stone-200); font-size: 1.02rem; }
.intro-signature{
  font-family: var(--font-head); font-weight:600; color:#fff; margin: 1.2em 0 0; font-size:1.05rem;
}
.checklist-card{
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 32px 30px;
}
.checklist-title{
  font-family: var(--font-head); font-weight:600; color:#fff; font-size:1.02rem; margin:0 0 18px;
}
.checklist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.checklist li{ display:flex; align-items:flex-start; gap:12px; color: var(--stone-200); font-size:.96rem; }
.checklist svg{
  width:20px; height:20px; flex-shrink:0; margin-top:1px;
  color: var(--clay-500); background: rgba(217,147,95,.14); border-radius:50%; padding:3px;
  box-sizing: content-box;
}
.intro-closing{
  margin: 46px 0 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-head); font-weight:500; font-size: 1.22rem; color:#fff;
  max-width: 760px; line-height:1.5;
}

/* ---------- gallery ---------- */
.gallery-head-row{
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.gallery-count{ font-size:.9rem; color: var(--stone-600); font-weight:600; }
.gallery-grid{
  margin-top: 36px;
  columns: 4 260px;
  column-gap: 14px;
}
@media (max-width: 760px){ .gallery-grid{ columns: 2 180px; } }
@media (max-width: 420px){ .gallery-grid{ columns: 1; column-gap: 0; } }
.gallery-item{
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow:hidden;
  position:relative;
  cursor: zoom-in;
  background: var(--stone-200);
  box-shadow: var(--shadow-sm);
  min-height: 80px; /* amíg a kép betölt, ne essen össze 0 magasságra */
}
.gallery-item img{ width:100%; height:auto; display:block; transition: transform .35s ease; }
.gallery-item:hover img{ transform: scale(1.045); }
.gallery-item .zoom-hint{
  position:absolute; right:10px; bottom:10px;
  width:30px; height:30px; border-radius:50%;
  background: rgba(33,31,27,.55); color:#fff;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity .15s ease;
}
.gallery-item .zoom-hint svg{ width:16px; height:16px; }
.gallery-item:hover .zoom-hint{ opacity:1; }
.gallery-skeleton{
  width:100%; aspect-ratio: 3/4; background: linear-gradient(90deg, var(--stone-200), var(--stone-100), var(--stone-200));
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius:8px;
}
@keyframes shimmer{ 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset:0; z-index: 100;
  background: rgba(20,18,15,.94);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition: opacity .2s ease;
  padding: 24px;
}
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{
  max-width: min(94vw, 1100px); max-height: 84vh; width:auto; height:auto;
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color:#fff; width:46px; height:46px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,.22); }
.lightbox-close{ top:20px; right:20px; }
.lightbox-prev{ left: 16px; top:50%; transform:translateY(-50%); }
.lightbox-next{ right:16px; top:50%; transform:translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg{ width:20px; height:20px; }
.lightbox-counter{
  position:absolute; bottom: 22px; left:50%; transform:translateX(-50%);
  color: var(--stone-200); font-size:.85rem; letter-spacing:.04em;
}
@media (max-width:640px){
  .lightbox-prev{ left:6px; } .lightbox-next{ right:6px; }
  .lightbox-prev, .lightbox-next{ width:40px; height:40px; }
}

/* ---------- contact ---------- */
.contact{
  background: linear-gradient(135deg, var(--clay-500), var(--clay-600));
  color:#fff;
}
.contact-grid{
  display:grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items:start;
}
@media (max-width: 820px){ .contact-grid{ grid-template-columns:1fr; } }
.contact h2{ color:#fff; }
.contact .section-head p{ color: var(--clay-50); }
.contact-card{
  background: #fff; color: var(--stone-900); border-radius: 16px; padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-name{ font-family: var(--font-head); font-size:1.3rem; margin-bottom:.1em; }
.contact-role{ color: var(--stone-600); font-size:.92rem; margin-bottom: 22px; }
.contact-phone-link{
  display:flex; align-items:center; gap:14px;
  font-size: 1.45rem; font-weight:700; text-decoration:none; color: var(--stone-900);
  padding: 16px 18px; border: 1.5px solid var(--stone-200); border-radius: 12px;
  margin-bottom: 16px;
}
.contact-phone-link svg{ width:26px; height:26px; color: var(--clay-500); flex-shrink:0; }
.contact-note{ font-size:.9rem; color: var(--stone-600); margin:0; }

/* ---------- ajánlatkérő űrlap ---------- */
.quote-card{
  background:#fff; color: var(--stone-900); border-radius: 16px; padding: 32px 34px;
  box-shadow: var(--shadow-lg);
}
.quote-card-title{
  font-family: var(--font-head); font-weight:600; font-size: 1.1rem; margin: 0 0 18px;
}
.quote-form{ position: relative; }
.quote-form .form-row{ margin-bottom: 16px; }
.quote-form .form-row--split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 480px){ .quote-form .form-row--split{ grid-template-columns: 1fr; } }
.quote-form label{
  display:block; font-size:.82rem; font-weight:700; color: var(--stone-700);
  margin-bottom: 6px;
}
.quote-form input,
.quote-form textarea{
  width:100%; font: inherit; font-size: .96rem; color: var(--stone-900);
  background: var(--stone-50); border: 1.5px solid var(--stone-200); border-radius: 10px;
  padding: 11px 13px; transition: border-color .15s ease;
}
.quote-form input:focus,
.quote-form textarea:focus{
  outline: none; border-color: var(--clay-500);
}
.quote-form textarea{ resize: vertical; min-height: 70px; }
.quote-form .btn{ width:100%; justify-content:center; margin-top: 4px; }
.form-note{ font-size:.78rem; color: var(--stone-600); margin: 12px 0 0; }
.form-msg{ font-size: .88rem; margin: 12px 0 0; min-height: 1px; }
.form-msg.is-success{ color: #3a7a4e; font-weight:600; }
.form-msg.is-error{ color: var(--clay-600); font-weight:600; }
.form-msg.is-error a{ text-decoration: underline; }

/* bot-csapda: vizuálisan rejtve, de kitölthető marad képernyőolvasóval nem triggerelve */
.form-hp{
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* ---------- footer ---------- */
.site-footer{ background: var(--stone-900); color: var(--stone-300); padding: 44px 0 30px; }
.footer-row{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; align-items:center; }
.footer-row .brand-text strong{ color:#fff; }
.footer-links{ display:flex; gap:22px; list-style:none; padding:0; margin:0; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color: var(--stone-300); font-size:.9rem; }
.footer-links a:hover{ color:#fff; }
.footer-fine{ margin-top: 26px; font-size:.8rem; color: var(--stone-600); border-top:1px solid rgba(255,255,255,.08); padding-top:20px; }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- responsive nav ---------- */
@media (max-width: 880px){
  .nav-links{
    position: fixed; inset: calc(64px + env(safe-area-inset-top, 0)) 16px auto 16px;
    background:#fff; border:1px solid var(--stone-200); border-radius: 14px;
    flex-direction:column; align-items:flex-start; gap:4px; padding: 14px;
    box-shadow: var(--shadow-lg);
    transform-origin: top right;
    transform: scale(.96); opacity:0; visibility:hidden; pointer-events:none;
    transition: transform .15s ease, opacity .15s ease;
  }
  .nav-links.is-open{ transform:scale(1); opacity:1; visibility:visible; pointer-events:auto; }
  .nav-links a{ display:block; padding: 10px 8px; width:100%; border-radius:8px; }
  .nav-links a:hover{ background: var(--stone-100); }
  .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:inline-flex; }
}
@media (max-width: 620px){
  section{ padding: 60px 0; }
  .hero{ min-height: auto; }
  .hero-inner{ padding: 112px 0 56px; }
  .hero-facts{ gap: 20px 28px; }
  .nav-phone span{ display:none; }
  .contact-phone-link{ font-size: 1.2rem; padding: 14px 16px; }
  .contact-card{ padding: 26px 22px; }
  .checklist-card{ padding: 26px 20px; }
  .intro-closing{ font-size: 1.08rem; margin-top: 34px; padding-top: 26px; }
  .quote-card{ padding: 26px 20px; }
  .container{ padding: 0 18px; }
  .lightbox-close{ top: calc(16px + env(safe-area-inset-top, 0)); right: calc(16px + env(safe-area-inset-right, 0)); }
  .lightbox-counter{ bottom: calc(18px + env(safe-area-inset-bottom, 0)); }
}
