/*
Theme Name: Tower Glass
Theme URI:
Author: Skyline Internet
Author URI:
Description: A bespoke theme for Tower Glass, based on TwentyTwentyFive
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tower-glass
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
:root {
  --sidebarWidth: 80dvw;
}

html,
body {
  overflow-x: hidden;
}

a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline: none;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
  overflow-x: auto;
}

:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {
  background-color: var(--wp--preset--color--orange-base) !important;
  opacity: 0.95;
}

:root
  :where(
    .wp-block-button.is-style-outline--2
      .wp-block-button__link.wp-block-button__link:not(.has-background):hover
  ) {
  background: none !important;
  opacity: 0.95;
}

.wp-block-button:hover {
  transform: scale(1.05);
  transition: transform 0.2s;
}

/* About */

.about {
  height: fit-content;
  align-self: center;
  margin-left: -150px !important;
  margin-bottom: -50px !important;
}

.about strong {
  font-weight: 400;
}

/* Products */

.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal {
  bottom: -50px;
}

.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet {
  background: var(--wp--preset--color--orange-base) !important;
  opacity: 0.1;
}

.wp-block-cb-carousel-v2
  .cb-pagination
  .cb-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--wp--preset--color--orange-base) !important;
  opacity: 1;
}

/* Brochure */

.brochure {
  width: -webkit-fill-available;
  margin-left: -150px !important;
  margin-bottom: -50px !important;
}

/* Reviews */

body .ti-widget.ti-goog .ti-review-item > .ti-inner {
  background-color: var(--wp--preset--color--blue-10) !important;
}

.why-choose .icon {
  width: fit-content;
}

/* Form */

.home .wpcf7 input,
.home .wpcf7 textarea,
.home .wpcf7 input::placeholder,
.home .wpcf7 textarea::placeholder,
.home .wpcf7-list-item-label {
  color: var(--wp--preset--color--base);
}

.home .wpcf7 input,
.home .wpcf7 textarea {
  border-color: var(--wp--preset--color--base);
}

.wpcf7 input,
.wpcf7 textarea {
  border-color: var(--wp--preset--color--custom-border) !important;
}

.wpcf7 input,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
.wpcf7-list-item-label {
  color: var(--wp--preset--color--contrast);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  border: 2px solid;
  border-radius: 0.5em;
  padding: 1.25em 1.5em !important;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 200;
  font-size: 17px;
  background: none;
  width: -webkit-fill-available;
  margin-bottom: 1em;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  font-weight: 400;
}

.wpcf7 .wpcf7-submit {
  background: var(--wp--preset--color--orange-base);
  color: var(--wp--preset--color--base);
  border: none;
  padding: 1rem 2.25rem !important;
  transition: all 0.25s;
  font-family: var(--wp--preset--font-family--noto-sans-jp);
  font-weight: 500;
  width: -webkit-fill-available;
  font-size: 1.125rem;
  border-radius: 0.5em;
  line-height: 1.4;
}

.wpcf7 .wpcf7-submit:hover {
  cursor: pointer;
  opacity: 0.95;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline-style: none !important;
}

.wpcf7-list-item {
  margin: 0 0 1em 0 !important;
}

.wpcf7-list-item-label {
  font-size: 0.8em;
}

/* FAQ's */

.wp-block-accordion,
.wp-block-details {
  width: -webkit-fill-available;
}

.wp-block-details {
  border-bottom: 1px solid #eee;
}

.wp-block-details summary {
  font-weight: 500;
  padding-bottom: 1em;
  list-style: none;
}

.wp-block-details summary::marker {
  content: none;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::after {
  content: " +";
  float: right;
  text-align: right;
  border-radius: 50%;
}

.wp-block-details summary::after,
.wp-block-accordion-heading__toggle-icon {
  color: var(--wp--preset--color--orange-base);
  font-size: 1.3em !important;
  font-weight: 500;
}

.wp-block-details[open] summary::after {
  content: " -";
  line-height: 1.35;
}

.wp-block-accordion-item.is-open
  > .wp-block-accordion-heading
  .wp-block-accordion-heading__toggle-icon,
.wp-block-details[open] summary::after {
  color: var(--wp--preset--color--blue-base);
  font-size: 1.3em !important;
}

.wp-block-details p {
  margin: 0 0 1em 0 !important;
}

.wp-block-accordion-item {
  padding: 0.75em 0;
}

/* Footer */

footer {
  margin-block-start: 0;
}

footer .products ul.wp-block-navigation {
  columns: 2;
  display: block !important;
  gap: 2em;
}

footer .products ul.wp-block-navigation li {
  padding-bottom: 0.5em;
}

@media (max-width: 884px) {
  .is-layout-grid {
    grid-template-columns: 1fr;
  }

  .is-layout-grid > * {
    min-width: 0;
  }

  body.home .brochure,
  body.home .about {
    margin: 0 !important;
    width: 100%;
    height: auto;
  }

  .wp-block-cover__inner-container {
    width: 100% !important;
  }

  body.home .home-banner-content {
    padding: 0 1rem !important;
  }

  body.home .home-banner-content > * {
    max-width: 100%;
    width: 100%;
  }
}

/* Merchant & Distributing Page */

.gardner-newton-logos.is-layout-grid {
  height: fit-content;
  row-gap: 2em;
  column-gap: 3em;
  align-items: center;
  align-self: center;
}

.who-we-work-with {
  height: fit-content;
  align-self: center;
  margin-left: -150px !important;
}

.sticky {
  position: sticky !important;
  top: 15dvh;
}

.section-bookmark .wp-block-group {
  border-left: 2px solid var(--wp--preset--color--blue-base);
  transition: all 0.75s;
}

.section-bookmark .wp-block-group.active {
  border-left: 5px solid var(--wp--preset--color--blue-base);
}

.section-bookmark .wp-block-group.active p:last-of-type a {
  color: rgba(169, 191, 231, 0.9);
}

.section-bookmark .wp-block-group p:last-of-type a {
  font-weight: 300;
  font-size: 1.15rem;
}

.gw-mm-item__dropdown {
  padding: 0 !important;
}

.slashed-covers .wp-block-column .wp-block-cover {
  width: calc(100% + var(--split-angle));
}

.slashed-covers .wp-block-column {
  transition: all 0.25s;
}

.slashed-covers .wp-block-column:hover {
  flex-basis: var(--split-angle);
}

.slashed-covers .wp-block-column:nth-child(2) .wp-block-cover {
  margin-left: calc(-1 * var(--split-angle));
}

.slashed-covers {
  --split-angle: 9%;
}

.slashed-covers .wp-block-cover .wp-block-group {
  max-width: 45dvw;
  margin-left: 0 !important;
}

.slashed-covers .wp-block-column:nth-child(2) .wp-block-cover .wp-block-group {
  margin-right: 0 !important;
}

.slashed-covers .wp-block-column .wp-block-cover img {
  -webkit-clip-path: polygon(
    0% 0%,
    100% 0%,
    calc(100% - var(--split-angle)) 100%,
    0% 100%
  );
  clip-path: polygon(
    0% 0%,
    100% 0%,
    calc(100% - var(--split-angle)) 100%,
    0% 100%
  );
}

.slashed-covers .wp-block-column:nth-child(2) .wp-block-cover {
  -webkit-clip-path: polygon(
    var(--split-angle) 0%,
    100% 0%,
    100% 100%,
    0% 100%
  );
  clip-path: polygon(var(--split-angle) 0%, 100% 0%, 100% 100%, 0% 100%);
}

.list-flip li {
  display: flex;
  flex-direction: row-reverse;
}

nav .gw-mm-item__link a {
  padding: 40px 15px !important;
}

nav .gw-mm-item.has-children .gw-mm-item__link a {
  padding-right: 5px !important;
}

.items-stretch {
  align-items: stretch;
}

.mt-auto {
  margin-top: auto;
}

.\!mt-auto {
  margin-top: auto !important;
}

.items-stretch .wp-block-column > .wp-block-group {
  height: 100%;
}

html,
html body {
  scroll-behavior: smooth;
}

.wp-block-cover.cover-with-link {
  position: relative;
  padding: 0;
}

.wp-block-cover.cover-with-link .wp-block-cover__inner-container {
  position: relative;
  padding: 1em;
  display: flex;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  align-items: flex-end;
}

.wp-block-cover.cover-with-link
  .wp-block-cover__inner-container
  > p:first-of-type
  > a {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  background-color: blue;
  opacity: 0;
}

/* Gallery */

h2.jp-carousel-photo-caption,
.jp-carousel-icon-btn {
  display: none !important;
}

.swiper-zoom-container img {
  border-radius: 0.5em;
}

iframe {
  border-radius: 0.5em;
}

aside#sidebar {
  position: fixed;
  height: 100dvh;
  z-index: 99;
  background-color: #fff;
  left: 0;
  top: 0;
  min-width: 80dvw;
  max-width: var(--sidebarWidth);
  transform: translateX(calc(var(--sidebarWidth) * -1));
  transition: all 0.25s;
}

aside#sidebar.open {
  transform: translate(0);
  z-index: 6;
}

body.sidebar-open {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body.sidebar-open:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.5);
}

aside#sidebar .gw-mm-item__dropdown-wrapper {
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  transition: all 0.25s;
  transform: translateX(-110%);
  height: 100dvh !important;
  max-height: 100dvh;
  overflow-y: hidden;
  z-index: 999;
  max-width: var(--sidebarWidth) !important;
}

aside#sidebar .gw-mm-item__dropdown-wrapper > .gw-mm-item__dropdown {
  height: 100dvh;
  margin-top: 0 !important;
  overflow-y: scroll;
  overflow-x: hidden;
  left: 0 !important;
  top: 0 !important;
}

aside#sidebar .gw-mm-item__dropdown-wrapper.is-opened {
  transform: translateX(0);
}

aside#sidebar .gw-mm-item__dropdown--mega-menu-close {
  width: 100%;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  color: #1a1a1a;
  font-weight: 400;
}

aside#sidebar .gw-mm__wrapper ul.gw-mm__content {
  flex-direction: column;
  align-items: stretch;
}

aside#sidebar .gw-mm-item .gw-mm-item__toggle {
  transform: rotate(-90deg);
}

aside#sidebar .gw-mm__wrapper ul.gw-mm__content .gw-mm-item__link a {
  padding: 0.88rem 0rem 0.88rem 0.88rem !important;
  width: 100%;
}

aside#sidebar .wp-block-getwid-megamenu,
aside#sidebar .wp-block-getwid-megamenu > .gw-mm__wrapper,
aside#sidebar .wp-block-getwid-megamenu > .gw-mm__wrapper > .gw-mm__content,
aside#sidebar
  .wp-block-getwid-megamenu
  > .gw-mm__wrapper
  > .gw-mm__content
  > li {
  width: 100%;
}

span.gw-mm-item__dropdown--mega-menu-close {
  border-radius: var(--rounding);
  display: inline-block;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.12);
  padding: 0.5rem 1.25rem;
  width: 100%;
  text-align: center;
}

.wpcf7 form .wpcf7-response-output {
  --bgColor: #028cb6;
  --bdColor: #00789c;
  background-color: var(--bgColor);
  color: #fff;
  border-left: 5px solid var(--bdColor) !important;
  border-color: var(--bdColor);
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  padding: 1rem;
  font-size: 14px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  --bgColor: #be4c00;
  --bdColor: #8f4305;
}

.wpcf7 form.sent .wpcf7-response-output {
  --bgColor: #107c19;
  --bdColor: #04550b;
}

@media (max-width: 992px) {
  .slashed-covers .wp-block-cover .wp-block-group {
    max-width: 100%;
  }
}

.wp-block-cb-carousel-v2[data-cb-pagination="true"] .swiper-horizontal {
  margin-bottom: 0 !important;
}

@media (max-width: 992px) {
  .header-wrapper > .wp-block-group {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .slashed-covers .wp-block-column .wp-block-cover img {
    -webkit-clip-path: polygon(
      0% 0%,
      100% 0%,
      100% calc(100% - var(--split-angle)),
      0% 100%
    );
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% calc(100% - var(--split-angle)),
      0% 100%
    );
  }

  .slashed-covers .wp-block-column:nth-child(2) .wp-block-cover {
    -webkit-clip-path: polygon(
      0% var(--split-angle),
      100% 0%,
      100% 100%,
      0% 100%
    );
    clip-path: polygon(0% var(--split-angle), 100% 0%, 100% 100%, 0% 100%);
  }

  .slashed-covers .wp-block-column:nth-child(2) .wp-block-cover {
    margin-left: 0;
    margin-top: calc(-3 * var(--split-angle));
  }

  .slashed-covers .wp-block-cover__background {
    transform: rotate(180deg);
  }

  .slashed-covers .wp-block-column:nth-child(2) .wp-block-cover__background {
    background: linear-gradient(
      348deg,
      rgb(6, 147, 227) 20%,
      rgba(155, 81, 224, 0) 85%
    ) !important;
  }

  .slashed-covers .wp-block-column .wp-block-cover {
    width: 100%;
    min-height: 750px !important;
    overflow: hidden;
  }

  .slashed-covers
    .wp-block-column:nth-child(2)
    .wp-block-cover__inner-container,
  .slashed-covers
    .wp-block-column:nth-child(2)
    .wp-block-cover__inner-container
    > *,
  .slashed-covers
    .wp-block-column:nth-child(2)
    .wp-block-cover__inner-container
    h1 {
    text-align: left !important;
    align-items: flex-start;
  }

  .cta-block .wp-block-cover__background {
    background: linear-gradient(
      27deg,
      rgb(0 113 187 / 74%) 46%,
      rgb(0 113 187 / 46%) 87%
    ) !important;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="email"],
  .wpcf7 textarea {
    padding: 1.15em 1.25em !important;
    font-size: 15px;
  }

  .wpcf7 .wpcf7-submit {
    font-size: 15px;
    padding: 1.15em 1.25em !important;
  }

  body .page-banner .wp-block-cover__background {
    background: linear-gradient(
      90deg,
      rgba(0, 113, 187, 0.85) 35%,
      rgba(0, 113, 187, 1) 95%
    ) !important;
  }

  body .page-banner .wp-block-group > * {
    max-width: 100%;
  }

  .about,
  .who-we-work-with {
    margin-left: auto !important;
    margin-bottom: 0 !important;
    padding: var(--wp--preset--spacing--30) !important;
  }
}

@media (max-width: 884px) {
  .xs\:pt-0 {
    padding-top: 0 !important;
  }
  .xs\:mt-0 {
    margin-top: 0 !important;
  }

  .wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .slashed-covers {
    flex-direction: column;
  }

  .header-tel-btn,
  .wp-block-buttons:has(> .header-tel-btn),
  header .wp-block-getwid-megamenu {
    display: none !important;
  }

  header .wp-block-outermost-icon-block.block-visibility-hide-large-screen {
    display: flex !important;
  }
}

@media (min-width: 768px) and (max-width: 1220px) and (orientation: landscape) {
  .header-tel-btn,
  .wp-block-buttons:has(> .header-tel-btn) {
    display: none !important;
  }

  .slashed-covers .wp-block-cover {
    min-height: 100% !important;
  }

  header .gw-mm-item__dropdown-content .wp-block-group > .wp-block-group {
    padding: 0 !important;
  }
}

.about-grid-cards > div {
  flex-wrap: nowrap !important;
}

.about-grid-cards .wp-block-buttons {
  margin-top: auto;
  width: 100%;
}

.about-grid-cards .h-100 {
  height: 100%;
}