/* ===== Petrov HVAC – stylesheet ===== */

:root {
  --blue: #0b5ea8;
  --blue-dark: #083f73;
  --ice: #e8f2fb;
  --orange: #f07c1b;
  --text: #1c2733;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --alt: #f4f7fa;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(11, 45, 80, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--blue); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  transition: background .2s, color .2s;
}
.btn:hover { background: #d96a0f; border-color: #d96a0f; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-small { padding: 7px 16px; font-size: .95rem; }

/* ----- Image slots with placeholder ----- */
.img-slot {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #dde8f3, #dde8f3 12px, #e9f1f9 12px, #e9f1f9 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-label {
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  padding: 10px;
}
.ph-label small { font-weight: 400; opacity: .8; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e3e9ef;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 1.3rem;
}
.logo-slot {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
}
.logo-slot img { object-fit: contain; background: #fff; }
.brand-name strong { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a.btn { color: #fff; }

/* ----- Hero ----- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 70px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: #ffd2ad;
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.lead { font-size: 1.15rem; opacity: .92; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.badges {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badges li {
  background: rgba(255, 255, 255, .14);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .9rem;
}

.hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  border: 4px solid rgba(255, 255, 255, .25);
}

/* ----- Sections ----- */
.section { padding: 70px 0; }
.section-alt { background: var(--alt); }
.section-title {
  font-size: 2rem;
  color: var(--blue-dark);
  margin: 0 0 6px;
}
.section-sub { color: var(--muted); margin: 0 0 36px; }

/* ----- Service cards ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid #e3e9ef;
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card:nth-child(even) { border-top-color: var(--orange); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--ice);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 10px; color: var(--blue-dark); font-size: 1.15rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--text); }
.card li { margin: 3px 0; }

/* ----- Carousel ----- */
.carousel { position: relative; }
.track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.slide {
  flex: 0 0 calc((100% - 32px) / 3);
  margin: 0;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slide .img-slot { aspect-ratio: 4 / 3; }
.slide figcaption { padding: 12px 16px; font-weight: 500; }

.car-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.car-btn:hover { background: var(--blue-dark); }
.car-btn.prev { left: -18px; }
.car-btn.next { right: -18px; }

/* ----- Contact ----- */
.contact { background: var(--ice); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-list li {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
}
.c-label { color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; text-decoration: none; }

/* ----- Footer ----- */
.site-footer {
  background: var(--blue-dark);
  color: #cfe0f0;
  text-align: center;
  padding: 22px 0;
  font-size: .9rem;
}

/* ----- Responsive ----- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 380px; width: 100%; margin: 0 auto; }
  .slide { flex-basis: calc((100% - 16px) / 2); }
  .contact-inner { grid-template-columns: 1fr; gap: 10px; }
  .car-btn.prev { left: 4px; }
  .car-btn.next { right: 4px; }
}

@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0; }
  .section { padding: 52px 0; }
  .slide { flex-basis: 85%; }
  .contact-list li { flex-direction: column; gap: 2px; }
}
