/* ==========================================================================
   COMPONENTS
   --------------------------------------------------------------------------
   PURPOSE:
   This file defines REUSABLE UI COMPONENTS.
   Components are designed objects that appear in many places.

   Components are:
   - buttons
   - forms
   - cards
   - accordions
   - tabs
   - navigation items

   WHY THIS FILE EXISTS:
   - Centralises UI design decisions
   - Prevents duplication across sections
   - Makes redesigns faster and safer

   RULES:
   - Components should be reusable
   - Components may use tokens and utilities
   - Components should not depend on page context

   ASK YOURSELF:
   "Could this appear on multiple pages or sections?"
   If yes → it’s a component.

   EXAMPLES OF WHAT BELONGS HERE:
   .btn-primary
   .btn-secondary
   form inputs
   Gravity Forms styling
   accordion styles

   EXAMPLES OF WHAT DOES NOT BELONG HERE:
   Hero layout
   Services grid spacing
   Page-specific overrides
   ========================================================================== */



/* Logo */

/* site logo + mobile nav */

.site-logo {
  max-height: 30px;
  width: auto;
}

.mobile-logo {
  max-height: 45px;
  width: auto;
}

.home .header-phone {
  /* color: #fff; */
}

.header-phone {
  /* font-weight: 600; */
  /* font-family: var(--font-heading); */
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.header-phone:hover {
  background-color: var(--brand-primary);
  color: var(--brand-white);
}

table td {
    padding: 0px!important;
    padding-right: 35px!important;
}


/* hamburger */
#hamburgler {
    background-color: transparent;
    border: 0px;
    width: 45px;
    padding-right: 0px;
}

/* contact page */

.googlemap iframe {
  border-radius: var(--radius-sm);
}

.social img {
    /* height: 25px; */
}

/* why icons */

.why-sos__items {
  /* max-width: 360px; */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-sos__item {
  gap: 2rem;
}

.why-sos__icon {
  width: 45px;
  min-width: 45px;
}

.why-sos__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.content-form {
  border-radius: var(--radius-sm);
  background-color: var(--brand-primary);
  
}

.layout-content-form {
  background-image: url('../images/crackbg.jpg');
}

.layout-content-form .prose * {
  color: var(--brand-white);
}


.mark1 {
  width: 30px;
}

/* map embed */
.map-embed{
  width: 100%;
  min-height: 280px;              /* pick your minimum */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex: 1;              /* take remaining space */
   min-height: 301px; /* minmum height for the to show the reviews */
}

.map-embed iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  
}

 .contactdetails{
    height: 100%;
   display: flex;
    flex-direction: column;
  }

.modal div#gform_confirmation_message_2 {
    color: #fff;
}

#menuModal .btn-close {
    
}




/* Custom Dotted Border for Testimonials */
.border-start-dotted {
    border-left: 2px dotted var(--brand-primary) !important;
}

/* .testimonial-wrapper blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--brand-black); /* Pulls #231f20 from tokens */

/* Ensure the author name matches the heading font */
.testimonial-author p {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: capitalize;
}



/* Steps Component */

/* 1. The Line: Start it from the first item and end it at the last */
/* The Dotted Line Logic */
.step-number-wrap::after {
    content: "";
    position: absolute;
    top: 58px; /* Starts at the bottom of the 50px number box */
    left: 25px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(95% - 50px); /* Bridges the gap to the next item (adjust based on mb-5) */
    border-left: 2px dotted var(--brand-secondary);
    opacity: 0.5;
    z-index: 1;
}

/* Hide the line on the very last item */
.step-item:last-child .step-number-wrap::after {
    display: none;
}



/* 2. The Number: Squircle Shape from your design */
.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--brand-primary); /* #fdb713 from tokens */
    color: var(--brand-white);
    border-radius: 14px; /* Matches the "Squircle" look in your image */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2; /* Keeps numbers above the line */
}

/* 3. The Content Card: Background color from tokens */
.step-card {
    background-color: var(--brand-accent); /* #f4efec from tokens */
    padding: 2rem 2.5rem;
    border-radius: var(--radius-sm); /* 16px from tokens */
}
.gform-theme--foundation .gform_fields {
    -moz-column-gap: 10px;
    column-gap: 10px;
    row-gap: 30px;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */



.btn, input[type="submit"]   {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 9px 15px;
  cursor: pointer;
  transition: all 500ms;
  border-radius: var(--btn-radius);
  text-decoration: none !important;
  display: inline-block;
  min-width: 160px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary, input[type="submit"]  {
  background-color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--brand-white);
}

.btn-secondary {
  background-color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
  color: var(--brand-white);
}

.btn-secondary:hover {
  background-color: var(--brand-primary);
  color: var(--brand-white);
  border: 1px solid var(--brand-primary);
}

input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active {
  background-color: #1d1515;
}


.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid var(--brand-secondary);
  color: var(--brand-secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--brand-secondary);
  color: var(--brand-white);
  border: 1px solid var(--brand-secondary);
}


.btn-outline-primary {
  background-color: transparent;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  color: var(--brand-white);
  border: 1px solid var(--brand-primary);
}

.btn-outline {
  color: #fff;
  border: 1px solid #fff;
  
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--brand-primary)!important;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
textarea,
select {
  height: var(--input-height)!important;
  padding: 0px 0px!important;
  border: 0px solid var(--input-border)!important;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  border-radius: 0px;
  background-color: transparent;
  font-size: 0.9rem!important;
  border-bottom: 1px solid var(--input-border)!important;
  box-shadow: unset!important;
}

textarea {
  height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: var(--radius-md);
}


/* Placeholder styling */
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: var(--brand-black);
  font-family: var(--font-body);
}
textarea.form-control { height: 150px !important; }

input[type="submit"] {
  
margin-bottom: 0px!important;
}

input[type="submit"]:hover {

}

.gform-footer.gform_footer.top_label {
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* padding-bottom: 0px!important; */
    padding-top: 40px!important;
}


/* Gravity Forms specifics */

h3.gsection_title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    color: var(--brand-primary);
}


.gfield_label.gform-field-label {
  font-weight: 300!important;
  color: var(--brand-black);
}

p.gform_required_legend {
    display: none;
}
button.btnclose {
    border: 0px;
    background-color: transparent;
    width: 30px;
}

/* MAP */
.mobilenav .social {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.map-wrapper {
   height: clamp(320px, 70vh, 650px);
  /* optional styling */
   width: 100%;
   overflow: hidden;
}

/* Styling for the custom info button on the map */
.leaflet-control-custom a {
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    font-family: serif; /* Gives the 'i' a classic info-icon look */
    font-style: italic;
    transition: background-color 0.2s;
}

.leaflet-control-custom a:hover {
    background-color: #f4f4f4 !important;
    color: #ff1744 !important; /* SOS Red hover */
}

/* Ensure modal displays over the map */
#mapAttributionModal {
    z-index: 9999;
}

/* Slick arrows – hero carousel only */
.layout-hero-carousel .slick-prev {
  left: 25px;
}

.layout-hero-carousel .slick-next {
  right: 25px;
}

.layout-hero-carousel .slick-arrow {
  z-index: 9;
   width: 30px;
    height: 30px;
}

.slick-arrow:before {
  content: '';
    background-position: 50%;
    background-size: 13px 25px;
    background-repeat: no-repeat;
    display: block;
    width: 30px;
    height: 30px;
}


.slick-next:before {
  background-image: url('../images/sliderright.png');
}

.slick-prev:before {
  background-image: url('../images/sliderleft.png');
}


/* store finder */
.store-hours p {
  margin-top: 0px!important;
  margin-bottom: 0px!important;
}


/* FAQ Layout */
.layout-faqs .faq-accordion .accordion-item {
  border: 0;
  /* border-bottom: px solid var(--border-subtle, #e6e6e6); */
  background-color: var(--brand-accent);
  border-radius: var(--radius-lg);
}

.layout-faqs .accordion-button {
  font-weight: 600;
  padding: 18px;
  padding-left: 37px;
  background: transparent;
  background-color: var(--brand-accent);
  margin-bottom: 0px;
  border-radius: var(--radius-sm)!important;
}

.layout-faqs .accordion-button:not(.collapsed) {
  color: var(--brand-secondary);
  box-shadow: none;
  border-bottom-left-radius: 0px!important;
  border-bottom-right-radius: 0px!important;
}

.layout-faqs .accordion-body {
  padding: 60px;
  padding-top: 0px;
}

.layout-faqs .accordion-button:focus {
  outline: 0!important;
  box-shadow: unset!important;
}



.accordion-button::after {
    background-size: auto;
    background-position: 50%;
}
.accordion-collapse {
  background-color: var(--brand-accent);
  border-bottom-left-radius: var(--radius-sm)!important;
  border-bottom-right-radius: var(--radius-sm)!important;
}

.answer-content {
    /* padding-left: 1.5rem; */
    /* border-left: 1px solid var(--brand-black); */
}

.accordion-button.collapsed::after {
    background-image: url(../images/carot.png);
    width: 14px;
    height: 12px;
    background-position: center;
    background-size: contain;
}


.accordion-button:not(.collapsed)::after {
    background-image: url(../images/carot.png);
    width: 14px;
    height: 12px;
    background-position: center;
    background-size: contain;
}

.accordion {
      gap: 1rem;
    display: flex;
    flex-direction: column;
}



@media (min-width: 576px) { 

}


@media (min-width: 768px) { 

}

@media (min-width: 1200px) {
.why-sos__icon {
        width: 90px;
        min-width: 90px;
    }
}


@media (min-width: 1400px) {

}

/* media queries 992 and up */

@media (min-width: 992px) {

  .site-logo {
    max-height: unset;
    width: auto;
}
.herotext h1 {
  text-wrap: balance;
}

.mark1 {
  width: auto;
}

  .btn, input[type="submit"] {
        padding: 13px 30px;
  }

.accordion-button.collapsed::after {
    background-image: url(../images/carot.png);
    width: 14px;
    height: 12px;
}
/* Steps Component - Updated for Dynamic Dotted Line */
.steps-wrapper {
    position: relative;
    padding-left: 20px;
}

.why-sos__content {
  position: absolute;
}

.layout-faqs .accordion-button {
  font-weight: 600;
  padding: 30px;
  padding-left: 60px;
  background: transparent;
  background-color: var(--brand-accent);
  margin-bottom: 0px;
  border-radius: var(--radius-sm)!important;
}
.accordion-button:not(.collapsed)::after {
    background-image: url(../images/carot.png);
    width: 14px;
    height: 12px;
}


}