/* =========================
   GLOBAL
   ========================= */
:root{
  --sidebar-w: 200px;
  --glass-dark: rgba(55, 54, 48, 0.85);
  --glass-blur: 6px;
  --card-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  --brand-gold: #c4ac80;
  --brand-gold-light: #efe7d5;
  --brand-text-dark: #45443d;
  --accent-blue: #2596be;
  --mobile-nav-offset: 53%;
}

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: url(../images/backgrounds/sun_trees_A.jpg) center center / cover no-repeat fixed;
}

body{
  font-family: 'Inter', sans-serif;
  color: #222;
  background-color: #225725; /* fallback */
  line-height: 1.6;
  margin-left: var(--sidebar-w); /* keep content clear of the fixed sidebar */

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   LEFT SIDEBAR NAV
   ========================= */
.navbar.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);

  background: var(--glass-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 34px 18px;
  box-sizing: border-box;
  z-index: 1200;
}

.nav-left{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
}

.nav-logo{
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;

  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,0.22))
    drop-shadow(0 0 12px rgba(255,255,255,0.10));
}

/* This groups nav links + info button in the middle */
.navbar.sidebar .nav-links{
  width: 100%;
  list-style: none;
  padding: 0;
  margin-top: 115px;
  margin-bottom: 0;

  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.navbar.sidebar .nav-links a{
  position: relative;
  color: var(--brand-gold-light); /*change back to #ffffff if needed*/
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
  transition: color 0.2s ease;
}

.navbar.sidebar .nav-links a:hover{
  color: var(--brand-gold);
}

.navbar.sidebar .nav-links a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.navbar.sidebar .nav-links a:hover::after{
  transform: scaleX(1);
}

/* =========================
   HERO
   ========================= */
header.hero{
  position: relative;
  text-align: center;
  min-height: 100vh;
  color: #373630;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 0 20px;
  box-sizing: border-box;
}

.hero-bg{
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

header.hero h1,
header.hero .tagline{
  position: relative;
  z-index: 1;
}

header.hero h1{
    font-size: 12.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-top: 0;
    margin-bottom: -0.2em;

    text-shadow:
        0 0 3px rgba(255,255,255,0.7),
        0 0 8px rgba(255,255,255,0.5);
}

header.hero .tagline{
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    margin-top: 0;
    line-height: 1.2;

    text-shadow:
        0 0 3px rgba(255,255,255,0.7),
        0 0 8px rgba(255,255,255,0.5);
}

/* =========================
   SECTIONS
   ========================= */
section{
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  font-size: 1rem;
}

.partnerships{
  max-width: none;
  padding: 0;
}

/* =========================
   PARTNERS HEADER
   Leafy top / sides, straight bottom
   ========================= */
.partners-header{
  position: relative;
  width: 1100px;              /* reduced width */
  margin: 120px auto 0;      /* adds space above header */
  padding: 55px 32px 24px;   /* less top padding, slightly tighter overall */
  text-align: center;
  color: var(--brand-text-dark);

  /* more transparency */
  background: rgba(55, 54, 48, 0.82);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-top-left-radius: 400px 180px;
  border-top-right-radius: 400px 180px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  border-top: 1px solid rgba(255,255,255,0.18);
  border-left: 1px solid rgba(255,255,255,0.10);
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    inset 0 10px 20px rgba(255,255,255,0.04),
    0 8px 22px rgba(0,0,0,0.18);

  overflow: hidden;
}

.partners-header h2{
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--brand-gold);
  font-family: 'Inter', sans-serif;
}

.partners-header h2::after{
  content: "";
  display: block;
  width: 200px;
  height: 3px;
  margin: 14px auto 10px;
  background: var(--brand-gold);
  border-radius: 999px;
}

.partners-header .subheadline{
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  color: var(--brand-gold);
  opacity: 0.9;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* =========================
   PARTNERS GRID + FLIP CARDS
   ========================= */
.partners-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto 120px;   /* adds more space below cards before footer */
}

.partner-card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.partner-card-link:hover,
.partner-card-link:focus,
.partner-card-link:active{
  text-decoration: none;
  color: inherit;
}

.partner-card{
  position: relative;
  perspective: 1000px;
  height: 280px;
}

.partner-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.partner-card-front,
.partner-card-back{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  padding: 16px 20px;
  box-sizing: border-box;
}

.partner-card-front{
  background: #45694e;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.brand-heading{
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brand-heading img{
  max-width: 85%;
  max-height: 85px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card-front img[alt*="Planlicht"],
.partner-card-front img[src*="planlicht"]{
  max-height: 180px;
  max-width: 95%;
}

.partner-card-back{
  transform: rotateY(180deg);
  background: #B7C4BA;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;

  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.partner-card-back:hover,
.partner-card-back:visited,
.partner-card-back:active{
  color: inherit;
  text-decoration: none;
}

.brand-back-logo{
  width: 100%;
  height: 120px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.brand-back-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-card-back p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.partner-card.flipped .partner-card-inner{
  transform: rotateY(180deg);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

/* =========================
   FOOTER
   ========================= */
/* =========================
   FOOTER
   ========================= */
footer{
  background-color: #111;
  padding: 18px 30px 22px;
  margin-top: 0;
}

.footer-content{
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;

  color: white;
  font-size: 0.9rem;
}

.footer-contact{
  display: flex;
  align-items: center;
  gap: 10px;

  color: white;
  font-size: 0.9rem;
}

.footer-contact img,
.footer-icon-link img{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-icon-link{
  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.2s ease;
}

.footer-icon-link:hover{
  opacity: 0.75;
}

.footer-content p{
  margin: 0;
  white-space: nowrap;
}

/* =========================
   SIDEBAR INFO BUTTON + CARD
   ========================= */
.info-trigger{
  position: relative;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: none;
  background-color: var(--brand-gold);
  color: #111;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.info-trigger::after{
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold-light);
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.info-trigger:hover{
  background-color: #ffffff;
  color: black;
}

.info-trigger:hover::after{
  border-color: var(--accent-blue);
}

.sidebar-info-trigger{
  position: relative;
  margin-top: 6px;
  align-self: center;
}


.sidebar-info-wrap{
  margin-top: 32px;
  margin-bottom: 0;
}

.sidebar-info-card{
  position: absolute;

  top: 50%;
  left: calc(100% + 18px);

  transform: translateY(-50%);

  width: 520px;
  max-width: min(560px, calc(100vw - var(--sidebar-w) - 40px));
  z-index: 2000;

  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sidebar-info-card.open{
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.sidebar-info-card .info-card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sidebar-info-card .info-card-header h3{
  margin: 0;
  font-size: 1.75rem;
  font-family: 'Inter';
}

.info-card-close{
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  color: #111;
}

.sidebar-info-card .info-card-body{
  padding: 18px 20px 20px;
  font-size: 1.55rem;
  line-height: 1.5;
}

/* Contact rows inside the card */
.info-contact{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.info-contact-item{
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 1.55rem;
}

.info-contact-item img{
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  opacity: 0.9;
}

.info-contact-item img[src*="instagram"]{
  transform: scale(1.5);
}

.info-contact-item span{
  line-height: 1.35;
}

/* =========================
   PRIVACY NOTICE MODAL
   ========================= */
.privacy-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
}

.privacy-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3100;

  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.privacy-modal.open{
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal-inner{
  width: min(560px, calc(100vw - 40px));
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
  padding: 22px 22px 18px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.privacy-logo{
  display: block;
  width: 210px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 10px;
}

.privacy-title{
  margin: 6px 0 12px;
  text-align: center;
  font-size: 1.25rem;
  color: #373630;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

.privacy-body{
  color: #373630;
  font-size: 0.98rem;
  line-height: 1.45;
}

.privacy-body p{
  margin: 0 0 10px;
}

.privacy-meta{
  font-size: 0.92rem;
  opacity: 0.95;
}

.privacy-email{
  font-weight: 700;
}

/* Centered privacy buttons */
.privacy-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;

  margin-top: 24px;
  padding-top: 16px;
}

.privacy-actions button{
  min-width: 120px;
  padding: 10px 22px;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  border-radius: 999px;
  border: none;
  cursor: pointer;

  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.privacy-btn:active{
  transform: translateY(1px);
}

#privacyAccept{
  background-color: var(--accent-blue);
  color: #ffffff;
}

#privacyAccept:hover{
  background-color: #1f7fa3;
  transform: translateY(-1px);
}

#privacyReject{
  background-color: transparent;
  color: #373630;
  border: 1px solid #373630;
}

#privacyReject:hover{
  background-color: rgba(55, 54, 48, 0.08);
  transform: translateY(-1px);
}

/* =========================
   SUBPAGE CONTENT BOX
   ========================= */
.subpage-main{
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 20px 24px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.subpage-box{
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 36px 40px 30px;
  box-sizing: border-box;

  background: rgba(196, 172, 128, 0.82);
  color: #373630;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  box-sizing: border-box;
}

/* Header stays centred */
.subpage-box h1{
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.1;
  color: #373630;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
}

.subpage-box h1::after{
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px auto 14px;
  background: #373630;
  border-radius: 999px;
}

/* Body text is left-aligned but centred as a readable text column */
.subpage-divider-text{
  max-width: 75ch;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #373630;
  text-align: left;
}

/* =========================
   CENTRED SUBPAGE LAYOUT
   ========================= */
.centred-subpage{
  justify-content: center;
  align-items: center;

  padding-top: 0;
  padding-bottom: 0;

  min-height: calc(100vh - 120px);
}

.centred-subpage .subpage-box{
  text-align: center;
  max-width: 700px;
}

.centred-subpage .subpage-box h1{
  text-align: center;
}

.centred-subpage .subpage-box h1::after{
  margin: 14px auto;
}

.centred-subpage .subpage-divider-text{
  text-align: center;
}

.employee-box-row{
  width: 100%;
  margin: 120px 0 0;
  padding: 0;
  box-sizing: border-box;
  margin-top: 120px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.employee-box{
  padding: 32px 28px;
  box-sizing: border-box;

  background: rgba(196, 172, 128, 0.82);
  color: #373630;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

/* Employee headers stay centred */
.employee-box h2{
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
  color: #373630;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
}

.employee-box h2::after{
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px auto 14px;
  background: #373630;
  border-radius: 999px;
}

/* Employee body text is left-aligned */
.employee-box p{
  max-width: 65ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #373630;
  text-align: left;
}

/* =========================
   GALLERY SLIDER WITH DESCRIPTION
   ========================= */
.gallery-slider{
  width: 100%;
  position: relative;

  background: rgba(196, 172, 128, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);

  padding: 32px 70px;
  box-sizing: border-box;
}

.gallery-slide{
  display: none;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.gallery-slide.active{
  display: grid;
}

.gallery-image-wrap{
  width: 100%;
  height: 460px;
  overflow: hidden;
  border-radius: 14px;
}

.gallery-image-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-description{
  background: rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 28px 26px;
  text-align: left;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-description h2{
  margin: 0;
  font-size: 1.7rem;
  color: #373630;
}

.gallery-description h2::after{
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 12px 0 14px;
  background: #373630;
  border-radius: 999px;
}

.gallery-description p{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #373630;
}

.gallery-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: #373630;
  color: #ffffff;

  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.gallery-prev{
  left: 18px;
}

.gallery-next{
  right: 18px;
}

.gallery-btn:hover{
  background: var(--accent-blue);
}

.employee-flip-card{
  position: relative;

  width: 100%;
  min-height: 500px;

  perspective: 1000px;
}

/* Stop global section styling affecting employee flip cards */
section.employee-flip-card{
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  text-align: initial;
}

.employee-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  min-height: 500px;
}

.employee-flip-card.flipped .employee-card-inner{
  transform: rotateY(180deg);
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}

.employee-card-front,
.employee-card-back{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  padding: 32px 28px;
  box-sizing: border-box;

  background: rgba(196, 172, 128, 0.82);
  color: #373630;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.employee-card-front{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.employee-card-back{
  transform: rotateY(180deg);

  text-align: left;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.employee-card-front h2,
.employee-card-back h2{
  margin: 0;
  font-size: 1.8rem;
  color: #373630;
}

.employee-card-front h2::after{
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px auto 14px;
  background: #373630;
  border-radius: 999px;
}

.employee-card-front p,
.employee-card-back p{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #373630;
}

.employee-front-layout{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  width: 100%;
  height: 100%;
}

.employee-front-image{
  flex: 0 0 180px;
  width: 180px;
  height: 220px;

  overflow: hidden;
  border-radius: 16px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.employee-front-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.employee-front-content{
  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: left;
}

.employee-front-content h2{
  margin: 0;
  font-size: 2rem;
  color: #373630;
}

.employee-front-content h2::after{
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px 0 14px;

  background: #373630;
  border-radius: 999px;
}

.employee-title{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;

  color: #373630;
  opacity: 0.9;

  font-weight: 500;
}

.employee-card-back h2{
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
  color: #373630;
}

.employee-card-back h2::after{
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px 0 14px;

  background: #373630;
  border-radius: 999px;
}

.employee-card-back .employee-title{
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #373630;
  opacity: 0.9;
}

.sidebar-info-card a{
    color: #373630;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-info-card a:visited{
    color: #373630;
}

.sidebar-info-card a:hover{
    color: #d4be97;
}

.sidebar-info-card a:active{
    color: #373630;
}

*{
  box-sizing: border-box;
}

/* =========================
   MOBILE NAVBAR
   ========================= */
@media (max-width: 48rem){

    html,
    body{
        overflow-x: hidden;
        width: 100%;
    }

    .partners-header,
    .partners-grid,
    .subpage-main,
    .subpage-box,
    .gallery-slider,
    .employee-box-row{
        width: 100%;
        max-width: 100%;
    }

    .partners-header{
        margin: 60px auto 0;
        padding: 36px 20px 20px;
    }

    .employee-box-row{
        grid-template-columns: 1fr;
    }

  body{
    margin-left: 0;
    padding-top: 86px;
  }

  .navbar.sidebar{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 86px;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding: 12px 18px;
    box-sizing: border-box;

    z-index: 1200;
  }

  .nav-left{
    width: auto;
    padding-top: 0;
    justify-content: flex-start;
  }

  .nav-logo{
    width: 5rem;
    height: auto;
    position: relative;
    top: -0.2rem;
  }

  .nav-left{
    width: 4.25rem;
  }

  .navbar.sidebar .nav-links{
    position: absolute;
    left: 54%;
    transform: translateX(-50%);

    width: auto;
    margin: 0;
    padding: 0;

    flex-direction: row;
    gap: 0.5rem;
  }

  .navbar.sidebar .nav-links a{
    font-size: 0.7rem;
    letter-spacing: 0.02rem;
    white-space: nowrap;
  }

  .sidebar-info-wrap{
    margin: 0;
    align-self: auto;
  }

  .sidebar-info-trigger{
    margin-top: 0;
  }

  .info-trigger{
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .info-trigger::after{
    inset: -6px;
  }

  .sidebar-info-card{
    position: fixed;

    top: 100px;
    left: 16px;
    right: 16px;

    width: auto;
    max-width: none;

    transform: none;
  }

  .sidebar-info-card.open{
    transform: none;
  }

  header.hero{
    min-height: calc(100vh - 6.875rem);
    padding: 0 1rem;
    overflow-wrap: anywhere;
  }

  header.hero h1{
    font-size: clamp(3rem, 16vw, 6rem);
    line-height: 1;
    max-width: 100%;
    margin-bottom: 0.4rem;
    word-break: normal;
  }

  header.hero .tagline{
    font-size: clamp(0.9rem, 4.8vw, 1.4rem);
    line-height: 1.25;
    max-width: 90%;
    margin-top: 0;
    text-align: center;
  }

  .partners-header h2,
  .subpage-box h1{
    font-size: clamp(1.6rem, 8vw, 2.3rem);
    line-height: 1.1;
    overflow-wrap: break-word;
  }

  .partners-header .subheadline,
  .subpage-divider-text,
  .employee-card-back p,
  .gallery-description p{
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .partners-grid{
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .partner-card{
    height: 12rem; /* reduces vertical stretch */
  }

  .partner-card-front,
  .partner-card-back{
    padding: 1rem;
  }

  .brand-heading img{
    max-width: 92%;
    max-height: 7rem; /* larger logos on mobile */
  }

  .brand-back-logo{
    height: 6rem;
    margin-bottom: 0.75rem;
  }

  .brand-back-logo img{
    max-width: 92%;
    max-height: 100%;
    object-fit: contain;
  }

  .partner-card-back p{
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .employee-box-row{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .employee-flip-card{
    height: auto;
    min-height: 28rem;
  }

  .employee-card-inner{
    min-height: 100%;
    height: 100%;
  }

  .employee-card-front,
  .employee-card-back{
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
  }

  .employee-card-back p{
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .employee-card-back h2{
    font-size: 1.5rem;
  }

  .employee-card-back .employee-title{
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

    footer{
      padding: 1rem;
  }

  .footer-content{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0.75rem;
  }

  .footer-phone,
  .footer-email,
  .footer-linkedin,
  .footer-instagram{
      display: flex;
      align-items: center;
      gap: 0.35rem;
  }

  .footer-copyright{
      width: 100%;
      text-align: center;
      margin-top: 0.75rem;
  }
}

/* =========================
   LARGE DESKTOPS
   ========================= */
@media (min-width: 1600px){

    header.hero{
        min-height: 80vh;
    }

    header.hero h1{
        font-size: 15rem;
    }

    header.hero .tagline{
        font-size: 3rem;
    }

    .partners-header{
        width: 75rem;      /* 1200px */
    }

    .partners-grid{
        max-width: 75rem;
    }

    .subpage-main{
        max-width: 75rem;
    }
}

/* =========================
   ULTRAWIDE DISPLAYS
   ========================= */
@media (min-width: 2200px){

    header.hero h1{
        font-size: 18rem;
    }

    header.hero .tagline{
        font-size: 3.5rem;
    }

    .partners-header{
        width: 87.5rem;    /* 1400px */
    }

    .partners-grid{
        max-width: 87.5rem;
    }

    .subpage-main{
        max-width: 87.5rem;
    }
}

@media (max-width: 360px){

    .nav-logo{
        width: 3.5rem;
    }

    .navbar.sidebar .nav-links{
        gap: 0.5rem;
    }

    .navbar.sidebar .nav-links a{
        font-size: 0.7rem;
    }

    header.hero h1{
        font-size: 3rem;
    }

    header.hero .tagline{
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px){

    .navbar.sidebar{
        width: 6.5rem;
    }

    body{
        margin-left: 6.5rem;
    }

    header.hero h1{
        font-size: 9rem;
    }

    header.hero .tagline{
        font-size: 2rem;
    }

    .partners-grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .employee-box-row{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   SMALL MOBILE SCREENS
   320px to 390px
   ========================= */
@media (max-width: 24.375rem){

  /* Taller navbar with two rows */
  body{
    padding-top: 7.5rem;
  }

  .navbar.sidebar{
    min-height: 7.5rem;
    height: auto;

    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo space info"
      "links links links";

    align-items: center;
    row-gap: 0.65rem;

    padding: 0.65rem 0.8rem;
  }

  /* Logo remains top-left */
  .nav-left{
    grid-area: logo;
    width: auto;
    padding: 0;
    position: static;
  }

  .nav-logo{
    width: 3.4rem;
    height: auto;
    top: 0;
  }

  /* Info button remains top-right */
  .sidebar-info-wrap{
    grid-area: info;
    justify-self: end;
    margin: 0;
  }

  .info-trigger{
    width: 2rem;
    height: 2rem;
    font-size: 0.65rem;
  }

  .info-trigger::after{
    inset: -0.3rem;
    border-width: 0.1rem;
  }

  /* Navigation sits on its own row */
  .navbar.sidebar .nav-links{
    grid-area: links;

    position: static;
    transform: none;

    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .navbar.sidebar .nav-links a{
    font-size: 0.62rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  /* Info card sits below the taller navbar */
  .sidebar-info-card{
    top: 8rem;
    left: 0.75rem;
    right: 0.75rem;

    width: auto;
    max-width: none;
  }

  .sidebar-info-card .info-card-header h3{
    font-size: 1.15rem;
  }

  .info-card-close{
    font-size: 1.5rem;
  }

  .sidebar-info-card .info-card-body{
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .info-contact{
    gap: 0.55rem;
    margin-top: 0.4rem;
  }

  .info-contact-item{
    gap: 0.65rem;
    font-size: 0.9rem;
  }

  .info-contact-item span,
  .info-contact-item a{
    font-size: 0.9rem;
  }

  /* Keep the telephone number together */
  .info-contact-item:first-child span{
    white-space: nowrap;
  }

  .info-contact-item img{
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
  }

  .info-contact-item img[src*="instagram"]{
    width: 1.5rem;
    height: 1.5rem;
    transform: scale(1.35);
  }

  /* Smaller employee card content */
  .employee-front-layout{
    flex-direction: column;
    gap: 1rem;
  }

  .employee-front-image{
    flex: 0 0 auto;
    width: 7rem;
    height: 8.5rem;
  }

  .employee-front-content{
    text-align: center;
  }

  .employee-front-content h2{
    font-size: 1.35rem;
  }

  .employee-front-content h2::after{
    width: 4rem;
    margin: 0.65rem auto;
  }

  .employee-title{
    font-size: 0.9rem;
  }

  .employee-card-back{
    padding: 1.15rem;
  }

  .employee-card-back h2{
    font-size: 1.3rem;
  }

  .employee-card-back .employee-title{
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .employee-card-back p{
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* Footer first row: phone, email and both social icons */
  footer{
    padding: 0.85rem 0.6rem;
  }

  .footer-content{
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.65rem;
    font-size: 0.64rem;
  }

  .footer-contact{
    gap: 0.25rem;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .footer-contact img,
  .footer-icon-link img{
    width: 0.9rem;
    height: 0.9rem;
  }

  .footer-content p{
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}