/* =================================================================
  Imports
 */
@import "variables.css";

@import url('https://fonts.bunny.net/css?family=noto-serif-display:400');
@import url('https://fonts.bunny.net/css?family=manrope:400');

/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

* {
  box-sizing: border-box;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* General Styles */
body {
  margin: 0;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  color: var(--black-color);
  background-color: var(--primary-color--light);
}

.serif {
  font-family: "Noto Serif Display", serif;
  font-weight: 400;
}

a {
  color: var(--primary-color);
}

/* Navigation Menu */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color--light);
  position: fixed;
  width: 100%;
  padding: .5rem 2rem;
  z-index: 1000;
}

.main-header__logo {
  font-size: 1.5em;
  font-weight: bold;
}

.main-header .navigation {
  list-style: none;
  display: flex;
  margin: 0;
}

.navigation-item {
  margin-left: 20px;
}

.navigation-item__link {
  text-decoration: none;
  color: #333;
  text-transform: uppercase;
  transition: color .3s;
}

.navigation-item__link:hover {
  color: var(--primary-color);
}

.hero {
  padding-top: 88px;
  height: 100vh;
  overflow: hidden;
  color: var(--secondary-color);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 0 2rem;
}

.hero h1 {
  /*font-size: 3em;*/
  margin: 0 0 .5em;
  max-width: 30rem;
}

.hero p {
  font-size: 1.2em;
  margin: 20px 0;
}

.hero .btn {
  background-color: transparent;
  color: var(--secondary-color);
  padding: 15px 25px;
  text-decoration: none;
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  transition: background-color 0.3s;
  text-transform: uppercase;
  font-weight: bold;
}

.hero .btn:hover {
  background-color: var(--primary-color);
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* About Us */
.about {
  padding: 0 2rem;
}
.about h1 {
  margin: 0;
  padding: 80px 0;
  font-weight: 100;
  /*font-size: 96px;*/
  max-width: 80vw;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--secondary-color);
}

/* Classes */
.classes {
  padding: 80px 2rem;
}

.classes h2 {
  margin-bottom: 1rem;
  /*font-size: 4em;*/
  text-align: left;
  color: var(--secondary-color);
}

.class-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.class-item {
  margin: 30px 0;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 35px;
  color: var(--white-color);
  border: 2px solid var(--secondary-color);
  background: var(--secondary-color);
  max-width: calc(25% - 2rem);
}

.class-item h3 {
  font-size: 1.75rem;
  margin-bottom: 3rem;
}
.class-item p {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.class-item h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Testimonials */
.testimonial {
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

.testimonial p {
  font-style: italic;
}

.testimonial .author {
  font-weight: bold;
  margin-top: 10px;
}

/* Gallery */
.gallery-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-images img {
  flex: 1 1 300px;
  margin: 10px;
  max-width: calc(33% - 20px);
  height: auto;
  border-radius: 5px;
}

.contact {
  position: relative;
  height: calc(100vh - 100px);
  padding: 10rem 2rem 2rem;
  color: var(--primary-color);
  background: var(--secondary-color);
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.contact-start {
  text-align: left;
  flex-grow: 1;
}

.contact-start h1 {
  margin: 0;
  font-weight: 400;
}

.contact-end {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-grow: 1;
  justify-content: start;
  max-width: 21rem;
}

.contact-end p {
  margin: 0;
  line-height: 1.5;
}

.contact-end a {
  text-decoration: none;
  transition: color .3s;
}
.contact-end a:hover {
  color: var(--primary-color--light);
}

.contact--social-links {
  margin-top: 2rem;
} {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.contact--social-links a {
  width: 48px;
  height: 48px;
}

.contact--social-links a:not(:first-child) {
  margin-left: 1rem;
}

.contact--social-links a svg {
  fill: var(--primary-color);
  transition: fill .3s;
}

.contact--social-links a:hover svg {
  fill: var(--white-color);
}

/* Footer */
.main-footer {
  padding: 1rem 2rem;
}

.main-footer--inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.main-footer .contact-start {
  text-align: left;
  font-size: 20px;
}

.main-footer p {
  color: var(--secondary-color);
}

.main-footer--copyright {
  text-align: left;
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
  .class-item {
    max-width: calc(50% - 1rem);
  }
}

@media screen and (max-width: 767px) {
  nav {
    padding: .5rem 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .about {
    padding: 0 1rem;
  }

  .classes {
    padding: 0 1rem;
  }

  .class-item {
    max-width: 100%;
  }

  .contact {
    padding: 2rem 1rem 2rem;
  }

  .contact-inner {
    height: auto;
    flex-direction: column;
  }

  .contact-end {
    margin-top: 2rem;
  }

  .main-footer {
    padding: 1rem;
  }

  .main-footer p {
    margin: 0;
    font-size: 14px;
  }

  .main-footer--inner div:last-child p {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 639px) {
  .main-header {
    padding: .5rem 1rem;
  }

  .navigation {
    padding: .5rem 0;
  }

  .navigation-item {
    margin-left: 6px;
    font-size: 14px;
  }
}

