/*
Theme Name: MinBlanky
Author: siim@xf.ee
Version: 1.0
Requires at least: 6.0
*/

html {
  --off-white: #e5e3dd;
  --orange: #ff7c00;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 30px;
}


/* HEADER  */

header {
  position: sticky;
  top: 0;
  z-index: 1;
}

header > div {
  display: flex;
  justify-content: flex-end;
  transition: padding 0.3s ease;
}

body.scrolled header > div {
  padding-bottom: 0;
  background-color: transparent !important;
}

.sticky-header {
  width: 100%;
  height: 70px;
  transition: width 0.3s ease;
  margin-inline-end: 0 !important;
  margin-inline-start: 0 !important;
}

body.scrolled .sticky-header {
  border-color: var(--off-white) !important;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
}

body.scrolled .sticky-header > div {
  padding-left: 15px !important;
}

body.scrolled .menu-site-logo,
body.scrolled .menu-site-name {
  display: none;
}


header .wp-block-columns {
  flex-wrap: nowrap !important;
}

header nav {
  justify-content: flex-end !important;
  margin-inline-end: 15px !important;
}

.menu-cta,
.menu-site-name {
  display: none !important;
}

/* CONTACT FORM */

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form label {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.contact-form input {
  width: 100%;
  height: 40px;
  border-radius: 30px;
  border: 1px solid var(--off-white);
  padding-left: 10px;
  padding-right: 10px;
}

.contact-form .form-submit p {
  display: flex;
  flex-direction: column;
}

.contact-form .form-submit input {
  background-color: var(--orange);
  color: white;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  font-size: 18px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.contact-form textarea {
  padding: 10px;
  width: 100%;
  border-radius: 30px;
  border: 1px solid var(--off-white);
}

/* FOOTER */

footer.wp-block-template-part {
  margin-block-start: 0;
}


/* TEST SIIM */

/* MEDIA */

/* Tablets */
@media (min-width: 768px) {
  header .wp-block-columns {
    flex-wrap: wrap !important;
  }

  header nav {
    justify-content: center;
    margin-inline-end: 0;
  }

  header > div {
    justify-content: center;
  }

  .menu-cta,
  .menu-site-name {
    display: block !important;
  }

  body.scrolled .sticky-header > div {
    padding-left: 25px !important;
  }

  body.scrolled .sticky-header {
    width: 100% !important;
    display: block;
    margin-inline-end: auto !important;
    margin-inline-start: auto !important; 
  }

  body.scrolled .menu-site-logo,
  body.scrolled .menu-site-name {
    display: block;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 48px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  
}

.responsive-h1 {
  font-size: clamp(40px, 3vw, 60px);
}

/*.responsive-text {
  font-size: clamp(12px, 50vw, 20px);
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}
*/
