/* ==============================================
   FARIZON — Home Page
   assets/css/pages/home.css
   ============================================== */

/* ── ЗМІННІ (успадковуємо з farizon.css) ─────── */
:root {
  --hm-gold:   #dfb66f;
  --hm-dark:   #191919;
  --hm-dark2:  #222222;
  --hm-white:  #ffffff;
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 1 — ВІДЕО HERO
══════════════════════════════════════════════ */
.hm-hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--hm-dark);
}
.hm-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hm-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25,25,25,0.35);
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   ЗАГАЛЬНІ ЕЛЕМЕНТИ
══════════════════════════════════════════════ */
.highlighted_text {
    color: #DFB66F;
    font-size: 38px;
    font-weight: 700;
}

.hm-section-title {
  font-family: 'Roboto Flex', Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.2;
  color: var(--hm-dark);
  margin: 0 0 16px;
}
.hm-section-title--dark { color: #191919; }

.hm-section-subtitle {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0 0 48px;
}

.hm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-dark);
  color: var(--hm-white);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 31px;
  text-decoration: none;
  transition: background .22s, color .22s;
  white-space: nowrap;
}
.hm-btn-primary:hover { background: var(--hm-gold); color: var(--hm-dark); }

.hm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--hm-white);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 31px;
  text-decoration: none;
  transition: background .22s, border-color .22s, color .22s;
  white-space: nowrap;
  margin-top: 16px;
}
.hm-btn-outline:hover {
  background: var(--hm-dark);
  border-color: var(--hm-dark);
  color: var(--hm-white);
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 2 — КАРУСЕЛЬ
══════════════════════════════════════════════ */
.hm-carousel-section {
  background: #ffffff;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hm-carousel-section .hm-section-title {
  color: #191919;
  text-align: center;
  margin-bottom: 8px;
}
.hm-carousel-section .hm-section-subtitle {
  color: rgba(25,25,25,0.6);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Зовнішня обгортка — overflow hidden але padding показує сусідів */
.hm-carousel {
  position: relative;
  overflow: hidden;
}

/* Трек */
.hm-carousel__track {
  display: flex;
  gap: 80px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 0 10%;
  box-sizing: border-box;
}

/* Слайд */
.hm-carousel__slide {
  flex: 0 0 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.35;
  transform: scale(0.96);
  transition: opacity 0.4s, transform 0.4s;
}
.hm-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Зображення */
.hm-carousel__image {
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
}
.hm-carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Текст під слайдом */
.hm-carousel__content {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}
.hm-carousel__text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(25,25,25,0.7);
  text-align: center;
}
.hm-carousel__text p { margin: 0 0 6px; }
.hm-carousel__text p:last-child { margin: 0; }
.hm-carousel__text strong {
  font-weight: 700; color: #191919;
  font-size: 16px; display: block; margin-bottom: 6px;
}

/* Кнопка слайду */
.hm-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #191919;
  border: 1.5px solid rgba(25,25,25,0.4);
  border-radius: 31px; padding: 9px 24px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s;
}
.hm-btn-outline:hover { background: #191919; color: #fff; border-color: #191919; }

/* Кнопки prev/next */
.hm-carousel__btn {
  position: absolute;
  top: 38%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(25,25,25,0.08);
  color: #191919;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background .22s, box-shadow .22s;
}
.hm-carousel__btn:hover { background: rgba(255,255,255,0.97); box-shadow: 0 4px 16px rgba(0,0,0,0.14); }
.hm-carousel__btn--prev { left: 60px; }
.hm-carousel__btn--next { right: 60px; }

/* Dots */
.hm-carousel__dots {
  display: none;
}
.hm-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(25,25,25,0.2); border: none;
  cursor: pointer; padding: 0;
  transition: background .22s, transform .22s;
}
.hm-carousel__dot.is-active { background: #191919; transform: scale(1.35); }

/* ══════════════════════════════════════════════
   СЕКЦІЯ 3 — ЧОМУ FARIZON
   (стилі з about.css — ab-section--why і ab-why-*)
   Зберігаємо сумісність через клас hm-why-section
══════════════════════════════════════════════ */
.hm-why-section {
  /* Успадковує всі стилі ab-section--why з about.css */
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 4 — НАДІЙНІСТЬ
   (стилі з about.css — ab-section--bg-image)
   Додаткові overrides специфічні для home
══════════════════════════════════════════════ */
.hm-rel-section {
  /* Успадковує ab-section--bg-image з about.css */
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 5 — ІННОВАЦІЇ
   (стилі з about.css — ab-section--innov + ab-two-col--bleed-left)
══════════════════════════════════════════════ */
.hm-innov-section {
  /* Успадковує ab-section--innov з about.css */
}

/* ══════════════════════════════════════════════
   СЕКЦІЯ 6 — ФОРМА (Contact Form 7)
══════════════════════════════════════════════ */
.hm-form-section {
  background: #F9F9F9;
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.hm-form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.hm-form-section__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.hm-form-section__subtitle {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hm-dark);
  margin: 0;
}

/* ── Contact Form 7 стилі ─────────────────── */
.hm-form-section .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Рядок з двох полів */
.hm-form-row p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

.wpcf7 form .wpcf7-response-output {
        color: #e57373;
}

/* Лейбл */
.hm-form-section .wpcf7-form label,
.hm-form-section label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--hm-dark);
}

/* Текстові поля */
.hm-form-section .wpcf7-form input[type="text"],
.hm-form-section .wpcf7-form input[type="email"],
.hm-form-section .wpcf7-form input[type="tel"],
.hm-form-section .wpcf7-form input[type="number"],
.hm-form-section .wpcf7-form select,
.hm-form-section .wpcf7-form textarea {
  width: 100%;
    background: rgb(255 255 255);
border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--hm-dark);
  outline: none;
  transition: border-color .22s, background .22s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.hm-form-section .wpcf7-form input:focus,
.hm-form-section .wpcf7-form select:focus,
.hm-form-section .wpcf7-form textarea:focus {
  border-color: var(--hm-gold);
  background: rgba(255,255,255,0.08);
}
.hm-form-section .wpcf7-form input::placeholder,
.hm-form-section .wpcf7-form textarea::placeholder {
  color: var(--hm-dark);
}

/* Select arrow */
.hm-form-section .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.hm-form-section .wpcf7-form select option {
  background: var(--hm-dark2);
  color: var(--hm-white);
}

/* Textarea */
.hm-form-section .wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.hm-form-section .wpcf7-form .wpcf7-checkbox label,
.hm-form-section .wpcf7-form .wpcf7-acceptance label {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--hm-dark);
  cursor: pointer;
  margin-bottom: 30px;
}
.hm-form-section .wpcf7-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 3px;
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  padding: 0;
  cursor: pointer;
  accent-color: var(--hm-gold);
}

/* Submit кнопка */
.hm-form-section .wpcf7-form input[type="submit"],
.hm-form-section .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-dark);
  color: var(--hm-white);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 36px;
  border-radius: 31px;
  border: none;
  cursor: pointer;
  transition: background .22s, color .22s;
  white-space: nowrap;
  width: 100%;
}
.hm-form-section .wpcf7-form input[type="submit"]:hover {
  background: var(--hm-gold);
  color: var(--hm-dark);
}

/* Повідомлення CF7 */
.hm-form-section .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  border: 1px solid;
}
.hm-form-section .wpcf7-mail-sent-ok {
  border-color: #4caf50;
  background: rgba(76,175,80,0.1);
  color: #81c784;
}
.hm-form-section .wpcf7-validation-errors,
.hm-form-section .wpcf7-mail-sent-ng {
  border-color: #f44336;
  background: rgba(244,67,54,0.1);
  color: #e57373;
}
.hm-form-section .wpcf7-not-valid-tip {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #e57373;
  margin-top: 4px;
}
.hm-form-section .wpcf7-form .wpcf7-not-valid {
  border-color: #f44336 !important;
}

.country-list li.country {
    color: var(--hm-dark);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (min-width: 1500px) {
    .hm-carousel__slide {
        flex: 0 0 50%;
    }
}
@media (max-width: 1100px) {
  .hm-carousel__slide { flex: 0 0 80%; }
  .hm-form-section__inner { gap: 48px; }
}

@media (max-width: 768px) {
  .hm-hero { height: 70vh; }
  .hm-carousel__track {gap: 16px;}
  .hm-carousel-section { padding: 60px 0 40px; }
  .hm-carousel__slide { flex: 0 0 88%; }
  .hm-carousel__image { aspect-ratio: 4/3; }
  .hm-carousel__content { padding: 16px 16px 0; }
  .hm-carousel__btn--prev { left: 8px; }
  .hm-carousel__btn--next { right: 8px; }

  .hm-form-section { padding: 64px 0; }
  .hm-form-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hm-form-section__text { position: static; }
  .hm-form-row p { grid-template-columns: 1fr; }
}
