/* ===== Thermont — style.css ===== */

:root {
  --blue: #0B3D91;
  --blue-dark: #082c69;
  --red: #D62828;
  --red-dark: #b31f1f;
  --gray-50: #f6f7f9;
  --gray-100: #eceef1;
  --gray-200: #dfe2e6;
  --gray-400: #9aa2ac;
  --gray-600: #5c6570;
  --gray-800: #2c333b;
  --gray-900: #1b2026;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 61, 145, 0.12);
  --max-width: 1180px;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--gray-600); }

.section {
  padding: 64px 0;
}
.section--tight { padding: 40px 0; }
.section--gray { background: var(--gray-100); }
.section--dark {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.85); }

.section--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246,247,249,0.78) 0%, rgba(236,238,241,0.85) 100%);
  z-index: 0;
}
.section--photo.section--gray::before {
  background: linear-gradient(180deg, rgba(236,238,241,0.80) 0%, rgba(236,238,241,0.87) 100%);
}
.section--photo > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(214,40,40,0.35);
}

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--blue);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(214,40,40,0.25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-inner { max-width: 680px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 60px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ===== Grids / Cards ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,61,145,0.08);
  color: var(--blue);
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.card--accent .icon-badge {
  background: rgba(214,40,40,0.1);
  color: var(--red);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--gray-700, var(--gray-600));
}
.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ===== Steps (process) ===== */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.step-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }

/* ===== Table (cjenovnik) ===== */
.price-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.price-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  padding: 18px 22px 4px;
}
.price-table th, .price-table td {
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.price-table thead th {
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .price-cell {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.price-note {
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  color: var(--gray-700, var(--gray-600));
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.price-note strong { color: var(--gray-900); }

/* ===== CTA band ===== */
.cta-band {
  background: var(--gray-900);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-method:last-child { border-bottom: none; }
.contact-method .icon-badge { margin-bottom: 0; }
.contact-method a, .contact-method span.value {
  display: block;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.05rem;
}
.contact-method .label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--gray-50);
  color: var(--gray-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--gray-400); }
.form-success {
  display: none;
  background: rgba(11,61,145,0.08);
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand img { height: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Nav: Thermont Care highlight ===== */
.main-nav a.care-link {
  color: var(--red);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding-left: 20px;
  margin-left: 8px;
  border-left: 1px solid var(--gray-200);
}
.main-nav a.care-link span {
  display: block;
}
.main-nav a.care-link:hover,
.main-nav a.care-link[aria-current="page"] {
  color: var(--red-dark);
  border-bottom-color: var(--blue);
}

/* ===== Care hero badge ===== */
.care-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  font-size: 1.8rem;
  margin-bottom: 18px;
}

/* ===== Pricing cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.pricing-card--pro {
  border-color: var(--red);
}
.pricing-card__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.pricing-card__dot--basic { background: #2e9e5b; }
.pricing-card__dot--medium { background: var(--blue); }
.pricing-card__dot--pro { background: var(--red); }
.pricing-card h3 { margin-bottom: 4px; }
.pricing-card .tagline {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pricing-card__price .amount {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.pricing-card__price .period {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.pricing-card__yearly {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 22px;
}
.pricing-card .feature-list {
  margin-bottom: 20px;
  flex-grow: 1;
}
.pricing-card .feature-list li {
  font-size: 0.92rem;
}
.pricing-card__note {
  font-size: 0.82rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
  margin-bottom: 20px;
}
.pricing-card .btn { justify-content: center; width: 100%; }

/* ===== Comparison table ===== */
.compare-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.92rem;
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  color: var(--gray-800);
  font-weight: 600;
}
.compare-table thead th {
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.compare-table thead th.col-medium { color: var(--blue); }
.compare-table td.col-medium, .compare-table th.col-medium {
  background: rgba(11,61,145,0.05);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td strong { color: var(--gray-900); }

/* ===== Three-column info blocks (care) ===== */
.info-block h4 {
  color: var(--gray-900);
  margin-bottom: 10px;
}
.info-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--gray-600);
}
.info-block li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform 0.2s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: block; }
  .header-phone span.label-text { display: none; }
  .grid--2, .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 48px 0; }
}
