/*
Theme Name: Hair Magic
Theme URI: https://hairmagicspain.com/
Author: Jesse Naylor
Author URI: https://jessenaylor.com
Description: Ultra-lean, SEO-first, performance-optimised WordPress theme (Classic Editor workflow), built from scratch for Hair Magic (Mijas Costa, Costa del Sol).
Version: 0.1.0
Text Domain: hairmagic
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/


/* Self-hosted Web-fonts */

@font-face{
  font-family: "Outfit";
  src: url("fonts/outfit-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Outfit";
  src: url("fonts/outfit-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* CSS reset */

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{scroll-behavior:smooth;box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{line-height:1}a{text-decoration-skip-ink:auto}button{outline:0}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}q{display:inline;font-style:italic}q:before{content:'"';font-style:normal}q:after{content:'"';font-style:normal}textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}table{border-collapse:collapse;border-spacing:0}th,td{padding:2px}big{font-size:120%}small,sup,sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd,tt{font-family:courier;font-size:12px}ins{text-decoration:underline}del,strike,s{text-decoration:line-through}dt{font-weight:700}address,cite,var{font-style:italic}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}*{-webkit-tap-highlight-color:#fff0}.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute!important}


/* General */

:root{
  --hm-font-body: "Outfit",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;--hm-font-head: "Outfit",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
body{
  font-family: var(--hm-font-body);
  font-weight: 200;
  background: #000;
  color: #FFF;
}
h1,h2,h3,h4,h5,h6{
  font-family: var(--hm-font-head);
  font-weight: 900;
  line-height: 1.05;
  color: #FFC;
}
.skip-link{
  position: absolute;
  top: 0;
  left: 0;
  color: #FFF;
  background: #000;
  display: inline-block;
  padding: 5px;
  transform: translateY(-100%);
}
.skip-link:focus{
  transform: translateY(0);
}
.container {
  max-width: 1400px;
  width: 80%;
  margin: 0 auto;
}
.cols_x2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}
.cols_x2 > * {
  width: calc(50% - 2.5rem);
}
.cols_x2 > *:first-child {
  margin: 0 auto 0 0;
}
.cols_x2 > *:last-child {
  margin: 0 0 0 auto;
}
main {
  padding-bottom: 10vw;
}
.page-template-default main {
  padding-top: 25vh;
  padding-top: 25dvh;
}


/* Header */

#header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  display: block;
  pointer-events: none;
}
#header::before {
  content: "";
  position: absolute;
  top: -20vh;
  right: 0;
  left: 0;
  height: 20vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 80%);
  opacity: .8;
  transition: all 2s;
}
#header.sticky::before {
  top:0;
}
#header .container {
  pointer-events: none;
}
#header .container > * {
  pointer-events: all;
}
.site-title, .title {
  font-family: var(--hm-font-head);
  font-size: clamp(3.6rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1em;
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  color: #FFC;
  display: block;
  transition: all .4s;
}
.site-title {
  margin-right: -.929203em;
}
.site-title a {
  color: inherit;
  text-decoration: none;
}
body:not(.page-template-home-template) .site-title {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
}
.subtitle {
  display: block;
  margin-top: 0.8rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 200;
  letter-spacing: 0.03em;
  line-height: 1.3em;
  max-width: 30em;
  transition: all .4s;
}
#header.sticky .site-title {
  font-size: 1.5rem;
}
#header.sticky .subtitle {
  font-size: 0;
}
#header .container {
  position: relative;
  height: 78vh;
  height: 78dvh;
}
#header #branding {
  position: absolute;
  top: calc(100% - 130px);
  left: 0;
  min-width: 10em;
  transition: all .4s;
}
#header.sticky #branding, .page-template-default #header #branding {
  top: 0;
}
.page-template-home-template #header .container {
  position: relative;
  height: calc(100vh - 10px);
  height: calc(100dvh - 10px);
}
.page-template-home-template #header #branding {
  position: absolute;
  top: calc(90% - 165px);
  left: 0;
  transition: all .4s;
}
.page-template-home-template #header.sticky #branding {
  top: 0;
}
#menu ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: baseline;
  padding: 6px 0 0 11em;
}
#menu ul li {
  width: fit-content;
}
#menu ul li:not(:first-child) {
  padding-left: 1.5em;
}
#menu ul li a {
  display: block;
  padding: 0 0 2px;
  color: #FFF;
  text-decoration: none;
  /*text-transform: uppercase;
  letter-spacing: .15em;*/
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1em;
  position: relative;
}
#menu ul li a::before {
  content: "";
  height: 1px;
  width: 0;
  background: #FFF;
  position: absolute;
  bottom: 0;
  left: 50%;
  transition: .8s;
}
#menu ul li a:hover::before {
  width: 100%;
  left: 0;
  transition: .2s;
}


/* Hero */

#hero {
  position: relative;
  display: block;
  width: 100%;
  height: calc(86vh - 60px);
  height: calc(86dvh - 60px);
  margin: 0;
  padding: 0;
  transition: all .4s;
}
.page-template-home-template #hero {
  height: 100vh;
  height: 100dvh;
}
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1));
  z-index: 0;
  opacity: .1;
  transition: 2s;
}
.video-bg::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30vh;
  background: linear-gradient(180deg,rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 1) 100%);
  z-index: 0;
}
.video-bg__fallback{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  display: none;
}
.video-bg.is-fallback #bgVideo {
  display: none;
}
.video-bg.is-fallback .video-bg__fallback {
  display: block;
}
#header.sticky + main #hero {
  height: 50vh;
  height: 50dvh;
  transition: all 1s;
}
#header.sticky + main .video-bg::before {
  opacity: 1;
}


/* Content */

article h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  margin: 0 0 3rem;
}
body:not(.page-template-home-template) #header + main article h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  margin-bottom: 14vh;
  margin-bottom: 14dvh;
  transition: all .4s;
}
body:not(.page-template-home-template) #header.sticky + main article h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  margin: 0 0 3rem;
}
article h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
}
article h2:not(:first-child) {
  margin-top: 2rem;
}
article h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 1.5em 0 1em;
}
article h4 {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  margin: 1.25em 0 1em;
}
article p, article dt, article dd {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.4em;
}
article p:not(:last-child) {
  margin-bottom: 1em;
}
article dt {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2em;
  margin-bottom: .5em;
}
article dd:not(:last-child) {
  margin-bottom: 1.5em;
}
article ul, article ol {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.4em;
  margin-top: 1em;
  padding: 0 0 0 4em;
}
article ul:not(:last-child), article ol:not(:last-child) {
  margin-bottom: 2em;
}
article ul {
  list-style-type: disc;
}
article li {
  padding: 0 0 0 1em;
  margin: 0 0 .5em;
}
article strong {
  font-weight: 900;
  letter-spacing: .03em;
}
.page-template-page-service article a:not(.cta) {
  text-decoration: underline;
  color: inherit;
}
.page-template-page-service article .cta {
  margin: 2em 0;
}
.alignleft {
  float: left;
  margin: 0 2rem 2rem 0;
}
.alignright {
  float: right;
  margin: 0 0 2rem 2rem;
}
.clr {
  clear: both;
  margin-top: 1rem;
}
article img.clr + * {
  margin-top: 5rem;
}
article p + h2:not(:first-child) {
  clear: both;
  margin-top: 5rem;
}
article a {
  color: inherit;
}
.cta {
  display: block;
  width: fit-content;
  padding: .5em 1em;
  color: #FFF;
  border: 2px solid #FFF;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all .8s;
}
.cta:focus, .cta:hover {
  text-shadow: 0 0 3px #FFF, 0 0 6px #FFF;
  box-shadow: inset 0 0 6px #FFF, 0 0 12px #FFF9;
  transition: all .4s;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  z-index: -1;
  width: calc(200% + 1px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 60%, rgba(255, 255, 255, 1) 70%, rgba(0, 0, 0, 0) 90%);
  transition: all ease-in .4s;
}
.cta:focus::before, .cta:hover::before {
  right: -100%;
  transition: all ease-out .4s;
}
section::after {
  content: "";
  display: table;
  clear: both;
}
article section + section:last-child {
  padding-bottom: 3rem !important;
  border-bottom: 2px solid #FFF;
}
article .container + .container:last-child .cta:last-child {
  margin: 4em 0 0;
}
#faq, #gallery, #pricing {
  margin: 5rem 0 0;
  padding: 3rem 0 0;
  border-top: 2px solid #FFF;
}
.faq-intro {
  padding: 0 25% 0 1em;
  margin-bottom: 2em !important;
  border-left: 2px solid #FFF;
  font-style: italic;
}
.gallery-container {
  margin: 2rem -30px 0 0;
  width: calc(100% + 30px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}
.gallery-container > * {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 150px;
  margin: 0 30px 30px 0;
}
figcaption {
  margin: 4px -8px 0 0;
  font-size: .933334em;
  line-height: 1.2em;
}
.price-block {
  display: block;
  border: 2px solid #FFF;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
}
.price-block > *:first-child {
  margin-top: 0;
}
.price-block > *:last-child {
  margin-bottom: 0;
}
ul.price-list {
  list-style: disc;
  list-style-position: outside;
  padding-right: 3em;
  max-width: 47.25em;
}
ul.price-list li {
  /*align-items: baseline;*/
  padding: 0 0 2px 1em;
  position: relative;
  max-width: 40.25em;
}
ul.price-list li::after {
  content: 
  ". . . . . . . . . . . . . . . . . . . . "
  ". . . . . . . . . . . . . . . . . . . . "
  ". . . . . . . . . . . . . . . . . . . . "
  ". . . . . . . . . . . . . . . . . . . . ";
  line-height: .75em;
  position: absolute;
  bottom: 0;
  left: 1em;
  width: calc(100% - 1em);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  opacity: .5;
  clear: both;
}
ul.price-list li .product {
  text-align: left;
  margin: 0 auto 0 0;
  float: left;
}
ul.price-list li .price {
  display: block;
  text-align: right;
  margin: 0 0 0 auto;
}
ul.price-list li .before-price {
  font-size: 1rem;
  display: inline-block;
  vertical-align: baseline;
}


/* Footer */

#footer {
  background: #000C;
  color: #FFF;
  padding: 5rem 0;
}
.footer-top {
  line-height: 1.4em;
}
.footer-title {
  display: block;
  font-size: 1.5rem;
  margin: 0 0 1em;
  color: #FFC;
}
.hm-map.is-loaded .hm-map__fallback{
  display: none;
}
.hm-map__canvas{
  min-height: 320px;
}
.footer-site-title {
  font-family: var(--hm-font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1em;
  text-transform: uppercase;
  display: block;
  margin: 1em 0 .5em;
}
.address, .telephone, .social-links:not(:last-child) {
  margin: 0 0 .5em;
}
.footer-bottom {
  margin-top: 5rem;
  font-size: .8rem;
  line-height: 1.4em;
  color: #999;
}
.credits span {
  display: inline-block;
}
#footer a {
  color: inherit;
  text-decoration: none;
}
#footer a:focus, #footer a:hover {
  text-decoration: underline;
}
#footer nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: baseline;
}
#footer nav ul li + li {
  margin-left: 1.5em;
}


/* Contact */

.form-container {
  margin-left: auto;
}
.hm-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  margin: .75rem 0;
}
.field:first-of-type {
  margin-top: 0;
}
label {
  display: block;
  margin: 0 0 .25em;
}
input:not([type=checkbox]), button[type=submit], textarea {
  appearance: unset;
  outline: none;
  border: none;
  box-shadow: none;
  background: #333;
  color: #FFF;
  font-family: var(--hm-font-body);
  font-size: 1.25rem;
  line-height: 1.25em;
  display: block;
  width: 100%;
  margin: 0;
  padding: .15em .3em;
  transition: all .8s;
}
input:not([type=checkbox]):focus, button[type=submit]:focus, textarea:focus {
  outline: 1px solid #FFF;
}
input[type=checkbox] {
  outline: none;
  border: none;
  box-shadow: none;
  background: #333;
  color: #FFF;
  font-size: 1.25rem;
  line-height: 1.25em;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 .5em 0 0;
  vertical-align: middle;
}
button[type=submit] {
  cursor: pointer;
  width: fit-content;
  margin: 0 0 0 auto;
  padding: .5em 2rem;
}
.form-ok, .form-err {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  line-height: 1.25em;
  color: #FFF;
  background: #390;
}
.form-err {
  background: #C30;
}
.small {
  font-size: .8rem;
  line-height: 1.4em;
}
.small a {
  text-decoration: underline;
}


/* Effects & animations */

.site-title-stars {
  font-size: clamp(3.6rem, 5vw, 4.8rem);
  color: #FFC;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 5.6em;
  transition: all .4s;
}
body:not(.page-template-home-template) .site-title-stars {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
}
#header.sticky .site-title-stars {
  font-size: 1.5rem;
}
.hm-stars {
  overflow: visible;
  display: inline-block;
  letter-spacing: -0.06em;
  line-height: 1em;
  width: .929203em;
  height: .722713em;
  margin: -.221238em 0 .191740em -.058997em;
  animation: hmStarsIn 1.4s cubic-bezier(.2,.9,.2,1);
}
.hm-star{
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  opacity: 0;
  animation: hmStarIn 900ms cubic-bezier(.2,.9,.2,1) both;
}
.hm-star.s1{ animation-delay: 0ms; }
.hm-star.s2{ animation-delay: 80ms; }
.hm-star.s3{ animation-delay: 160ms; }
.hm-star.s4{ animation-delay: 240ms; }
.hm-star.s5{ animation-delay: 320ms; }
.hm-star.s6{ animation-delay: 400ms; }
.hm-star.s7{ animation-delay: 480ms; }
.hm-star.s8{ animation-delay: 560ms; }

@keyframes hmStarsIn{
  from { transform: translateX(-.5em); }
  to   { transform: translateX(0);      }
}
@keyframes hmStarIn{
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);    opacity: 1; }
}
/* accessibility + PSI-friendly */
@media (prefers-reduced-motion: reduce){
  .hm-star{ animation: none; opacity: 1; }
}


/* Responsive */

@media all and (max-width: 767px) {
  .container {
    width: calc(100% - 40px);
  }
  .site-title {
    max-width: 5em;
    line-height: .85em;
  }
  .site-title-stars {
    top: .75em;
    left: 3.2em;
  }
  .subtitle {
    max-width: 14em;
  }
  #header #branding {
    top: calc(90% - 130px);
  }
  .page-template-home-template #header #branding {
    top: calc(90% - 165px);
  }
  .page-template-home-template #header.sticky #branding, #header.sticky #branding, .page-template-default #header #branding {
    top: 10px;
  }
  #menu ul {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-left: 7em;
  }
  #menu ul li:not(:first-child) {
    padding-left: 0;
  }
  #menu ul li a {
    padding: 4px 0;
  }
  #menu ul li a::before {
    display: none;
  }
  .page-template-home-template article section > div > p:first-child + h2 {
    margin-top: 2rem;
  }
  article img + h2:not(:first-child) {
    margin-top: 0;
  }
  .alignleft, .alignright {
    float: none;
    margin: 0;
    width: 100%;
    height: auto;
  }
  article ul, article ol {
    padding-left: 2em;
  }
  article li {
    padding-left: 0;
  }
  .gallery-container {
    margin-right: -20px;
    width: calc(100% + 20px);
  }
  .gallery-container > * {
    margin: 0 20px 20px 0;
    max-width: calc(50% - 20px);
  }
  .gallery-container img {
    max-width: 100%;
    height: auto;
  }
  figcaption {
    margin-right: -2px;
    font-size: .866667em;
  }
  .price-block {
    padding: 1rem 1.15rem;
  }
  ul.price-list {
    padding-right: 1em;
    padding-left: 1em;
  }
  ul.price-list li {
    padding-left: 0;
    line-height: 1.1em;
  }
  ul.price-list li .before-price {
    font-size: .8rem;
  }
  ul.price-list li .product {
    max-width: calc(100% - 6.5em);
  }
  ul.price-list li::after {
    clear: both;
    position: static;
    line-height: 0;
    width: 100%;
    height: 7px;
    margin: -3px 0 0;
    display: block;
  }
  #pricing > p:last-child {
    text-align: center;
    max-width: 13em;
    margin-left: auto;
    margin-right: auto;
  }
  article .container + .container:last-child .cta:last-child {
    margin: 2em 0 0;
  }
  .faq-intro {
    padding-right: 15%;
  }
  #contact {
    padding-top: 15vh;
    padding-top: 15dvh;
    margin-top: -15vh;
    margin-top: -15dvh;
    pointer-events: none;
  }
  #contact > * {
    pointer-events: all;
  }
  #footer {
    padding: 2rem 0;
  }
  #footer .cols_x2 {
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
  }
  #footer .cols_x2 > * {
    width: 100%;
    margin: 0;
  }
  #footer .cols_x2 > *:last-child {
    margin: 4rem 0 0;
  }
  #footer .footer-bottom {
    text-align: center;
  }
  #footer .footer-bottom.cols_x2 > *:last-child {
    margin-top: 1.5rem;
  }
  #footer nav ul {
    justify-content: center;
  }
}

/*@supports (-webkit-hyphens: none) and (not (hyphens: none)) {*/
/*@media (min-width: 768px) {*/
  @supports (background: -webkit-named-image(i)) {
    /* Safari-only styles here */
    ul.price-list li::marker {
      content: none !important;
      font-size: 0 !important;
    }
    ul.price-list {
      width: 100%;
      list-style: none !important;
    }
    ul.price-list li {
      width: 100%;
      position: relative;
      padding-left: .5em;
    }
    ul.price-list li::before {
      content: "•";
      position: absolute;
      left: 0;
      top: 0;
      line-height: inherit;
    }
  }
/*}*/