/* =========================================================
   WASTIC s.r.o. – styles.css
   Uprataná verzia CSS
   =========================================================

   Používané obrázky:
   - ../img/hlavny_obrazok.png
   - ../img/dodavka.svg
   - ../img/kvapka_servis.png
   - ../img/strom.png
   - ../img/wastic_voda.png

   Štruktúra:
   01. Premenné
   02. Základ stránky
   03. Hlavička / menu
   04. Hero sekcia
   05. Dekoratívne panely a symboly
   06. Služby
   07. Riešenia pre obce
   08. Prečo Wastic
   09. Referencie
   10. O firme
   11. Kontakt
   12. Footer
   13. Tablet
   14. Mobil
   ========================================================= */

/* =========================================================
   01. Premenné
   ========================================================= */
:root {
  --ink: #2c4043;
  --ink-dark: #193337;
  --blue: #0097dc;
  --blue-section: #009de7;
  --coral: #f04e36;
  --green: #4dba6d;
  --line: #d9e2e5;
  --paper: #ffffff;
  --max: 1240px;
  --mono: "Almarena Mono", "IBM Plex Mono", "Courier New", monospace;
  --sans: Inter, Arial, Helvetica, sans-serif;
}

/* =========================================================
   02. Základ stránky
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.section-frame {
  position: relative;
}

/* =========================================================
   03. Hlavička / logo / hlavné menu
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 86px;
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-weight: 800;
  font-size: 15px;
}

.main-nav a {
  padding: 31px 0 27px;
  border-bottom: 4px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  border-color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 7px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
  margin: 6px 0;
}

/* =========================================================
   04. Hero sekcia
   ========================================================= */
.hero {
  padding: 0;
  border-bottom: 1px solid #eef2f3;
}

.hero .container {
  width: min(var(--max), calc(100% - 56px));
  min-height: 400px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  align-items: stretch;
}

.hero-inner {
  display: contents;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  padding: 42px 44px 42px 0;
  max-width: 520px;
  transform: none;
}

.eyebrow {
  display: none;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(34px, 3.45vw, 52px);
  line-height: 1.06;
  margin: 0 0 24px;
  letter-spacing: -0.045em;
  color: var(--ink-dark);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.45;
  max-width: 430px;
  margin: 0 0 30px;
  color: #263e42;
}

.hero-actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.btn {
  height: 48px;
  min-width: 180px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-weight: 900;
  border: 2px solid var(--blue);
  font-size: 15px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 151, 220, 0.16);
}

.hero-media {
  width: 100%;
  height: 400px;
  align-self: stretch;
  display: block;
  margin: 0;
  transform: translateX(-15px);
  border-left: 1px solid #dfe7e9;
  border-right: 1px solid #dfe7e9;
  background-image: url("../img/hlavny_obrazok.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #fff;
  overflow: hidden;
}

.hero-media .plant-illustration,
.hero-media .side-totem-right,
.hero-media .sky-orb,
.hero-media .tank-base,
.hero-media .tank-water,
.hero-media .tank-ring,
.hero-media .tank-bridge,
.hero-media .tank-arm,
.hero-media .tank-small,
.hero-media .building {
  display: none !important;
}

/* =========================================================
   05. Dekoratívne panely a symboly
   ========================================================= */
.side-totem-left {
  display: none !important;
}

.side-totem {
  width: 106px;
}

.totem-cell {
  height: 111px;
  border: 1px solid #aebcc0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.totem-cell.waves:before,
.totem-cell.waves:after,
.reference-waves:before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 27px;
  height: 42px;
  background: repeating-radial-gradient(
    ellipse at center top,
    transparent 0 24px,
    #9fb2b7 25px 27px,
    transparent 28px 49px
  );
  opacity: 0.85;
}

.totem-cell.waves.blue {
  background: linear-gradient(to bottom, #fff 0 53%, var(--blue) 53%);
}

.totem-cell.dots {
  background-color: var(--blue);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .78) 0 7px, transparent 7px);
  background-size: 32px 32px;
}

.totem-cell.coral span,
.mini-symbol.coral-mark:before {
  position: absolute;
  content: "";
  width: 54px;
  height: 40px;
  background: var(--coral);
  left: 21px;
  top: 36px;
  clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%);
}

.totem-cell.coral span:after {
  content: "";
  position: absolute;
  left: 24px;
  top: 12px;
  width: 13px;
  height: 16px;
  background: #fff;
  border-radius: 0 0 9px 9px;
}

.icon-droplet:before,
.reference-drop:before,
.contact-watermark:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 76px;
  border: 8px solid var(--blue);
  border-radius: 55% 55% 65% 65%;
  transform: translate(-50%, -45%) rotate(45deg);
  border-left-color: transparent;
  border-top-color: var(--blue);
}

.icon-w img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  transform: translate(-50%, -50%);
}

/* =========================================================
   06. Služby
   ========================================================= */
.services,
#sluzby {
  background: var(--blue-section);
  padding: 56px 0;
  scroll-margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 30px;
}

.service-card {
  min-height: 132px;
  background: #fff;
  border: 1px solid #edf1f2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 72px 1fr 22px;
  gap: 18px;
  align-items: start;
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.service-card h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 3px 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: #4b5f62;
}

.service-card > a {
  align-self: end;
  font-size: 27px;
  color: var(--blue);
}

.service-icon {
  width: 54px;
  height: 54px;
  position: relative;
  color: var(--blue);
}

.plan-icon {
  border: 3px solid var(--blue);
}

.plan-icon:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #8fd7f5;
}

.plan-icon:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 24px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  left: 18px;
  top: 12px;
}

.wrench-icon:before {
  content: "";
  position: absolute;
  width: 43px;
  height: 13px;
  background: var(--blue);
  border-radius: 9px;
  transform: rotate(-45deg);
  left: 7px;
  top: 25px;
}

.wrench-icon:after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 8px solid var(--blue);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  left: 18px;
  top: 0;
  transform: rotate(-45deg);
}

.refresh-icon:before {
  content: "↻";
  position: absolute;
  font-size: 58px;
  line-height: 1;
  color: var(--blue);
  left: 0;
  top: -12px;
  font-weight: 900;
}

.gear-icon:before {
  content: "⚙";
  position: absolute;
  font-size: 57px;
  line-height: 1;
  color: var(--blue);
  left: 0;
  top: -6px;
}

.service-card .truck-icon,
.service-card .droplet-icon {
  width: 54px !important;
  height: 54px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

.service-card .truck-icon {
  background-image: url("../img/dodavka.svg") !important;
}

.service-card .droplet-icon {
  background-image: url("../img/kvapka_servis.png") !important;
}

.service-card .truck-icon::before,
.service-card .truck-icon::after,
.service-card .droplet-icon::before,
.service-card .droplet-icon::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   07. Riešenia pre obce
   ========================================================= */
#obce {
  scroll-margin-top: 70px;
}

.municipal {
  background: radial-gradient(circle at 72% 0, rgba(0, 151, 220, .09), transparent 28%), linear-gradient(135deg, #172d30, #2c4043);
  color: #fff;
  padding: 66px 0;
}

.municipal-grid {
  display: grid;
  grid-template-columns: 1fr 210px 1.28fr;
  gap: 48px;
  align-items: center;
}

.municipal h2,
.section-title h2,
.about h2,
.references h2,
.contact h2 {
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 0;
  color: inherit;
}

.municipal h2 {
  font-size: 47px;
}

.municipal h2:after,
.section-title h2:after,
.about h2:after,
.contact h2:after {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--blue);
  margin-top: 18px;
}

.municipal p {
  max-width: 390px;
  color: #dce8ea;
  margin: 22px 0 28px;
}

.municipal-symbols {
  height: 236px;
  position: relative;
}

.vertical-pattern {
  position: absolute;
  left: 43px;
  top: 0;
  width: 82px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(to bottom, transparent 0 35%, var(--blue) 35% 100%);
}

.vertical-pattern:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 60px;
  background: repeating-radial-gradient(ellipse at center top, transparent 0 18px, rgba(255,255,255,.38) 19px 21px, transparent 22px 36px);
}

.vertical-pattern:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 20px;
  top: 86px;
  background-image: radial-gradient(circle, #132b2d 0 8px, transparent 8px);
  background-size: 28px 28px;
}

.mini-symbol {
  position: absolute;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, .2);
  bottom: 0;
}

.mini-symbol.tree {
  left: 0;
}

.mini-symbol.tree:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 40px solid var(--green);
}

.mini-symbol.coral-mark {
  left: 74px;
}

.municipal-panel {
  border: 1px solid rgba(255, 255, 255, .26);
}

.panel-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong {
  display: block;
  font-size: 18px;
}

.panel-row p {
  margin: 3px 0 0;
  color: #d1dee1;
}

.line-icon {
  width: 48px;
  height: 48px;
  position: relative;
}

.line-drop {
  width: 52px;
  height: 52px;
  background-image: url("../img/strom.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.line-drop::before,
.line-drop::after {
  display: none !important;
  content: none !important;
}

.line-cylinder:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 34px;
  height: 13px;
  border: 4px solid var(--blue);
  border-radius: 50%;
}

.line-cylinder:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  width: 34px;
  height: 22px;
  border-left: 4px solid var(--blue);
  border-right: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  border-radius: 0 0 50% 50%;
}

.line-user:before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 4px solid var(--blue);
  border-radius: 50%;
}

.line-user:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 26px;
  width: 35px;
  height: 17px;
  border: 4px solid var(--blue);
  border-radius: 50% 50% 0 0;
  border-bottom: 0;
}

/* =========================================================
   08. Prečo Wastic
   ========================================================= */
.why {
  padding: 50px 0 110px;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  border-top: 1px solid #eef3f4;
  border-bottom: 1px solid #eef3f4;
}

.why-grid > * {
  padding: 26px 28px;
}

.why-grid article {
  border-left: 1px solid #e2e9eb;
}

.why-grid h2 {
  font-size: 36px;
}

.why h3 {
  margin: 10px 0 8px;
  font-size: 16px;
}

.why p {
  margin: 0;
  color: #495e62;
  font-size: 14px;
}

.value-icon {
  display: block;
  width: 48px;
  height: 48px;
  position: relative;
  color: var(--blue);
}

.shield:before { content: "◇"; font-size: 51px; color: var(--blue); line-height: 1; }
.award:before { content: "◎"; font-size: 54px; color: var(--blue); line-height: .9; }
.chart:before { content: "▥"; font-size: 50px; color: var(--blue); line-height: 1; }
.support:before { content: "☏"; font-size: 52px; color: var(--blue); line-height: 1; }

/* =========================================================
   09. Referencie
   ========================================================= */
.references {
  background: #eaf7ff;
  padding: 24px 0;
}

.references-inner {
  display: grid;
  grid-template-columns: 90px 1fr 300px;
  align-items: center;
  gap: 24px;
}

.reference-drop {
  height: 72px;
  position: relative;
}

.reference-drop:before {
  width: 47px;
  height: 64px;
  border-width: 3px;
  border-left-color: transparent;
  opacity: .55;
}

.references h2 {
  font-size: 30px;
}

.references p {
  margin: 2px 0 0;
  color: #42585c;
}

.reference-waves {
  height: 72px;
  position: relative;
  overflow: hidden;
}

.reference-waves:before {
  top: 22px;
  height: 54px;
  opacity: .5;
  background: repeating-radial-gradient(ellipse at center top, transparent 0 29px, var(--blue) 30px 32px, transparent 33px 58px);
}

/* =========================================================
   10. O firme
   ========================================================= */
.about {
  padding: 48px 0 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
}

.about-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-image: url("../img/wastic_voda.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-image > img,
.about-image span,
.about-image span img {
  display: none !important;
}

.about h2 {
  font-size: 36px;
}

.about p {
  color: #263e42;
  max-width: 650px;
  font-size: 15px;
}

/* =========================================================
   11. Kontakt
   ========================================================= */
.contact {
  padding: 0 0 42px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.contact h2 {
  font-size: 36px;
}

.contact-title p {
  margin: 24px 0 0;
  color: #445a5e;
}

.contact-card {
  background: linear-gradient(135deg, #20383b, #2c4043);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr 110px;
  gap: 20px;
  min-height: 158px;
  padding: 28px 34px;
  position: relative;
  overflow: hidden;
}

.contact-col + .contact-col {
  border-left: 1px solid rgba(255, 255, 255, .42);
  padding-left: 40px;
}

.contact-card p {
  margin: 0 0 16px;
  position: relative;
  padding-left: 42px;
}

.contact-card a {
  color: #fff;
}

.contact-icon {
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.contact-icon:before {
  position: absolute;
  font-size: 25px;
  color: var(--blue);
  line-height: 1;
}

.pin:before { content: "⌖"; }
.building:before { content: "▤"; }
.person:before { content: "♙"; }
.phone:before { content: "☎"; }
.mail:before { content: "✉"; }

.contact-watermark {
  position: absolute;
  right: 34px;
  top: 36px;
  width: 85px;
  height: 110px;
  opacity: .22;
}

.contact-watermark:before {
  width: 72px;
  height: 96px;
  border-color: #fff;
  border-left-color: transparent;
  border-width: 2px;
}

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer {
  background: linear-gradient(135deg, #1d3336, #2c4043);
  color: #fff;
  padding: 32px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 38px;
  align-items: center;
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  font-size: 13px;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: #d7e2e5;
  font-size: 13px;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 18px;
}

.footer-bottom i {
  width: 1px;
  background: rgba(255, 255, 255, .4);
}

/* =========================================================
   13. Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav { gap: 22px; }

  .hero .container {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .hero-copy {
    min-height: auto;
    padding: 0;
    max-width: 680px;
  }

  .hero-media {
    height: auto;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    border: 1px solid #cbd8dc;
    transform: none;
  }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .municipal-grid { grid-template-columns: 1fr; }
  .municipal-symbols { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid .section-title { grid-column: 1 / -1; }
  .references-inner { grid-template-columns: 70px 1fr; }
  .reference-waves { display: none; }
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr 1fr; }
  .contact-watermark { display: none; }
}

/* =========================================================
   14. Mobil
   ========================================================= */
@media (max-width: 760px) {
  .container,
  .header-inner {
    width: min(100% - 32px, var(--max));
  }

  .header-inner { height: 78px; }
  .brand-logo { height: 40px; }
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 0; }

  .hero .container {
    width: min(100% - 32px, var(--max));
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }

  .hero-media {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 56px 1fr 22px; padding: 22px; }

  .municipal { padding: 46px 0; }
  .municipal h2 { font-size: 36px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-grid article { border-left: 0; border-top: 1px solid #e2e9eb; }

  .references-inner { grid-template-columns: 1fr; }
  .reference-drop { display: none; }

  .contact-card { grid-template-columns: 1fr; }
  .contact-col + .contact-col {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .28);
    padding-left: 0;
    padding-top: 22px;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  .hero-actions { gap: 14px; }
  .btn { width: 100%; justify-content: center; }
  .about-image { height: 180px; }
}
