/* ============================================================
   Müller Construction — farby podľa design manuálu
   modrá #272E68 · červená #E53212 · čierna #000000
   písmo: Josefin Sans (nadpisy) + Inter (text)
   ============================================================ */

:root {
  --blue:        #272E68;
  --blue-dark:   #1c2150;
  --red:         #E53212;
  --red-dark:    #c52a0e;
  --black:       #111114;
  --white:       #ffffff;
  --grey:        #6a6f7d;
  --grey-light:  #f4f5f8;
  --grey-border: #e4e6ec;
  --radius:      14px;
  --container:   1180px;
  --shadow:      0 18px 40px rgba(39, 46, 104, .10);
  --shadow-sm:   0 6px 18px rgba(39, 46, 104, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  color: var(--black);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .eyebrow, .btn, .nav-cta {
  font-family: 'Josefin Sans', sans-serif;
}

h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- spoločné prvky ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* obrázkové placeholdery */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 220px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #eef0f6 0 12px, #e7eaf3 12px 24px);
  border: 2px dashed #c3c8db;
  color: var(--blue);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
}

/* ---------- sekcie ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--grey-light); }
.section--dark { background: var(--blue); color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-sub { color: var(--grey); margin-top: 14px; }
.section--dark .section-sub { color: rgba(255,255,255,.7); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: inline-flex;
  background: rgba(255, 255, 255, .94);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.logo img { height: 38px; transition: height .25s ease; }
/* po scrolle je hlavička biela — chip za logom už netreba */
.site-header.scrolled .logo {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.site-header.scrolled .logo img { height: 34px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 600;
  font-size: .98rem;
  color: #fff;
  transition: color .2s ease;
}
.site-header.scrolled .nav a { color: var(--blue); }
.nav a:hover { color: var(--red); }
.nav .nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 2px;
  background: #fff; transition: .25s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--blue); }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-placeholder {
  width: 100%; height: 100%; min-height: 100vh;
  border: 0; border-radius: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #15193c 100%);
  color: rgba(255,255,255,.4);
  align-items: flex-end;        /* popisok dole, nech sa neprekrýva s textom */
  padding-bottom: 28px;
  font-size: .9rem;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(229,50,18,.22), transparent 60%),
    linear-gradient(90deg, rgba(20,24,55,.85) 0%, rgba(20,24,55,.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero-content .eyebrow { color: #fff; opacity: .85; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--red); }
.hero .lead {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 28px;
  list-style: none;
}
.hero-badges li {
  position: relative;
  font-weight: 600;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: .03em;
  padding-left: 26px;
}
.hero-badges li::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ============ SLUŽBY ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(39,46,104,.08);
  color: var(--blue);
  margin-bottom: 20px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon { background: var(--red); color: #fff; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--grey); font-size: .98rem; }
.service-card--soon { border-style: dashed; }
.service-card .tag {
  position: absolute; top: 20px; right: 20px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(229,50,18,.1);
  padding: 5px 10px; border-radius: 999px;
}

/* ============ O NÁS ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media .img-placeholder { min-height: 380px; height: 100%; }
.about-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.about-text p { color: var(--grey); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 32px; font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 50%; font-size: .8rem; font-weight: 700;
}

/* ============ PREČO MY ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.why-item {
  padding: 36px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--grey-border);
  border-top: 4px solid var(--blue);
}
.why-item:nth-child(2) { border-top-color: var(--red); }
.why-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--grey-border);
  line-height: 1; margin-bottom: 14px;
}
.why-item h3 { font-size: 1.35rem; margin-bottom: 10px; }
.why-item p { color: var(--grey); }

/* ============ REFERENCIE ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item { min-height: 200px; }

/* ============ KONTAKT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.contact-info p { color: rgba(255,255,255,.8); margin-bottom: 30px; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; }
.contact-label {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.contact-list a, .contact-list span:not(.contact-label) { font-size: 1.15rem; }
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: #fff;
  color: var(--black);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--blue);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  background: var(--grey-light);
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.contact-form .btn { margin-top: 6px; width: 100%; }

/* ============ FOOTER ============ */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { font-weight: 500; }
.footer-nav a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom .container { font-size: .85rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 10px 24px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: .22s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { color: var(--blue) !important; padding: 12px 0; border-bottom: 1px solid var(--grey-border); }
  .nav .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0; }
}

@media (max-width: 560px) {
  .services-grid, .why-grid, .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badges { gap: 16px 22px; }
}
