/* ===================================================
   Gwandolina v2 - layout and components
   =================================================== */

:root {
  --purple: #70136F;
  --purple-dark: #4F0D4E;
  --purple-soft: #EFE3F2;
  --white: #FFFFFF;
  --light-gray: #F3F4F6;
  --text-gray: #585D66;
  --heading: #70136F;
  --footer-bg: #2B394A;
  --footer-text: #E6EDF6;
  --border: #E5E7EB;

  --font: 'Inter', system-ui, sans-serif;
  --max-width: 1160px;
  --space: 3rem;
  --radius: 10px;
  --shadow: 0 16px 36px rgba(19, 27, 39, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-gray);
  line-height: 1.75;
  background: var(--white);
  padding-top: 74px;
}

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

h1, h2, h3 {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading);
  font-weight: 300;
  line-height: 1.25;
}

p, li {
  color: var(--text-gray);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: var(--space);
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 1.1rem;
}

.centered {
  text-align: center;
}

.small-note {
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  border-radius: 7px;
  padding: 0.7rem 1.3rem;
  font-weight: 500;
}

.btn:hover,
.btn:focus-visible {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--purple-soft);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  display: block;
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.35rem;
}

.main-nav a {
  color: #1E2430;
  text-decoration: none;
  font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Reusable components */
.Hero {
  position: relative;
  min-height: clamp(360px, 58vh, 640px);
  display: grid;
  align-items: center;
  background: #6F5D8A url("../images/Gwandolina%20PHOTOS/Willkommen%20bei%20Gwandolina.jpg") center / cover no-repeat;
  overflow: hidden;
}

.Hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 18, 28, 0.62), rgba(14, 18, 28, 0.14));
}

.Hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 6vh, 4rem);
  text-align: center;
}

.Hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin-bottom: 0.4rem;
}

.Hero p {
  color: #F3F5FA;
}

.LogoStrip {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.logo-strip-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.logo-pill {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  text-align: center;
  color: #495160;
  font-size: 0.9rem;
}

.SocialLinks {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 7px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-social:hover,
.btn-social:focus-visible {
  background: var(--purple-soft);
}

.ImageTextSection {
  display: grid;
  gap: 1rem;
}

.media-box {
  min-height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #D6C5E0, #B8C0D2);
  box-shadow: var(--shadow);
}

img.media-box {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.text-panel {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.TextBlock {
  background: var(--white);
}

.TextBlock h2,
.TextBlock h3 {
  margin-bottom: 0.85rem;
}

.TextBlock p + p {
  margin-top: 0.6rem;
}

.what-grid {
  display: grid;
  gap: 1rem;
}

.what-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.what-card-media {
  height: 210px;
  background: linear-gradient(135deg, #D7CCE2, #B8C3D5);
}

img.what-card-media {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.what-card span {
  display: block;
  padding: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  font-size: 0.95rem;
}

.collaboration-block {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF, #F8F5FA);
  text-align: center;
}

.collaboration-label {
  margin-bottom: 0.7rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  font-weight: 500;
}

.collaboration-logo {
  display: block;
  width: min(100%, 560px);
  margin-inline: auto;
  height: auto;
  object-fit: contain;
}

.bullet-purple {
  padding-left: 1.1rem;
}

.bullet-purple li {
  margin-bottom: 0.35rem;
}

.bullet-purple li::marker {
  color: var(--purple);
}

.OpeningHoursHighlight {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.OpeningHoursHighlight h2,
.OpeningHoursHighlight p,
.OpeningHoursHighlight li {
  color: var(--white);
}

.TeamGrid {
  display: grid;
  gap: 1rem;
}

.team-card {
  border: 1px solid var(--border);
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: linear-gradient(135deg, #D6DCE7, #C8CEDA);
  margin-bottom: 0.7rem;
}

img.team-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}

.team-photo-empty {
  border: 1px dashed #C9CED9;
  background: #EEF1F6;
}

.team-name {
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.93rem;
}

.legal-text h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.site-footer {
  margin-top: 3rem;
  background: var(--footer-bg);
  color: #ffffff;
  padding-block: 3.5rem;
  border-top: 3px solid var(--purple);
  font-size: 0.95rem;
}

.site-footer p,
.site-footer li,
.site-footer h1,
.site-footer h2,
.site-footer h3 {
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-underline-offset 0.2s;
}

.footer-links a:hover {
  color: var(--purple-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:focus-visible {
  color: var(--purple-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  color: #ffffff;
  line-height: 1.7;
}

.footer-info a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info a:hover {
  color: var(--purple-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  align-self: stretch;
}

.footer-right img {
  height: 100%;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-right {
    justify-content: center;
  }
}

.footer-contact {
  color: #ffffff;
  text-align: center;
  line-height: 1.8;              /* bedre luftighet mellom linjene */
  font-size: 0.95rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-underline-offset 0.2s;
}

.footer-contact a:hover {
  color: var(--purple-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:focus-visible {
  color: var(--purple-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-badges {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1rem;                     /* mer luft mellom badge-radene */
  justify-self: end;
  text-align: right;
}

.footer-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  font-size: 0.9rem;             /* litt større – 0.85rem var for lite */
  line-height: 1.5;
}

.footer-badge-row img {
  flex-shrink: 0;
}

.footer-logos {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-logo-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F3F7FF;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--purple);
  background: var(--white);
  color: var(--purple);
  border-radius: 50%;
  display: none;
  cursor: pointer;
  font-size: 1rem;
  z-index: 1200;
}

.back-to-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 760px) {
  .logo-strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ImageTextSection {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .what-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .TeamGrid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
  }
}

/* mobil: venstrejuster badges og kontakt for naturlig leseflyt */
@media (max-width: 759px) {
  .footer-badges {
    justify-self: start;
    text-align: left;
  }

  .footer-badge-row {
    justify-content: flex-start;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
