/* ==========================================================================
   Střechy Malina — stylesheet
   Paleta: červená + tmavě vínová + antracitová šedá (dle loga na bílém podkladu)
   ========================================================================== */

:root{
  --terracotta: #FE0000;
  --terracotta-dark: #932F37;
  --terracotta-light: #FF5B52;
  --charcoal: #343434;
  --charcoal-2: #262626;
  --cream: #FFFFFF;
  --cream-2: #F0F0F0;
  --stone: #5C5C5C;
  --stone-light: #8C8C8C;
  --white: #FFFFFF;
  --line: rgba(52,52,52,.12);
  --shadow-sm: 0 6px 18px -8px rgba(0,0,0,.22);
  --shadow-lg: 0 30px 60px -25px rgba(0,0,0,.4);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1180px;
  --font-head: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-head); line-height: 1.12; margin: 0; font-weight: 700; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
svg{ display:block; }

:focus-visible{ outline: 3px solid var(--terracotta-light); outline-offset: 3px; }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section{ scroll-margin-top: 86px; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before{
  content: "";
  width: 28px; height: 2px;
  background: var(--terracotta);
  display: inline-block;
}

.section-head{
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2{
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-top: .6rem;
}
.section-head p{
  margin-top: 1rem;
  color: var(--stone);
  font-size: 1.05rem;
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head.center .eyebrow{ justify-content: center; }
.section-head.center .eyebrow::before{ display:none; }

.section-pad{ padding-block: clamp(4rem, 9vw, 7rem); }

/* Buttons ---------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary{
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(254,0,0,.65);
}
.btn--primary:hover{ background: var(--terracotta-dark); transform: translateY(-2px); }
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: var(--cream);
}
.btn--ghost:hover{ border-color: var(--cream); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--dark{
  background: var(--charcoal);
  color: var(--cream);
}
.btn--dark:hover{ background: var(--charcoal-2); transform: translateY(-2px); }
.btn--block{ width: 100%; }
.btn[disabled]{ opacity: .6; cursor: progress; transform: none !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: padding .35s ease, box-shadow .35s ease;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header.is-scrolled{
  box-shadow: var(--shadow-lg);
  padding-block: .65rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
}
.brand__logo{ display: block; height: 42px; width: auto; flex-shrink: 0; }
.brand__mark{ flex-shrink: 0; }
.brand small{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.main-nav{ display: flex; min-width: 0; }
.main-nav ul{ display: flex; gap: 1.5rem; flex-wrap: nowrap; }
.main-nav a{
  display: inline-block;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding-block: .3rem;
  transition: color .3s ease;
}
.main-nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--terracotta);
  transition: right .28s ease;
}
.main-nav a:hover, .main-nav a.is-active{ color: var(--terracotta); }
.main-nav a:hover::after, .main-nav a.is-active::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.header-phone{
  display: flex; align-items: center; gap: .5rem;
  white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--charcoal);
}
.header-phone span{ white-space: nowrap; }
.header-phone svg{ color: var(--terracotta); flex-shrink:0; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content: ""; position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--charcoal); transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav-toggle span{ top: 21px; }
.nav-toggle::before{ top: 14px; }
.nav-toggle::after{ top: 28px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open::before{ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after{ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero + roof shatter
   ========================================================================== */
.hero{
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--charcoal);
}
.hero__sticky{
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 76% 18%, rgba(147,47,55,.45), transparent 60%),
    radial-gradient(ellipse 90% 70% at 20% 100%, rgba(254,0,0,.25), transparent 65%),
    linear-gradient(180deg, #3d3d3d 0%, #343434 55%, #1c1c1c 100%);
}
.hero__bg::after{
  content:"";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .06;
}
.hero__content{
  position: relative; z-index: 2;
  height: 100%;
  width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--cream);
  text-align: center;
}
.hero__content .eyebrow{ color: var(--terracotta-light); }
.hero__content .eyebrow::before{ background: var(--terracotta-light); }
.hero__content h1{
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-top: 1rem;
  letter-spacing: -.01em;
}
.hero__content h1 span{ color: var(--terracotta-light); }
.hero__content p{
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.78);
  max-width: 52ch;
}
.hero__ctas{ display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.3rem; }
.hero__badge{
  margin-top: 2.6rem;
  display: inline-flex; align-items: center; gap: 1rem;
  padding: .8rem 1.3rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.05);
}
.hero__badge strong{
  display: inline-flex; align-items: baseline; gap: .3rem;
  font-family: var(--font-head); color: var(--terracotta-light);
}
.hero__badge-num{ font-size: 2.6rem; line-height: 1; font-weight: 700; }
.hero__badge-unit{ font-size: 1.4rem; font-weight: 600; }
.hero__badge > span{ font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.25; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

/* ==========================================================================
   About
   ========================================================================== */
.about{ background: var(--cream); }
.about__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__art{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-lg);
}
.about__art svg, .about__art img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.about__copy p{ color: var(--stone); font-size: 1.05rem; }
.about__copy p + p{ margin-top: 1.1rem; }
.about__features{
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}
.about__features li{
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .96rem; font-weight: 500;
}
.about__features svg{ flex-shrink: 0; margin-top: .15rem; color: var(--terracotta); }

/* ==========================================================================
   Services
   ========================================================================== */
.services{ background: var(--charcoal); color: var(--cream); position: relative; overflow: hidden; }
.services::before{
  content:""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 0%, rgba(254,0,0,.18), transparent 60%);
}
.services .container{ position: relative; }
.services .section-head p{ color: rgba(255,255,255,.65); }
.services .section-head .eyebrow{ color: var(--terracotta-light); }
.services .section-head .eyebrow::before{ background: var(--terracotta-light); }

.service-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.service-card:hover{ background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); transform: translateY(-4px); }
.service-card__icon{
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--terracotta), var(--terracotta-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  box-shadow: 0 12px 26px -10px rgba(254,0,0,.6);
}
.service-card h3{ font-size: 1.3rem; margin-top: 1.3rem; }
.service-card > p{ margin-top: .6rem; color: rgba(255,255,255,.62); font-size: .95rem; }

.service-card__toggle{
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: .5rem;
  background: none; border: none; color: var(--terracotta-light);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  letter-spacing: .03em; padding: 0;
}
.service-card__toggle svg{ transition: transform .3s ease; }
.service-card.is-open .service-card__toggle svg{ transform: rotate(45deg); }

.service-card__list{
  overflow: hidden; max-height: 0;
  transition: max-height .4s ease;
}
.service-card.is-open .service-card__list{ max-height: 260px; }
.service-card__list ul{ padding-top: 1.1rem; display: grid; gap: .6rem; }
.service-card__list li{
  display: flex; align-items: center; gap: .6rem;
  font-size: .92rem; color: rgba(255,255,255,.82);
  padding-block: .35rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.service-card__list li:first-child{ border-top: none; }
.service-card__list li::before{
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta-light); flex-shrink: 0;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process{ background: var(--cream-2); }
.process-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
.process-steps::before{
  content:"";
  position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 10px, transparent 10px 20px);
  opacity: .5;
}
.process-step{ position: relative; text-align: left; }
.process-step__num{
  counter-increment: step;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.process-step h3{ font-size: 1.1rem; margin-top: 1.2rem; }
.process-step p{ margin-top: .5rem; color: var(--stone); font-size: .93rem; }

/* ==========================================================================
   Gallery / slider
   ========================================================================== */
.gallery{ background: var(--cream); }
.gallery-slider{ position: relative; }
.gallery-track-wrap{ overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gallery-track{
  display: flex;
  transition: transform .55s cubic-bezier(.65,.05,.36,1);
}
.gallery-slide{
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/8;
  background: var(--charcoal);
}
.gallery-slide img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-slide__caption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  background: linear-gradient(0deg, rgba(20,22,25,.85), transparent);
  color: var(--cream);
}
.gallery-slide__caption span{
  display:block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-light); margin-bottom:.35rem;
}
.gallery-slide__caption h3{ font-size: clamp(1.1rem, 2.4vw, 1.6rem); }

.gallery-controls{
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.6rem;
}
.gallery-arrows{ display: flex; gap: .8rem; }
.gallery-arrow{
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.gallery-arrow:hover{ background: var(--terracotta); border-color: var(--terracotta); color: var(--white); transform: translateY(-2px); }
.gallery-dots{ display: flex; gap: .55rem; }
.gallery-dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
  border: none; padding: 0;
  transition: background .25s ease, width .25s ease;
}
.gallery-dot.is-active{ background: var(--terracotta); width: 26px; border-radius: 6px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{ background: var(--cream); }
.contact__grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.contact-card{
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.contact-card h3{ font-size: 1.4rem; }
.contact-list{ margin-top: 1.6rem; display: grid; gap: 1.3rem; }
.contact-list li{ display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci{
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--terracotta-light);
}
.contact-list strong{ display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: .2rem; }
.contact-list a, .contact-list span{ font-size: 1.02rem; font-weight: 500; }
.contact-map{
  margin-top: 1.8rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.contact-map iframe{ width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

.contact-form-wrap{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field{ margin-bottom: 1.1rem; }
.field label{ display: block; font-size: .84rem; font-weight: 600; margin-bottom: .45rem; }
.field input, .field select, .field textarea{
  width: 100%;
  padding: .85em 1em;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: inherit; font-size: .96rem; color: var(--charcoal);
  transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--terracotta); background: var(--white);
}
.field textarea{ resize: vertical; min-height: 110px; }
.field-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note{ font-size: .82rem; color: var(--stone-light); margin-top: .9rem; }
.form-status{
  margin-top: 1rem; padding: .85em 1.1em; border-radius: 10px; font-size: .92rem; font-weight: 500; display: none;
}
.form-status.is-visible{ display: block; }
.form-status.is-success{ background: #e6f3ea; color: #276b40; display:block; }
.form-status.is-error{ background: #fbe8e4; color: var(--terracotta-dark); display:block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--charcoal); color: rgba(255,255,255,.7); padding-block: 3.2rem 2rem; position: relative; }
.footer-top{
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand{ color: var(--cream); }
.footer-brand p{ margin-top: 1rem; font-size: .92rem; max-width: 34ch; }
.footer-col h4{ font-family: var(--font-head); font-size: .92rem; color: var(--cream); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul{ display: grid; gap: .65rem; }
.footer-col a{ font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover{ color: var(--terracotta-light); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem;
  padding-top: 1.6rem; font-size: .82rem;
}

.back-to-top{
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--terracotta); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
  border: none;
}
.back-to-top.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover{ background: var(--terracotta-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px){
  .header-phone span{ display: none; }
  .nav-toggle{ display: block; }

  .site-header .container{ position: relative; }
  .main-nav{
    display: block;
    position: fixed; inset: 74px 0 0 0; z-index: 95;
    background: var(--cream);
    padding: 1.5rem var(--gutter) 2rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    overflow-y: auto;
  }
  .main-nav.is-open{ opacity: 1; visibility: visible; transform: none; }
  .main-nav ul{ flex-direction: column; gap: 0; }
  .main-nav a{ display: block; padding-block: .95rem; font-size: 1.05rem; color: var(--charcoal); border-bottom: 1px solid var(--line); }
  .main-nav a::after{ display: none; }
  .header-cta{ display: none; }

  .about__grid{ grid-template-columns: 1fr; }
  .about__art{ order: -1; }
  .service-grid{ grid-template-columns: 1fr 1fr; }
  .process-steps{ grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .process-steps::before{ display: none; }
  .contact__grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .service-grid{ grid-template-columns: 1fr; }
  .process-steps{ grid-template-columns: 1fr; }
  .about__features{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal{ opacity: 1; transform: none; }
}
