/*
Theme Name: Vitalakademie Local
Theme URI: http://localhost:8088
Author: Codex
Description: Local WordPress theme inspired by the provided Vitalakademie layout reference.
Version: 1.0.0
Text Domain: vitalakademie-local
*/

@font-face {
  font-family: "SonnyGothic";
  src: url("https://www.vitalakademie.at/themes/custom/vita/dist/assets/346BF2_B_0-CFIRSjjS.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SonnyGothic";
  src: url("https://www.vitalakademie.at/themes/custom/vita/dist/assets/346BF2_3_0-DpIijxeH.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "SonnyGothic";
  src: url("https://www.vitalakademie.at/themes/custom/vita/dist/assets/346BF2_2_0-BuJ8QKSK.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
}

:root {
  --green: #5f8427;
  --green-dark: #315015;
  --green-soft: #8ea548;
  --cream: #fbf8f1;
  --sand: #d9bc83;
  --ink: #2d2723;
  --muted: #6d655d;
  --line: rgba(44, 39, 33, 0.13);
  --shadow: 0 18px 42px rgba(39, 45, 28, 0.16);
  --hero-left-image: url("assets/hero-left.png");
  --hero-right-image: url("assets/hero-right.png");
  --card-massage-image: url("assets/card-massage.png");
  --card-nature-image: url("assets/card-nature.png");
  --card-online-image: url("assets/card-online.png");
  --font-body: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SonnyGothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 88px;
  padding: 12px clamp(18px, 3vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(47, 47, 47, 0.09);
  box-shadow: 0 5px 20px rgba(43, 43, 43, 0.06);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  text-transform: uppercase;
}

.brand span {
  color: var(--green-dark);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand small {
  margin-top: 6px;
  color: #746d65;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: lowercase;
  text-align: center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav > a,
.nav-item > a {
  padding: 12px 0;
}

.nav-item {
  position: relative;
}

.sub-menu {
  display: none;
}

.sub-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #39322c;
}

.sub-menu a:hover {
  background: #f4f0e7;
}

.nav-item:hover .sub-menu,
.nav-item:focus-within .sub-menu {
  display: none;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1d1a16;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.3;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(180deg, #5f852a, #4e751f);
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 18px rgba(79, 104, 35, 0.24);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.course-button,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(180deg, #5f852a, #4e751f);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(79, 104, 35, 0.27);
  font-weight: 700;
  font-family: var(--font-display);
}

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  padding: 8px clamp(18px, 3.2vw, 56px) 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.96) 24%, rgba(255, 255, 255, 0.98) 76%, rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 28% 20%, rgba(217, 188, 131, 0.16), transparent 22%),
    radial-gradient(circle at 74% 24%, rgba(141, 165, 72, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.54) 50%, #fff 100%),
    linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 18%, #fff 82%, rgba(255,255,255,0) 100%);
  opacity: 1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.leaf-mark {
  display: grid;
  place-items: center;
  margin: -2px auto -6px;
  color: #aec16b;
  font-size: clamp(2.2rem, 2.6vw, 3.1rem);
}

.hero-copy {
  width: min(100%, 1120px);
  margin: -2px auto 22px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.15vw, 4.2rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy em {
  color: var(--green);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

.hero-copy p {
  margin: 16px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: #191714;
  font-weight: 500;
}

.side-photo {
  position: absolute;
  z-index: 0;
  top: 0;
  height: clamp(320px, 28.8vw, 442px);
  pointer-events: none;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.96;
}

.side-photo-left {
  left: 0;
  width: clamp(150px, 13.7vw, 210px);
  background-image: var(--hero-left-image);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 100%);
}

.side-photo-right {
  right: 0;
  width: clamp(156px, 14.2vw, 218px);
  background-image: var(--hero-right-image);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 64%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, #000 64%, transparent 100%);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: min(100%, 1280px);
  margin: 0 auto;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 15px 38px rgba(37, 42, 31, 0.12);
}

.offer-image {
  flex: 0 0 195px;
  min-height: 195px;
  background-color: #efe9de;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.offer-image-massage {
  background-image: var(--card-massage-image);
}

.offer-image-nature {
  background-image: var(--card-nature-image);
}

.offer-image-online {
  background-image: var(--card-online-image);
}

.offer-symbol {
  position: absolute;
  top: 151px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #fff;
  background: linear-gradient(135deg, #aec35d, #5c8328);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(41, 61, 25, 0.2);
  font-size: 2.9rem;
  transform: translateX(-50%);
  z-index: 2;
}

.offer-symbol-warm {
  background: linear-gradient(135deg, #e9cc98, #c69855);
}

.offer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 66px clamp(22px, 2.2vw, 36px) 28px;
  text-align: center;
}

.offer-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.7vw, 2.18rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.offer-content p {
  max-width: 360px;
  min-height: 46px;
  margin: 16px auto 18px;
  color: #211c18;
  font-size: 0.96rem;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.offer-card:first-child .offer-list,
.offer-card:last-child .offer-list {
  grid-template-columns: 1fr;
  max-width: 300px;
}

.offer-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 0.92rem;
}

.mini-icon {
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1rem;
}

.card-button {
  min-width: 205px;
  margin-top: auto;
  font-size: 0.98rem;
}

.card-button span {
  font-size: 1.6rem;
  line-height: 1;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1280px);
  margin: 22px auto 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(38, 45, 29, 0.1);
}

.trust-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item span {
  display: grid;
  place-items: center;
  color: #859739;
  font-size: 2.4rem;
}

.trust-item strong {
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 500;
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(95, 132, 39, 0.1), transparent 35%),
    #2f3927;
  color: #fff;
  margin-top: 0;
  padding: 34px clamp(22px, 5vw, 88px) 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(190px, 1fr);
  gap: clamp(30px, 5vw, 78px);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 700;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.42;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: #d8e8ae;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.social-links a[aria-label="Facebook"] {
  background: #1877f2;
}

.social-links a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 110%, #feda75 0 18%, #fa7e1e 30%, #d62976 55%, #962fbf 76%, #4f5bd5 100%);
}

.social-links a[aria-label="YouTube"] {
  background: #ff0033;
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.social-links a[aria-label="Facebook"] svg,
.social-links a[aria-label="YouTube"] svg {
  fill: currentColor;
  stroke: none;
}

.social-links a[aria-label="Facebook"] svg {
  width: 25px;
  height: 25px;
}

.social-links a[aria-label="YouTube"] svg {
  width: 27px;
  height: 27px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 4px;
  }

  .offer-grid,
  .trust-bar {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .offer-card {
    min-height: auto;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 6px;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 18px 28px;
  }

  .brand {
    margin: 0 auto;
    order: 1;
  }

  .brand span {
    font-size: 1.45rem;
  }

  .brand small {
    margin-top: 5px;
    font-size: 0.78rem;
  }

  .header-actions {
    order: 2;
    justify-content: center;
    gap: clamp(15px, 5vw, 24px);
    margin-top: 14px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .icon-button {
    width: 34px;
    height: 44px;
  }

  .icon-button svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.4;
  }

  .menu-toggle svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.6;
  }

  .course-button {
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.95rem;
    border-radius: 7px;
  }

  .main-nav {
    order: 3;
    display: none;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: min(100%, 280px);
    margin: 22px auto 0;
    padding-top: 0;
    padding-bottom: 2px;
    font-size: 0.98rem;
    line-height: 1;
    white-space: nowrap;
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
  }

  .main-nav > a,
  .nav-item > a {
    display: block;
    padding: 0;
  }

  .main-nav > :nth-child(5) {
    grid-column: auto;
  }

  .main-nav > :nth-child(6) {
    grid-column: auto;
  }

  .sub-menu {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 0 14px 26px;
  }

  .leaf-mark {
    margin: 0 auto 2px;
    font-size: 1.9rem;
  }

  .hero-copy {
    width: min(100%, 335px);
    margin: 0 auto 16px;
  }

  .hero-copy h1 {
    font-size: clamp(1.62rem, 7.2vw, 2rem);
    line-height: 1.05;
    text-wrap: balance;
  }

  .hero-copy em {
    display: inline-block;
    font-size: 0.82em;
    line-height: 0.98;
  }

  .hero-copy p {
    max-width: 280px;
    margin: 14px auto 0;
    font-size: 0.88rem;
    line-height: 1.34;
    text-wrap: balance;
  }

  .hero > .leaf-mark,
  .hero > .hero-copy {
    z-index: 2;
  }

  .hero::before {
    height: 250px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.7) 70%, rgba(255,255,255,0.9) 100%),
      linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.72) 28%, rgba(255,255,255,0.72) 72%, rgba(255,255,255,0.18));
  }

  .side-photo {
    height: 250px;
    opacity: 0.5;
  }

  .side-photo-left {
    width: 160px;
  }

  .side-photo-right {
    width: 120px;
  }

  .offer-card {
    min-height: auto;
  }

  .offer-image {
    flex-basis: 170px;
    min-height: 170px;
  }

  .offer-symbol {
    top: 126px;
  }

  .offer-list,
  .offer-card:first-child .offer-list,
  .offer-card:last-child .offer-list {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .site-footer {
    padding: 30px 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-column h2 {
    margin-bottom: 12px;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  .main-nav {
    font-size: 0.95rem;
  }

  .header-actions {
    gap: 14px;
  }

  .course-button {
    padding: 0 18px;
  }
}

@media (max-width: 400px) {
  .main-nav {
    grid-template-columns: 1fr;
  }

  .main-nav > :nth-child(5),
  .main-nav > :nth-child(6) {
    grid-column: auto;
  }
}
