/*
  Rembourrage Flyss, site stylesheet.
  Rebuilt by hand from the WordPress Customify theme and SiteOrigin widgets the old site used.
  Breakpoints: the header switches to the mobile layout at 1024px and below,
  content columns stack at 780px and below.
*/

/* ---------- Fonts ---------- */

/* Muli, now published by Google Fonts as Mulish. One variable file covers every weight (200 to 1000).
   The site uses 200, 400 and 600. Licence: ../fonts/OFL.txt */
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-latin-variable.woff2") format("woff2");
}

/* ---------- Colours and sizes ---------- */

:root {
  --blue: #46586a;        /* header and footer background */
  --gold: #d8b063;        /* menu, headings, social icon */
  --text: #343028;        /* body text */
  --dark: #1a1a1a;        /* copyright bar */
  --rule: #eeeeee;        /* thin line under headlines */
  --white-soft: rgba(255, 255, 255, 0.79);
  --white: rgba(255, 255, 255, 0.99);
  --container: 1248px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.618;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.14s ease-out;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-weight: 400;
  margin: 0 0 0.54em;
}

p {
  margin: 0 0 1.41575em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 5px;
  left: 5px;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 15px 23px 14px;
  clip-path: none;
  background: #dddddd;
  color: #444444;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 2em;
  padding-right: 2em;
}

@media (max-width: 1024px) {
  .container {
    padding-left: 1em;
    padding-right: 1em;
  }
}

/* ---------- Header ---------- */

.header-top {
  background: var(--blue);
}

.logo {
  display: block;
  width: max-content;
}

.logo img {
  width: 270px;
  height: auto;
}

.header-main {
  background: var(--blue) url("/wp-content/uploads/2020/05/texture-scaled.jpg") center / cover;
  box-shadow: 0 1px 2px 0 #e1e5ea;
  position: relative;
  z-index: 10;
}

.header-main-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Instagram button, right on desktop, left on mobile */
.social-icon,
.header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10%;
  background: var(--gold);
  color: var(--text);
}

.social-icon:hover,
.header-lang:hover {
  color: var(--text);
  opacity: 0.9;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Language box, desktop only, the slide-out panel has its own language item on mobile */
.header-lang {
  display: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Desktop menu */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav ul a {
  display: inline-flex;
  align-items: center;
  padding: 12px 13px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav ul a span {
  position: relative;
}

/* Underline that grows on hover and stays under the current page */
.site-nav ul a span::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 1px;
  height: 2px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.site-nav ul a:hover span::before,
.site-nav ul a:focus span::before,
.site-nav ul a[aria-current="page"] span::before {
  width: 100%;
  background-color: currentColor;
}

.site-nav .lang-switch a {
  text-transform: none;
}

/* Only shown in the mobile panel */
.menu-toggle,
.menu-close {
  display: none;
}

@media (min-width: 1025px) {
  /* Keep the menu centred between an empty left column and the icon on the right */
  .header-main-inner::before {
    content: "";
    flex: 0 0 88px;
  }

  .header-main-inner .header-lang {
    display: inline-flex;
    order: 3;
    margin-right: 8px;
  }

  .header-main-inner .social-icon {
    order: 4;
  }

  /* The desktop language box replaces this item, the mobile panel keeps it */
  .site-nav .lang-switch {
    display: none;
  }

  .site-nav {
    order: 2;
    flex: 1 1 auto;
  }
}

/* Mobile header: icon on the left, menu button on the right, menu slides in from the left */
@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: -10px;
    color: var(--white);
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .hamburger {
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .hamburger::before {
    top: -7px;
  }

  .hamburger::after {
    bottom: -7px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 45px;
    max-width: 360px;
    z-index: 1000;
    padding: 4em 0 1.2em;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0s linear 0.5s;
  }

  /* :target opens the menu without JavaScript, site.js toggles .menu-open */
  .site-nav:target,
  .menu-open .site-nav {
    visibility: visible;
    transform: none;
    transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  }

  .site-nav ul {
    display: block;
  }

  .site-nav ul a {
    display: block;
    padding: 0.55em 1.5em;
    color: var(--white-soft);
    line-height: 1.618;
    text-transform: none;
  }

  .site-nav ul a:hover,
  .site-nav ul a[aria-current="page"] {
    color: var(--white);
  }

  .site-nav ul a span::before {
    display: none;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 1em;
    right: 1em;
    width: 32px;
    height: 32px;
    color: var(--white);
  }

  .menu-close::before,
  .menu-close::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 5px;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .menu-close::after {
    transform: rotate(-45deg);
  }
}

/* ---------- Main content ---------- */

.site-main {
  padding-top: 2.617924em;
  padding-bottom: 2.617924em;
}

.block {
  margin-bottom: 30px;
}

.block:last-child {
  margin-bottom: 0;
}

/* Centred headline with a thin rule under it */
.headline {
  text-align: center;
}

.headline-title {
  color: var(--gold);
  font-size: 2.2em;
  line-height: 1.4;
  margin: 0;
}

.headline-rule {
  width: 80%;
  height: 0;
  margin: 20px auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

.headline-text {
  color: var(--text);
  font-size: 1.55em;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 780px) {
  .headline-title {
    font-size: 1.65em;
  }
}

/* Row of three images */
.image-row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.image-row img {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 780px) {
  .image-row {
    flex-direction: column;
  }

  .image-row img {
    width: 100%;
  }
}

/* Photo banner with a centred button */
.hero {
  padding: 150px 20px;
  text-align: center;
  background-color: #333333;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-workshop {
  background-image: url("/wp-content/uploads/2020/05/flyss_in_progress-768x693.png");
}

/* Outlined white button */
.button-wire {
  display: inline-block;
  padding: 1em 2em;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 1em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: background 0.3s, color 0.3s;
}

.button-wire:hover,
.button-wire:focus {
  background: #ffffff;
  color: var(--blue);
}

/* Solid button for light backgrounds */
.button-solid {
  display: inline-block;
  padding: 1em 2em;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-size: 1em;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
}

.button-solid:hover,
.button-solid:focus {
  background: #ffffff;
  color: var(--blue);
}

/* Gallery: grid written by the gallery job, the breakpoints match the old Instagram feed (4, 2 and 1 columns) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-tile {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-hidden {
  display: none;
}

.gallery-more,
.gallery-follow {
  margin: 20px 0 0;
  text-align: center;
}

.gallery-more {
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  font-family: inherit;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  padding: 1em 2em;
  font-size: 1em;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
}

.gallery-more:hover,
.gallery-more:focus {
  background: #ffffff;
  color: var(--blue);
}

.gallery-more[hidden] {
  display: none;
}

.gallery-fallback {
  text-align: center;
  font-size: 1.2em;
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact page: map, then address, phone and hours left-aligned as on the old site */
.contact-map {
  display: block;
  width: 100%;
  height: 360px;
  margin-bottom: 1.5em;
  border: 0;
}

.contact-address,
.contact-phone {
  margin-bottom: 0.4em;
}

.contact-hours {
  margin-bottom: 1.5em;
}

@media (max-width: 780px) {
  .contact-map {
    height: 280px;
  }
}

/* ---------- Footer ---------- */

.footer-main {
  background: var(--blue);
  color: var(--white);
  padding: 40px 0;
}

.footer-main a:not(.button-wire) {
  color: var(--white-soft);
}

.footer-main a:not(.button-wire):hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-title {
  color: var(--gold);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.footer-main p {
  margin-bottom: 0.8em;
}

.footer-main p:last-child {
  margin-bottom: 0;
}

.footer-action {
  text-align: right;
}

.footer-action .button-wire {
  margin-bottom: 1.2em;
}

.footer-bottom {
  background: var(--dark);
  color: var(--white);
  padding: 24px 0;
}

.copyright {
  margin: 0;
  font-size: 0.875em;
  font-weight: 200;
}

.footer-legal {
  margin: 0.5em 0 0;
  font-size: 0.875em;
  font-weight: 200;
}

.footer-legal a {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--gold);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-action {
    text-align: left;
  }

  .copyright,
  .footer-legal {
    text-align: center;
  }
}

/* ---------- Privacy policy ---------- */

.policy {
  max-width: 48em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.policy h2 {
  color: var(--blue);
  font-size: 1.4em;
  margin: 1.6em 0 0.5em;
}

.policy-updated {
  color: var(--text);
  font-style: italic;
}

/* ---------- Quote form ---------- */

.quote-section {
  width: 100%;
}

[hidden] {
  display: none !important;
}

.quote-section form p {
  margin: 0 0 1em;
}

.quote-section textarea {
  height: 130px;
}

.quote-section label {
  display: block;
  font-size: 0.9em;
  margin-bottom: 0.3em;
}

.quote-section input[type="text"],
.quote-section input[type="email"],
.quote-section textarea {
  display: block;
  width: 100%;
  padding: 0.35em 0.6em;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.quote-section input[type="file"] {
  display: block;
  max-width: 100%;
  font: inherit;
}

.quote-section .cf-turnstile {
  margin-bottom: 1em;
}

.quote-section button {
  cursor: pointer;
  font-family: inherit;
}

/* Status message shown after a submit, selected by ?status= */
.form-message {
  margin: 0 0 1.5em;
  padding: 1em 1.25em;
  border-left: 4px solid var(--blue);
  background: #f4f4f4;
}

.form-message-ok {
  border-left-color: #3b7d3b;
}

.form-message-error {
  border-left-color: #a33b3b;
}
