/* ==========================================================================
   FittForma by Gut Gabi / The Set Studio — Exact 1:1 Recreation
   ========================================================================== */

@font-face {
  font-family: 'Awesome Serif VAR';
  src: url('assets/fonts/AwesomeSerif-Regular.otf') format('opentype'),
       url('https://static1.squarespace.com/static/67c8c030804304009b7f920c/t/67d7c2e52b1d29228ac72023/1742193381514/AwesomeSerif-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Awesome Serif italic';
  src: url('assets/fonts/AwesomeSerifItalic-Regular.otf') format('opentype'),
       url('https://static1.squarespace.com/static/67c8c030804304009b7f920c/t/67d7d9302dc53c19739cfb80/1742199088053/AwesomeSerifItalic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-cream: #F8F3EA;
  --color-cream-light: #F6F3EC;
  --color-lime: #B6CC3C; /* FittForma limezöld (korábban --color-blue) */
  --color-navy: #255088;
  --color-orange-bullet: #FFB583;
  --color-white: #FFFFFF;
  --font-serif: 'Awesome Serif VAR', Georgia, serif;
  --font-sans: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-montserrat: 'Montserrat', 'Mulish', sans-serif;
  --font-nav: 'Mulish', sans-serif;
  --site-max-width: 1500px;
  --site-gutter: 4vw;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-cream);
  color: var(--color-cream-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

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

/* ==========================================================================
   1. Announcement Bar
   ========================================================================== */
.announcement-bar {
  position: relative;
  background-color: var(--color-lime);
  color: var(--color-white);
  text-align: center;
  padding: 0.62vw 3.5vw;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: clamp(9.5px, 0.92vw, 13.5px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  z-index: 100;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}

.announcement-bar.is-hidden {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.announcement-bar-link {
  display: inline-block;
  color: var(--color-white);
}

.announcement-bar strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.announcement-bar-close {
  position: absolute;
  right: 1.1vw;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.announcement-bar-close:hover {
  opacity: 1;
}

/* ==========================================================================
   2. Header / Navigation
   ========================================================================== */
.site-header {
  background-color: transparent;
  width: 100%;
  position: fixed;
  top: var(--announcement-bar-offset, 0px);
  left: 0;
  right: 0;
  z-index: 95;
  transition: background-color 0.32s ease, box-shadow 0.32s ease, top 0.25s ease;
}

.site-header.is-scrolled {
  top: 0;
  background-color: var(--color-cream);
  box-shadow: 0 6px 24px rgba(35, 37, 39, 0.09);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.55vw var(--site-gutter);
  min-height: 5.45vw;
}

.header-logo a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-logo img {
  height: clamp(38px, 4.2vw, 62px);
  width: auto;
  display: block;
  transition: opacity 0.32s ease;
}

.header-logo img.logo-color-img {
  mix-blend-mode: multiply;
  opacity: 0;
}

.header-logo img.logo-white-img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: clamp(34px, 3.7vw, 54px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
  pointer-events: none;
}

.site-header.is-scrolled .header-logo img.logo-color-img {
  opacity: 1;
}

.site-header.is-scrolled .header-logo img.logo-white-img {
  opacity: 0;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 2.35vw;
  list-style: none;
}

.header-nav-item {
  position: relative;
}

.header-nav-link {
  font-family: var(--font-nav);
  font-size: clamp(10.5px, 1.04vw, 15px);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 0;
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: color 0.32s ease;
}

.site-header.is-scrolled .header-nav-link {
  color: var(--color-lime);
}

.header-nav-item.is-active > .header-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
}

/* Dropdown folder menu */

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

/* Signature animated underline CTA used across the site */
.cta-underline-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-nav);
  font-size: clamp(10px, 1.02vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}

.cta-underline-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transform: translateX(-50%) scaleX(1);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.3s ease-in-out;
}

.cta-underline-link:hover::after {
  width: 30%;
  transform: translateX(-50%) scaleX(1);
}

.header-cta {
  color: var(--color-white);
  transition: color 0.32s ease;
}

.site-header.is-scrolled .header-cta {
  color: var(--color-lime);
}

/* Mobile menu button */
.header-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: background-color 0.32s ease;
}

.site-header.is-scrolled .header-burger span {
  background-color: var(--color-lime);
}

/* ==========================================================================
   3. Section 1: Hero ("On Demand")
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--announcement-bar-offset, 2.2vw));
  height: calc(100dvh - var(--announcement-bar-offset, 2.2vw));
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide-img.is-active {
  opacity: 1;
}

/* Fluid Engine 24-column grid container */
.fe-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(calc(var(--site-gutter) - 0.76vw), 1fr)
    repeat(24, minmax(0, calc((var(--site-max-width) - (0.76vw * 23)) / 24)))
    minmax(calc(var(--site-gutter) - 0.76vw), 1fr);
  column-gap: 0.76vw;
  row-gap: 0.76vw;
}

.hero-grid {
  grid-template-rows: repeat(9, 1fr);
  padding-top: 1.2vw;
  padding-bottom: 1.8vw;
}

/* Slide 0 (default): Gabi is on the left, empty green background is on the right */
.hero-title-block {
  grid-area: 4 / 14 / 9 / 26;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: all 0.35s ease;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(54px, 7.95vw, 122px);
  line-height: 0.92;
  letter-spacing: 0.14vw;
  color: var(--color-cream-light);
  text-align: right;
  white-space: nowrap;
}

.hero-cta-block {
  grid-area: 9 / 19 / 10 / 26;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Slide 1: Gabi is on the right, empty background is on the left -> Headline moves to left */
.hero-section[data-slide="1"] .hero-title-block {
  grid-area: 4 / 2 / 9 / 14;
  justify-content: flex-start;
}

.hero-section[data-slide="1"] .hero-title {
  text-align: left;
}

.hero-section[data-slide="1"] .hero-cta-block {
  grid-area: 9 / 2 / 10 / 9;
  justify-content: flex-start;
}

.hero-cta {
  color: var(--color-cream-light);
}

/* Subtle Hero Slide Dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cream-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  transition: background-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.hero-dot.is-active,
.hero-dot:hover {
  background-color: var(--color-cream-light);
  opacity: 1;
  transform: scale(1.15);
}

/* ==========================================================================
   4. Section 1B: FITTFORMA BY Gut Gabi — SPORTRUHÁZAT Banner (Below Hero)
   ========================================================================== */
.sportruhazat-banner {
  position: relative;
  width: 100%;
  background-image: url('assets/images/ff-slice-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 4;
}

.sportruhazat-inner {
  max-width: 78.5vw;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* Left 40% Column */
.sportruhazat-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2vw 0;
}

.sportruhazat-logo-link {
  display: inline-block;
  max-width: 20.6vw;
  margin-bottom: 0.35vw;
}

.sportruhazat-logo {
  width: 100%;
  height: auto;
  display: block;
}

.sportruhazat-title-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.sportruhazat-title {
  font-family: var(--font-montserrat);
  font-size: clamp(14px, 2.02vw, 29px);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.015em;
  line-height: 1.1;
  margin: 0;
  padding-right: 1.1vw;
  white-space: nowrap;
}

.sportruhazat-sep-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.sportruhazat-sep-double {
  width: 100%;
  height: 6px;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  opacity: 0.85;
}

/* Right 60% Column */
.sportruhazat-right {
  width: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sportruhazat-models-link {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.sportruhazat-models-img {
  width: 100%;
  max-width: 44.2vw;
  height: auto;
  display: block;
}

/* ==========================================================================
   5. Section 2: "On Demand Workouts" (#B6CC3C Section + Pointed Divider)
   ========================================================================== */
.workouts-section {
  position: relative;
  background-color: var(--color-lime);
  color: var(--color-cream);
  z-index: 3;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    48.8% calc(100% - 7.5vw),
    0% 100%
  );
  padding-bottom: 8vw;
  margin-bottom: -7.55vw;
}

.workouts-grid {
  grid-template-rows: repeat(17, minmax(1.98vw, auto));
}

.workouts-eyebrow-block {
  grid-area: 3 / 2 / 4 / 8;
  display: flex;
  align-items: flex-start;
}

.workouts-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(9.5px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  text-transform: uppercase;
}

.workouts-heading-block {
  grid-area: 4 / 2 / 7 / 20;
  display: flex;
  align-items: flex-start;
}

.workouts-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.45vw, 80px);
  line-height: 1.06;
  letter-spacing: 0.14vw;
  color: var(--color-cream);
}

/* Left Oval Multi-Device Image */
.workouts-image-block {
  grid-area: 7 / 2 / 18 / 12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oval-image-wrapper {
  width: 100%;
  aspect-ratio: 2059 / 1373;
  position: relative;
  overflow: hidden;
  clip-path: url(#sqsp-horizontal-oval);
  -webkit-clip-path: url(#sqsp-horizontal-oval);
}

.oval-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* Right Bulleted List */
.workouts-list-block {
  grid-area: 6 / 15 / 15 / 23;
  display: flex;
  align-items: flex-start;
}

.workouts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.45vw;
}

.workouts-list li {
  position: relative;
  padding-left: 2.1vw;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.12vw, 16.5px);
  font-weight: 400;
  line-height: 1.48;
  color: var(--color-cream);
}

.workouts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25vw;
  width: 0.9vw;
  height: 0.9vw;
  min-width: 8px;
  min-height: 8px;
  max-width: 13px;
  max-height: 13px;
  border-radius: 50%;
  background-color: var(--color-white);
}

.workouts-cta-block {
  grid-area: 16 / 15 / 17 / 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.workouts-cta {
  color: var(--color-cream);
}

/* ==========================================================================
   6. Section 3: "Join Online" (Hero-Gabi-2: Gabi on Right, Headline on Empty Left)
   ========================================================================== */
.join-section {
  position: relative;
  width: 100%;
  height: 50vw;
  min-height: 400px;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.join-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.join-bg-top-ext {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.85vw;
  background-image: url('assets/images/hero-gabi-2.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scaleY(-1);
}

.join-bg-main {
  position: absolute;
  top: 2.8vw;
  left: 0;
  width: 100%;
  height: calc(100% - 2.8vw);
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}

.join-grid {
  grid-template-rows: repeat(16, 1fr);
}

.join-heading-block {
  grid-area: 9 / 2 / 14 / 10;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.8vw;
}

.join-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.45vw, 80px);
  line-height: 1.06;
  letter-spacing: 0.14vw;
  color: var(--color-cream);
}

.join-cta-block {
  grid-area: 14 / 2 / 15 / 8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.join-cta {
  color: var(--color-cream);
}

/* ==========================================================================
   7. Footer Section
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  background-color: var(--color-cream);
  overflow: hidden;
  padding: 3.6vw 0 3vw;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.footer-grid {
  grid-template-rows: repeat(5, minmax(1.98vw, auto));
  align-items: center;
}

/* Footer Logo */
.footer-logo-block {
  grid-area: 1 / 2 / 4 / 6;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo-block img {
  width: clamp(110px, 13.5vw, 195px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Footer Social Icons */
.footer-social-ig {
  grid-area: 5 / 2 / 6 / 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-social-fb {
  grid-area: 5 / 3 / 6 / 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.footer-social-link img {
  width: clamp(18px, 1.95vw, 28px);
  height: clamp(18px, 1.95vw, 28px);
  object-fit: contain;
  display: block;
  filter: url(#recolor-accent);
}

/* Footer Newsletter */
.footer-newsletter-block {
  grid-area: 1 / 9 / 5 / 19;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
}

.newsletter-title {
  font-family: var(--font-sans);
  font-size: clamp(9.5px, 0.95vw, 14px);
  font-weight: 700;
  color: var(--color-lime);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2.8vw;
}

.newsletter-form {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 26vw;
  min-width: 240px;
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-lime);
  padding: 0.4vw 0 0.65vw 0;
  font-family: var(--font-sans);
  font-size: clamp(9.5px, 0.92vw, 13.5px);
  color: var(--color-lime);
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--color-lime);
  opacity: 0.95;
}

.newsletter-submit {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-lime);
  padding: 0.4vw 1.2vw 0.65vw 1.2vw;
  font-family: var(--font-nav);
  font-size: clamp(9.5px, 0.92vw, 13.5px);
  font-weight: 600;
  color: var(--color-lime);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.newsletter-submit:hover {
  opacity: 0.75;
}

.newsletter-feedback {
  font-size: 11px;
  color: var(--color-lime);
  margin-top: 4px;
  min-height: 14px;
}

/* Copyright */
.footer-copyright-block {
  grid-area: 5 / 9 / 6 / 16;
  display: flex;
  align-items: center;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: clamp(9px, 0.85vw, 12.5px);
  color: var(--color-lime);
  letter-spacing: 0.01em;
}

/* Footer Right Links */
.footer-link-1 { grid-area: 1 / 20 / 2 / 25; }
.footer-link-2 { grid-area: 2 / 20 / 3 / 25; }
.footer-link-3 { grid-area: 3 / 20 / 4 / 25; }
.footer-link-4 { grid-area: 4 / 20 / 5 / 25; }
.footer-link-5 { grid-area: 5 / 20 / 6 / 25; }

.footer-nav-link {
  font-family: var(--font-sans);
  font-size: clamp(9.5px, 0.95vw, 14px);
  font-weight: 500;
  color: var(--color-lime);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 2px 0;
  transition: opacity 0.2s ease;
}

.footer-nav-link:hover {
  opacity: 0.75;
}

/* ==========================================================================
   8. Responsive Breakpoints (Mobile)
   ========================================================================== */
@media (max-width: 767px) {
  .fe-grid {
    display: flex;
    flex-direction: column;
    padding: 32px 6vw;
    gap: 20px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 10px 6vw;
  }

  .header-nav,
  .header-actions {
    display: none;
  }

  .header-burger {
    display: block;
  }

  .hero-section {
    height: calc(100vh - var(--hero-top-offset, 96px));
    height: calc(100dvh - var(--hero-top-offset, 96px));
    min-height: 420px;
  }

  .hero-grid {
    justify-content: flex-end;
    align-items: flex-end;
  }

  .sportruhazat-inner {
    flex-direction: column;
    max-width: 90vw;
    padding-top: 24px;
    gap: 16px;
  }

  .sportruhazat-left,
  .sportruhazat-right {
    width: 100%;
  }

  .sportruhazat-logo-link {
    max-width: 220px;
  }

  .sportruhazat-models-img {
    max-width: 100%;
  }

  .workouts-section {
    padding-bottom: 12vw;
  }

  .oval-image-wrapper {
    max-width: 480px;
  }

  .join-section {
    height: auto;
    min-height: 420px;
  }

  .join-grid {
    justify-content: flex-end;
    min-height: 420px;
  }
}
