/*
Theme Name: Colegio El Limonar
Theme URI: https://colegioellimonar.es/
Author: Jesse Naylor - CREMA™ Studio
Author URI: https://jessenaylor.com/
Description: Custom WordPress theme for Colegio El Limonar.
Version: 0.1.0
Text Domain: limonar
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom
*/

/* 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}


/* Document Colours */

:root {
    --limonar-red: #7C0626;
    --limonar-red-alpha: #7C0626CC;
    --limonar-yellow: #EFBA1E;
    --limonar-yellow-alpha: #EFBA1E0C;
    --limonar-green: #326232;
    --limonar-grey: #3F3F3F;
}


/* Self-hosted Web-fonts */

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-semibold-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}


/* General */

:root {
  --limonar-font-body: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;--limonar-font-head: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
body {
  font-family: var(--limonar-font-body);
  font-weight: 400;
  background: #FFF;
  color: var(--limonar-grey);
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--limonar-font-head);
  font-weight: 600;
  line-height: 1.05;
  color: var(--limonar-red);
}
h2,h3,h4,h5,h6 {
  line-height: 1.2em;
  margin: 1.5em 0 .55em;
  letter-spacing: -.01em;
}
p, ul, li {
  font-size: clamp(1rem, calc(.333333rem + 1.25vw), 1.333333rem);
  font-weight: 400;
  line-height: 1.6em;
  color: var(--limonar-grey);
}
strong, b {
  font-weight: 600;
}
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--limonar-grey);;
  background: #FFF;
  display: inline-block;
  padding: 5px;
  transform: translateY(-100%);
}
.skip-link:focus {
  transform: translateY(0);
}
.container {
  max-width: 1520px;
  width: 90%;
  margin: 0 auto;
}
.title {
  display: block;
  font-weight: 600;
  line-height: 1.1em;
}
.subtitle {
  display: block;
}
.cta-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  font-size: clamp(1rem, calc(.5rem + .75vw), 1.333333rem);
  padding: 0 calc(90px + 1em) 0 0;
}
.cta-row > *+* {
  margin-left: 1em;
}
.cta {
  display: block;
  font-size: clamp(1rem, calc(.5rem + .75vw), 1.333333rem);
  font-weight: 600;
  line-height: 1.5em;
  border: 1px solid #FFF;
  color: #FFF;
  background: var(--limonar-yellow);
  padding: .6em 1em;
  text-decoration: none;
  text-align: center;
  transition: all .6s !important;
}
.cta:hover, .cta:focus {
  outline: 0;
  box-shadow: none;
  background: var(--limonar-red);
  transition: all .2s !important;
}


/* Header */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 4px 0;
  color: #FFF;
}
#header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 40px;
  background: var(--limonar-red);
  mix-blend-mode: multiply;
  pointer-events: none;
}
#header .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
.site-logo {
  height: 31.78px;
  width: 24.11px;
  margin: 0 10px 0 -2px;
  display: block;
  color: #FFF;
}
#menu > ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  font-size: 1rem;
  color: #FFF;
}
#menu > ul > li > a {
  text-transform: uppercase;
}
#menu > ul > li+li {
  border-left: 1px solid #FFF;
}
#menu li {
  color: #FFF;
}
#menu li a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1em;
}
li.menu-item-has-children {
  position: relative;
  pointer-events: all;
  overflow: visible;
}
li.menu-item-has-children .sub-menu-container {
  max-height: 0;
  padding: 0 10px;
  overflow: hidden;
  width: fit-content;
  position: absolute;
  top: 100%;
  left: -1px;
  z-index: 1;
  transition: all .8s;
  border-left: 1px solid #FFF;
}
li.menu-item-has-children:hover .sub-menu-container, li.menu-item-has-children:focus-within .sub-menu-container, li.menu-item-has-children.is-open .sub-menu-container {
  max-height: 15em;
  padding: 13px 10px;
  transition: all .2s;
}
.sub-menu-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--limonar-red-alpha);
  mix-blend-mode: multiply;
}
.sub-menu {
  position: relative;
  z-index: 1;
}
.sub-menu li {
  white-space: nowrap;
}
.sub-menu li+li {
  margin-top: .5em;
}
.sub-menu li a::before {
  content: "- ";
  display: inline;
}
#menu .sub-menu li a {
  padding: 0;
}


/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.hero.short {
  height: 75vh;
  height: 75dvh;
}
.hero .video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero .video-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--limonar-yellow);
  mix-blend-mode: multiply;
}
.hero .video-bg video, .hero .video-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}
.hero-content {
  padding: 14vh 0;
  width: 100%;
}
.hero-content .container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 2;
}
.hero-content .container *:nth-last-child(2) {
  margin-bottom: 0;
}
#hero-logo {
  font-size: clamp(3.5rem, calc(1rem + 4vw), 5.333333rem);
  color: #FFF;
  max-width: 46%;
  height: auto;
  margin: -.1em auto -.1em -.1em;
}
.hero .title {
  font-size: clamp(2.25rem, calc(1rem + 4vw), 5.333333rem);
  color: #FFF;
  text-shadow: 0 0 40px var(--limonar-yellow), 0 0 20px var(--limonar-red);
  max-width: 16em;
  margin: .4em 0;
}
.hero .subtitle {
  font-size: clamp(1.333333rem, calc(.5rem + 1.25vw), 1.666666rem);
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: .015em;
  color: #FFF;
  text-shadow: 0 0 30px var(--limonar-yellow), 0 0 15px var(--limonar-red);
  max-width: 36em;
  margin: 0 0 1.75em;
}
.scroll {
  position: absolute;
  right: 0;
  bottom: 0;
  text-align: center;
  font-size: .75rem;
  color: #FFF;
  text-decoration: none;
}
.scroll img {
  display: block;
  position: relative;
  margin: 4px auto 0;
  animation: scroll 4s infinite;
}


/* Content */

#content {
  font-size: clamp(2.5rem, calc(1rem + 1.75vw), 3.5rem);
  padding: calc(1em + 20px) 0;
}
.page-layout{
  font-size: clamp(1rem, calc(.333333rem + 1.25vw), 1.333333rem);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2em;
}
.entry-content {
  color: var(--limonar-grey);
}
.entry-content * {
  max-width: 100%;
  height: auto;
}
.entry-content p:not(:last-child), .entry-content ul:not(:last-child), .entry-content ol:not(:last-child), .entry-content table:not(:last-child) {
  margin-bottom: .75em;
}
.entry-content h2 {
  font-size: clamp(2.5rem, calc(1rem + 1.75vw), 3.5rem);
}
.entry-content h3 {
  font-size: clamp(2rem, calc(.75rem + 1.5vw), 2.8rem);
}
.entry-content h4 {
  font-size: clamp(1.75rem, calc(.75rem + 1.25vw), 2.4rem);
  color: var(--limonar-green);
}
.entry-content *:first-child {
  margin-top: 0 !important;
}
.entry-content *:last-child {
  margin-bottom: 0;
}
.entry-content img {
  display: block;
}
.entry-content img {
  margin: .75em 0 .5em;
}
.entry-content .alignleft {
  float: left;
  margin: .75em 1.5em .5em 0;
}
.entry-content .alignright {
  float: right;
  margin: .75em 0 .5em 1.5em;
}
.entry-content ul {
  list-style-type: disc;
  padding: 0 1em 0 3em;
  margin: .75em 0;
}
.entry-content li {
  padding: 0 0 0 .5em;
  margin: 0 0 .5em;
}
.entry-content table {
  border-right: 1px solid var(--limonar-yellow);
  border-bottom: 1px solid var(--limonar-yellow);
  line-height: 1.4em;
  max-width: 100%;
  margin: 1.5em 0;
}
.entry-content th, .entry-content td {
  border-top: 1px solid var(--limonar-yellow);
  border-left: 1px solid var(--limonar-yellow);
  padding: .5em .75em;
  text-align: left;
}
.entry-content th {
  background: var(--limonar-yellow-alpha);
}
.entry-content a {
  color: var(--limonar-green);
}
.entry-content .has-img {
  display: block;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.entry-content .has-img::after {
  content: "";
  display: table;
  clear: both;
}
.entry-content p.alignlift {
  float: left;
}
.entry-content p.alignright {
  float: right;
}
.entry-content > .has-img:first-child + * {
  margin-top: 0;
}


/* Sidebar */

.sidebar {
  color: var(--limonar-grey);
  font-size: 1rem;
}
.sidebar section {
  border: 1px solid var(--limonar-yellow);
  background: var(--limonar-yellow-alpha);
  padding: 1em;
  margin: 0 0 1em; 
}
.sidebar * {
  font-size: 1rem;
}
.sidebar h3, .comedor-mes__title {
  font-size: 1.25rem;
}
.sidebar ul {
  margin: 1em 0 0;
}
.sidebar li {
  line-height: 1.25em;
}
.sidebar li+li {
  margin-top: .75em;
}
.sidebar a {
  color: var(--limonar-green);
}
.post-date {
  text-transform: uppercase;
  font-size: .75rem;
  white-space: nowrap;
}
#secondary .widget-quicklinks .widget-content .widget-title {
  display: none;
}
.widget-quicklinks .widget-content > *:not(:first-child) {
  margin-top: 1em;
}
.widget *:first-child {
  margin-top: 0;
}
.sidebar .widget-comedor-menus .widget-title {
  font-size: 1.5rem;
  color: var(--limonar-green);
}


/* Footer */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 4px 0;
  color: #FFF;
  font-size: .666666rem;
  line-height: 1.2em;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 24px;
  background: var(--limonar-red);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.site-footer .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer a {
  text-decoration: none;
  color: inherit;
}
.site-footer a:hover, .site-footer a:focus {
  text-decoration: underline;
}


/* Effects */

@keyframes scroll {
  0%, 50% { top: 0; }
  75% { top: 6px; }
  100% { top: 0; }
}
.entry-content *, .cta {
  opacity: 0;
  transition: all .2s ease-in-out;
}
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6, #hero-logo, .title, .subtitle {
  opacity: 0;
  transform: translateX(-50px);
}
.entry-content img, .entry-content li, .entry-content table {
  opacity: 0;
  transform: translateX(50px);
}
#main .onscreen {
  opacity: 1;
  transform: translateX(0);
  transition: all 1s ease-in-out;
}
#hero-logo.onscreen {
  transition-delay: .1s !important;
} 
.title.onscreen {
  transition-delay: .25s !important;
}
.subtitle.onscreen {
  transition-delay: .4s !important;
}
::selection {
  background: var(--limonar-red-alpha);
  color: #FFF;
}



/* Responsive */

@media (max-width: 1024px){
  .page-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html, body {
    width: 100vw;
    overflow-x: hidden;
  }
  .container {
    width: calc(100% - 40px);
  }
  #header {
    width: 100vw;
  }
  #header .container {
    justify-content: space-between;
  }
  #branding {
    position: relative;
    z-index: 2;
  }
  #menu {
    position: absolute;
    z-index: 1;
    top: -4px;
    right: -20px;
    bottom: -4px;
    left: -20px;
    padding: 0 20px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  #menu .trigger, #menu .closeTrigger {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1em;
  }
  #menu:hover .trigger {
    display: none;
  }
  #menu .closeTrigger {
    display: none;
  }
  #menu:hover .closeTrigger {
    display: block;
  }
  #menu > ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    transition: .2s;
    pointer-events: none;
    z-index: -1;
  }
  #menu:hover > ul {
    max-height: 100vh;
    padding: 20px 0;
    background: var(--limonar-red-alpha);
    pointer-events: all;
    z-index: 1;
  }
  #menu > ul > li {
    display: block;
    width: 100%;
    padding: 0 20px;
  }
  #menu > ul > li+li {
    border-left: 0;
    border-top: 1px solid #FFF;
  }
  #menu li a {
    padding: 10px 0;
  }
  li.menu-item-has-children .sub-menu-container {
    position: static;
    width: 100%;
  }
  .sub-menu-container::before {
    display: none;
  }

  .hero.short {
    height: 50vh;
    height: 50dvh;
  }
  .hero-content {
    padding: 80px 0 90px;
  }
  #hero-logo {
    max-width: 75%;
  }
  .hero .title {
    font-size: calc(1rem + 4vw);
    margin: 1rem 0;
  }
  .hero .subtitle {
    font-size: calc(.5rem + 2.5vw);
  }
  .cta-row {
    flex-direction: column;
    padding-right: 0;
  }
  .cta-row > *+* {
    margin: 1em 0 0;
  }
  .cta {
    font-size: 1rem;
    line-height: 1.25em;
    padding: 6px 20px;
  }
  .scroll {
    top: calc(100% + 35px);
    left: 0;
    right: unset;
    bottom: unset;
  }
  /*
  body:not(.home) .scroll {
    display: none;
  }
  */

  .entry-content {
    width: 100%;
    overflow-x: hidden;
  }
  .entry-content h2 {
    font-size: calc(1rem + 4vw);
  }
  .entry-content h3 {
    font-size: calc(.75rem + 3vw);
  }
  .entry-content p.alignleft, .entry-content p.alignright {
    width: calc(50% - 10px);
    margin: 0;
  }
  .entry-content img.alignleft {
    margin: 0 20px 10px 0;
  }
  .entry-content img.alignright {
    margin: 0 0 10px 20px;
  }
  .entry-content img.alignleft, .entry-content img.alignright {
    width: 100%;
    height: auto;
  }
  .entry-content .has-img::after {
    display: none;
  }
  .entry-content td a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-footer {
    position: static;
    display: block;
    background: var(--limonar-red);
  }
  .site-footer::before {
    display: none;
  }
  .site-footer .container {
    flex-direction: column;
    justify-content: center;
  }
  .footer-nav {

  }
}