/*
Theme Name: Tekatrovate Child
Template: extendable

Version: 1.0
*/
/* Integritetspolicy – neutrala rubriker */
body.page-id-224 h3,
body.page-id-224 h4,
body.page-id-224 h5 {
  color: #3A3A3A;
  font-size: 1em;
  font-weight: 600;
}

/* =========================
   GLOBAL SIDBAKGRUND
   ========================= */

html,
body,
.wp-site-blocks {
  background-color: #F6F1EB;
}


/* =========================
   TEKATROVATE – GLOBAL THEME
   ========================= */

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F6F1EB;
  color: #3A3A3A;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5 {
  color: #6A4BC4;
  font-weight: 600;
}

/* Paragraphs */
p {
  color: #3A3A3A;
  font-weight: 400;
}

/* Links */
a {
  color: #6A4BC4;
  text-decoration: none;
}

/* =========================
   CARDS – MEDVETNA YTOR
   ========================= */
.card,
.is-style-card {
  background-color: #F6F1EB;
  border-radius: 16px;
  padding: 40px;
}


/* =========================
   GLOBAL PRIMARY BUTTON
   ========================= */

.btn-primary,
.wp-block-button__link {
  font-family: 'Inter', sans-serif;
  background-color: #6A4BC4;
  color: #FFFFFF !important;
  border: 2px solid #6A4BC4;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(106, 75, 196, 0.25);
  display: inline-block;
}

/* Hover – EXAKT som startsidan */
.btn-primary:hover,
.wp-block-button__link:hover {
  background-color: #FFFFFF;
  color: #6A4BC4 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(106, 75, 196, 0.35);
}


/* =========================
   STARTSIDA – HERO
   ========================= */

.hero {
  background-color: #F6F1EB;
  color: #3A3A3A;
  padding: 80px 20px;
  border-radius: 20px;
  width: 95%;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
  font-size: 22px;
  line-height: 1.6;
  box-sizing: border-box;
}

.hero h1 {
  color: #6A4BC4;
  font-size: 40px;
  margin-bottom: 25px;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-text:last-of-type {
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}


/* =========================
   GLOBAL CONTENT SECTIONS
   ========================= */

.content-section {
  background-color: #F6F1EB;
  color: #3A3A3A;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  box-sizing: border-box;
  font-size: 20px;
  line-height: 1.6;
}

.content-section h2 {
  color: #6A4BC4;
  margin-bottom: 24px;
}

.content-section h3 {
  color: #6A4BC4;
  margin-top: 40px;
}

.content-section p {
  max-width: 720px;
  margin: 0 auto 20px;
}

.content-section a {
  color: #6A4BC4;
  text-decoration: underline;
}

/* =========================
   HEADER
   ========================= */

.site-header {
     background-color: #F6F1EB;

     width: 95%;
     margin: 24px auto 40px;
     padding: 24px 32px;

     display: flex;
     justify-content: space-between;
     align-items: center;

     border: 4px solid #6A4BC4;   /* BOX */
     border-radius: 20px;        /* RUNDAD */

     color: #6A4BC4;
     position: relative;
     z-index: 100;
   }


.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #6A4BC4;
  font-weight: 600;
  font-size: 24px;
}

.brand img {
  height: 45px;
  border-radius: 6px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6A4BC4;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
}

.menu-icon {
  font-size: 28px;
}

/* =========================
   SLIDE-IN MENU
   ========================= */

#side-menu {
  position: fixed;
  top: 0;
  right: -20%;
  width: 20%;
  height: 100%;
  background-color: #F6F1EB;
  color: #6A4BC4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: right 0.4s ease;
  z-index: 9999;
  text-align: center;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.15);
}

.menu-content {
  margin-top: 100px;
}

.menu-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-nav a {
  color: #6A4BC4;
  text-decoration: none;
  padding: 10px 18px;
  border: 2px solid #6A4BC4;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.menu-nav a:hover {
  background-color: #6A4BC4;
  color: #FFFFFF;
}

.close-btn {
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

/* Overlay */
#menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
}

  z-index: 9998;
}

/* Mobile */
@media (max-width: 768px) {
  #side-menu {
    width: 80%;
    right: -80%;
  }
}

/* =========================
   FOOTER – TEKATROVATE (PHP)
   ========================= */

.site-footer {
  background-color: #F6F1EB;

  width: 95%;
  margin: 60px 0 0 0;
  padding: 40px 24px;

  border: 4px solid #6A4BC4;   /* BOXEN */
  border-radius: 20px;        /* RUNDAD BOX */

  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}


/* Innehåll */
.site-footer p {
  max-width: 1200px;
  margin: 0 auto;
}

/* Länkar */
.site-footer a {
  color: #6A4BC4;
  text-decoration: none;
  font-weight: 500;
  margin: 0 4px;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* En rad på desktop */
@media (min-width: 900px) {
  .site-footer p {
    white-space: nowrap;
  }
}


   /* =========================
   GLOBAL BOX STYLE – LILA LINJE
   ========================= */

.hero,
.content-section,
.card,
.is-style-card{
  border: 1px solid #6A4BC4 !important;   /* tunn lila linje */
  border-radius: 20px !important;         /* konsekventa hörn */
}

/* =========================
   CLASSIC THEME NORMALISER
   ========================= */

#main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

body {
  margin: 0;
}

/* =========================
   CENTER IMAGES & FORMS
   ========================= */

/* Bilder */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Gutenberg image blocks */
.wp-block-image {
  text-align: center;
}

/* Kontaktformulär (Contact Form 7 m.fl.) */
.wpcf7,
form {
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   CONTACT FORM 7 – CENTER FIX
   ========================= */

.wpcf7 {
  width: 100%;
}

.wpcf7 form,
.wpcf7-form {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   CONTACT FORM – BOX STYLE
   ========================= */

.wpcf7 {
  background-color: #F6F1EB;
  border: 2px solid #6A4BC4;     /* ändra tjocklek här */
  border-radius: 20px;

  padding: 40px 32px;
  margin: 40px auto;

  max-width: 700px;
  box-sizing: border-box;
}

/* Input-fält */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;

  border-radius: 8px;
  border: 1px solid #6A4BC4;

  font-family: 'Inter', sans-serif;
  font-size: 16px;

  box-sizing: border-box;
}

/* Fokus */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #6A4BC4;
}

.wpcf7 input[type="submit"] {
  background-color: #6A4BC4;
  color: #FFFFFF;
  border: 2px solid #6A4BC4;

  padding: 14px 32px;
  border-radius: 8px;

  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #FFFFFF;
  color: #6A4BC4;
  transform: translateY(-2px);
}

/* =========================
   STARTSIDA – LOGGA
   ========================= */

.start-logo {
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 80px auto 60px;
  width: 100%;
}

.start-logo img {
  max-width: 900px;   /* Justera storlek */
  width: 100%;
  height: auto;

  display: block;
}

/* Mobil */
@media (max-width: 768px) {
  .start-logo img {
    max-width: 90%;
  }
}
