/* =========================================
   Revitalize! Theme Overrides
   ========================================= */

/* 1. Brand Palette & Typography
   ------------------------------------- */

:root {
    --bs-primary: #9b50e3;
    --bs-primary-rgb: 155, 80, 227;
}

body {
    background: #f9f5ff;
    font-family: "Optima", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Optima", Arial, sans-serif;
}

/* Brand wordmark: Revitalize! in Corsiva-style italic */
.navbar-brand h1 {
    font-family: "Monotype Corsiva", "Corsiva", "Optima", Arial, sans-serif;
    font-style: italic;
    font-weight: 400;
}


/* 2. Top Purple Header Bar
   ------------------------------------- */

.topbar {
    background: #9b50e3;
    padding: 8px 0;
}

/* HEALING HAVEN • REVITALIZE pill in header */
.topbar .lotus-badge {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fdf9ff;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.topbar .lotus-badge .lotus-icon,
.topbar .lotus-badge i {
    color: #fdf9ff;
}

/* Right side: address + phone in one neat line */
.topbar .d-flex.align-items-center.justify-content-end {
    gap: 2.25rem;
    font-size: 0.9rem;
}

.topbar .d-flex.align-items-center.justify-content-end span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.topbar .d-flex.align-items-center.justify-content-end i {
    margin-right: 0.4rem;
}

/* Prevent clipping in that column */
.topbar .col-lg-4 {
    overflow: visible;
}


/* 3. Navbar & Menu
   ------------------------------------- */

/* Bold top menu headings */
.navbar-light .navbar-nav .nav-link {
    font-weight: 700;
}

/* Purple active/hover */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: #9b50e3 !important;
}

/* Services dropdown – better contrast */
.navbar .dropdown-menu {
    background-color: #f9f5ff;
    border: 1px solid rgba(145, 52, 179, 0.18);
}

.navbar .dropdown-menu .dropdown-item {
    color: #3b254d;
    font-family: "Optima", Arial, sans-serif;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item.active {
    background-color: #e8d6ff;
    color: #2b123d;
}


/* 4. Global Purple Theme (buttons, links, accents)
   ------------------------------------- */

/* Primary buttons */
.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    background-color: #9b50e3 !important;
    border-color: #9b50e3 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #873bcc !important;
    border-color: #873bcc !important;
}

/* Light / outline-style buttons */
.btn-light,
.btn-light:focus {
    border-color: #9b50e3 !important;
    color: #9b50e3 !important;
}

.btn-light:hover {
    background-color: rgba(155, 80, 227, 0.12) !important;
    border-color: #9b50e3 !important;
}

/* Standard purple text & icons */
.text-primary,
.fa-check,
.fas.fa-star.text-primary,
.lotus-icon {
    color: #9b50e3 !important;
}

/* Badges and soft pills */
.lotus-badge,
.badge-pill-soft {
    background: rgba(155, 80, 227, 0.08) !important;
    border-color: rgba(155, 80, 227, 0.25) !important;
    color: #5a2a96 !important;
}

/* Borders */
.border-primary {
    border-color: #9b50e3 !important;
}

/* Gallery filter pills */
.nav-pills .nav-link.active {
    background-color: #9b50e3 !important;
    border-color: #9b50e3 !important;
    color: #ffffff !important;
}

.nav-pills .nav-link:hover {
    background-color: rgba(155, 80, 227, 0.15) !important;
}


/* 5. Hero / Carousel
   ------------------------------------- */

.carousel-header .carousel-caption {
    background: radial-gradient(circle at top,
        rgba(255, 255, 255, 0.95),
        rgba(242, 229, 255, 0.96));
    border-radius: 24px;
}

/* Smaller, cleaner arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.75rem;
    height: 1.75rem;
    background-size: 100% 100%;
    background-color: #9b50e3;
    border-radius: 50%;
}


/* 6. Content Cards & Sections
   ------------------------------------- */

.services-item,
.device-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(145, 52, 179, 0.12);
    box-shadow: 0 12px 30px rgba(43, 12, 80, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-item:hover,
.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(43, 12, 80, 0.13);
}

/* Appointment background */
.appointment {
    background: radial-gradient(circle at top left, #f2e7ff, #4b1f6e);
}

.appointment-form {
    background: rgba(21, 5, 36, 0.92);
    border-radius: 24px;
}

.appointment-time {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
}

/* Membership / pricing area */
.pricing {
    background: linear-gradient(135deg, #f9f5ff, #e9ddff);
}

.pricing-content {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(43, 12, 80, 0.1);
}


/* 7. Gallery, Footer, Misc
   ------------------------------------- */

.gallery-img .gallery-overlay {
    background: linear-gradient(180deg,
        rgba(20, 3, 38, 0.15),
        rgba(20, 3, 38, 0.8));
}

/* Footer & copyright area */
.footer {
    background: #1a082a;
}

.copyright {
    background: #12051f;
}

/* Forms – purple focus ring */
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #9b50e3 !important;
    box-shadow: 0 0 0 0.2rem rgba(155, 80, 227, 0.25) !important;
}

/* 4-per-row layout on large screens */
@media (min-width: 992px) {
    .four-per-row .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* Hover effect */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #873bcc !important;   /* slightly darker purple */
    transform: scale(1.05);
}

/* =========================================
   Device Category Grid – Devices Landing
   Icons are the hero
========================================= */

/* Reset any old icon wrapper styling so your PNG shows in its own shape */
.device-category-icon {
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Card around each icon */
.device-category-grid .device-category-card {
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(138, 84, 209, 0.16);
    box-shadow: 0 18px 45px rgba(43, 12, 80, 0.10);
    padding: 2.75rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.device-category-grid .device-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(43, 12, 80, 0.16);
    border-color: rgba(138, 84, 209, 0.45);
}

/* ICON – big and centered */
.device-category-grid .device-category-icon img {
    display: block;
    width: 190px;
    height: 190px;
    max-width: 100%;
    border-radius: 50%;   /* keeps the glassy circle look of your PNGs */
    object-fit: contain;
}

/* Title under each icon */
.device-category-grid h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3b254d;
    margin-bottom: 0;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .device-category-grid .device-category-icon img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 575.98px) {
    .device-category-grid .device-category-icon img {
        width: 120px;
        height: 120px;
    }
}

/* Device category landing page */


.device-category-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(155, 80, 227, 0.15);
    box-shadow: 0 10px 30px rgba(19, 16, 34, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.device-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(19, 16, 34, 0.10);
    border-color: rgba(155, 80, 227, 0.45);
}

.device-category-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #f7ecff, #e3d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.device-category-icon img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}


    /* =========================================
   Device Category Grid Styles (devices.html)
   Icons = main focus
========================================= */

.device-category-grid .device-category-card {
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(138, 84, 209, 0.16);
    box-shadow: 0 18px 45px rgba(43, 12, 80, 0.10);
    padding: 2.75rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.device-category-grid .device-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(43, 12, 80, 0.16);
}

/* ICON – make this the hero */
.device-category-icon {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-category-icon img {
    display: block;
    width: 190px;
    height: 190px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: contain;
}

/* Title under each icon */
.device-category-grid h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .device-category-icon img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 575.98px) {
    .device-category-icon img {
        width: 120px;
        height: 120px;
    }
}
/* =========================================
   FINAL OVERRIDES – DEVICE GRID
   Icons only, no card box
========================================= */

.device-category-grid .device-category-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Icon wrapper */
.device-category-grid .device-category-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0.75rem 0 !important;
}

/* The actual icon image */
.device-category-grid .device-category-icon img {
    display: block !important;
    width: 220px !important;
    height: 220px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;  /* keeps your circular look */
}

/* Just the title under each icon */
.device-category-grid h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3b254d;
    margin: 0;
}

/* Responsive downsizing */
@media (max-width: 991.98px) {
    .device-category-grid .device-category-icon img {
        width: 170px !important;
        height: 170px !important;
    }
}

@media (max-width: 575.98px) {
    .device-category-grid .device-category-icon img {
        width: 140px !important;
        height: 140px !important;
    }
}
/* ========================================= 
   DEVICE GRID – ICONS AS HERO (3 PER ROW) 
========================================= */ 
 
.device-category-grid .device-category-col { 
    padding: 1.5rem 0; 
} 
 
/* Big circular icons */ 
.device-category-icon-img { 
    display: block; 
    margin: 0 auto 0.75rem auto; 
    width: 220px; 
    height: 220px; 
    max-width: 100%; 
    border-radius: 50%; 
    object-fit: contain; 
} 
 
/* Title under each icon */ 
.device-category-title { 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #3b254d; 
    margin: 0; 
} 
 
/* Tablet */ 
@media (max-width: 991.98px) { 
    .device-category-icon-img { 
        width: 180px; 
        height: 180px; 
    } 
} 
 
/* Mobile */ 
@media (max-width: 575.98px) { 
    .device-category-icon-img { 
        width: 140px; 
        height: 140px; 
    }
} 
/* Modal image container */
.rev-info-modal .rev-modal-photos{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 16px 0 20px 0;
}
/* Normalize all modal images visually */
.rev-info-modal .rev-modal-photos img{
  width: 100%;
  height: 160px;           /* visual normalization */
  object-fit: contain;    /* never crop devices */
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: block;
}
.rev-info-modal .rev-modal-photos img:hover{
  transform: scale(1.02);
  transition: transform 0.2s ease;
}
.rev-info-modal .rev-modal-photos:has(img:only-child){
  grid-template-columns: minmax(240px, 420px);
  justify-content: center;
}
/* Device pages: slightly taller images */
.page-devices .rev-info-modal .rev-modal-photos img{
  height: 200px;
}
/* ================================
   HARD MODAL IMAGE CLAMP (GLOBAL)
   Stops any modal image from overflowing
   ================================ */

/* Any image inside your rev-info modals will never exceed the modal width */
.rev-info-modal .modal-body img{
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* If an image is still visually huge, cap its display height */
.rev-info-modal .modal-body img{
  max-height: 220px !important;  /* adjust if you want taller */
  object-fit: contain !important;
}
.rev-info-modal .modal-body{
  overflow-x: hidden;
}
/* ================================
   MODAL IMAGE SYSTEM (SERVICE + DEVICE)
   Supports:
   - .rev-modal-image (single)
   - .rev-modal-photos (1–5)
   ================================ */

/* Safety clamp for ANY image inside modal body */
.rev-info-modal .modal-body img{
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Single-image wrapper */
.rev-info-modal .rev-modal-image{
  margin: 16px 0 20px 0;
  display: flex;
  justify-content: center;
}

.rev-info-modal .rev-modal-image img{
  width: min(420px, 100%);
  max-height: 240px;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Multi-image grid (1–5) */
.rev-info-modal .rev-modal-photos{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 16px 0 20px 0;
}

.rev-info-modal .rev-modal-photos img{
  width: 100%;
  height: 160px;
  max-height: none;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Single image in grid: center it */
.rev-info-modal .rev-modal-photos:has(img:only-child){
  grid-template-columns: minmax(240px, 420px);
  justify-content: center;
}

/* Prevent horizontal blowouts */
.rev-info-modal .modal-body{
  overflow-x: hidden;
}
/* HARD STOP: prevent any modal from side-scrolling */
.rev-info-modal .modal-content,
.rev-info-modal .modal-body{
  overflow-x: hidden !important;
}

/* HARD STOP: clamp all images inside rev modals */
.rev-info-modal img{
  max-width: 100% !important;
  height: auto !important;
}

/* Ensure the photo containers themselves don't overflow */
.rev-info-modal .rev-modal-photos,
.rev-info-modal .rev-modal-image{
  max-width: 100% !important;
}

/* Multi-photo grid only */
.rev-info-modal .rev-modal-photos{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 14px !important;
  margin: 16px 0 20px 0 !important;
}

.rev-info-modal .rev-modal-photos img{
  width: 100% !important;
  height: 160px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  padding: 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
  display: block !important;
}


/* =========================================
   DEVICE/SERVICE CARDS USED ON DEVICE PAGES
   (your HTML uses .rev-info-card, not .device-card)
   ========================================= */

.rev-info-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(145, 52, 179, 0.12);
  box-shadow: 0 12px 30px rgba(43, 12, 80, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rev-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 12, 80, 0.13);
}


.rev-info-body{
  padding: 1.5rem;
}

  .rev-testimonials {
    background: linear-gradient(135deg, rgba(66, 23, 114, 0.92), rgba(22, 10, 44, 0.92));
    position: relative;
    overflow: hidden;
  }
  .rev-testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    min-height: 320px;
    position: relative;
  }
  .rev-avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    background: radial-gradient(circle at 30% 30%, rgba(198, 140, 255, 0.95), rgba(122, 64, 196, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.22);
  }
  .rev-quote-mark {
    position: absolute;
    top: -2px;
    right: 4px;
    opacity: 0.9;
  }
  .rev-stars i { margin-left: 2px; }
  .rev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }
  .rev-tags span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(155, 80, 227, 0.16);
    border: 1px solid rgba(155, 80, 227, 0.28);
  }
   /* Slim top utility bar */
        .device-page-topbar {
            background: #f3e9ff;
            border-bottom: 1px solid rgba(138, 84, 209, 0.25);
        }

        .device-page-topbar .top-links {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.65rem 0;
            font-size: 0.95rem;
        }

        .device-page-topbar a {
            color: #5c3195;
            text-decoration: none;
            font-weight: 600;
        }

        .device-page-topbar a:hover {
            text-decoration: underline;
        }

        /* Simple logo / wordmark strip */
        .device-page-logo-strip {
            background: #ffffff;
            padding: 0.9rem 0 0.6rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        }

        .device-page-logo-strip h1 {
            font-size: 1.9rem;
            margin-bottom: 0;
        }

        .device-page-logo-strip span {
            font-size: 0.9rem;
            color: #6c6c6c;
        }

        /* Category header band */
        .device-category-hero {
            background: linear-gradient(135deg, #f9f5ff, #e2d5ff);
            padding: 2.8rem 0;
            border-bottom: 1px solid rgba(138, 84, 209, 0.18);
        }

        .device-category-hero h2 {
            font-size: 2.2rem;
            margin-bottom: 0.75rem;
        }

        .device-category-hero p.lead {
            font-size: 1.05rem;
            margin-bottom: 0;
            color: #4a3c60;
        }

        .device-category-hero .category-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.35rem 0.9rem;
            border-radius: 999px;
            background: rgba(155, 80, 227, 0.08);
            border: 1px solid rgba(155, 80, 227, 0.25);
            font-size: 0.75rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #5a2a96;
        }

        /* Category icon (top of page) */
        .device-category-hero .category-icon-wrapper img {
            max-width: 140px;
            height: auto;
        }

        /* Device detail cards (modular blocks) */
        .device-detail-card {
            background: #ffffff;
            border-radius: 20px;
            border: 1px solid rgba(138, 84, 209, 0.14);
            box-shadow: 0 10px 32px rgba(43, 12, 80, 0.06);
            padding: 1.75rem 1.75rem;
            margin-bottom: 1.75rem;
        }

        .device-detail-card h3 {
            margin-bottom: 0.25rem;
        }

        .device-detail-tagline {
            font-size: 0.95rem;
            color: #7a6b92;
            margin-bottom: 1rem;
        }

        .device-detail-meta {
            font-size: 0.9rem;
            color: #5a4e72;
        }

        .device-detail-meta strong {
            font-weight: 600;
        }

        .device-detail-img {
            border-radius: 16px;
            overflow: hidden;
            background: #f7f0ff;
        }

        .device-detail-img img {
            width: 100%;
            height: auto;
            display: block;
        }

        .device-detail-badges span {
            display: inline-block;
            margin-right: 0.35rem;
            margin-bottom: 0.35rem;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            background: rgba(155, 80, 227, 0.08);
            color: #5a2a96;
            font-size: 0.8rem;
        }

        .device-detail-actions {
            margin-top: 1rem;
        }

        .device-detail-actions .btn {
            font-size: 0.9rem;
        }

        /* Mobile spacing tweak */
        @media (max-width: 767.98px) {
            .device-category-hero {
                text-align: center;
            }
            .device-category-hero .category-icon-wrapper {
                margin-bottom: 1.5rem;
            }
        }