/* ============================================================
   URobímto.sk — domáce a remeselnícke služby, Ružomberok a okolie
   Štýl: tmavý, technický vzhľad s tyrkysovým akcentom
   (rovnaká vizuálna DNA ako CHIPMAJSTER.SK)
   ============================================================ */

:root{
  --bg: #f7f9f9;
  --bg-alt: #eef3f2;
  --surface: #ffffff;
  --surface-2: #f2f6f5;
  --border: #dde6e5;
  --text: #0a0a0a;
  --text-dim: #4b5563;
  --text-faint: #8b95a1;
  --accent: #0057ff;
  --accent-dark: #0041cc;
  --accent-soft: rgba(0,87,255,.10);
  --accent-contrast: #ffffff;
  --warn: #b45309;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(15,23,42,.08);
  --maxw: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; cursor: pointer; }
h1,h2,h3,h4{ margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p{ margin: 0 0 1em; color: var(--text-dim); }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section{ padding: 88px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow{
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head h2{ font-size: clamp(26px,3.4vw,38px); }
.section-head p{ font-size: 17px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }
.btn-primary{ background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover{ background: var(--accent-dark); }
.btn-outline{ background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); }
.btn-block{ width: 100%; }
.btn-lg{ padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,249,249,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled{ border-bottom-color: var(--border); background: rgba(247,249,249,.92); }
.site-header .container{ display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand{ display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark{ width: 34px; height: 34px; color: var(--accent); }
.brand small{ display:block; font-weight: 500; font-size: 11px; color: var(--text-faint); letter-spacing: .04em; }

.nav-desktop{ display: flex; align-items: center; gap: 32px; }
.nav-desktop a{ font-size: 15px; font-weight: 600; color: var(--text-dim); transition: color .18s var(--ease); }
.nav-desktop a:hover{ color: var(--text); }

.header-cta{ display: flex; align-items: center; gap: 12px; }
.phone-pill{
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.phone-pill svg{ width: 16px; height: 16px; color: var(--accent); }

.hamburger{
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); align-items: center; justify-content: center;
}
.hamburger svg{ width: 20px; height: 20px; }

.mobile-nav{
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 90; background: var(--bg);
  padding: 24px; overflow-y: auto;
}
.mobile-nav.is-open{ display: block; }
.mobile-nav a{ display: block; padding: 16px 4px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-nav .btn{ margin-top: 24px; }

@media (max-width: 880px){
  .nav-desktop{ display: none; }
  .hamburger{ display: flex; }
  .header-cta .phone-pill span{ display: none; }
}

/* fixed bottom CTA bar on mobile */
.mobile-cta-bar{
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  padding: 10px 16px; gap: 10px;
}
@media (max-width: 640px){
  .mobile-cta-bar{ display: flex; }
  body{ padding-bottom: 74px; }
}
.mobile-cta-bar .btn{ flex: 1; padding: 13px 10px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero{ position: relative; padding: 68px 0 80px; overflow: hidden; }
.hero::before{
  content:""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid{ position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 940px){ .hero-grid{ grid-template-columns: 1fr; } }

.badge-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge{
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-dim);
}
.badge.badge-accent{ border-color: rgba(0,87,255,.35); color: var(--accent); background: var(--accent-soft); }
.badge svg{ width: 15px; height: 15px; }

.hero h1{ font-size: clamp(32px,4.6vw,54px); letter-spacing: -.01em; }
.hero h1 .accent{ color: var(--accent); }
.hero-lead{ font-size: 18px; max-width: 46ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-stats{ display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b{ display: block; font-size: 26px; color: var(--accent); }
.hero-stat span{ font-size: 13px; color: var(--text-faint); }

.hero-visual{
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); aspect-ratio: 2048/768; overflow: hidden;
  display: flex; align-items: center; justify-content: center; align-self: center;
}
.hero-visual img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 940px){ .hero-visual{ aspect-ratio: 16/7; } }

/* ---------- Trust strip ---------- */
.trust-strip{ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-strip .container{ display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; padding: 22px 24px; }
.trust-item{ display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.trust-item svg{ width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- Services ---------- */
.services-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 1000px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .services-grid{ grid-template-columns: 1fr; } }

.service-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease);
  opacity: 0; transform: translateY(18px);
}
.service-card.is-visible{ opacity: 1; transform: translateY(0); }
.service-card:hover{ border-color: rgba(0,87,255,.35); transform: translateY(-3px); }
.service-photo{ display: block; width: 100%; aspect-ratio: 2048/768; object-fit: cover; background: var(--bg-alt); }
.service-photo-placeholder{
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2048/768;
  background: var(--accent-soft);
}
.service-photo-placeholder svg{ width: 40px; height: 40px; color: var(--accent); }
.service-card-body{ padding: 20px 22px 26px; }
.service-icon{
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service-icon svg{ width: 24px; height: 24px; color: var(--accent); }
.service-card h3{ font-size: 17px; }
.service-card ul{ margin: 12px 0 18px; }
.service-card ul li{ font-size: 14px; color: var(--text-dim); padding: 4px 0 4px 18px; position: relative; }
.service-card ul li::before{ content:"—"; position: absolute; left: 0; color: var(--text-faint); }
.service-card .service-link{ font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.service-card .service-link svg{ width: 14px; height: 14px; transition: transform .18s var(--ease); }
.service-card .service-link:hover svg{ transform: translateX(3px); }
.service-note{ margin-top: 28px; font-size: 13.5px; color: var(--text-faint); text-align: center; }

/* ---------- Free assessment banner ---------- */
.assess-banner{
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid rgba(0,87,255,.30); padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 780px){ .assess-banner{ grid-template-columns: 1fr; text-align: center; } }
.assess-banner .assess-icon{ width: 72px; height: 72px; color: var(--accent); flex-shrink: 0; }
.assess-banner h3{ font-size: 24px; margin-bottom: 8px; }
.assess-banner p{ margin: 0; max-width: 52ch; }
@media (max-width: 780px){ .assess-banner p{ margin: 0 auto; } }

/* ---------- Process timeline ---------- */
.timeline{ position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
@media (max-width: 900px){ .timeline{ grid-template-columns: 1fr; } }
.timeline-connector{
  position: absolute; top: 27px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0;
}
.timeline-connector-fill{ position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--accent); transition: width 1.2s var(--ease); }
@media (max-width: 900px){ .timeline-connector{ display: none; } }
.timeline-step{ position: relative; z-index: 1; text-align: left; }
.timeline-num{
  width: 54px; height: 54px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: var(--accent);
  margin-bottom: 16px; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.timeline-step.is-visible .timeline-num{ border-color: var(--accent); background: var(--accent-soft); }
.timeline-step h4{ font-size: 16px; }
.timeline-step p{ font-size: 14px; }

/* ---------- Service area ---------- */
.area-wrap{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px){ .area-wrap{ grid-template-columns: 1fr; } }
.area-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip{
  padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}
.area-map{
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-alt);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.area-map svg{ width: 60%; color: var(--text-faint); }

/* ---------- Reviews (hidden until real content exists) ---------- */
.reviews-section{ display: none; }

/* ---------- FAQ ---------- */
.faq-list{ max-width: 760px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-q{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: none; color: var(--text); text-align: left; padding: 22px 4px; font-size: 16px; font-weight: 700;
}
.faq-q svg{ width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; transition: transform .25s var(--ease); }
.faq-item.is-open .faq-q svg{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner{ padding: 0 4px 22px; font-size: 15px; color: var(--text-dim); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-wrap{ display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
@media (max-width: 940px){ .contact-wrap{ grid-template-columns: 1fr; } }

.contact-info-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; height: fit-content;
}
.contact-info-card h3{ font-size: 19px; }
.contact-row{ display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-row:first-of-type{ border-top: none; }
.contact-row svg{ width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-row a, .contact-row span{ font-size: 15px; font-weight: 600; }
.contact-row small{ display: block; color: var(--text-faint); font-weight: 500; font-size: 12.5px; margin-top: 2px; }

.form-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 16px; }
.field.full{ grid-column: 1 / -1; }
.field label{ display: block; font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font: inherit; font-size: 14.5px; transition: border-color .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--accent); }
.field textarea{ min-height: 110px; resize: vertical; }
.checkbox-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px){ .checkbox-grid{ grid-template-columns: 1fr; } }
@media (max-width: 460px){ .checkbox-grid{ grid-template-columns: 1fr; } }
.checkbox-item{ display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.checkbox-item input{ width: 16px; height: 16px; accent-color: var(--accent); }
.form-foot{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p{ font-size: 12.5px; margin: 0; color: var(--text-faint); }
.hp-field{ position: absolute; left: -9999px; top: -9999px; opacity: 0; }
.form-status{ margin-top: 14px; font-size: 14px; font-weight: 700; display: none; }
.form-status.is-success{ display: block; color: var(--accent); }
.form-status.is-error{ display: block; color: var(--warn); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p{ max-width: 40ch; font-size: 14px; }
.footer-col h4{ font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a, .footer-col li{ display: block; font-size: 14.5px; color: var(--text-dim); padding: 6px 0; }
.footer-col a:hover{ color: var(--accent); }
.footer-legal{
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-faint);
}
.footer-disclaimer{ font-size: 12px; color: var(--text-faint); margin-top: 18px; max-width: 80ch; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Scroll to top ---------- */
.scroll-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.scroll-top.is-visible{ opacity: 1; pointer-events: auto; }
.scroll-top svg{ width: 20px; height: 20px; }
@media (max-width: 640px){ .scroll-top{ bottom: 86px; } }
