/* ==========================================================================
   HomeHero Solutions — style.css (v4.2)
   ========================================================================== */

/* THEME */
:root{
  --brown:#8B5E3C;
  --footer-bg:#6e4321;
  --footer-text:#f5e6d5;

  --gold:#D4AF37; --gold-2:#C49A16; --gold-3:#E8C95A;
  --light:#FFF8F0; --ink:#2b2b2b; --muted:#5b4a3a; --accent-navy:#0f172a;

  --hero-overlay: rgba(15,17,26,.28);
  --hero-spot: rgba(0,0,0,.30);

  --radius:14px;
  --shadow-sm:0 2px 6px rgba(0,0,0,.08);
  --shadow-md:0 10px 24px rgba(0,0,0,.18);
  --shadow-lg:0 14px 38px rgba(0,0,0,.25);

  --cta-h:56px;
}

/* RESET */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:'Lato',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--light);color:var(--ink);line-height:1.6}
img{max-width:100%;display:block;height:auto}
h1,h2,h3{font-family:'Poppins',sans-serif;color:var(--brown)}
a{color:inherit}

/* ACCESSIBILITY */
.skip-link{position:absolute;left:-9999px;top:0;background:#000;color:#fff;padding:8px 12px;z-index:10000}
.skip-link:focus{left:12px}

/* LAYOUT & DIVIDERS */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section-head{text-align:center;max-width:900px;margin:0 auto 20px}
.section-head h2{font-size:clamp(1.8rem,1rem + 1.6vw,2.3rem);margin-bottom:2px}
.section-head p{color:var(--muted);opacity:.95}
.section-divider{
  height:14px; margin:26px auto; width:88%;
  background:linear-gradient(90deg,rgba(196,154,22,.20),rgba(232,201,90,.42),rgba(196,154,22,.20));
  mask-image:linear-gradient(to bottom,transparent 0, #000 25%, #000 75%, transparent 100%);
  border-radius:999px; opacity:.55;
}

/* =================== HEADER =================== */
header{
  background:var(--brown); position:sticky; top:0; z-index:1000; width:100%;
  box-shadow:0 1px 0 rgba(0,0,0,.2);
}
.header-inner{
  max-width:1200px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
}
.logo{height:72px;width:auto;object-fit:contain}
@media (max-width:600px){.logo{height:62px}}

nav{display:flex; align-items:center; gap:10px; flex:1; justify-content:flex-end}
nav a{
  text-decoration:none; color:#fff; font-weight:700; font-size:16px;
  padding:10px 14px; border-radius:10px; white-space:nowrap;
}
nav a.active{color:var(--gold)}
.btn-nav{border:2px solid var(--gold); border-radius:9999px; padding:8px 14px; color:#fff}

/* Burger */
.burger{display:none; flex-direction:column; gap:6px; width:32px; height:28px; background:none; border:0; cursor:pointer}
.burger div{height:3px; background:#fff; border-radius:2px}

/* Mobile nav */
@media (max-width:800px){
  nav{
    position:fixed; top:0; right:-260px; width:230px; height:100vh;
    flex-direction:column; align-items:flex-start; padding:70px 20px 20px;
    background:var(--brown); box-shadow:-8px 0 24px rgba(0,0,0,.26);
    transition:right .28s ease;
  }
  nav.open{right:0}
  .burger{display:flex}
  nav a{margin:4px 0}
}

/* =================== BUTTONS =================== */
.btn-gold,.btn-outline{
  height:var(--cta-h); display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding:0 22px; border-radius:28px; font-weight:700; text-decoration:none;
  transition:transform .05s ease, filter .25s ease, box-shadow .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-grad{background:linear-gradient(180deg,#E8C95A 0%,#D4AF37 58%,#C49A16 100%); color:#4b341f; border:1px solid #C89E1A; box-shadow:0 6px 0 rgba(0,0,0,.18)}
.btn-grad:hover{filter:brightness(1.05)}
.btn-grad:active{transform:translateY(1px);box-shadow:0 5px 0 rgba(0,0,0,.18)}
.btn-outline{border:2px solid #E0BE48; color:#E0BE48; background:transparent}
.btn-outline:hover{background:linear-gradient(180deg,#E8C95A 0%,#D4AF37 60%,#C49A16 100%); color:#4b341f}
.btn-grad-outline{border:2px solid #E0BE48; color:#E0BE48; background:transparent}

/* =================== HERO =================== */
.hero{
  position:relative; isolation:isolate;
  background:url('../images/hero.webp') center/cover no-repeat;
  text-align:center; padding:128px 20px 84px; color:#fff;
}
.hero::before{content:"";position:absolute;inset:0;z-index:0;background:var(--hero-overlay)}
.hero::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(760px 300px at 50% 40%, var(--hero-spot), transparent 68%)}
.hero .container{position:relative;z-index:1}
.hero-card{
  display:inline-block; background:rgba(10,12,16,.32);
  backdrop-filter:saturate(130%) blur(2.2px); -webkit-backdrop-filter:saturate(130%) blur(2.2px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px; padding:24px 20px 20px;
  box-shadow:var(--shadow-lg); max-width:980px;
}
.hero-title{
  font-size:clamp(2.1rem,3.1vw + 1rem,3.3rem);
  line-height:1.18; font-weight:700; margin-bottom:10px; color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.50), 0 1px 0 rgba(0,0,0,.32);
  -webkit-text-stroke:.3px rgba(0,0,0,.18);
}
.hero-underline{display:block;width:clamp(120px,10vw,170px);height:5px;margin:10px auto 12px;border-radius:9999px;background:linear-gradient(90deg,#C49A16 0%,#E8C95A 55%,#C49A16 100%);box-shadow:0 2px 8px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.35)}
.hero p{font-size:clamp(1rem,.6vw + .9rem,1.22rem);margin-bottom:6px;opacity:.98;color:#f7f7f7}
.trust-strip{list-style:none;margin:14px 0 2px;padding:0;display:flex;gap:12px 14px;flex-wrap:wrap;justify-content:center}
.trust-strip li{list-style:none;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);color:#fff;padding:9px 12px;border-radius:9999px;display:flex;align-items:center;gap:8px;box-shadow:0 6px 16px rgba(0,0,0,.16)}
.trust-strip img{width:22px;height:22px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.30))}
@media (max-width:560px){
  .hero{padding:104px 16px 70px}
  .hero-card{padding:18px 14px 16px}
  .hero-underline{height:4px}
}

/* =================== WHY =================== */
.why .why-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px}
.why-card{background:#fff; border:1px solid rgba(0,0,0,.05); border-radius:14px; padding:18px; box-shadow:var(--shadow-sm); text-align:left}
.why-card img{width:42px;height:42px;margin-bottom:10px}
.why-card h3{color:var(--brown);margin-bottom:6px}

/* =================== SERVICES =================== */
.service-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; max-width:1300px; margin:0 auto}
.service-card{
  background:#fff; border-radius:12px; padding:22px; text-align:center;
  box-shadow:var(--shadow-sm); border:1px solid rgba(15,23,42,.05);
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{transform:translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,.12)}
.service-card img{display:block;margin:0 auto 12px;max-width:80px}
.service-card .stars{color:var(--gold); font-size:1.05rem; margin-bottom:8px}
.service-card h3{margin-bottom:8px; color:var(--accent-navy)}
.service-card p{font-size:.97rem; color:#2e2e2e}
.service-card .more{margin-top:10px; font-size:.92rem; color:var(--gold-2); background:none; border:none; cursor:pointer; font-weight:700}
.service-more{max-height:0; overflow:hidden; opacity:0; transition:max-height .35s ease, opacity .3s ease; text-align:left}
.service-card.open .service-more{max-height:460px; opacity:1}
.service-more p{margin:10px 0; font-size:.95rem}

/* =================== STEPS =================== */
.steps .steps-grid{list-style:none; padding-left:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; align-items:start}
.step{background:#fff; border:1px solid rgba(0,0,0,.05); border-radius:14px; padding:18px; box-shadow:var(--shadow-sm)}
.step img{width:46px;height:46px;margin-bottom:10px}
.step h3{color:var(--brown);margin-bottom:6px}

/* =================== TESTIMONIALS =================== */
.testimonial-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; margin-bottom:10px}
.testimonial-card{background:#fff; border-radius:12px; padding:18px; box-shadow:var(--shadow-sm); border:1px solid rgba(15,23,42,.05)}
.testimonial-card blockquote{margin:6px 0 8px; color:#2c2c2c}
.testimonial-card .stars{color:var(--gold); margin-bottom:8px}

/* =================== AREAS =================== */
.areas .areas-list{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:4px}
.areas .areas-list h3{color:var(--brown); margin-bottom:6px}
.areas .areas-list ul{list-style:none; padding:0; margin:0}
.areas .areas-list li{padding:3px 0; color:#3b3b3b}
.areas .areas-note{margin-top:10px; color:#5c4a3a; opacity:.9}

/* =================== CTA row =================== */
.btn-row .btn-gold, .btn-row .btn-outline{min-width:220px}

/* =================== CONTACT (formularz) =================== */
.contact-section{padding:72px 20px;background:radial-gradient(1200px 600px at 50% -10%,rgba(212,175,55,.08),transparent 60%),var(--light)}
.contact-header{text-align:center;margin-bottom:20px}
.contact-header h1{margin-bottom:8px}
.contact-header p{color:#5c4a3a;opacity:.9}
.contact-card{max-width:920px;margin:0 auto;background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.04);padding:28px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.form-field{display:flex;flex-direction:column}
.form-field--full{grid-column:1 / -1}
.form-field label{display:block;font-weight:700;color:var(--brown);margin-bottom:6px}
.field-hint{color:#8a7b6d;font-size:.9rem;margin-top:6px}
.contact-form input,.contact-form textarea{width:100%;background:#fff;border:1.5px solid #e8e2db;border-radius:10px;padding:12px 14px;font:inherit;color:#333;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#9f8f82}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.25);background:#fffdf6}
.contact-form input:invalid,.contact-form textarea:invalid{border-color:#e7b3b3}
.form-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:10px;justify-content:center}
.form-note{margin-top:14px;font-size:.95rem;color:#6b5a4b;text-align:center}
.contact-card a{color:var(--accent-navy);text-decoration:underline}
.contact-card a:hover{color:var(--gold-2)}
.contact-meta{margin-top:22px;padding-top:16px;border-top:1px dashed #eadfce;list-style:none;color:#5b4a3a;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px 16px}
@media (max-width:880px){.form-grid{grid-template-columns:1fr}.contact-meta{grid-template-columns:1fr}}

/* =================== GALLERY & LIGHTBOX =================== */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:20px}
.gallery-item{border-radius:8px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.06);cursor:pointer;transition:transform .3s ease}
.gallery-item img{width:100%;transition:transform .3s ease}
.gallery-item:hover img{transform:scale(1.05)}

.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:1000;align-items:center;justify-content:center;flex-direction:column;padding:20px}
.lightbox.open{display:flex}
.lightbox__img{max-width:92%;max-height:80%;border-radius:8px}
.lightbox__caption{color:#fff;margin-top:10px;font-size:1rem;text-align:center}
.lightbox__close,.lightbox__nav{
  position:absolute;top:18px;right:24px;background:none;border:2px solid #fff;color:#fff;border-radius:9999px;
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:26px;cursor:pointer
}
.lightbox__nav{top:50%;transform:translateY(-50%);right:auto;left:18px}
.lightbox__next{left:auto;right:18px}

/* =================== FOOTER =================== */
footer{background:var(--footer-bg); color:var(--footer-text); text-align:center; padding:24px 20px; font-size:.95rem; margin-top:10px}
footer a{text-decoration:underline}

/* =================== WHATSAPP FAB =================== */
.fab-whatsapp{
  position:fixed; right:18px; bottom:18px; width:54px; height:54px; display:grid; place-items:center;
  background:#25D366; border-radius:50%; box-shadow:0 8px 20px rgba(0,0,0,.22); z-index:999;
  transition:transform .15s ease, box-shadow .2s ease
}
.fab-whatsapp:hover{transform:translateY(-1px); box-shadow:0 12px 24px rgba(0,0,0,.26)}
.fab-whatsapp img{width:26px;height:26px}

/* =================== ANIMACJA – bezpieczny fallback =================== */
.fade-in{opacity:1; transform:none}
.fade-in.animate{opacity:0; transform:translateY(20px); transition:opacity .8s ease, transform .8s ease}
.fade-in.animate.show{opacity:1; transform:translateY(0)}
body.no-scroll{overflow:hidden}

/* =================== RESPONSIVE =================== */
@media (max-width:880px){.service-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
@media (max-width:600px){
  .section-head{margin:28px auto 14px}
  .btn-row .btn-gold, .btn-row .btn-outline{min-width:unset; width:100%}
}
@media (prefers-reduced-motion: reduce){
  .fade-in.animate{transition:none}
}
/* Jednolity styl nagłówków sekcji */
.section-head {
  text-align: center;
  margin: 0 auto 50px auto;
  padding: 40px 20px;
  max-width: 960px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.section-head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem; /* ~36px */
  font-weight: 700;
  color: #5a3518;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f0d879, #d4af37);
  border-radius: 2px;
  margin: 12px auto 0 auto;
}

.section-head p {
  font-size: 1.05rem;
  color: #433f3f;
  margin-top: 6px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-head h2 {
    font-size: 1.5rem; /* ~24px mobile */
  }
  .section-head {
    padding: 30px 15px;
  }
}
/* Uniwersalny odstęp nad głównymi nagłówkami na podstronach */
.page-about .section-head,
.page-services .section-head,
.page-opinions .section-head,
.page-gallery .section-head,
.page-contact .section-head {
  margin-top: 30px;   /* odstęp od góry */
  margin-bottom: 20px; /* równowaga pod spodem */
}
.reviews-btn-wrap {
  display: flex;
  justify-content: center; /* wyśrodkowanie w poziomie */
  margin-top: 30px;
}

.reviews-btn-wrap .btn-gold {
  margin: 0; /* usuwamy marginesy które przesuwały */
}
/* Kotwice sekcji – uwzględnij sticky header */
section[id] {
  scroll-margin-top: 120px;   /* dopasuj: 100–140px w zależności od wysokości nagłówka */
}
