/* ==================================================
   BETHEL PROPERTY CARE
   MAIN WEBSITE STYLES
================================================== */

/* ==================================================
   ROOT VARIABLES
================================================== */
:root {
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --ink: #0b1220;
  --muted: #64748b;
  --light-bg: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --footer-bg: #020617;
}

/* ==================================================
   GLOBAL
================================================== */
* {
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Arial,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
}

p {
  line-height: 1.7;
}

a {
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
}

section {
  position: relative;
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
  min-height: 76px;
}

.navbar-brand {
  color: var(--ink);
  font-size: 1.15rem;
}

.navbar-brand:hover {
  color: var(--brand);
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: #334155;
  font-weight: 600;
  margin-inline: 0.2rem;
}

.nav-link:hover {
  color: var(--brand);
}

.nav-link.active {
  color: var(--brand) !important;
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.5rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #eef5ff;
  color: var(--brand);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--brand);
  color: #ffffff;
}

/* ==================================================
   BUTTONS
================================================== */
.btn {
  border-radius: 0.7rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.8rem 1.4rem;
}

/* ==================================================
   HERO
================================================== */
.hero {
  min-height: 58vh;

  background: radial-gradient(ellipse at 10% 10%, #e9f2ff 0%, #ffffff 60%);

  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero h1 {
  line-height: 1.12;
}

.hero .lead {
  color: #475569;
  max-width: 650px;
}

.hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* ==================================================
   PAGE HERO SECTIONS
================================================== */
section.bg-light:first-of-type {
  background: radial-gradient(
    ellipse at 15% 15%,
    #edf5ff 0%,
    #f8fafc 60%
  ) !important;
}

/* ==================================================
   BADGES
================================================== */
.badge.text-bg-primary {
  background: rgba(13, 110, 253, 0.1) !important;
  color: var(--brand) !important;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==================================================
   CARDS
================================================== */
.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);

  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08) !important;
}

.card-body {
  padding: 1.5rem;
}

/* ==================================================
   BORDER BOXES
================================================== */
.border {
  border-color: var(--border) !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

.shadow-sm {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

/* ==================================================
   BACKGROUNDS
================================================== */
.bg-light {
  background-color: var(--light-bg) !important;
}

/* ==================================================
   LISTS
================================================== */
ul {
  line-height: 1.8;
}

.list-unstyled li {
  line-height: 1.7;
}

/* ==================================================
   SERVICE PAGE ICONS
================================================== */
.fa-2x {
  line-height: 1;
}

/* ==================================================
   QUOTE FORM
================================================== */
#booking-form .form-label {
  font-weight: 600;
  color: var(--ink);
}

.form-control,
.form-select {
  border-radius: 0.7rem;
  border-color: #cbd5e1;
  padding: 0.8rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);

  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==================================================
   GALLERY FILTERS
================================================== */
.filter-btn {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.filter-btn.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* ==================================================
   GALLERY
================================================== */
#gallery-grid img {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

#gallery-grid img:hover {
  opacity: 0.94;
}

#gallery-grid .card:hover img {
  transform: scale(1.015);
}

/* ==================================================
   GALLERY MODAL
================================================== */
#galleryModal .modal-content {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}

#galleryModal .modal-header {
  border-bottom: 1px solid var(--border);
}

#galleryModal img {
  width: 100%;
  max-height: 550px;
  object-fit: contain;
  background: #f8fafc;
}

/* ==================================================
   TESTIMONIALS
================================================== */
.testimonial-card {
  position: relative;

  border-radius: 1rem;

  padding: 1.7rem 1.75rem 1.5rem;

  background: #ffffff;

  border: 1px solid var(--border);

  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.testimonial-quote-icon {
  position: absolute;
  top: 0.5rem;
  left: 1.35rem;

  font-size: 2.5rem;
  line-height: 1;

  color: rgba(148, 163, 184, 0.45);

  pointer-events: none;
}

.testimonial-card p {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  color: var(--ink);
}

/* ==================================================
   RATING
================================================== */
.rating-pill {
  padding: 0.6rem 0.9rem;

  border-radius: 999px;

  background: #0f172a;

  color: #f1f5f9 !important;
}

.rating-pill .stars {
  color: #f8fafc;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.rating-pill .text-muted {
  color: #cbd5e1 !important;
}

/* ==================================================
   FAQ
================================================== */
.accordion {
  --bs-accordion-border-color: var(--border);
}

.accordion-item {
  margin-bottom: 0.75rem;

  border: 1px solid var(--border) !important;

  border-radius: 0.8rem !important;

  overflow: hidden;
}

.accordion-button {
  font-weight: 700;
  color: var(--ink);
  padding: 1.2rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--brand);
  background: #eef5ff;

  box-shadow: inset 0 -1px 0 var(--border);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  line-height: 1.8;
  color: #475569;
}

/* ==================================================
   VIDEO SECTION
================================================== */
.pricing-video-wrapper video {
  width: 100%;
  object-fit: cover;
}

.short-video video {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* ==================================================
   LEGACY PRICING STYLES
   Kept so older elements still display correctly
================================================== */
.pricing-section {
  background: #f8fafc;
}

.pricing-card {
  border-radius: 1rem;

  border: 1px solid rgba(15, 23, 42, 0.06);

  padding: 0.9rem 1rem;

  background: #ffffff;

  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pricing-card h6,
.pricing-card .h6 {
  font-weight: 600;
  color: var(--ink);
}

.price-range {
  font-size: 0.9rem;

  color: #475569;

  display: flex;

  justify-content: space-between;

  gap: 0.5rem;
}

.price-range span {
  font-weight: 600;
  color: var(--brand);
}

/* ==================================================
   CTA SECTIONS
================================================== */
.bg-primary.text-white {
  background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
}

.bg-primary.text-white h1,
.bg-primary.text-white h2,
.bg-primary.text-white h3,
.bg-primary.text-white h4,
.bg-primary.text-white h5,
.bg-primary.text-white h6 {
  color: #ffffff;
}

/* ==================================================
   FOOTER
================================================== */
footer,
.site-footer {
  background: var(--footer-bg) !important;
  color: #e5e7eb;
}

footer h5,
.site-footer h5 {
  color: #ffffff;
}

footer a,
.site-footer a {
  text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.text-footer-muted {
  color: #9ca3af;
}

.footer-cta .btn-outline-light,
.footer-cta .btn-primary {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

/* ==================================================
   FLOATING CALL BUTTON
================================================== */
.call-now-btn {
  position: fixed;

  bottom: 20px;
  right: 20px;

  background: var(--brand);

  color: #ffffff;

  padding: 12px 20px;

  border-radius: 999px;

  font-weight: 600;
  font-size: 16px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  z-index: 9999;

  text-decoration: none;

  transition: all 0.25s ease;
}

.call-now-btn:hover {
  background: var(--brand-dark);
  color: #ffffff;

  transform: translateY(-2px);

  text-decoration: none;
}

/* ==================================================
   OPTIONAL NAV CALL BUTTON
================================================== */
.nav-call-btn {
  border-radius: 12px;

  padding: 8px 18px;

  font-weight: 600;
  font-size: 15px;

  display: flex;
  align-items: center;
  gap: 6px;

  background: var(--brand);

  border: none;

  transition: all 0.25s ease;
}

.nav-call-btn:hover {
  background: var(--brand-dark);

  transform: translateY(-1px);
}

/* ==================================================
   RESPONSIVE — TABLET
================================================== */
@media (max-width: 991.98px) {
  .navbar-nav {
    align-items: stretch;
    padding-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.7rem 0;
  }

  .navbar-nav .btn {
    margin-left: 0 !important;
    margin-top: 0.6rem;
    width: 100%;
  }

  .dropdown-menu {
    box-shadow: none;
    border-radius: 0.6rem;
  }

  .hero {
    min-height: auto;

    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero img {
    max-height: 420px;
  }

  .pricing-section {
    text-align: left;
  }
}

/* ==================================================
   RESPONSIVE — MOBILE
================================================== */
@media (max-width: 767.98px) {
  h1.display-5,
  h1.display-6 {
    font-size: 2.15rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .p-5 {
    padding: 2rem !important;
  }

  .footer-cta {
    text-align: left;
    margin-top: 0.75rem;
  }

  footer .text-md-end {
    text-align: left !important;
  }

  footer .btn {
    margin-bottom: 0.5rem;
  }

  .call-now-btn {
    bottom: 14px;
    right: 14px;

    padding: 10px 16px;

    font-size: 14px;
  }

  #gallery-grid img {
    height: 180px !important;
  }
}

/* ==================================================
   RESPONSIVE — SMALL MOBILE
================================================== */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
    max-width: 220px;
  }

  h1.display-5,
  h1.display-6 {
    font-size: 1.9rem;
  }

  .btn-lg {
    width: 100%;
  }

  .d-flex.gap-3.flex-wrap .btn-lg {
    margin-bottom: 0.3rem;
  }

  .testimonial-card {
    padding: 1.5rem 1.3rem;
  }

  .filter-btn {
    font-size: 0.8rem;
  }
}

/* ==================================================
   ACCESSIBILITY
================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.3);

  outline-offset: 2px;
}
