.contact-page {
  background: #f5f6f3;
  color: #171a1d;
}

/* ================= HERO ================= */

.contact-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.56) 45%,
      rgba(0, 0, 0, 0.34) 100%
    ),
    url("/podstrani/slike/DSC_8857.jpg");
  background-size: cover;
  background-position: center;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  width: min(90%, 1380px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.contact-hero-text {
  max-width: 640px;
}

.contact-hero .section-eyebrow {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.05;
  font-weight: 500;
  color: white;
  margin-top: 24px;
}

.contact-hero h1 span {
  color: #0a5c38;
}

.contact-hero-text p:last-child {
  max-width: 560px;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.contact-hero-card {
  flex-shrink: 0;
  width: 380px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: white;
}

.contact-hero-card div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-hero-card div:last-child {
  border-bottom: 0;
}

.contact-hero-card small {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.contact-hero-card strong {
  font-size: 18px;
  font-weight: 600;
  color: white;
}


/* ================= CONTACT CARDS ================= */

.contact-cards {
  width: min(88%, 1380px);
  margin: 0 auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 42px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.1);
}

.contact-card i {
  display: inline-flex;
  margin-bottom: 28px;
  font-size: 34px;
  color: #0a5c38;
}

.contact-card h3 {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  color: #0a5c38;
}

.contact-card p {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.58);
}

.contact-card a {
  color: #0a5c38;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}


/* ================= LOCATION ================= */

.contact-location {
  width: min(88%, 1380px);
  margin: 0 auto;
  padding: 40px 0 130px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.location-image {
  height: 620px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-content .section-eyebrow {
  margin-bottom: 18px;
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.location-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 4.6vw, 76px);
  line-height: 1.04;
  font-weight: 500;
  margin-bottom: 34px;
  color: #171a1d;
}

.location-content h2 span {
  color: #0a5c38;
}

.location-content p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.62);
}

.contact-btn {
  display: inline-flex;
  margin-top: 42px;
  padding: 18px 34px;
  background: #0a5c38;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  transition: 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: #0f7348;
}


/* ================= HOURS + FORM ================= */

.contact-hours-form {
  padding: 120px 6%;
  background: #111;
  color: white;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.contact-hours,
.contact-form {
  padding: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.contact-hours .section-eyebrow {
  color: #7fb08a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.contact-form .section-eyebrow {
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.contact-hours h2,
.contact-form h2 {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 500;
  margin-bottom: 28px;
  color: white;
}

.contact-hours h2 {
  margin-bottom: 8px;
}

.hours-subtitle {
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hours-line {
  width: 70px;
  height: 3px;
  background: #7fb08a;
  margin-bottom: 30px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hours-row span {
  color: rgba(255, 255, 255, 0.68);
}

.hours-row strong {
  color: white;
}

.form-message {
  margin-bottom: 20px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid;
}

.form-message-success {
  background: rgba(10, 92, 56, 0.14);
  border-color: #7fb08a;
  color: #d3ecdd;
}

.form-message-error {
  background: rgba(196, 55, 45, 0.14);
  border-color: #e5837a;
  color: #f7d4d0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0a5c38;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.contact-form button {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  border: 0;
  background: #063f28;
  color: white;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #0d5738;
  transform: translateY(-2px);
}

.contact-card a:focus-visible,
.contact-btn:focus-visible {
  outline: 2px solid #7fb08a;
  outline-offset: 3px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid #0a5c38;
  outline-offset: 3px;
}


/* ================= ODZIVNOST (LAPTOP + MOBILNI) ================= */

/* Laptop / manjši prenosnik: 3 kartice postanejo 2, preden se pri 1000px zložijo v 1 */
@media (max-width: 1180px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  /* Besedilo in kartica se zložita v stolpec, zato je vsebina višja -
     brez zgornjega odmika bi se naslov centriral preblizu fiksne navigacije */
  .contact-hero {
    padding: 130px 0 50px;
  }

  .contact-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 46px;
  }

  .contact-hero-text {
    max-width: 100%;
  }

  .contact-hero-card {
    width: 100%;
  }

  .contact-cards,
  .contact-location,
  .contact-hours-form {
    grid-template-columns: 1fr;
  }

  .contact-location {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 86vh;
  }

  .contact-hero-content {
    width: min(calc(100% - 28px), 1380px);
  }

  .contact-hero h1 {
    font-size: 42px;
    margin-top: 16px;
  }

  .contact-hero-text p:last-child {
    font-size: 16px;
  }

  .contact-hero-card {
    padding: 28px;
  }

  .contact-cards,
  .contact-location {
    width: min(calc(100% - 28px), 1380px);
  }

  .contact-cards {
    grid-template-columns: 1fr;
    padding: 80px 0;
  }

  .location-image {
    height: 460px;
  }

  .contact-hours-form {
    padding: 80px 14px;
    gap: 28px;
  }

  .contact-hours,
  .contact-form {
    padding: 28px;
  }

  .contact-card {
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 36px;
  }

  .contact-hero-card {
    padding: 22px;
  }

  .contact-hero-card strong {
    font-size: 16px;
  }

  .contact-hours h2,
  .contact-form h2 {
    font-size: 32px;
  }

  .location-image {
    height: 320px;
  }
}