/* Site-specific fixes layered on top of the theme (styles.css). */

/* Home: service cards — keep long uppercase words (VODOINSTALATERSKE…) whole */
.card-style11 h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 575.98px) {
  .card-style11 h3 {
    font-size: 1.25rem;
  }
}
@media (min-width: 1200px) {
  .card-style11 h3 {
    font-size: 1.15rem;
  }
}

/* Home: gallery — equal tiles regardless of photo orientation */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 575.98px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Mobile: the fixed "POZOVITE NAS" bar must not cover the end of the footer */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }
}

/* =====================================================================
   Design polish
   ===================================================================== */
:root {
  --brand: #063b8b;
  --brand-dark: #001c41;
  --accent: #ecba16;
  --ink: #1d2433;
  --muted: #5b6474;
  --soft: #f4f6fa;
  --line: #e4e8ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 28, 65, 0.08);
}

body {
  color: var(--muted);
}

/* Header logo a bit larger on desktop */
@media (min-width: 992px) {
  .navbar-brand img {
    width: 170px;
  }
}

/* ---------- Hero ---------- */
.banner-heading .title {
  line-height: 1.05;
}
.hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.hero-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
  margin: 0 0 2rem;
  max-width: 640px;
}
.hero-list li {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.hero-list i {
  color: var(--accent);
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.hero-actions,
.service-actions,
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.butn.cta-call,
.butn.cta-call:hover {
  color: var(--brand-dark) !important;
}
.butn.cta-call:hover {
  color: #fff !important;
}
.butn-outline {
  background: transparent !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.butn-outline:before {
  background-color: #fff !important;
}
.butn-outline:hover,
.butn-outline:focus {
  color: var(--brand-dark) !important;
}
@media (max-width: 767.98px) {
  .hero-text {
    font-size: 1rem;
  }
  .hero-list {
    grid-template-columns: 1fr;
    font-size: 0.95rem;
  }
  .hero-actions .butn {
    width: 100%;
  }
}

/* ---------- Service cards (home) ---------- */
.card-style11 {
  border-radius: var(--radius) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-style11:hover {
  transform: translateY(-4px);
}
.card-style11 .card-body {
  border-radius: var(--radius) !important;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(236, 186, 22, 0.15);
  color: var(--brand);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

/* ---------- Shared section bits ---------- */
.home-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
}

/* ---------- Keramičarske usluge: image + numbered list ---------- */
.home-split {
  padding-top: 40px;
}
.home-split__media {
  position: relative;
}
@media (min-width: 992px) {
  .home-split__media {
    position: sticky;
    top: 120px;
  }
}
.home-split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home-split__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-dark);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  line-height: 1.3;
  font-size: 0.95rem;
}
.home-split__badge strong {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 800;
}
.feature-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-item__num {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(236, 186, 22, 0.18);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-item h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.feature-item p {
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.feature-item p:last-child {
  margin-bottom: 0;
}
@media (max-width: 991.98px) {
  .home-split__media img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Process ---------- */
.process-section {
  background: var(--soft);
  position: relative;
}

/* ---------- Vodoinstalaterske usluge: card grid ---------- */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.info-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.info-card p {
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* ---------- Gallery (overrides the earlier block) ---------- */
.gallery-section {
  padding-top: 0;
  padding-bottom: 120px;
}
.gallery-tile {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}
.gallery-tile img {
  border-radius: 0;
  transition: transform 0.4s ease;
}
.gallery-tile:hover img {
  transform: scale(1.05);
}
@media (min-width: 992px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 0 0 100px;
}
.cta-band__inner {
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: 20px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band__inner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(236, 186, 22, 0.12);
  pointer-events: none;
}
.cta-band__text {
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.cta-band__kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
}
.cta-band h2 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.cta-band__actions {
  position: relative;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .cta-band {
    padding-bottom: 70px;
  }
  .cta-band__inner {
    padding: 32px 24px;
  }
  .cta-band h2 {
    font-size: 1.5rem;
  }
  .cta-band__actions,
  .cta-band__actions .butn {
    width: 100%;
  }
}

/* ---------- Service pages ---------- */
.page-title-section h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.service-content__img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-content {
  color: var(--muted);
}
.service-content .h1 {
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.service-content h2:not(.h1) {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.service-content p {
  line-height: 1.8;
}
.service-content ul {
  list-style: none;
  padding: 1.25rem 1.5rem;
  background: var(--soft);
  border-radius: var(--radius);
}
.service-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.4rem 0;
  color: var(--ink);
  font-weight: 600;
}
.service-content ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-actions {
  margin-top: 1.5rem;
}
.sidebar .service-list li a {
  border-radius: 8px;
}
.promo-box {
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .service-content .h1 {
    font-size: 1.7rem;
  }
  .service-actions .butn {
    width: 100%;
  }
}

/* ---------- Contact page ---------- */
.contact-form-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-card .form-control {
  border-radius: 10px;
  min-height: 50px;
}
.contact-info-card {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 40px 36px;
  height: 100%;
}
.contact-info-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  word-break: break-word;
}
a.contact-info-item:hover {
  color: var(--accent);
}
.contact-info-item small {
  display: block;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-info-item__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(236, 186, 22, 0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-info-list {
  margin: 1.5rem 0 0;
}
.contact-info-list li {
  margin: 0.5rem 0;
  color: #fff;
}
.contact-info-list i {
  color: var(--accent);
  margin-right: 0.6rem;
}
@media (max-width: 575.98px) {
  .contact-form-card,
  .contact-info-card {
    padding: 28px 20px;
  }
}

/* ---------- Footer ---------- */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 767.98px) {
  .footer-cta {
    justify-content: flex-start;
  }
}
.process-section .card {
  background: transparent;
}
@media (max-width: 767.98px) {
  .gallery-section {
    padding-bottom: 60px;
  }
  .home-split__badge strong {
    font-size: 1.6rem;
  }
}

/* ---------- 404 page ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--soft); }
.notfound__card { max-width: 520px; width: 100%; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 28px; }
.notfound__brand { display: inline-block; background: var(--brand-dark); border-radius: 10px; padding: 10px 18px; margin-bottom: 22px; }
.notfound__logo { max-height: 48px; width: auto; display: block; }
.notfound__code { font-size: 72px; line-height: 1; font-weight: 800; color: var(--brand); margin: 0 0 8px; }
.notfound__title { font-size: 26px; color: var(--ink); margin-bottom: 12px; }
.notfound__text { color: var(--muted); margin-bottom: 28px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
