/**
 * Theme Name:     TheDailyGrate
 * Author:         Ira
 * Template:       astra
 * Text Domain:	   thedailygrate
 * Description:    TheDailyGrate is child theme created for a luxury restaurant based on Astra
 */


 /*_________________________________________________________________

             TABLE OF CONTENT
____________________________________________________________________  

- CSS Reset

- BASE / CLASSES
    - VARIABLES 
    - TYPOGRAPHY

-MENU
    - STICKY HEADER
    - LOGO - SITE TITLE & TAGLINE
    - MENU SOCIAL ICONS
    - MENU ITEMS
    - SUBMENU

- NASLOVNICA

- PROIZVODI
    - KABINA ZA TRCANJE

- BLOG
    - BLOG ARCHIVE
    - BLOG SINGLE POST

- KONTAKT
    - CONTACT FORM

- 404 PAGE

- FOOTER

*/



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             CSS Reset  
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

 /* Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*  Remove default margin */
  * {
    margin: 0;
  }
  /*  Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  body { 
    line-height: 1.5; /*  Add accessible line-height */
    -webkit-font-smoothing: antialiased; /*  Improve text rendering */
  }
  /* Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /*  Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  /* Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /* Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  /* Create a root stacking context */
  #root, #__next {
    isolation: isolate;
  }
  a, a:focus, a:focus-visible, a:active  {
    text-decoration: none;
    outline: none;
  }



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             BASE
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

/*      VARIABLES 
________________________________________*/

:root {
    --bg-colour:#F7F8F3;
    --sage: #D2D8BD;
    --terracotta: #A65A3A;
    --light-sage: #E9F2E9;
    --dark-olive: #2c3327;
    --olive: #525D4C;
}



/* @media only screen and (max-width: 365px) {
    h1, .entry-content :where(h1), h2 {
      font-size: 2.8rem;
    }
} */



/*      CLASSES
________________________________________*/

.animated-text {
  transition-delay: .5s;
}

.font-fraunces {
  font-family: 'Fraunces', serif;
}

@media only screen and (max-width: 767px) {
  .mobile-center-text {
    text-align: center;
  }
}


/* overwrite default astra hide element width as overlaps by default */
@media (max-width: 767px) {
    .hide-mobile,
    .uag-hide-mob { display: none !important; }
}


/* Tablet-only hide: 768px up to 921px */
@media (min-width: 767px) and (max-width: 921px) {
    .hide-tablet,
    .uag-hide-tab { display: none !important; }
}

/* Desktop-only hide: 922px and above */
@media (min-width: 921px) {
    .hide-desktop,
    .uag-hide-desk { display: none !important; }
}



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

              GLOBAL STYLE
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

/* change astra's default 91.2% */
html { font-size: 100% !important; }

/* button transition */
a.wp-block-button__link {
  transition: background-color 1.3s, border-color 1.3s !important;
}

.center-heading {
  margin-left: auto!important;
  margin-right: auto!important;
}

@media only screen and (min-width: 545px) and (max-width: 767px) {
  h1 {
    font-size: 3.2rem!important;
  }
  h2 {
    font-size: 2.5rem!important;
  }
  h3 {
    font-size: 2rem!important;
  }
}


/*      OVERFLOW FIX FOR MOBILE
________________________________________*/
@media only screen and (max-width: 767px) {
  /* Core overflow fix — preserves vertical alignment */
  html, body {
      overflow-x: hidden !important;
  }

  /* Constrain full-width containers without affecting margins/padding */
  .wp-block-uagb-container.alignfull,
  .wp-block-uagb-container.home-banner,
  .wp-block-uagb-container.home-video-container,
  .wp-block-uagb-container.welcome,
  .uagb-container-inner-blocks-wrap,
  .wp-block-uagb-container.animated-text {
      width: 100vw !important;
      max-width: 100vw !important;
      overflow-x: clip !important;
      transform: none !important;
  }

  /* Text and button wrappers — allow wrapping, no width compression */
  .wp-block-uagb-advanced-heading,
  .uagb-heading-text,
  .wp-block-uagb-buttons,
  .uagb-buttons__wrap {
      max-width: 100vw !important;
      overflow-x: clip !important;
      flex-wrap: wrap !important;
  }

  /* Responsive images */
  .wp-block-uagb-image,
  .wp-block-uagb-image__figure,
  .wp-block-uagb-image img {
      display: block !important;
      width: 100% !important;
      max-width: 100vw !important;
      /* height: auto !important; */
  }

  /* Video block — keep full height and original spacing */
  .wp-block-video.home-banner-video,
  .wp-block-uagb-container.home-video-container video,
  .wp-block-video video {
      width: 100vw !important;
      height: 101vh !important;
      object-fit: cover !important;
      display: block !important;
  }

  /* Floating plugin buttons (e.g., WhatsApp) */
  .ht-ctc,
  .ht_ctc_style,
  .ctc-analytics {
      max-width: 100vw !important;
      overflow-x: clip !important;
  }
}



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             HEADER
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */


/* sticky header */
.site-header {
	top: 0;
	position: sticky;
	width: 100%!important;
  z-index: 999;
  margin-bottom: 25px;

  /* center logo */
  .ast-main-header-wrap {
    .site-branding img {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;

       @media only screen and (max-width: 430px) {
          max-width: 180px;
          z-index: -1;        
       }
    }
  }


  .ast-custom-button:hover {
    background: var(--olive);
  }
  /* remove header padding */
  .ast-primary-header-bar {
    padding: 0px!important;

    /* remove header bottom border */
    @media only screen and (max-width: 360px) {
      border-bottom: none!important;
    }
  }

  /* filles gap for the lenght of the logo under border */
/*   &::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px; 
    height: 35px; 
    background-color: var(--light-sage);
    z-index: -1; 
  } */

  /* gap between header and content shrinks when logo goes smaller */
  @media only screen and (max-width: 430px) {
    margin-bottom: 0;
  }
}


/* shrink logo when page scrolled- scrolled class added through js */
.site-header.scrolled {
  .site-logo-img img {
    height: 79px;
    object-fit: contain;
  }

  /* remove gap under logo image, below border */
  &::after {
      height:0;
  }
}


 /*      HEADER SOCIAL ICONS
________________________________________*/

/* header social icons - desktop / clone added through js to place it over menu and make it clickable */
.ast-header-social-1-wrap.ast-header-social-wrap {
  position: absolute;
  right: 100px;
}



 /*     HEADER BOOK BUTTON
________________________________________*/

.ast-custom-button {
  font-size: 1.3rem;
  height: 82px;

  &:hover {
    font-size: 1.4rem;
  }
}


/* remove book button and social from header - displayed in off-canvas menu list bellow 630px */
 @media only screen and (max-width: 629px) {
    .ast-header-social-1-wrap.ast-header-social-wrap,
    .ast-custom-button {
      display: none!important;
    }
  } 





 /*      HOVERED & ACTIVE MENU ITEM ( line )
            both off-canvas & food menu
______________________________________________*/

.menu-link::before,
.menu-item.current-menu-item > .menu-link::before {
    content: '';
    float: left;
    position: absolute; 
    top: 50%; 
    left: 30px;
    transform: translateY(-50%); 
    width: 30px;
    height: 2px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="45" height="1"><rect width="45" height="1" fill="%23d3a580"/></svg>');
    fill: var(--olive)!important;
    background-size: 45px 1px;
    background-repeat: no-repeat;
    padding: 0 35px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
} 

.menu-item-book .menu-link::before {
  display: none!important;
}

.menu-link:hover::before,
.menu-item.current-menu-item > .menu-link::before {
    opacity: 1;
    transform: scaleX(1);
} 

  [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill {
    background: var(--olive);
  }


@media (max-width: 6000px) {

      .ast-header-social-1-wrap .ast-social-color-type-custom svg {
          fill: var(--terracotta);

          &hover{
            fill: var(--terracotta);
          }
      }

          .ast-header-social-1-wrap .ast-social-color-type-custom .ast-builder-social-element:hover {
            background: none;
              transform: scale(1.1);
          }

              .ast-header-social-1-wrap .ast-social-color-type-custom .ast-builder-social-element:hover svg {
                fill: var(--terracotta);
              }

  }

  #custom-menu-toggle {
  background: var(--olive);
    color: var(--light-sage);

}

  .ast-mobile-popup-drawer.active .menu-toggle-close  {
  background: var(--olive);
}

.home-button .uagb-button__link {
  text-align: center;
}





 /*      OFF CANVAS MENU (MAIN MENU)
                off-canvas breakpoint changed in functions.php
___________________________________________________________________*/

/* burger button */
.ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle {
  width: 82px;
  height: 82px;
  justify-content: center;
  border-radius: 0;
  outline: none;
}

/* burger button svg */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    width: 30px;
    height: 30px;
    fill: var(--light-sage);
}

/* close button */
.ast-mobile-popup-drawer.active .menu-toggle-close {
  width: 82px;
  height: 82px;
  background-color: var(--terracotta);
  color: var(--light-sage);
  border: none!important;
  border-radius: 0;
  outline: none;

  svg {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    padding: 8px;
  }
}

/* off canvas menu list */
.ast-mobile-header-content {
    max-width: 50px;
    right: 0;
    z-index: 200!important;
}

/* menu items alignment */
.main-header-menu {
  padding-top: 12px;
  padding-bottom: 7px;

  .menu-item {
  text-align: right;

    .menu-link {
        font-size: 1.1rem;
        padding-right: 80px!important;
    }
  }
}




/* sliding menu list */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
  width: 270px;
  max-width: 90%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
  background-color: transparent;
}
/* remove overlay (covers full screen by default) */
.ast-mobile-popup-drawer .ast-mobile-popup-overlay {
  display: none;
}

/* shadow on popup menu list */
.ast-mobile-popup-content {
  box-shadow: rgba(44, 51, 39, 0.3) 0px 1px 2px 0px, rgba(44, 51, 39, 0.15) 0px 2px 6px 2px;
}
   

/* force Astra off-canvas popup to take only the height of its content */
#ast-mobile-popup,
#ast-mobile-popup.active,
.ast-mobile-popup-drawer,
.ast-mobile-popup-inner,
.ast-mobile-popup-content,
.ast-builder-menu-mobile {
  height: auto !important;
  min-height: 0 !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  align-self: flex-start !important;
}

/* prevent flex container from stretching children */
.ast-mobile-popup-inner {
  display: block !important;
}




.main-header-menu {
    justify-content: flex-end;
    align-content: center;


     /*      BOOK a TABLE MENU ITEM
_____________________________________________*/

    .menu-item.menu-item-book  {
      display: inline-block!important;   /* prevent stretching full width */
      width: auto!important; /* shrink to content */
      margin-top: 10px;
      margin-right: 80px;

      a.menu-link {
        display: inline-block;   /* shrink to content */    
        padding: 0 20px!important;     
        border: 1px solid var(--sage)!important;

        &:hover {
          background-color: var(--sage)!important;
        }
      }
  }
}



 /*      OFF-CANVAS SOCIAL ICONS - menu item
_______________________________________________*/

#ast-mobile-popup div.ast-mobile-popup-content > aside {
  padding: 20px 80px 30px 0;
  margin-bottom: 10px;
  background-color: var(--light-sage);

  /* social icons widget within off canvas menu */
  #block-54 {
    .wp-social-link {
      background-color: var(--sage);
      border-radius: 0;
    }
    .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg {
      color: var(--light-sage);
      
    }
  }
}



/* remove book and social from off-canvas menu list - header buttons displayed above 630px*/
 @media only screen and (min-width: 630px) {
    #ast-mobile-popup div.ast-mobile-popup-content > aside,
    .main-header-menu .menu-item.menu-item-book {
      display: none!important;
    }
  } 





 /*      CUSTOM FOOD MENU  
              menu toggle controled through js
________________________________________*/

/* toggle button */
#custom-menu-toggle {
    position: fixed;
    top: 0;
    left: 0;        
    z-index: 999;
    height: 82px;
    justify-content: center;
    padding: 30px 15px 33px 10px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    background: var(--olive);
    border: none;
    border-radius: 0;

    /* scroll up with the header */
    @media only screen and (max-width: 767px) {
      position: absolute;
    }

    @media only screen and (max-width: 629px) {
      font-size: 1rem;
    }
}

/* food menus list hidden by default and slide-in from left */
#custom-overlay-menu {
    position: fixed;
    top: 80px;
    left: 0;              /* move to left */
    height: auto;
    width: 270px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--bg-colour);
    transform: translateX(-100%); /* hide off-screen to left */
    transition: transform 0.3s ease;
    z-index: 100001!important;  /* higher than Astra menu popup */
    overflow-y: auto;
    box-shadow: rgba(211, 165, 128, 0.3) 0px 1px 2px 0px, rgba(211, 165, 128, 0.15) 0px 2px 6px 2px;

    ul.menu {
      list-style: none;
      margin: 0;

      .menu-item {
        position: relative; /* needed hover and current ::before positioning */
      }

      .menu-link {
        font-size: 1.1rem;
        color: var(--dark-olive);
        line-height: 3;
        padding-left: 90px;
        display: inline-block;
        width: 100%;

      }
    }
}

/* show menu when active (touch devices) */
#custom-overlay-menu.active {
    transform: translateX(0);
}

/* desktop hover only (not touch) */
html:not(.touch) #custom-menu-toggle:hover + #custom-overlay-menu,
html:not(.touch) #custom-overlay-menu:hover {
    transform: translateX(0);
}



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             HOME PAGE
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

.home-banner {

  div.home-banner-heading {
    transition: opacity 1.3s ease-in-out;

    h1 {
      max-width: 1240px!important;
      margin: 0 auto!important;
      padding: 0 20px;
      position: relative;
      z-index: 100;

      @media only screen and (max-width: 380px) {
        font-size: 2.2rem!important;
      }
    }

    .in-irish-soil {
      position: relative;
      color: var(--light-sage);
      margin-left: 140px;

      @media only screen and (max-width: 590px) {
        margin-left: 0!important;
      }
    }

      /* align Wood-fired flavor and naturally crafted */
    @media only screen and (min-width: 545px) and (max-width: 921px) {
      margin-left: 100px!important;
    }
    @media only screen and (max-width: 544px) {
      margin-left: 10px!important;
    }
  }  /* home-banner-heading */


  /* Initially hide logo and make fade smooth for both */
  .logo-over-video {
      opacity: 0; /* Initially hide logo  */
      transition: opacity 1.3s ease-in-out;
      max-width: 300px!important;
      position: absolute!important;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      opacity: 0;
      margin: 0 auto;
      z-index: 900;
  }


   /* home banner video */

  .home-video-container {
    margin-top: -82px!important;
    height: calc(101vh - 82px);
    overflow: hidden;
    row-gap: 0 !important;
    padding: 0 !important;

      /* figure */
    .wp-block-video {
        height: 100%;
        margin-top: 0px;
      }

      video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        object-position: 50% 20%;
      }

 

      /* video placement */
     @media only screen and (max-width: 767px) {

      position: static;  /* video is placed relative to entry content */

      .home-banner-video {
        position: absolute!important;
        top: 101px;

        @media only screen and (max-width: 544px) {
          top: 93px;
        }

        @media only screen and (max-width: 380px) {
          top: 80px;
        }
      }
    }
  }  /* home-video-container */


  .home-banner-cta {

      &:hover {
        transition-duration: .5s;
      }
      &.menu:hover {
          transform: translateX(-10px);
          
      } 
      &.book:hover {
          transform: translateX(10px);
      }  
      
      @media only screen and (max-width: 767px) {
        /* needed for buttons to appear fully when covered */
        margin-left: 10px;
        margin-right: 10px;
      }
  }

}  /* home-banner */



/*  Welcome section - image shadow / background (full colour) */

.img-shadow-right,
.img-shadow-left {
  position: relative;
  display: inline-block;
  
  &::after {
    content: "";
    position: absolute;
    height: 80%;
    width: 150px;
    background: var(--terracotta);
    pointer-events: none;
    z-index: -1;
  }
}

.img-shadow-right::after {
  top: 40%;
  right: -120px;
}
.img-shadow-left::after {
  bottom: 40%;
  left: -120px;
}


/* home menus section */
.home-menu-section-item p  {
    font-family: 'Fraunces', serif;
    z-index: 500;
    display: inline-block;

    /* paragraphs aligned right / left */
    &:first-child {
      align-self: flex-start;
    }
    &:last-child {
      align-self: flex-end;
    }
}






 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             MENUS PAGE
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

.all-menus-container {
  min-height: 1200px;
}

.menus-page-heading {
  margin-left: auto;
  margin-right: auto;
}

/* individual menu container */
.menu-container {
    background-position: center center;
    transition: background-position 0.5s ease;

  &:hover {
     background-position: 20% center; 
  }

  /* overlay opacity on hover */
  &:hover::before {
    opacity: 0;
  }
}


/* containers collapse to horizontal layout */
@media only screen and (max-width: 976px) {

  /* order moves it to to top */
  .explore-our-menus {
    order: -1!important;
    margin-top: -60px!important;
  }
}



/* menus - v2 - vertical version */
.menus-2 p {
  @media only screen and (min-width: 768px) {
      writing-mode: vertical-rl;
  transform: rotate(180deg);
  }
}



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             INDIVIDUAL MENU 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

/* individual menu page carousel */
.carousel-container {
  position: relative!important;
  height: 800vh!important; /* 100vh × number of images */
}

.image {
  position: sticky!important;
  top: 0!important;
  height: 100vh!important;
  overflow: hidden!important;
  object-fit: cover;
}

.image figure,
.image img {
  width: 100%!important;
  height: 100%!important;
  object-fit: cover!important;
  margin: 0!important;
  display: block!important;
}

.course-prev-next {
  .uagb-button__link {
    text-align: center;
  }
  .uagb-buttons-repeater {
    padding: 15px!important;
  }
}


/* menu list */
@media only screen and (max-width: 767px) {
    .menu-list {
      .course {
        border-bottom: 2px solid var(--sage);
        width: fit-content!important;
      }
      .dish {
        border: none!important;
      }
    }

    .carousel-container {
      position: relative!important;
      height: auto!important; /* 100vh × number of images */
    }
    .image {
    position: sticky!important;
    top: 0!important;
    height: auto!important;
    overflow: hidden!important;
    object-fit: cover;
  }
}


 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             INDIVIDUAL DISH
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

.individual-dish-ingredients p {
  font-size: 1.1rem!important;
}


 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             ABOUT US
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

.team-member img {
  opacity: 0.8;

  &:hover {
    opacity: 1;
  }

  @media only screen and (min-width: 545px) and (max-width: 767px) {
    width: 450px!important;
    margin: 0 auto;
  }
}

 @media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* column gap between  heading / img / bio */
  .team-member div.uagb-container-inner-blocks-wrap {
    column-gap: 20px!important;
  }

  .mariana .bio {
    padding-left: 20px!important;
    padding-right: 20px!important;
  }
 }


  @media only screen and (max-width: 767px) {
    .alex .role {
      order: -1;
    }
  }



 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             CONTACT PAGE
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

.contact-title-br {
  @media only screen and (max-width: 767px) {
    display: none;
  }
}

.contact-form {
  max-width: 500px;
  float: right;
  /* fields */
  .srfm-input-common,
  .srfm-submit-button {
    border-radius: 0!important;
  }
  /* button */
  .srfm-submit-button {
    color: var(--olive);
    padding: 30px 20px;

    &:hover {
      color: var(--light-sage);
      background-color: var(--olive);
      border-color: var(--light-sage);
      transition: background-color 1.3s ease-out, border-color 1.3s ease-out;
    }
  }

  @media only screen and (max-width: 921px) {
    margin: 0 auto;
  }
}

/* required asterisk */
.srfm-form-container .srfm-form .srfm-required {
  color: var(--terracota);
}




.srfm-input-common, 
.ts-wrapper, 
.srfm-input-common:hover,
.srfm-input-common:active,
.srfm-input-common:focus {
  color: var(--light-sage)!important;
  border: 1px solid var(--light-sage)!important;
}

.srfm-form-container .srfm-form .srfm-block:not(.srfm-number-block) .srfm-error-wrap .srfm-error-message {
    line-height: var(--srfm-error-line-height);
    color: var(--sage);

}




 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             BOOKING PAGE
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */


 /*     MotoPress Appointment Booking 
________________________________________*/

/* Disable Reserve button */
div.mpa-booking-step.mpa-booking-step-checkout.mpa-loaded > form  button.button.button-primary.mpa-button-next {
  pointer-events: none;
}

/* ---------- Calendar shell ---------- */
.mpa-shortcode .flatpickr-calendar {
  box-shadow: none;
  background: transparent;
}
.mpa-shortcode-title,
.cell.cell-employee,
.cell.cell-price,
.mpa-cart-total,
.mpa-order-details {
  display: none;
}

.appointment-form-shortcode input,
.appointment-form-shortcode select,
.appointment-form-shortcode select:focus,
.appointment-form-shortcode textarea {
  background: transparent!important;
  border: 1px solid var(--olive);
}



/* ---------- Full-width layout: stack date + time vertically ---------- */
.mpa-shortcode .mpa-input-container {
  display: block !important;
}
.mpa-shortcode .mpa-date-wrapper,
.mpa-shortcode .mpa-time-wrapper {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
.mpa-shortcode .flatpickr-calendar,
.mpa-shortcode .flatpickr-calendar .flatpickr-days,
.mpa-shortcode .flatpickr-calendar .dayContainer {
  width: 100% !important;
  max-width: none !important;
}
.mpa-shortcode .flatpickr-calendar .flatpickr-rContainer,
.mpa-shortcode .flatpickr-calendar .flatpickr-weekdaycontainer {
  width: 100% !important;
}
/* days + weekdays spread evenly across the full width */
.mpa-shortcode .flatpickr-calendar .dayContainer {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.mpa-shortcode .flatpickr-weekdays {
  height: 40px!important;
}
.mpa-shortcode .flatpickr-weekdays .flatpickr-weekdaycontainer {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
}
/* keep each day a fixed square so the selected circle stays round */
.mpa-shortcode .flatpickr-calendar .dayContainer .flatpickr-day {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  line-height: 40px !important;
  margin: 4px 0 !important;
  padding: 0 !important;
}

/* ---------- Month header bar ---------- */
.mpa-shortcode .flatpickr-months {
  background: var(--dark-olive);
  border-radius: 4px;
  padding: 6px 0;
}
.mpa-shortcode .flatpickr-month,
.mpa-shortcode .flatpickr-current-month,
.mpa-shortcode .flatpickr-current-month .cur-month,
.mpa-shortcode .flatpickr-current-month .numInputWrapper input.cur-year {
  color: var(--light-sage) !important;
  background: transparent;
  font-weight: 600;
  padding: 1.5px 5px!important;
}
/* hide the year spinner arrows */
.mpa-shortcode .flatpickr-current-month .numInputWrapper span { display: none; }

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 22px!important;
}


/* nav arrows: white, vertically centred in the taller bar */
.mpa-shortcode .flatpickr-prev-month svg,
.mpa-shortcode .flatpickr-next-month svg { fill: var(--light-sage) !important; }
.mpa-shortcode .flatpickr-prev-month,
.mpa-shortcode .flatpickr-next-month {
  top: 50%;
  transform: translateY(-50%);
  height: auto;
}
/* hide a disabled (e.g. prev) arrow, like the screenshot */
.mpa-shortcode .flatpickr-prev-month.flatpickr-disabled,
.mpa-shortcode .flatpickr-next-month.flatpickr-disabled { visibility: hidden; }

/* ---------- Weekday row ---------- */
.mpa-shortcode .flatpickr-weekday {
  color: var(--dark-olive) !important;
  font-weight: 500;
}

/* ---------- Day cells ---------- */
.mpa-shortcode .flatpickr-day {
  color: var(--dark-olive);
  border: none;
  border-radius: 50%;
}
.mpa-shortcode .flatpickr-day.flatpickr-disabled,
.mpa-shortcode .flatpickr-day.prevMonthDay,
.mpa-shortcode .flatpickr-day.nextMonthDay {
  color: var(--sage) !important;
}
.mpa-shortcode .flatpickr-day.today {
  border-color: transparent;   /* kill flatpickr's underline ring */
}
.mpa-shortcode .flatpickr-day.selected,
.mpa-shortcode .flatpickr-day.today.selected,
.mpa-shortcode .flatpickr-day.selected:hover {
  background: var(--olive) !important;
  color: var(--bg-colour)!important;
  border-color: var(--olive) !important;
  border-radius: 50%;
}

/* ---------- Time slots (full width, responsive, no scroll) ---------- */
.mpa-shortcode .mpa-time-wrapper { margin-top: 20px; }
/* kill the fixed-height scroll container so all slots show */
.mpa-shortcode .mpa-times-container {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
.mpa-shortcode .mpa-times {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
@media (max-width: 600px) {
  .mpa-shortcode .mpa-times { grid-template-columns: repeat(2, 1fr); }
}
.mpa-shortcode .mpa-times .mpa-time-period {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  background: transparent;
  border: 1px solid var(--sage);
  color: var(--dark-olive);
  border-radius: 3px;
  box-shadow: none;
  padding: 12px 8px;
  text-align: center;
  font-weight: 400;
}
.mpa-shortcode .mpa-time-period:hover { border-color: var(--sage); }
.mpa-shortcode .mpa-time-period.mpa-time-period-selected {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--light-sage);
}
/* start time only — hide end time + capacity */
.mpa-shortcode .mpa-time-period .mpa-period-end-time,
.mpa-shortcode .mpa-time-period .mpa-slot-capacity,
.mpa-shortcode .mpa-time-period .mpa-slot-capacity-label,
.mpa-shortcode .mpa-time-period .mpa-slot-capacity-number { display: none !important; }

/* ---------- Buttons ---------- */
/* Next / Reserve (filled dark) */
.mpa-shortcode .button.button-primary.mpa-button-next,
.mpa-shortcode .button.button-primary {
  background: var(--terracota);
  border: 1px solid var(--terracota);
  color: var(--bg-colour);
  border: 1px solid var(--dark-olive)!important;
  background: var(--dark-olive);
  border-radius: 3px;
  box-shadow: none;
}
.mpa-shortcode .button.button-primary:disabled { opacity: .45; }

/* Back (outlined) — scoped to .mpa-button-back so time slots,
   which also carry .button-secondary, are NOT affected */
.mpa-shortcode .button.mpa-button-back {
  background: var(--light-sage);
  border: 1px solid var(--olive);
  color: var(--olive);
  border-radius: 3px;
  box-shadow: none;
}

.mpa-shortcode .mpa-input-container { display: block !important; }

.mpa-shortcode .mpa-time-wrapper {
  height: auto !important;
  overflow: visible !important;
}
.mpa-shortcode .mpa-times-container {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.mpa-shortcode .mpa-times.mpa-three-columns {
  display: grid !important;
  position: relative!important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  grid-auto-rows: min-content !important;
  align-content: start !important;
  gap: 10px !important;
  min-height: 0 !important;
}
.mpa-shortcode .mpa-times.mpa-three-columns > .mpa-time-period {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
}
.mpa-shortcode .mpa-times.mpa-three-columns {
  min-height: 60px !important;
}





 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             GALLERY
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

/* lightbox thumbnail */
.spectra-image-gallery__control-lightbox--thumbnails .swiper-slide {
  opacity: 0.75;
}
.spectra-image-gallery__control-lightbox--thumbnails .swiper-slide-active {
  opacity: 1;
}




 /* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

             FOOTER
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   */

.footer-logo {
  margin-top: -115px!important;

  @media only screen and (max-width: 767px) {
    max-width: 300px!important;
    margin: 0 auto;
   }
}

/* footer image */
.footer-widget-area figure > img {
  max-width: 300px!important;
  margin: 0 auto;
  object-fit: contain;
}

/* social & menu - placed above image */
.site-footer-section-2 {
  z-index: 100; 
}


.footer-navigation {

  /* before line positioning */
  .menu-item > .menu-link {
    position: relative !important;
    color: inherit !important;
  }

  .privacy-policy {
      opacity: 0.4;
    }

  /* Full override for the ::before pseudo-element */
  .menu-item > .menu-link::before {
    top: 60%!important;
    width: 100% !important;          
    left: 0 !important;
    background-color: var(--sage) !important;
    padding: 0 !important;
    will-change: transform !important; /* keeps line thickness */
  }
}


 @media only screen and (max-width: 767px) {
  /* change grid to 2 columns */
    .ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-equal .ast-builder-grid-row {
        grid-template-columns: repeat(2, 1fr);
        position: relative;
        margin-top: -20px;
        margin-bottom: -20px;
    }
    /* take section-1 (the first column / image) out of the flow and position it in the background */
    .site-footer-primary-section-1.site-footer-section.site-footer-section-1 {
      position: absolute;
      left: 0;
      right: 0;
      opacity: 0.3;
    }

      /* remove gap as it pushes elemenst */
     .ast-builder-footer-grid-columns {
         grid-column-gap: 0;
     }

     /* logo */
     .footer-widget-area figure > img {
      opacity: .15;
    }
 }

  @media only screen and (max-width: 500px) {
      /* change grid to 1 column */
    .ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-equal .ast-builder-grid-row {
        grid-template-columns: 1fr;

        .widget_block.widget_text p {
          text-align: center;
          padding: 0!important;
        }

    }
    /* contact info & working hours */
    .site-footer-section-3 {
      order: -1!important;
      margin-top: -60px;
      justify-items: center;
      margin-right: 0!important;
    }

    /* contact info */
    .uagb-icon-list__wrap {
      align-items: center!important;
    }
    /* opening hours */
    .widget_text p {
      text-align: center;
    }
  }



/*      COPYRIGHT
________________________________________*/ 

@media only screen and (min-width: 360px) {
  .ast-footer-copyright > p {
    display: inline-block;

    &:nth-child(2) {
      padding-left: 20px;
      padding-right: 20px;
    }
  }
}




/*      WHATS APP
________________________________________*/

#ht-ctc-chat > div > div > svg > g > path {
  fill: var(--light-sage)!important;
}
#htwasqiconb-chat > stop:nth-child(1) {
  stop-color: #D3A58080;
}

#htwasqiconb-chat > stop:nth-child(2) {
  stop-color: var(--sage);
}



 /*      SCROLL TO TOP
________________________________________*/

#ast-scroll-top {
    .ast-icon.icon-arrow svg {
      width: 3.6em;
      height: 1rem;
      top: 12px;
    }
}
.ast-scroll-to-top-right {
  right: 0;
  bottom: 15px;
}


