/*
Theme Name: Tailor-Alter
Theme URI: https://tailor-alter.com
Description: A custom WordPress theme for Tailor-Alter.com
Version: 0.1
Author: Chris Ashton (Webdapper Ltd)
Author URI: https://ashton.codes
*/

@font-face {
  font-family: "Opulent Regular";
  src: url("/wp-content/themes/tailor-alter/font/opulent-regular.ttf");
}

* {
  box-sizing: border-box;
}

body {
  margin: auto;
  padding: 0px;
  background-color: #000;
  color: #ccc;
  font-family: arial, sans-serif;
  position: relative;
  min-height: 100vh;
}

.admin-bar {
  min-height: calc(100vh - 32px);
}

@media only screen and (max-width: 782px) {
  .admin-bar {
    min-height: calc(100vh - 46px);
  }
}

p {
  line-height: 24px;
  margin-bottom: 1.5em;
}

@media (min-width: 1140px) {
  p {
    text-align: justify;
  }
}

a {
  text-decoration: none;
  color: #77bbee;
}

a:hover {
  color: #aaeeff;
}

hr {
  margin: 20px 0px 5px;
  clear: both;
}

img {
  border: none;
  max-width: 100%;
}

table {
  border-collapse: separate;
  border-spacing: 1px;
  width: 100%;
  max-width: 500px;
  margin: 1em;
  color: white !important;
}

/* ----------------------------------------------------------- wordpress classes */

#wpadminbar {
  position: fixed !important;
}

@media (max-width: 1140px) {
  .wp-block-image .alignright {
    float: none !important;
    margin: 0 auto !important;
  }
}

/* ----------------------------------------------------------- utility classes */

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.location-icon a::after {
  content: "";
  width: 20px;
  height: 34px;
  vertical-align: middle;
  margin: 0 0 0 8px;
  background-image: url("/wp-content/themes/tailor-alter/img/misc/google_maps.png");
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
}

/* ----------------------------------------------------------- h1 styles */

h1 {
  font-family: "Opulent Regular", "Times New Roman", serif;
  font-weight: 100;
  font-size: 2.75em;
  padding-top: 0.25em;
  margin-top: 0;
  position: relative;
  display: inline-block;
}

/* mobile */
#header {
  max-width: calc(100% - 85px); /* approx width of menu toggle button */
  margin: 1em 15px 30px 15px;
}

h1::after {
  content: "";
  height: 88px;
  background-image: url("/wp-content/themes/tailor-alter/img/misc/sprite.png");
  background-size: 865px;
  background-repeat: no-repeat;
  background-color: transparent;
  position: absolute;
  top: -0.25em;
  right: 0;
}

h1::before {
  content: "";
  height: 1px;
  background-color: #ccc;
  position: absolute;
  bottom: 20%;
  right: 0;
  left: 100%;
  width: 9999px;
}

/* needed to prevent 'line' leaking out into the gutter */
.h1-wrapper {
  overflow: hidden;
}

.page-alterations h1 {
  padding-right: 100px;
}
.page-alterations h1::after {
  background-position: -262px 13px;
  background-size: 600px;
  width: 100px;
}

.page-bridal h1 {
  padding-right: 86px;
}
.page-bridal h1::after {
  background-position: -355px -180px;
  width: 86px;
}

.page-garment-embellishment h1 {
  padding-right: 130px;
}
.page-garment-embellishment h1::after {
  background-position: -370px -554px;
  width: 100px;
}
@media (max-width: 480px) {
  .page-garment-embellishment h1::after {
    top: 40px;
    right: 100px;
  }
}

.page-accessories-jewellery h1 {
  padding-right: 110px;
}
.page-accessories-jewellery h1::after {
  background-position: -370px -550px;
  width: 110px;
}

.page-portfolios h1 {
  padding-right: 134px;
}
.page-portfolios h1::after {
  background-position: -370px -360px;
  width: 134px;
}

.page-testimonials h1 {
  padding-right: 88px;
}
.page-testimonials h1::after {
  background-position: -430px -862px;
  background-size: 1000px;
  width: 88px;
}

.page-contact h1 {
  padding-right: 88px;
}
.page-contact h1::after {
  background-position: -362px -937px;
  width: 88px;
}

.page-about h1 {
  padding-right: 88px;
}
.page-about h1::after {
  background-position: -362px -1140px;
  width: 88px;
}

/* ----------------------------------------------------------- Container */

#container {
  margin: auto;
  max-width: 1125px;
  padding-bottom: 6em;
}

#model-container::before {
  content: "";
  position: absolute;
  background-image: url("/wp-content/themes/tailor-alter/img/misc/big_model.png");
  background-repeat: no-repeat;
  background-size: 100%;
}

/* BEGIN squeeze logo on mobile */
@media (max-width: 774px) {
  #model-container::before {
    width: 50px;
    height: 100vh;
    top: -12px;
  }
  .home #container {
    padding-left: 50px;
  }
  #header,
  h1 {
    padding-left: 40px;
  }
}
/* END squeeze logo on mobile */

@media (min-width: 775px) {
  #model-container::before {
    width: 88px;
    height: 308px;
    margin-left: 35px;
  }
  #container {
    padding-left: 138px; /* 88px + 50px */
  }

  /* larger model on homepage only */
  .home #model-container::before {
    width: 177px;
    height: 620px;
    margin-left: 0;
  }
  .home #container {
    padding-left: 177px;
  }
}

/* 1125 + 88 */
@media (min-width: 1213px) {
  #model-container::before {
    right: calc(55% + 375px);
  }
  .home #model-container::before {
    right: calc(55% + 325px);
  }
}
/* 1125 + 177 */
@media (min-width: 1302px) {
  .home #model-container::before {
    right: calc(55% + 325px);
  }
}

/* ----------------------------------------------------------- Header & figure */

.sub-headline {
  font-size: 12px;
  max-width: 550px; /* width of logo */
}

@media (min-width: 1140px) {
  #header {
    max-width: 550px;
    padding: 0;
  }

  #header::after {
    clear: both;
    display: table;
    content: "";
  }

  #header div.sub-headline {
    font-size: 15px;
  }

  #header .sub-headline-left {
    padding: 20px 0 0 15px;
    float: left;
  }

  #header .sub-headline-right {
    padding: 20px 5px 0 0;
  }
}

#header .sub-headline-right {
  float: right;
}

#header h2 {
  margin: 0;
  padding-top: 12px;
}

#header h2 a {
  display: inline-block;
}

/* ----------------------------------------------------------- Menu: */

#menu-toggle {
  display: none;
}

#menu-toggle .menu-toggle-bar {
  display: block;
  width: 44px;
  height: 3px;
  background-color: #ccc;
  margin: 14px 0;
  transition: 0.4s;
}

[data-toggled="true"] .bar--1 {
  transform: rotate(-45deg) translate(-16px, 6px);
}
[data-toggled="true"] .bar--2 {
  opacity: 0;
}
[data-toggled="true"] .bar--3 {
  transform: rotate(45deg) translate(-18px, -8px);
}

#menu ul li a:focus,
#menu ul li a:active {
  color: rgb(173, 238, 254);
}

#menu ul li.current-menu-item a {
  color: #999999;
}

#menu ul li a::after {
  margin: 0 auto;
  content: "";
  display: block;
  background-image: url("/wp-content/themes/tailor-alter/img/misc/sprite.png");
  background-repeat: no-repeat;
  background-color: transparent;
  width: 60px;
  height: 55px;
}

/* bridal & bespoke estimates */
#menu ul li.bridal a::after {
  background-position: 18px -128px;
  background-size: 1000%;
}
#menu ul li.bridal a:hover::after,
#menu ul li.bridal a:focus::after {
  background-position: -116px -128px;
}
#menu ul li.bridal.current-menu-item a::after {
  background-position: -248px -128px;
}

/* alterations */
#menu ul li.alterations a::after {
  background-position: 3px 7px;
  background-size: 360px;
}
#menu ul li.alterations a:hover::after,
#menu ul li.alterations a:focus::after {
  background-position: -77px 7px;
}
#menu ul li.alterations.current-menu-item a::after {
  background-position: -157px 7px;
}

/* accessories embellishment */
#menu ul li.garment-embellishment a::after {
  background-position: 7px -328px;
}
#menu ul li.garment-embellishment a:hover::after,
#menu ul li.garment-embellishment a:focus::after {
  background-position: -107px -328px;
}
#menu ul li.garment-embellishment.current-menu-item a::after {
  background-position: -219px -328px;
}

/* garment portfolio */
#menu ul li.portfolios a::after {
  background-position: 2px -212px;
}
#menu ul li.portfolios a:hover::after,
#menu ul li.portfolios a:focus::after {
  background-position: -111px -212px;
}
#menu ul li.portfolios.current-menu-item a::after {
  background-position: -224px -212px;
}

/* testimonials */
#menu ul li.testimonials a::after {
  background-position: 15px -520px;
  background-size: 1000%;
}
#menu ul li.testimonials a:hover::after,
#menu ul li.testimonials a:focus::after {
  background-position: -124px -520px;
}
#menu ul li.testimonials.current-menu-item a::after {
  background-position: -257px -520px;
}

/* contact */
#menu ul .contact a::after {
  background-position: 15px -653px;
  background-size: 1000%;
}
#menu ul li.contact a:hover::after,
#menu ul li.contact a:focus::after {
  background-position: -118px -653px;
}
#menu ul li.contact.current-menu-item a::after {
  background-position: -251px -653px;
}

/* about */
#menu li.about {
  margin: 0;
}
#menu ul li.about a::after {
  background-position: 22px -670px;
}
#menu ul li.about a:hover::after,
#menu ul li.about a:focus::after {
  background-position: -91px -670px;
}
#menu ul li.about.current-menu-item a::after {
  background-position: -205px -670px;
}

/* Nested items: angled marker before label (›) */
#menu .sub-menu a::before {
  content: "\203A";
  display: inline-block;
  margin-right: 0.4em;
  color: rgb(173, 238, 254);
  font-size: 0.92em;
  font-weight: bold;
  line-height: 1;
  opacity: 0.82;
  vertical-align: 0.08em;
}
#menu .sub-menu a:hover::before,
#menu .sub-menu a:focus::before {
  opacity: 1;
}

@media (max-width: 1139px) {
  #menu {
    position: absolute;
    top: 0;
    right: 0;
  }

  #menu-toggle {
    display: block;
    float: right;
    border: 0;
    background: 0;
    color: #ccc;
    padding: 0 0 1em 1em;
    margin: 0 10px 0 0;
    text-decoration: underline;
    outline: none;
  }

  #menu-toggle:hover {
    cursor: pointer;
    opacity: 0.5;
  }
  #menu-toggle:focus-visible {
    cursor: pointer;
    opacity: 0.5;
  }

  #menu[data-toggled="true"] {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    z-index: 10;
  }

  #menu[data-toggled="true"] #menu-main-menu a {
    border-bottom: 1px solid #333;
    display: block;
    padding: 1.4em 1em 1.5em 100px;
  }

  #menu[data-toggled="true"] #menu-main-menu a:hover,
  #menu[data-toggled="true"] #menu-main-menu a:focus {
    background-color: #1a1919;
    color: #77bbee; /* i.e. don't change text color on hover/focus */
    text-decoration: underline;
  }

  #menu[data-toggled="false"] #menu-main-menu {
    display: none;
  }

  #menu[data-toggled="true"] #menu-main-menu {
    display: block;
    padding: 0;
    list-style: none;
    margin: 0;
  }

  #menu[data-toggled="true"] #menu-toggle {
    /* hack needed for toggle button to work after menu opened */
    z-index: 99;
    position: absolute;
    top: 0;
    right: 0;
  }

  #menu ul li {
    position: relative;
  }

  #menu ul li a::after {
    margin: 0 !important;
    position: absolute;
    top: 0;
    left: 15px;
  }

  /* Nested pages: stay visible, indent under parent */
  #menu .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu .sub-menu li {
    margin: 0;
    min-width: 0;
    max-width: none;
  }

  #menu[data-toggled="true"] #menu-main-menu .sub-menu a {
    padding: 1.1em 1em 1.1em 110px;
    font-size: 16px;
    font-weight: normal;
  }

  #menu[data-toggled="true"] #menu-main-menu .sub-menu a::after {
    display: none !important;
    content: none !important;
  }
}

@media (min-width: 1140px) {
  #menu {
    max-width: 955px;
    margin-bottom: 60px;
  }

  #menu-main-menu {
    padding: 0;
    display: flex;
    justify-content: space-around;
  }

  #menu ul li {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    list-style-type: none;
    text-align: center;
    vertical-align: top;
    margin: 0 0.5em;
    min-width: 5em;
    max-width: 9em;
    white-space: normal;
  }

  #menu ul li a {
    display: block;
    position: relative;
    padding-bottom: 55px;
    height: 100%;
  }

  #menu ul li a::after {
    position: absolute;
    bottom: 0;
    left: calc(50% - 30px);
  }

  /* One-level dropdowns: desktop only */
  #menu-main-menu > li.menu-item-has-children {
    position: relative;
  }

  #menu-main-menu > li > ul.sub-menu {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: 100%;
    margin: 0;
    padding: 0.35em 0;
    min-width: 11.5em;
    max-width: 16em;
    list-style: none;
    background-color: #000;
    border: 1px solid #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease;
  }

  #menu-main-menu > li.menu-item-has-children:hover > ul.sub-menu,
  #menu-main-menu > li.menu-item-has-children:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #menu .sub-menu li {
    display: block;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: none;
    white-space: normal;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.25;
  }

  #menu .sub-menu a {
    padding: 0.55em 0.85em;
    height: auto;
  }

  #menu .sub-menu li a::after {
    display: none !important;
    content: none !important;
  }
}

/* ----------------------------------------------------------- Page content */

#content {
  max-width: 918px;
  margin: 1.5em 15px;
  clear: right;
  overflow: hidden;
  position: relative;
}

@media (min-width: 1140px) {
  #content {
    clear: both;
    padding: 0;
    overflow: hidden;
  }

  .home #content {
    max-width: 955px;
  }
}

#content h2,
#content h3 {
  font-weight: normal;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
}

#content h2 {
  font-size: 1.4em;
}

#content h3 {
  font-size: 1.2em;
}

/* ----------------------------------------------------------- Footer (scoped to .site-footer only) */

.site-footer {
  clear: both;
  width: 100%;
  margin-top: 3.5rem;
  border-top: 1px solid #1e1e1e;
  color: #8a8a8a;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
}

.site-footer .site-footer__inner {
  max-width: 955px;
  margin: 0 auto;
  padding: 0 15px 2rem;
}

.site-footer .site-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2.5rem 3rem;
  padding: 2.75rem 0 2.25rem;
}

.site-footer .site-footer__heading {
  font-family: "Opulent Regular", "Times New Roman", serif;
  font-weight: 100;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6e6e6e;
  margin: 0 0 1.15rem;
  padding: 0;
  line-height: 1.4;
}

.site-footer .site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .site-footer__menu li {
  margin: 0 0 0.55rem;
  padding: 0;
  line-height: 1.45;
}

.site-footer .site-footer__menu li:last-child {
  margin-bottom: 0;
}

.site-footer .site-footer__menu a {
  color: #a8a8a8;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.site-footer .site-footer__menu a:hover,
.site-footer .site-footer__menu a:focus {
  color: #c9c9c9;
  text-decoration: none;
}

.site-footer .site-footer__bar {
  border-top: 1px solid #222;
  padding: 1.35rem 0 1.5rem;
  text-align: center;
}

.site-footer .site-footer__bar-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .site-footer__bar-menu a {
  color: #888;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .site-footer__bar-menu a:hover,
.site-footer .site-footer__bar-menu a:focus {
  color: #b5b5b5;
}

.site-footer .site-footer__copyright {
  margin: 0;
  padding: 0 0 0.25rem;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #555;
}

@media (max-width: 540px) {
  .site-footer .site-footer__columns {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 1.75rem;
  }
}

/* ----------------------------------------------------------- Social media follow section */

div.follow {
  max-width: 290px;
  width: 100%;
  height: 32px;
  position: relative;
}

.container-home .follow {
  float: right;
}

div.follow span {
  float: left;
  height: 32px;
  line-height: 32px;
}

div.follow .addthis_tailor {
  float: right;
}

div.follow a {
  height: 32px !important;
  width: 32px !important;
  float: left;
  margin: 0px 2px;
}

div.follow a.etsy {
  background: url("/wp-content/themes/tailor-alter/img/etsy.jpg") transparent
    no-repeat;
}
div.follow a.facebook {
  background: url("/wp-content/themes/tailor-alter/img/facebook.png") transparent
    no-repeat;
}
div.follow a.twitter {
  background: url("/wp-content/themes/tailor-alter/img/twitter.png") transparent
    no-repeat;
}
div.follow a.pinterest {
  background: url("/wp-content/themes/tailor-alter/img/pinterest.png") transparent
    no-repeat;
}
div.follow a.instagram {
  background: url("/wp-content/themes/tailor-alter/img/instagram.png") transparent
    no-repeat;
}

/* ----------------------------------------------------------- Metaslider overrides */

.metaslider {
  margin: 60px auto;
}

.slides {
  display: flex;
  align-items: center;
}

.metaslider > div,
.metaslider .flexslider,
.metaslider .slides {
  max-height: inherit !important;
}

.ms-image {
  /* make caption absolutely positioned to bottom of li, not rising when image is short */
  position: static !important;
}

.flexslider .slides img {
  width: auto !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

.metaslider-title {
  display: block;
  font-weight: bold;
}

.metaslider .flexslider:hover .flex-next,
.metaslider .flexslider:hover .flex-prev {
  background-color: white !important;
  border-radius: 10px;
  opacity: 1 !important;
}
.flex-direction-nav a.flex-prev:focus-visible,
.flex-direction-nav a.flex-next:focus-visible {
  background-color: white !important;
  border-radius: 10px;
  opacity: 1 !important;
}

.metaslider .flexslider:hover .flex-next {
  background-position: -28px;
  right: 5px !important;
}
.flex-direction-nav a.flex-next:focus-visible {
  background-position: -28px;
  right: 5px !important;
}

.metaslider .flexslider:hover .flex-prev {
  background-position: 0;
  left: 5px !important;
}
.flex-direction-nav a.flex-prev:focus-visible {
  background-position: 0;
  left: 5px !important;
}

/* ----------------------------------------------------------- Contact Form 7 overrides */

.wpcf7-form {
  max-width: 650px;
  color: rgb(85, 85, 85);
  background-color: #ccc;
}

.wpcf7-form p,
.wpcf7-form fieldset {
  margin: 0;
  border: 0;
  border-bottom: 1px solid black;
  padding: 0;
}

.wpcf7-form label {
  width: 25%;
  display: inline-block;
  text-align: right;
  padding-right: 1em;
  vertical-align: top;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 74%;
  display: inline-block;
  line-height: 2em;
  border: 0;
}

.wpcf7-form input {
  line-height: 2em;
  border: 0;
}

.wpcf7-form .wpcf7-submit {
  width: auto;
  margin: 1em auto;
  padding: 1em;
  border: 1px solid #ccc;
  display: block;
}
