/*
Theme Name: Wilton Carpets
Template: generatepress
Author: Sandu Media
Author URI: https://www.sandumedia.co.uk
Description: Theme for the Wilton Carpets website. The GeneratePress theme must also be installed and kept up-to-date, as some functions and stylings are applied from that theme.
*/


/* Top Bar */
.inside-top-bar aside{
    width: 100vw;          /* full viewport width */
    max-width: 100%;       /* override any container max-width */
    margin: 0;             /* remove auto-centering */
    padding: 0 20px;       /* optional horizontal padding */
    box-sizing: border-box;
}
.inside-top-bar aside p{
  margin-bottom:0;
}
.inside-top-bar .wp-block-columns {
    display: flex;             /* ensure flex layout */
    flex-wrap: nowrap;         /* prevent wrapping to multiple lines */
    justify-content: space-between; /* spread columns across the width */
    align-items: center;       /* vertically center content */
    margin-bottom:0;
}
.inside-top-bar .wp-block-column {
    flex: 0 1 auto;      /* shrink/grow as needed, don’t force full width */
    white-space: nowrap; /* prevent text from wrapping */
    margin-bottom:0;
}
.inside-top-bar .wp-block-social-links {
    display: flex;
    flex-wrap: nowrap;      /* keep icons in one line */
    justify-content: flex-end; /* push to right side */
    gap: 10px;              /* spacing between icons */
    margin-bottom:0;
}
@media (max-width:768px) {
    .inside-top-bar {
        display:none !important;
    }
}
@media (max-width:900px){
  .top-tagline{display:none;}
}


/* Navigation */
@media (max-width: 768px) {
  .main-navigation .main-nav ul li a {
    text-align: center;
    border-top:1px solid rgba(255,255,255,0.2);
  }
}
.main-navigation a{
  line-height: 1.5em !important;
  padding: 1em 1em !important;
  margin:0 !important;
}
.dropdown-menu-toggle{
  padding:0 !important;
  margin:0 0 0 0.5em !important;
}
.main-navigation .sub-menu{
  width:300px;
}
.main-navigation .sub-menu a {
  border-top:1px solid rgba(255,255,255,0.2);
}


/* Footer */
.site-footer{
  font-size:0.85em;
}
.site-info{
  font-size:0.95em;
  line-height:1;
}
.footer-widgets .widget {margin-bottom: 12px;}
.footer-widgets .widget em{font-size:0.9em; color:#999; display:block; line-height: 1.25em !important;}
.sandumedia{
  color: #fff;
  font-family:"Cormorant Garamond", serif;
  font-weight:500;
  font-size:1.4em;
  font-style:normal;
  text-decoration:none;
  text-transform:lowercase;
}
.sandumedia:hover{color:#da0000 !important;}
.footer-logos .wp-block-group__inner-container{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:15px;
}
.footer-logos img{
  max-height:70px;
  height:auto !important;
  width:auto !important;
}
@media (max-width: 768px){
  .footer-logos .wp-block-group__inner-container {
    justify-content:center;
    text-align:center;
  }
}
.payment-logos{
  display: flex !important;
  justify-content: flex-start;
}
.payment-logos img{
  max-width: 200px;
  height: auto !important;
  width: auto !important;
}
@media (max-width: 768px){
  .payment-logos{justify-content:center;}
  .site-footer{text-align:center;}
  .opening-hours-left{text-align:right;}
  .opening-hours-right{text-align:left;}
}


/* Custom Headers */
.custom-hero {
  position: relative;
  width:100%;
  height:60vh;
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:0px;
}
.custom-hero::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    rgba(30, 115, 190, 0.55),
    rgba(0, 0, 0, 0.55)
  );
}
.custom-hero-title {
  position: relative;
  color: #fff;
  font-size: 3rem;
  text-align: center;
  padding: 15px 25px;
  border-radius: 5px;
  z-index: 1;
}
@media (max-width: 768px) {
  .custom-hero {height: 60vh;}
  .custom-hero-title {
    font-size: 2rem;
    padding: 10px 20px;
  }
}
/* homepage scroller */
.homescroll::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    rgba(30, 115, 190, 0.55),
    rgba(0, 0, 0, 0.55)
  );
  z-index: -1;
}
.slick-track div{}
.homescroll .wp-block-cover__image-background{
  z-index: -2;
  background-size:cover;
  background-position:center;
  background-repeat:repeat-y;
}
.homeback{background:none;}
.homeback strong{
  font-size:2em;
  font-weight:400;
}


/* Homepage Brand Slider - Makes logos vertically centered */
.my-brand-slider .slick-slide,
.my-brand-slider .simple-slider-slide,
.my-brand-slider .wp-block-simple-slider-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100px;
  box-sizing: border-box;
  padding: 8px 0;
}
.my-brand-slider img {
  max-height: 80px;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.my-brand-slider a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100%;
}
@media (min-width: 768px) {
  .my-brand-slider img { max-height: 100px; }
}

/* Custom css styles for blocks */
.wp-social-link-facebook{background:#1e73be;}
.pad20{padding:20px;}
.bord0{
  border: none !important;
  border-collapse: collapse !important;
}
.bord0 th,.bord0 td{border: none !important;}
.bord0,.bord0 *{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.width100 img{
  width: 100% !important;
  height:auto !important;
}


@media (max-width: 768px) {
  .mob-width img{
    width:100%;
  }
  .mob-hide{
    display:none !important;
  }
}
