
:root {
  --navy: #0C203D;
  --gold: #B39058;
  --cream: #F4EFE6;
  --card: #EEE6D8;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--cream);
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, h4, .btn, .brand {
  font-family: 'Montserrat', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, 1240px);
  margin: 0 auto;
}

/* TLACIDLA */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 23px;
  border: 2px solid transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #c9a66e;
}

.btn-outline {
  border-color: rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
}

/* NAVIGACIA */

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.brand img {
  height: 46px;
  width: auto;
  max-width: 65px;
  object-fit: contain;
  order: -1;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a,
.nav-phone {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-phone:hover {
  color: var(--gold);
}

.nav-actions .btn {
  white-space: nowrap;
  padding: 13px 17px;
}

/* UVODNA SEKCIA */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(12,32,61,.94) 0%,
      rgba(12,32,61,.85) 45%,
      rgba(12,32,61,.55) 100%
    ),
    url('images/stavba.jpg') center / cover no-repeat;

  transform: scale(1.10);
  animation: heroZoomOut 2s ease-out forwards;
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.10);
  }

  to {
    transform: scale(1);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 64px;
  align-items: center;
  min-height: 690px;
  padding-top: 95px;
  padding-bottom: 95px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(44px,4.8vw,76px);
  line-height: 1.06;
  letter-spacing: -2px;
  font-weight: 900;
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: #e2e5eb;
  max-width: 550px;
  margin-bottom: 30px;
}

.hero-buttons,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* FORMULARE */

.form-card {
  background: var(--cream);
  color: var(--navy);
  padding: 37px 36px;
  border-top: 6px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,.13);
}

.form-card h2 {
  font-size: clamp(23px,2.4vw,32px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
}

.form-card > p {
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d4d0c8;
  border-radius: 0;
  padding: 12px;
  width: 100%;
  min-width: 0;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-card .btn {
  margin-top: 2px;
}

.form-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px !important;
  line-height: 1.5;
  color: #66707b;
  margin: 13px 0 0 !important;
}

/* VACSIA NEKONECNA POHYBLIVA LISTA */

.marquee {
  width: 100%;
  overflow: hidden;
  background: var(--gold);
  color: var(--navy);
  padding: 25px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeInfinite 36s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 42px;
  padding-right: 42px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(23px,2.2vw,32px);
  font-weight: 900;
  letter-spacing: 1.4px;
}

.marquee-star {
  font-size: .85em;
  flex-shrink: 0;
}

@keyframes marqueeInfinite {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* NASE SLUZBY */

.services {
  background: var(--cream);
  padding: 90px 0 105px;
}

.services .container {
  width: 96%;
  max-width: 1800px;
}

/* NADPIS VLAVO, TEXT A TELEFON VPRAVO */

.services-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 45px;
  margin-bottom: 42px;
}

.services-heading h2 {
  font-size: clamp(35px,3.1vw,51px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0;
  flex: 1;
  text-align: left;
}

.services-help {
  max-width: 540px;
  flex: 1;
  font-size: 15px;
  line-height: 1.65;
}

.services-help p {
  margin-bottom: 9px;
}

.services-help strong {
  font-weight: 700;
}

.services-help a {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 23px;
}

.services-help a:hover {
  text-decoration: underline;
}

/* PAT KARIET SLUZIEB */

.services-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 14px;
}

.service-card {
  background: var(--card);
  border: 1px solid #dfd6c9;
  border-radius: 5px;
  padding: 27px 17px;
  min-height: 300px;
  transition: box-shadow .25s ease, background .25s ease;
}

.service-card:hover {
  box-shadow: 0 14px 30px rgba(12,32,61,.1);
}

.service-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: clamp(18px,1.65vw,28px);
  line-height: 1.34;
  font-weight: 900;
  margin-bottom: 23px;
  overflow-wrap: break-word;
}

.service-card p,
.service-card li {
  font-size: 15px;
  line-height: 1.8;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.service-card li {
  display: inline;
  padding: 0;
  margin: 0;
}

.service-card li::before {
  content: none;
}

.service-card li:not(:last-child)::after {
  content: ", ";
}

/* REALIZACIE */

.projects {
  background: var(--navy);
  color: #fff;
  padding: 90px 0 100px;
}

.projects h2,
.contact h2 {
  font-size: clamp(30px,3vw,45px);
  font-weight: 900;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.project-card {
  background: #172d4a;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 17px;
  margin: 0;
  padding: 19px;
}

/* VYZVA NA KONTAKT */

.custom-cta {
  background: #11294a;
  color: white;
  text-align: center;
  padding: 90px 0;
}

.custom-cta h2 {
  font-size: clamp(35px,4vw,60px);
  font-weight: 900;
  margin-bottom: 18px;
}

.custom-cta h2 span {
  color: var(--gold);
}

.custom-cta p {
  font-size: 17px;
  line-height: 1.7;
  color: #dfe3ea;
  margin-bottom: 27px;
}

.custom-cta .cta-actions {
  justify-content: center;
}

/* KONTAKT */

.contact {
  padding: 95px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: start;
}

.contact-info {
  padding-top: 22px;
}

.contact-info p {
  line-height: 1.8;
  font-size: 16px;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact .form-card {
  box-shadow: 0 12px 30px rgba(12,32,61,.08);
}

/* PATICKA */

.footer {
  background: var(--navy);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 35px;
}

.footer h3,
.footer h4 {
  font-weight: 900;
}

.footer h3 {
  font-size: 24px;
}

.footer h4 {
  font-size: 14px;
}

.footer p {
  color: #d4dbe6;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 22px;
  margin-top: 45px;
  color: #b8c2d0;
  font-size: 12px;
}

/* ANIMACIE PRI SCROLLOVANI */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2),
.project-card:nth-child(2) {
  transition-delay: .08s;
}

.service-card:nth-child(3),
.project-card:nth-child(3) {
  transition-delay: .16s;
}

.service-card:nth-child(4),
.project-card:nth-child(4) {
  transition-delay: .24s;
}

.service-card:nth-child(5) {
  transition-delay: .32s;
}

/* TABLETY */

@media (max-width: 1150px) {
  .navbar {
    flex-wrap: wrap;
    padding: 15px 0;
    gap: 15px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-actions {
    gap: 12px;
  }

  .hero-grid {
    gap: 35px;
  }

  .services-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .service-card {
    min-height: 280px;
  }

  .services-heading {
    gap: 25px;
  }
}

/* MENSIE OBRAZOVKY */

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 65px 0;
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(44px,9vw,66px);
  }

  .services-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .services-help {
    max-width: 650px;
  }

  .services-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* MOBILY */

@media (max-width: 540px) {
  .container {
    width: 90%;
  }

  .navbar {
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid {
    padding: 55px 0;
  }

  .hero h1 {
    letter-spacing: -1px;
    font-size: clamp(39px,11vw,55px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .form-card {
    padding: 27px 21px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .marquee {
    padding: 19px 0;
  }

  .marquee-content {
    font-size: 22px;
    gap: 27px;
    padding-right: 27px;
  }

  .services {
    padding: 65px 0;
  }

  .services .container {
    width: 90%;
  }

  .services-heading h2 {
    font-size: 37px;
  }

  .services-help {
    font-size: 14px;
  }

  .services-help a {
    font-size: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    font-size: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 65px 0;
  }
}

/* OBMEDZENIE ANIMACII PODLA NASTAVENIA */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before {
    animation: none;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Otvaracie hodiny pod kontaktom */
.opening-hours {
  margin-top: 25px;
}

.opening-hours h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.opening-hours p {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Vacsie kontaktne udaje */
.contact-info .contact-detail {
  font-size: 20px;
  line-height: 1.7;
}

.contact-info .contact-detail a {
  font-size: inherit;
}

/* Vacsie otvaracie hodiny */
.contact-info .opening-hours {
  margin-top: 30px;
}

.contact-info .opening-hours h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info .opening-hours p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Prisposobenie pre mobil */
@media (max-width: 600px) {
  .contact-info .contact-detail {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .contact-info .opening-hours h3 {
    font-size: 20px;
  }

  .contact-info .opening-hours p {
    font-size: 17px;
  }
}
