/*
Theme Name: Mitt Tema
Theme URI: https://minwebbplats.se/mitt-tema
Author: Ditt Namn
Author URI: https://minwebbplats.se
Description: En beskrivning av mitt tema
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitt-tema
*/

/* Variables */

/* 
Breakpoints:
  xxs: 390px, ?
  xs: 575.98px,
  sm: 767.98px,
  md: 991.98px,
  lg: 1199.98px,
  xl: 1399.98px,
*/

:root {
  --font-color: #000;
  --background-color: #fff;
  --bs-body-color: #000;
}

nav .nav-link {
  --bs-navbar-nav-link-padding-x: 3rem;
}

.nav-link:focus-visible {
  box-shadow: none;
}

.page-template {
  --bs-body-font-size: 0.9rem;
}

/* General body */

html,
#page {
  height: 100%;
  background-color: #cfc7ba;
}

body {
  font-family: "Century Gothic";
  height: 100%;
}

main {
  min-height: calc(100% - 500px);
}

a {
  color: var(--font-color);
}

h3 {
  font-size: 1rem;
  font-weight: bold;
}

/* Header */

header {
  display: flex;
  justify-content: center;

  .hero {
    height: 392px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    @media screen and (max-width: 767px) {
      height: 500px;
    }

    .site-title {
      background-color: #fff;
      opacity: 0.8;
      padding: 3rem 5rem;
      text-transform: uppercase;

      @media screen and (max-width: 991.98px) {
        padding: 3rem 4rem;
        margin: 0 1rem;
      }

      @media screen and (max-width: 767px) {
        min-width: unset;
        padding: 3rem 1rem;
      }

      @media screen and (max-width: 575.98px) {
        min-width: unset;
        padding: 3rem 0.5rem;
        margin: 0 1rem;
      }

      a {
        text-decoration: none;
      }

      span {
        padding: 1rem 2rem;
        letter-spacing: 0.2cm;
        font-size: 1.2rem;

        @media screen and (max-width: 767px) {
          font-size: 0.9rem;
          letter-spacing: 0.1cm;
        }

        @media screen and (max-width: 575.98px) {
          font-size: 0.8rem;
          padding: 1rem 0.5rem;
        }
      }
    }
  }
}

h1 {
  font-family: "Century Gothic Bold";
  font-size: 3rem;
  letter-spacing: 0.4cm;
  margin-bottom: 1rem;

  @media screen and (max-width: 767px) {
    font-size: 2rem;
    letter-spacing: 0.25cm;
  }
}

nav {
  background-color: #fff;
}
.nav-link {
  text-transform: uppercase;
  &.active {
    font-weight: bold;
  }
}

.navbar-toggler {
  border: none;
  &:focus {
    box-shadow: none;
  }
}

.site-branding {
  position: relative;
}

.social-links {
  position: absolute;
  bottom: 0;
  padding: 16px;
  a {
    padding: 8px;
  }
}

/* Footer */
footer {
  background-color: #cfc7ba;
}

/* Home */

.content-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Form */

label {
  font-size: 0.89rem;
}

.wpcf7 {
  max-width: 100%;
  margin: 0 auto !important;
}

/* Formulärfält (alla typer av inputs) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Knapp */
.wpcf7 input[type="submit"] {
  width: auto;
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  width: 100%;
}

/* För lite större skärmar - skapa kolumner */
@media screen and (min-width: 768px) {
  /* Om du vill ha två kolumner */
  .wpcf7 .two-columns {
    display: flex;
    justify-content: space-between;
  }

  .wpcf7 .column-half {
    width: 48%;
  }
}

/* För små skärmar */
@media screen and (max-width: 767px) {
  .wpcf7 .column-half {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* CONTACT FORM */

.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form {
  display: block;
}

.wpcf7-form-control-wrap {
  position: relative;
  display: block;
  margin-bottom: 20px;
}

.wpcf7-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #000;
}

.wpcf7-textarea {
  resize: vertical;
  min-height: 120px;
}

.wpcf7-submit {
  background-color: #0073aa;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: #005a87;
}

.wpcf7-submit:active {
  transform: translateY(1px);
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-row .wpcf7-form-control-wrap {
  flex: 1;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .wpcf7-form-control-wrap {
    margin-bottom: 20px;
  }
}
