/* === Design Tokens & Bootstrap Overrides === */

:root {
    /* Color Palette */
    --bs-primary:     #1C153E;   
    --bs-secondary:   #574C8D;   
  
    --bs-info:        #7970AA;

    --bs-light:       #E4DAEF		;   
    --bs-body-bg:     #FFFFFF;   
  
    --bs-dark:        #110C26;  
    --bs-white:       #FFFFFF;

    --bs-success:       #28a745;
    --bs-warning:       #ffc107;
    --bs-danger:        #dc3545;

    /* Typography */
    --bs-body-font-family:    'Inter', sans-serif;
    --bs-headings-font-family: 'Inter', sans-serif;
    --bs-body-font-size:      1.1rem;
    --bs-body-color:          #1A1A1A;

    /* Border Radius */
    --bs-border-radius-sm:   100px;
    --bs-border-radius:       0.5rem;
    --bs-border-radius-lg:    1rem;

    /* Spacing Scale */
    --bs-spacer:         0.5rem;
    --bs-spacer-x:       0.5rem;
    --bs-spacer-y:       0.5rem;

    /* Shadows */
    --bs-box-shadow-sm:  0 0.25rem 0.5rem rgba(0,0,0,0.1);
    --bs-box-shadow:     0 1rem 2rem rgba(0,0,0,0.1);
    --bs-box-shadow-lg:  0 2rem 4rem rgba(0,0,0,0.15);

    /* Icons */
    --bs-card-icon-size: 5rem;
     
}
body {
    overflow-x: hidden;
  }
  
/* === Base === */
body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    scroll-behavior: smooth;
    font-size: var(--bs-body-font-size);
    font-weight: 500;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-headings-font-family);
    font-weight: 700;
    color: var(--bs-primary);
}

h1 { font-size: 4rem; line-height: 1.1; }
h2 { font-size: 3rem; line-height: 1.2; }
h3 { font-size: 2.25rem; line-height: 1.3; }
h4 { font-size: 1.75rem; line-height: 1.4; }
h5 { font-size: 1.5rem; line-height: 1.5; }
h6 { font-size: 1.25rem; line-height: 1.6; }

p {
    margin-bottom: 1.5rem;         
    letter-spacing: 0.02em;        
  }

a {
    color: var(--bs-primary);
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--bs-secondary);
}

.display-2 {
    font-weight: 500 !important;
}

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

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    text-decoration: none;
}

.btn:active {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    text-decoration: none;
}

/* Outline Button Variants */
.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-width: 2px; 
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bs-secondary);
    color: #fff;
    border-color: var(--bs-secondary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bs-secondary);
    color: #fff;
    border-color: var(--bs-secondary);
}
.btn-outline-primary a:hover {
    background-color: var(--bs-secondary);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.btn-outline-info {
    color: var(--bs-info);
    border-color: var(--bs-info);
}
.btn-outline-info:hover, .btn-outline-info:focus {
    background-color: var(--bs-info);
    color:var(--bs-white);
}
.btn-outline-white {
    color: var(--bs-white);
    border-color: var(--bs-white);
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-width: 2px; 
}
.btn-outline-white:hover, .btn-outline-white:focus {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
}
.btn-outline-danger {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}
.btn-outline-danger:hover, .btn-outline-danger:focus {
    background-color: var(--bs-danger);
    color: var(--bs-white);
}

/* Light & Link Button Variants  */
.btn-light {
    color: var(--bs-dark);
    background-color: var(--bs-light);
    border-color: var(--bs-light);
    transition: all 0.2s ease-in-out;
}
.btn-light:hover, .btn-light:focus {
    color: var(--bs-dark);
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    text-decoration: none;
}

.btn-link {
    color: var(--bs-primary);
    background: transparent;
    border: none;
    padding: 0;
    font-weight: 400;
    transition: color 0.2s ease-in-out;
}
.btn-link:hover, .btn-link:focus {
    color: var(--bs-info);
    text-decoration: underline;
}

/* === Button Rounding Utility === */
/* Apply consistent border-radius to all button variants; adjust --bs-border-radius in :root */
.btn-primary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-danger,
.btn-light,
.btn-link {
    border-radius: var(--bs-border-radius) !important;
}

button,
.btn {
    border-radius: var(--bs-border-radius-sm) !important;
    letter-spacing: 0.1em !important;
}

/* Fix active and focus-visible flashes */
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  color: var(--bs-white) !important;
  box-shadow: none !important;
  outline: none !important;
}

.btn-primary:active {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: var(--bs-white);
  }

  .btn-outline-primary:active,
  .btn-outline-primary:focus,
  .btn-outline-primary:focus-visible {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .btn-outline-primary:active {
      background-color: var(--bs-secondary);
      border-color: var(--bs-secondary);
      color: var(--bs-white);
    }
    
  
/* Custom Buttons */
.btn-navbar {
    font-size: var(--bs-body-font-size);
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-width: 2px; 
    letter-spacing: 0.0em !important;
}

.btn-navbar:hover, .btn-navbar:focus {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
}

.navbar-toggler, .navbar-toggler:focus {
    border-width: 0px !important; 
}

/* === Section Padding === */
section {
    padding-top: calc(var(--bs-spacer) * 5);
    padding-bottom: calc(var(--bs-spacer) * 5);
}

/* === Hero Section === */
#hero {
    background-color: var(--bs-body-bg);
    text-align: center;
}

#hero .text-body-secondary{
    color: var(--bs-white) !important;
}

#cursor.blink {
    animation: blink 1s step-start infinite;
  }
  
  #cursor.hidden {
    opacity: 0;
    animation: none;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }  



/* === Card Styling === */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    border-radius: 0.75rem;
}
.card h5 {
    color: var(--bs-primary);
    font-weight: 600;
}


/* === Icons Inside Cards === */
.card-icon {
    font-size: 3rem !important;
  }

/* === Emergency Ribbon === */
#emergencyRibbon {
    z-index: 1055;
    padding: 8px 4px;
    font-size: 0.9rem;
    background-color: var(--bs-info);
    color: var(--bs-white);
    text-align: center;
    max-height: 64px; 
    cursor: pointer; 
    position: relative;
}

#emergencyRibbon:hover {
    background-color:var(--bs-secondary);
  }

/* === Sticky Floating Button === */
.floating-button {
    position: fixed;
    bottom: 1rem;
    right: 0;
    background-color: var(--bs-info);
    color: var(--bs-white);
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius-sm) 0 0 var(--bs-border-radius-sm);
    display: flex;
    align-items: center;
    box-shadow: var(--bs-box-shadow);
    z-index: 1050;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    width: 100%;
    max-width: 430px;
    box-sizing: border-box;
    height: 5rem; 
    overflow: hidden; 
}

@media (max-width: 430px) {
  .floating-button {
    right: 0;                     
    left: auto;                  
    width: calc(100vw - 1rem);    
    max-width: 430px;             
  }
}

.floating-button button {
    background: transparent;
    border: none;
    color: var(--bs-white);
    font-size: 1rem;
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

  
/* Hover state only on desktop */
@media (min-width: 768px) {
    .floating-button:hover {
      background-color: var(--bs-secondary);
    }
  }  

  .floating-button a {
    flex-grow: 0; /* stop it from expanding */
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%; /* prevent overflow */
    display: flex;
    align-items: center;
    color: var(--bs-white);
    text-decoration: none;
}

/* === Hidden Flap Mode === */
.floating-button.hidden-flap {
    transform: translateX(20%); /* icon visibility */
    width: 5rem;              /* flap width */
    padding: 0.5rem;
    border-radius: var(--bs-border-radius-sm) 0 0 var(--bs-border-radius-sm);
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.floating-button.hidden-flap span,
.floating-button.hidden-flap button {
    display: none;
}

/* Hide text, keep icon visible */
.floating-button.hidden-flap span,
.floating-button.hidden-flap button {
    display: none;
}

/* === Icons === */
.icon,
i[class^="bi-"],
.fa {
    color: var(--bs-primary);
    transition: color 0.2s;
}
.icon:hover,
i[class^="bi-"]:hover,
.fa:hover {
    color: var(--bs-info);
}

#services i.bi {
    font-size: 2rem !important; 
    line-height: 1 !important;
  }
  
/* Services */
#services h5.fw-semibold {
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* === Start Cards === */
.bestseller-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--bs-info);
    color: var(--bs-white);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.03em; 
    font-weight: bold;
    border-top-left-radius: 0.6rem;
    border-bottom-right-radius: 0.5rem;
    z-index: 1;
  }  

/* Testimonial Cards */
.testimonials-container {
    scroll-behavior: smooth;
    display: flex;
    overflow: hidden;
  }

  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    transition: opacity 0.3s ease;
  }

  .testimonial-card .card {
    background-color: transparent !important;    
    box-shadow: none !important;   
    border: none;        
    border-radius: 0;              
    padding: 1rem;                 
    height: 100%;                 
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .testimonial-card .card-body {
    padding: 0;
  }

  .testimonial-card p {
    font-size: clamp(1.1rem, 1.2rem + 0.5vw, 1.5rem); /* fluid scaling */
    line-height: 1.4;
    color: var(--bs-body-color);
  }  
  
  .no-bg-card {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2rem;
  }
  

  .testimonials-container.moving .testimonial-card {
    opacity: 0;
  }

  @media (min-width: 1200px) {
    .container {
      max-width: 1320px;
    }
  }

  .row.g-5 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

/* === Responsive & Utilities === */
@media (max-width: 767.98px) {
    #serviceDetails { display: none; }
}

.mt-7 { margin-top: 4.5rem !important; }
.mb-7 { margin-bottom: 4.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.navbar { background-color: var(--bs-light); display: flex; align-items: center; box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075); }
.navbar .navbar-nav { display: flex; align-items: center; }
.navbar .nav-link { color: var(-bs-body-color); padding: 0.5rem 1rem; transition: color 0.2s; }
.navbar .nav-link:hover { color: var(--bs-primary); }
.border { border: 1px solid var(--bs-secondary) !important; }
.border-primary { border-color: var(--bs-primary) !important; }
.border-secondary { border-color: var(--bs-secondary) !important; }
.border-info { border-color: var(--bs-info) !important; }
.border-danger { border-color: var(--bs-danger) !important; }
.border-success { border-color: var(--bs-success) !important; }
.border-2 { border-width: 2px !important; }
.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.text-success { color: var(--bs-success) !important; }
.text-info { color: var(--bs-info) !important; }
.text-warning { color: var(--bs-warning) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-light { color: var(--bs-light) !important; }
.text-dark { color: var(--bs-dark) !important; }
.form-control { border-radius: var(--bs-border-radius-sm); padding: .75rem 1rem; box-shadow: none; border: 1px solid var(--bs-secondary); }


/* === Container Width Overrides === */
.container {
    width: 100%;
    padding-right: var(--bs-spacer);
    padding-left: var(--bs-spacer);
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) {
    .container { max-width: 100%; }
}
@media (min-width: 768px) {
    .container { max-width: 100%; }
}
@media (min-width: 992px) {
    .container { max-width: 100%; }
}
@media (min-width: 1200px) {
    .container { max-width: 100%; }
}
@media (min-width: 1400px) {
    .container { max-width: 100% }
}

/* Custom Spacing Elements */

.navbar-container-custom {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 90rem;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
}

.footer-container-custom {
    width: 100%;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  
    /* Critical additions: */
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  footer {
    overflow-x: hidden;
  }
  

.container-small {
    width: 100%;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.padding-global {
    z-index: 1;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

.container-full-width {
    width: 100%;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
}

.padding-section-xlarge {
    padding-top: 12.25rem;
    padding-bottom: 12.25rem;
}

@media screen and (max-width: 991px) {
    .padding-section-xlarge {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media screen and (max-width: 991px) {
    .padding-bottom {
        padding-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media screen and (max-width: 767px) {
    .padding-section-xlarge {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

@media screen and (max-width: 767px) {
    .padding-bottom {
        padding-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media screen and (max-width: 479px) {
    .padding-bottom {
        padding-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media screen and (max-width: 479px) {
    .padding-section-xlarge {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.padding-section-large {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

@media screen and (max-width: 991px) {
    .padding-section-large {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media screen and (max-width: 767px) {
    .padding-section-large {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

@media screen and (max-width: 479px) {
    .padding-section-large {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}


/* Background Styles */
.hero-deep-purple {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 40% 60%, #3B2E5A, #1C1B33, var(--bs-primary));
    color: var(--bs-white);
  }
  
  .hero-deep-purple .container {
    position: relative;
    z-index: 2;
  }
  
  .hero-deep-purple h1,
  .hero-deep-purple p,
  .hero-deep-purple .text-body-secondary {
    color: var(--bs-white);
  }
  
  .hero-deep-purple a.btn-primary {
    border: 2px solid var(--bs-white);
    background: transparent;
    color: var(--bs-white);
    transition: all 0.3s ease;
  }
  
  .hero-deep-purple a.btn-primary:hover {
    background: var(--bs-white);
    color: var(--bs-primary);
  }
  
  .hero-seam-patch {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    z-index: 2;
  }
  
  .hero-diagonal-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
  }
  
  
  .start-section {
    position: relative;
    background: linear-gradient(135deg, var(--bs-light), var(--bs-white));
    color: var(--bs-dark);
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(
    0 100px,
    100% 0,
    100% calc(100% - 100px),
    0 100%
  );
  }
  
#emergencySupport {
    background-color: var(--bs-info) !important;
    position: relative;
    overflow: hidden;
    --pattern-line-color: var(--bs-light);   /* Custom Pattern Color*/
}

#emergencySupport .injected-pattern {
    color: var(--pattern-line-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
  }
  
  #emergencySupport .padding-global {
    position: relative;
    z-index: 1;
  }

  #emergencySupport a.btn-outline-white:hover {
    background: var(--bs-white);
    color: var(--bs-primary);
  }

 #schedule {
    background: linear-gradient(135deg, var(--bs-light), var(--bs-white));
 }

 #schedule h2 {
  hyphens: auto;
}
  
/* Reusable Header   */
/* in your main stylesheet */
div[include-html] {
    display: contents;
  }
  

#navbar-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020;
  }  

/* Landing Pages   */
  .landing-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .landing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Adjust how dark the overlay is */
    pointer-events: none;
    z-index: 1;
  }

  .landing-card > .d-flex {
    position: relative;
    z-index: 2;
  }
  
  
@media (min-width: 576px) {
    .landing-card {
      height: 12rem !important;   
    }
  }
  
  @media (min-width: 1200px) {
    .landing-card {
      height: 15rem !important;
    }
  }