@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --bg: #fff;
  --bg-alt: #f5f5f5;
  --text: #3e3a57;
  --heading: #292555;
  --on-dark: #fff;
  --accent: #c5337a;
  --border: #e9ecef;

  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-text: 2px 2px 6px rgba(0, 0, 0, 0.8);

  --width-max: 978px;
  --half-width: 489px;

  --feature-gap: 2rem;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

.header-anchor {
  visibility: hidden;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem auto;
  max-width: var(--width-max);
}

.glove-landing {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
  min-height: 100vh;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-right: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin: 1.5rem;
}

.nav-logo img {
  height: 190px;
  width: auto;
  filter: invert(1);
}

.nav-logo span {
  font-weight: 600;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 8px 20px;
  background: var(--bg);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.tab {
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  color: var(--heading);
  transition: color 0.2s ease, border-bottom 0.2s ease;
  font-weight: 500;
  font-size: 1.2rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.tab:focus {
  outline: none;
}

.tab:hover {
  color: var(--text);
  border-bottom: 3px solid var(--text);
  opacity: 0.65;
}

.tab.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

/* Hero Header */
.hero-header {
  position: relative;
  text-align: center;
  background: #f36b7e;
  /*mask: linear-gradient(black, 80%,transparent)*/
  border-bottom: 1px solid #afafaf;
}

/* Tab Content */
.tab-content {
  display: block;
}

/* When JS is enabled, we hide inactive tabs */
.js-enabled .tab-content {
  display: none;
}

.js-enabled .tab-content.active {
  display: block;
}

/* Hero Section */
.hero {
  background-image: url('/assets/extern/tact-tiles/img/banner.jpg');
  filter: saturate(1.1);
  height: 17rem;
  background-size: cover;
  background-position: center;
  padding-top: 10rem;
  padding-bottom: 3rem;
}

.hero-text {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 20px;
  border-radius: 50px 50px 0 0;
  width: fit-content;
  margin: 0 auto;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  text-shadow: var(--shadow-text);
}

.hero p {
  font-size: 1.25rem;
  margin: 0;
  opacity: 0.95;
  font-weight: 300;
  text-shadow: var(--shadow-text);
}

/* Landing Sections */
.landing-sections {
  margin: 0;
  padding: 0;
}

section, article {
  margin-bottom: 0;
  padding: 3.5rem 2.5rem 0rem 2.5rem;
  line-height: 1.75;
  font-size: 1.1rem;
}

section#tab-main, article#tab-main {
  padding: 0;
}

section .content, article .content {
  max-width: var(--width-max);
  margin-left: auto;
  margin-right: auto;
}

section .content > * + *, article .content > * + * {
  margin-top: 1rem;
}

section .content > p > img, article .content > p > img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Footer Section */
.landing-section.footer-section {
  text-align: center;
  padding: 2rem 1rem 0 1rem;
  font-size: 0.9em;
}

.landing-section.footer-section .content {
  max-width: none;
}

.landing-section.footer-section .content > :not(.footer-banner) {
  max-width: var(--width-max);
  margin-left: auto;
  margin-right: auto;
}

.landing-section.footer-section img:not(.footer-banner) {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  margin: 0.5rem;
}

.landing-section.footer-section a {
  color: var(--accent);
}

.footer-banner {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 320px);
  object-fit: cover;
}

.footer-banner-media {
  position: relative;
}

.footer-banner-wrap {
  position: relative;
  margin-top: 3.5rem;
}

.footer-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30vw;
  height: auto;
  filter: invert(1);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1vw;
}

.footer-logo:hover {
  transform: translate(-50%, -50%) scale(1.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Features Section - markdown img + blockquote pairs */
.features {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--bg);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Image paragraphs */
.features > p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--feature-gap) var(--feature-gap);
}

.auto-height img {
  height: auto !important;
}

.features > p:nth-of-type(n) {
  grid-row: var(--feature-row);
}

.features > p:nth-of-type(1) { grid-row: 1; }
.features > p:nth-of-type(2) { grid-row: 2; }
.features > p:nth-of-type(3) { grid-row: 3; }
.features > p:nth-of-type(4) { grid-row: 4; }
.features > p:nth-of-type(5) { grid-row: 5; }
.features > p:nth-of-type(6) { grid-row: 6; }

.features > p:nth-of-type(odd) {
  grid-column: 1;
  justify-content: flex-end;
}

.features > p:nth-of-type(even) {
  grid-column: 2;
  justify-content: flex-start;
}

.features > p img {
  width: calc(var(--half-width) - var(--feature-gap));
  height: 350px;
  border-radius: 12px;
  object-fit: cover;
}

/* Text blockquotes */
.features > blockquote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: var(--feature-gap) var(--feature-gap);
  border-left: none;
  font-style: normal;
}

.features > blockquote:nth-of-type(1) { grid-row: 1; }
.features > blockquote:nth-of-type(2) { grid-row: 2; }
.features > blockquote:nth-of-type(3) { grid-row: 3; }
.features > blockquote:nth-of-type(4) { grid-row: 4; }
.features > blockquote:nth-of-type(5) { grid-row: 5; }
.features > blockquote:nth-of-type(6) { grid-row: 6; }

.features > blockquote:nth-of-type(odd) {
  grid-column: 2;
}

.features > blockquote:nth-of-type(even) {
  grid-column: 1;
  align-items: flex-end;
}

.features > blockquote > p {
  margin: 0;
  max-width: calc(var(--half-width) - var(--feature-gap));
}

.features > blockquote > p strong:first-child {
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Row backgrounds: p1+bq1 = row1, p2+bq2 = row2, etc */
.features > p:nth-of-type(odd),
.features > p:nth-of-type(odd) + blockquote {
  background: var(--bg);
}

.features > p:nth-of-type(even),
.features > p:nth-of-type(even) + blockquote {
  background: var(--bg-alt);
}

/* Tab Body (for tab pages) */

.tab-body {
  max-width: var(--width-max);
  margin: 0 auto;
}

/* Video Container */
.video-container {
  text-align: center;
  max-width: var(--width-max);
  margin: 2.5rem auto 0;
  padding: 0 2.5rem;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-player .plyr,
.video-player iframe {
  width: 100%;
  height: 100%;
}

.video-container iframe {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.copyright {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  text-align: center;
  color: var(--on-dark);
  font-size: 0.8rem;
  padding: 0.75rem 2.5rem;
  text-shadow: var(--shadow-text);
}

.copyright a {
  color: var(--on-dark);
  text-decoration: none;
}

.gallery {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem 0;
  width: 100%;
}

.gallery p {
  display: contents;
}

.gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  break-inside: avoid;
  display: block;
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    font-size: 14px;
  }

  .top-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .tabs {
    display: block;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 4px 8px;
  }

  .tab {
    padding: 0.4rem 0.75rem;
  }

  .hero {
    padding: 2.5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .video-container {
    padding: 0 1.25rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
  }

  .features {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .features > blockquote,
  .features > p {
    width: 100%;
    max-width: var(--width-max);
    padding: 1.5rem 3rem;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw;
  }

  .features > p img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 350px;
  }

  .video-container {
    padding: 0;
    width: 90vw;
    margin-left: calc(-45vw + 50%);
  }

  /* Force order: text first, image second for cada par */
  .features > blockquote:nth-of-type(1) { order: 1; }
  .features > p:nth-of-type(1) { order: 2; }
  .features > blockquote:nth-of-type(2) { order: 3; }
  .features > p:nth-of-type(2) { order: 4; }
  .features > blockquote:nth-of-type(3) { order: 5; }
  .features > p:nth-of-type(3) { order: 6; }
  .features > blockquote:nth-of-type(4) { order: 7; }
  .features > p:nth-of-type(4) { order: 8; }
  .features > blockquote:nth-of-type(5) { order: 9; }
  .features > p:nth-of-type(5) { order: 10; }
  .features > blockquote:nth-of-type(6) { order: 11; }
  .features > p:nth-of-type(6) { order: 12; }
}
