/* ==========================================================================
   AP Pro Appliance Service — base styles & component classes
   (Desktop-first. Mobile-specific overrides live in mobile.css)
   ========================================================================== */

:root {
  --color-primary: #bf0f0f;
  --color-primary-dark: #8f0b0b;
  --color-secondary: #3e6e8c;
  --color-dark: #101828;
  --color-light: #f3f8fb;
}

body {
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: "Poppins", sans-serif;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ---------------------------------------------------------------------
   Layout helpers
--------------------------------------------------------------------- */
.container { max-width: 1280px; }

.section-pad { padding-top: 5.5rem; padding-bottom: 5.5rem; }

.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(16,24,40,0.06) 1px, transparent 0);
  background-size: 22px 22px;
}

.hero-gradient {
  background: linear-gradient(120deg, #fdecec 0%, #f3f8fb 55%, #ffffff 100%);
}

/* ---------------------------------------------------------------------
   Hero — diagonal split (photo left, brand-red panel with request form)
--------------------------------------------------------------------- */
.hero-clip {
  clip-path: polygon(0 0, 62% 0, 40% 100%, 0 100%);
}

.hero-form .form-input,
.hero-form textarea.form-input {
  border: none;
  box-shadow: 0 6px 18px -4px rgba(16, 24, 40, 0.25);
}
.hero-form .select2-container .select2-selection--single {
  border: none !important;
  box-shadow: 0 6px 18px -4px rgba(16, 24, 40, 0.25);
}
.hero-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #6b7280;
}
.hero-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary-dark);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.65rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-submit-btn:hover { background: #6e0808; transform: translateY(-1px); }

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -8px rgba(191,15,15,0.55);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(143,11,11,0.6); color: #fff; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-secondary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -8px rgba(62,110,140,0.55);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover { background: #345d77; transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(52,93,119,0.6); color: #fff; }
.btn-secondary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--color-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e5e7eb;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--color-primary-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-white:hover { background: var(--color-dark); color: #fff; }

/* ---------------------------------------------------------------------
   Nav
--------------------------------------------------------------------- */
.nav-link { color: #344055; transition: color 0.2s ease; }
.nav-link:hover { color: var(--color-primary); }

#main-nav.is-scrolled { box-shadow: 0 8px 30px rgba(16,24,40,0.12); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  color: #344055;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover { background: var(--color-light); color: var(--color-primary); }

/* ---------------------------------------------------------------------
   Cards
--------------------------------------------------------------------- */
.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(16,24,40,0.12);
  border: 1px solid #eef1f5;
}

.icon-box {
  position: relative;
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2a8a8; /* primary-200 — darker/more visible than a near-white tint */
  color: var(--color-primary);
  font-size: 1.35rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--color-light);
  color: var(--color-primary-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-pill-secondary { background: #eef4f7; color: var(--color-secondary); }

/* Secondary (steel-blue) icon variant — used to alternate with the red
   icon-box so grids of 4+ items read as a two-tone system, not a wall
   of red. */
.icon-box-secondary { background: #b3c9d6; color: var(--color-secondary); } /* secondary-200 — darker/more visible */
.group:hover .icon-box-secondary,
.icon-box-secondary.is-hover-fill { transition: background-color .2s ease, color .2s ease; }
a.group:hover .icon-box-secondary { background: var(--color-secondary); color: #fff; }

/* ---------------------------------------------------------------------
   Section title
--------------------------------------------------------------------- */
.section-title h2 { line-height: 1.2; }
.section-title .badge-pill { margin-bottom: 0.9rem; }

/* ---------------------------------------------------------------------
   Breadcrumb / page header
--------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, #101828 0%, #14213a 100%);
  position: relative;
  /* No overflow:hidden here on purpose — the ::after pattern below is
     inset:0 and never bleeds outside, and this section hosts Select2/
     Choices dropdowns (booking forms) that must not get clipped. */
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none; /* decorative overlay only — must not block clicks on the form/nav beneath it */
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 24px 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.breadcrumb a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   FAQ accordion
--------------------------------------------------------------------- */
.faq-item { border: 1px solid #eaecf0; border-radius: 1rem; background: #fff; }
.faq-question { cursor: pointer; }
.faq-icon { transition: transform 0.2s ease; }
.faq-item.active { border-color: var(--color-primary); }

/* Footer link columns — collapse into an accordion on mobile, revert to
   plain static columns from sm: up (desktop keeps the old always-open look). */
.footer-accordion.faq-item { background: transparent; border: 0; border-radius: 0; }
.footer-accordion.faq-item.active { border-color: transparent; }
.footer-accordion .faq-icon.rotate-45 { transform: rotate(45deg); }

/* ---------------------------------------------------------------------
   Reveal-on-scroll animation
--------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------
   Stat counters
--------------------------------------------------------------------- */
.stat-number { font-family: "Poppins", sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.75rem 1rem;
  text-align: center;
  box-shadow: 0 10px 30px -12px rgba(16,24,40,0.1);
  border: 1px solid #eef1f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -12px rgba(16,24,40,0.16); }

/* ---------------------------------------------------------------------
   Swiper overrides
--------------------------------------------------------------------- */
.swiper { padding-bottom: 0.25rem; }
.swiper-pagination-bullet { background: #cbd5e1; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--color-primary); width: 22px; border-radius: 999px; transition: width 0.2s ease; }
.swiper-nav-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: #fff; box-shadow: 0 8px 20px -6px rgba(16,24,40,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-dark); cursor: pointer; transition: all 0.2s ease;
}
.swiper-nav-btn:hover { background: var(--color-primary); color: #fff; }
.swiper-nav-btn.swiper-button-disabled { opacity: 0.35; cursor: default; }
.swiper-brands .swiper-slide { display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------------
   Select2 restyle to match Tailwind form fields
--------------------------------------------------------------------- */
.select2-container { width: 100% !important; font-family: "Roboto", sans-serif; }
.select2-container .select2-selection--single {
  height: 3.1rem !important;
  display: flex; align-items: center;
  border-radius: 0.75rem !important;
  border: 1.5px solid #e5e7eb !important;
  background: #fff !important;
  padding: 0 0.5rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--color-dark); line-height: normal; padding-left: 0.5rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 3.1rem; right: 0.6rem; }
.select2-container--open .select2-selection--single { border-color: var(--color-primary) !important; }
.select2-dropdown { border-radius: 0.75rem !important; border-color: #e5e7eb !important; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(16,24,40,0.2); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--color-primary) !important; }
.select2-search--dropdown .select2-search__field { border-radius: 0.5rem !important; border-color: #e5e7eb !important; }

/* Dark hero variant of select2 (used on hero / booking widgets over dark bg) */
.select2-on-dark + .select2-container .select2-selection--single { border-color: rgba(255,255,255,0.25) !important; background: rgba(255,255,255,0.08) !important; }
.select2-on-dark + .select2-container .select2-selection__rendered { color: #fff !important; }

/* ---------------------------------------------------------------------
   Choices.js restyle
--------------------------------------------------------------------- */
.choices { font-family: "Roboto", sans-serif; margin-bottom: 0; }
.choices__inner {
  border-radius: 0.75rem !important;
  border: 1.5px solid #e5e7eb !important;
  background: #fff !important;
  min-height: 3.1rem;
  display: flex; align-items: center;
  padding: 0.4rem 0.9rem !important;
}
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner { border-color: var(--color-primary) !important; }
.choices__list--dropdown, .choices__list[aria-expanded] {
  border-radius: 0.75rem !important; border-color: #e5e7eb !important;
  box-shadow: 0 10px 30px -10px rgba(16,24,40,0.2); overflow: hidden;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted { background: var(--color-primary) !important; color: #fff; }
.choices[data-type*="select-one"] .choices__input { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Flatpickr restyle
--------------------------------------------------------------------- */
.flatpickr-calendar { border-radius: 1rem !important; box-shadow: 0 15px 40px -10px rgba(16,24,40,0.25) !important; overflow: hidden; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--color-primary) !important; border-color: var(--color-primary) !important; }
.flatpickr-day:hover { background: var(--color-light) !important; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month, .flatpickr-weekdays { background: var(--color-light); }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: var(--color-light); }

/* ---------------------------------------------------------------------
   Fancybox restyle
--------------------------------------------------------------------- */
.f-button.is-icon-close { color: #fff; }
.gallery-thumb { position: relative; overflow: hidden; border-radius: 1rem; display: block; cursor: zoom-in; }
.gallery-thumb::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; background: rgba(16,24,40,0.35);
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-thumb:hover::after { opacity: 1; }

/* ---------------------------------------------------------------------
   Toastify tweaks
--------------------------------------------------------------------- */
.toastify { font-family: "Poppins", sans-serif; font-size: 0.875rem; box-shadow: 0 10px 30px -8px rgba(16,24,40,0.35) !important; }

/* ---------------------------------------------------------------------
   Forms
--------------------------------------------------------------------- */
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1.5px solid #e5e7eb;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(191,15,15,0.12); }
.form-input.field-invalid { border-color: #e04343; }
.form-input.field-invalid:focus { box-shadow: 0 0 0 4px rgba(224,67,67,0.12); }
.field-error { display: block; }

/* ---------------------------------------------------------------------
   Pagination component
--------------------------------------------------------------------- */
.pagination a, .pagination span {
  min-width: 2.6rem; height: 2.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.7rem; font-family: "Poppins", sans-serif; font-weight: 600;
  color: var(--color-dark); border: 1.5px solid #e5e7eb; transition: all 0.2s ease;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------------------------------------------------------------------
   Mobile call bar spacing helper (bar itself sized in mobile.css)
--------------------------------------------------------------------- */
.mobile-call-bar { display: none; }
