/*
 * tandem guru · Sky Soda Club v2.0
 * 1950s refreshment advertising meets retro surf shop, Allgäu and Atlantic.
 * Loaded last and deliberately avoids moving Gantry layout nodes.
 */
html.tg-skysoda-theme {
  --soda-ink: #082f35;
  --soda-ocean: #0b5961;
  --soda-atlantic: #18aeb1;
  --soda-seafoam: #cdeee5;
  --soda-cream: #fff4cf;
  --soda-vanilla: #fffaf0;
  --soda-butter: #ffd564;
  --soda-coral: #ef6f61;
  --soda-pink: #d94179;
  --soda-cherry: #a43d3f;
  --soda-orange: #ef9149;
  --soda-violet: #7157b9;
  --soda-shadow: 0 13px 0 rgba(8,47,53,.16);
  --soda-radius: 24px;
  background: var(--soda-vanilla);
}

html.tg-skysoda-theme body {
  color: var(--soda-ink);
  background:
    radial-gradient(circle at 11% 10%, rgba(255,213,100,.20) 0 5rem, transparent 5.15rem),
    radial-gradient(circle at 90% 28%, rgba(217,65,121,.10) 0 9rem, transparent 9.2rem),
    linear-gradient(135deg, #f8fffc 0%, #eefaf8 46%, #fff7ee 100%);
}

html.tg-skysoda-theme body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image:
    radial-gradient(circle, rgba(8,47,53,.45) 0 1px, transparent 1.2px),
    repeating-linear-gradient(102deg, transparent 0 27px, rgba(255,255,255,.22) 28px 29px);
  background-size: 8px 8px, auto;
  mix-blend-mode: multiply;
}

/* Navigation: a real retro soda counter, not a generic pink bar. */
html.tg-skysoda-theme #g-navigation,
html.tg-skysoda-theme .g-fixed-element,
html.tg-skysoda-theme .headroom--pinned #g-navigation {
  background:
    radial-gradient(circle at 10% 8%, rgba(255,213,100,.23) 0 3.5rem, transparent 3.65rem),
    radial-gradient(circle at 88% 38%, rgba(255,255,255,.12) 0 5rem, transparent 5.2rem),
    repeating-linear-gradient(104deg, rgba(255,255,255,.055) 0 1px, transparent 1px 28px),
    linear-gradient(90deg, #a53f4b 0%, #d94877 48%, #b64555 100%) !important;
  border-bottom: 5px solid var(--soda-butter) !important;
  box-shadow: 0 4px 0 var(--soda-atlantic), 0 12px 28px rgba(8,47,53,.18) !important;
}

html.tg-skysoda-theme #g-navigation .g-main-nav .g-toplevel > li > .g-menu-item-container {
  color: #fff8e3 !important;
  text-shadow: 0 2px 0 rgba(80,24,36,.35);
  letter-spacing: .035em;
}

html.tg-skysoda-theme #g-navigation .g-main-nav .g-toplevel > li:hover > .g-menu-item-container,
html.tg-skysoda-theme #g-navigation .g-main-nav .g-toplevel > li.active > .g-menu-item-container {
  color: var(--soda-butter) !important;
}

html.tg-skysoda-theme #g-navigation .g-main-nav .g-toplevel > li.active > .g-menu-item-container::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: .3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--soda-butter), var(--soda-seafoam), #68d1d3, #8a6cca);
}

html.tg-skysoda-theme .tg-nav-booking,
html.tg-skysoda-theme #g-navigation .button {
  color: var(--soda-ink) !important;
  background: linear-gradient(135deg, var(--soda-butter), #ffb85c 55%, #ff8d77) !important;
  border: 2px solid var(--soda-ink) !important;
  border-radius: 11px 18px 11px 18px !important;
  box-shadow: 5px 6px 0 var(--soda-ink) !important;
  transform: rotate(-.7deg);
}

/* Hero: existing images stay, their presentation becomes a campaign poster. */
html.tg-skysoda-theme #g-slideshow,
html.tg-skysoda-theme .tg-fullbleed-slideshow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--soda-ink);
}

html.tg-skysoda-theme #g-slideshow::after {
  content: "BORN IN THE ALPS · SALTED BY THE ATLANTIC · TESTED BY DUDES";
  position: absolute;
  right: clamp(1rem, 3vw, 3.8rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 9;
  max-width: 15rem;
  padding: 1.1rem 1rem;
  color: var(--soda-cream);
  font-weight: 900;
  font-size: clamp(.72rem, 1vw, .92rem);
  line-height: 1.25;
  text-align: center;
  letter-spacing: .08em;
  border: 4px double var(--soda-butter);
  border-radius: 50%;
  background: radial-gradient(circle, #177b7e 0 58%, #0b4f57 59% 100%);
  box-shadow: 0 0 0 7px rgba(255,244,207,.78), 8px 10px 0 rgba(8,47,53,.42);
  transform: rotate(6deg);
  pointer-events: none;
}

html.tg-skysoda-theme #g-slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: .30;
  background-image:
    radial-gradient(circle, rgba(255,244,207,.75) 0 1px, transparent 1.25px),
    linear-gradient(90deg, rgba(8,47,53,.18), transparent 35%, rgba(217,65,121,.12));
  background-size: 7px 7px, auto;
  mix-blend-mode: soft-light;
}

html.tg-skysoda-theme #g-slideshow h1,
html.tg-skysoda-theme #g-slideshow h2,
html.tg-skysoda-theme #g-slideshow .tg-skysurf-title {
  color: var(--soda-cream) !important;
  text-shadow: 5px 5px 0 var(--soda-pink), 9px 9px 0 var(--soda-ocean) !important;
  letter-spacing: -.035em;
}

/* Sky Soda Club manifesto inserted by template JS or companion plugin. */
html.tg-skysoda-theme .tg-soda-club-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(280px, 1.25fr) minmax(310px, 1fr);
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 4.4rem) max(4vw, calc((100vw - 1420px) / 2));
  color: var(--soda-ink);
  background:
    radial-gradient(circle at 8% 45%, rgba(239,111,97,.18) 0 6rem, transparent 6.2rem),
    radial-gradient(circle at 91% 22%, rgba(24,174,177,.18) 0 7rem, transparent 7.2rem),
    linear-gradient(100deg, #fff1cc, #fff9e8 48%, #d8f3e9);
  border-top: 4px solid var(--soda-cherry);
  border-bottom: 5px solid var(--soda-atlantic);
  overflow: hidden;
}

html.tg-skysoda-theme .tg-soda-club-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--soda-ink) 0 .8px, transparent 1px);
  background-size: 6px 6px;
}

html.tg-skysoda-theme .tg-soda-club-brand,
html.tg-skysoda-theme .tg-soda-club-copy,
html.tg-skysoda-theme .tg-soda-club-badges { position: relative; z-index: 1; }

html.tg-skysoda-theme .tg-soda-club-kicker {
  display: block;
  color: var(--soda-ocean);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html.tg-skysoda-theme .tg-soda-club-logo {
  margin: .35rem 0 0;
  color: var(--soda-pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  font-style: italic;
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.08em;
  text-shadow: 3px 3px 0 var(--soda-cream), 6px 6px 0 rgba(164,61,63,.28);
  transform: rotate(-4deg);
}

html.tg-skysoda-theme .tg-soda-club-copy h2 {
  margin: 0 0 .7rem;
  color: var(--soda-ocean) !important;
  font-size: clamp(1.8rem, 3vw, 3.2rem) !important;
  line-height: .98 !important;
  text-transform: uppercase;
  letter-spacing: -.04em;
}

html.tg-skysoda-theme .tg-soda-club-copy p {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.55;
}

html.tg-skysoda-theme .tg-soda-club-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

html.tg-skysoda-theme .tg-soda-badge {
  display: grid;
  place-items: center;
  min-height: 6.7rem;
  padding: .8rem .55rem;
  text-align: center;
  color: var(--soda-ink);
  font-weight: 900;
  font-size: .78rem;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid rgba(8,47,53,.55);
  border-radius: 50% 46% 52% 44%;
  background: rgba(255,255,255,.58);
  box-shadow: 3px 4px 0 rgba(8,47,53,.18);
}
html.tg-skysoda-theme .tg-soda-badge::before {
  display: block;
  margin-bottom: .25rem;
  font-size: 2rem;
  line-height: 1;
}
html.tg-skysoda-theme .tg-soda-badge:nth-child(1)::before { content: "♡"; color: var(--soda-pink); }
html.tg-skysoda-theme .tg-soda-badge:nth-child(2)::before { content: "⌁"; color: var(--soda-atlantic); }
html.tg-skysoda-theme .tg-soda-badge:nth-child(3)::before { content: "☀"; color: var(--soda-orange); }
html.tg-skysoda-theme .tg-soda-badge:nth-child(4)::before { content: "✌"; color: var(--soda-violet); }
html.tg-skysoda-theme .tg-soda-badge:nth-child(5)::before { content: "⌃"; color: var(--soda-ocean); }
html.tg-skysoda-theme .tg-soda-badge:nth-child(6)::before { content: "∞"; color: var(--soda-cherry); }

/* Homepage sections become editorial advertisements, not stacked Joomla cards. */
html.tg-skysoda-theme .tg-soda-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

html.tg-skysoda-theme .tg-soda-section::before {
  content: attr(data-soda-label);
  position: absolute;
  top: 1rem;
  left: max(1.2rem, calc((100vw - 1420px) / 2));
  z-index: 2;
  color: rgba(8,47,53,.12);
  font-size: clamp(2.8rem, 8vw, 9rem);
  font-weight: 1000;
  line-height: .78;
  letter-spacing: -.07em;
  text-transform: uppercase;
  pointer-events: none;
}

html.tg-skysoda-theme .tg-soda-manifesto {
  background: linear-gradient(135deg, #e8fbf4, #fff9e8 55%, #fbe4ee);
}
html.tg-skysoda-theme .tg-soda-destinations {
  color: #fff8e3;
  background:
    linear-gradient(90deg, rgba(8,47,53,.16), rgba(8,47,53,.02)),
    linear-gradient(110deg, #0f6971 0 50%, #106b74 50% 58%, #176d68 58% 100%);
}
html.tg-skysoda-theme .tg-soda-destinations h1,
html.tg-skysoda-theme .tg-soda-destinations h2,
html.tg-skysoda-theme .tg-soda-destinations h3,
html.tg-skysoda-theme .tg-soda-destinations p,
html.tg-skysoda-theme .tg-soda-destinations a { color: inherit; }

html.tg-skysoda-theme .tg-soda-stories {
  background: linear-gradient(135deg, #caf0ea, #eefbfa 44%, #fff1d0);
}
html.tg-skysoda-theme .tg-soda-weather {
  background: linear-gradient(135deg, #fff5cc, #ffe2b6 52%, #d7f2eb);
}
html.tg-skysoda-theme .tg-soda-adventures {
  background:
    radial-gradient(circle at 86% 22%, rgba(217,65,121,.18) 0 7rem, transparent 7.2rem),
    linear-gradient(135deg, #fff4d4, #fff8e7 40%, #e8f8f2);
}

/* Existing article/particle cards: flattened, spaced, and made ad-like. */
html.tg-skysoda-theme .tg-soda-section .g-content,
html.tg-skysoda-theme .tg-soda-section .platform-content,
html.tg-skysoda-theme .tg-soda-section article,
html.tg-skysoda-theme .tg-soda-section .item-page {
  border-color: transparent !important;
}

html.tg-skysoda-theme .tg-soda-section h1,
html.tg-skysoda-theme .tg-soda-section h2,
html.tg-skysoda-theme .tg-soda-section h3,
html.tg-skysoda-theme #g-mainbar h1,
html.tg-skysoda-theme #g-mainbar h2 {
  max-width: 21ch;
  color: var(--soda-ink);
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

html.tg-skysoda-theme .tg-soda-section h2::after,
html.tg-skysoda-theme .tg-soda-section h3::after {
  content: "";
  display: block;
  width: min(15rem, 52%);
  height: 6px;
  margin-top: .55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--soda-pink), var(--soda-coral), var(--soda-butter), var(--soda-atlantic), var(--soda-violet));
  transform: rotate(-1deg);
}

/* Meet the Dudes / team particles */
html.tg-skysoda-theme .tg-soda-dudes .g-team-item,
html.tg-skysoda-theme .tg-soda-dudes .g-blockcontent-subcontent,
html.tg-skysoda-theme .tg-soda-dudes .g-blockcontent-subcontent-block {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.tg-skysoda-theme .tg-soda-dudes img {
  border-radius: 50% !important;
  border: 5px solid var(--soda-butter) !important;
  box-shadow: 0 0 0 7px var(--soda-ocean), 8px 9px 0 rgba(217,65,121,.45) !important;
  filter: saturate(.92) contrast(1.08) sepia(.08);
}

/* Alps to Atlantic divider */
html.tg-skysoda-theme .tg-soda-route-divider {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem max(4vw, calc((100vw - 1420px) / 2));
  color: #fff8e3;
  background: linear-gradient(90deg, #104f56, #157a7f 45%, #d94179 100%);
  border-top: 4px solid var(--soda-butter);
  border-bottom: 4px solid var(--soda-cherry);
  text-transform: uppercase;
  font-weight: 1000;
  letter-spacing: .06em;
}
html.tg-skysoda-theme .tg-soda-route-divider::before { content: "ALLGÄU · TIROL"; }
html.tg-skysoda-theme .tg-soda-route-divider::after { content: "PORTUGAL · ATLANTIK"; text-align: right; }
html.tg-skysoda-theme .tg-soda-route-divider span {
  color: var(--soda-butter);
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 3.4rem);
  font-style: italic;
  letter-spacing: -.04em;
  text-transform: none;
}

/* Price offers: product flavours, not a spreadsheet. */
html.tg-skysoda-theme #g-expanded,
html.tg-skysoda-theme .tg-soda-adventures {
  position: relative;
}
html.tg-skysoda-theme #g-expanded .g-pricingtable-col-item,
html.tg-skysoda-theme #g-expanded .g-tgpricelist-item,
html.tg-skysoda-theme .tg-soda-price-card {
  border: 2px solid var(--soda-ink) !important;
  border-radius: 18px 25px 17px 23px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,244,207,.88)) !important;
  box-shadow: 8px 10px 0 rgba(8,47,53,.16) !important;
  transform: rotate(-.45deg);
}
html.tg-skysoda-theme #g-expanded .g-pricingtable-col-item:nth-child(even),
html.tg-skysoda-theme #g-expanded .g-tgpricelist-item:nth-child(even),
html.tg-skysoda-theme .tg-soda-price-card:nth-child(even) { transform: rotate(.55deg); }

html.tg-skysoda-theme #g-expanded .g-pricingtable-price,
html.tg-skysoda-theme #g-expanded .tg-price,
html.tg-skysoda-theme .tg-soda-price-card .price {
  display: inline-grid;
  place-items: center;
  min-width: 5.7rem;
  min-height: 5.7rem;
  color: var(--soda-cream) !important;
  border: 4px double var(--soda-cream);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--soda-pink), var(--soda-cherry));
  box-shadow: 5px 6px 0 var(--soda-ink);
  transform: rotate(5deg);
}

/* Buttons use 50s product-ad language without changing URLs. */
html.tg-skysoda-theme .button,
html.tg-skysoda-theme .btn,
html.tg-skysoda-theme button:not(.close),
html.tg-skysoda-theme input[type="submit"] {
  border-radius: 8px 15px 8px 15px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}
html.tg-skysoda-theme .tg-soda-section .button,
html.tg-skysoda-theme .tg-soda-section .btn {
  color: #fff9e8 !important;
  background: linear-gradient(135deg, var(--soda-pink), var(--soda-cherry)) !important;
  border: 2px solid var(--soda-ink) !important;
  box-shadow: 4px 5px 0 var(--soda-ink) !important;
}

/* Sidebar becomes a shelf of sky souvenirs. We never set media height. */
html.tg-skysoda-theme #g-aside,
html.tg-skysoda-theme .g-aside {
  position: relative;
  background: transparent !important;
}
html.tg-skysoda-theme #g-aside::before,
html.tg-skysoda-theme .g-aside::before {
  content: "SKY SOUVENIRS";
  display: block;
  margin: 0 0 1.4rem;
  color: var(--soda-cherry);
  font-weight: 1000;
  letter-spacing: .12em;
  text-align: center;
}
html.tg-skysoda-theme #g-aside .g-content,
html.tg-skysoda-theme .g-aside .g-content,
html.tg-skysoda-theme #g-aside .platform-content,
html.tg-skysoda-theme .g-aside .platform-content {
  margin: 0 0 clamp(2.6rem, 5vw, 4.6rem) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.tg-skysoda-theme #g-aside img,
html.tg-skysoda-theme .g-aside img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
html.tg-skysoda-theme #g-aside iframe,
html.tg-skysoda-theme .g-aside iframe {
  display: block;
  max-width: 100%;
  margin-inline: auto;
  border: 0;
}
html.tg-skysoda-theme #g-aside .platform-content:nth-child(3n+1),
html.tg-skysoda-theme .g-aside .platform-content:nth-child(3n+1) { transform: rotate(-.7deg); }
html.tg-skysoda-theme #g-aside .platform-content:nth-child(3n+2),
html.tg-skysoda-theme .g-aside .platform-content:nth-child(3n+2) { transform: rotate(.65deg); }

/* Finale / footer resembles the counter of a surf shop. */
html.tg-skysoda-theme #g-bottom {
  color: var(--soda-cream);
  background:
    radial-gradient(circle at 82% 36%, rgba(255,213,100,.18) 0 7rem, transparent 7.2rem),
    linear-gradient(110deg, #0a4b52, #08727a 58%, #0b535c);
  border-top: 6px solid var(--soda-butter);
}
html.tg-skysoda-theme #g-footer,
html.tg-skysoda-theme #g-copyright {
  color: #fff4cf;
  background: var(--soda-ink) !important;
}
html.tg-skysoda-theme #g-footer {
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--soda-pink), var(--soda-butter), var(--soda-atlantic), var(--soda-violet)) 1;
}
html.tg-skysoda-theme #g-footer a,
html.tg-skysoda-theme #g-copyright a { color: var(--soda-butter); }

/* Internal pages remain readable and are less campaign-heavy. */
html.tg-skysoda-theme:not(.tg-skysoda-home) #g-mainbar h1,
html.tg-skysoda-theme:not(.tg-skysoda-home) .item-page > h1,
html.tg-skysoda-theme:not(.tg-skysoda-home) .page-header h1 {
  font-size: clamp(2rem, 4vw, 3.6rem) !important;
  line-height: 1.02 !important;
}

@media (max-width: 980px) {
  html.tg-skysoda-theme #g-slideshow::after { display: none; }
  html.tg-skysoda-theme .tg-soda-club-band {
    grid-template-columns: 1fr 1.5fr;
  }
  html.tg-skysoda-theme .tg-soda-club-badges {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, 1fr);
  }
  html.tg-skysoda-theme .tg-soda-badge { min-height: 5.6rem; }
  html.tg-skysoda-theme #g-aside .platform-content,
  html.tg-skysoda-theme .g-aside .platform-content { transform: none !important; }
}

@media (max-width: 700px) {
  html.tg-skysoda-theme .tg-soda-club-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  html.tg-skysoda-theme .tg-soda-club-logo { margin-inline: auto; }
  html.tg-skysoda-theme .tg-soda-club-badges { grid-template-columns: repeat(3, 1fr); }
  html.tg-skysoda-theme .tg-soda-route-divider {
    grid-template-columns: 1fr;
    text-align: center;
  }
  html.tg-skysoda-theme .tg-soda-route-divider::after { text-align: center; }
  html.tg-skysoda-theme .tg-soda-section::before { font-size: 3rem; opacity: .7; }
  html.tg-skysoda-theme #g-navigation .g-container { padding-inline: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.tg-skysoda-theme *,
  html.tg-skysoda-theme *::before,
  html.tg-skysoda-theme *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
