/*
Theme Name:  LadyFury Fightwear
Theme URI:   https://ladyfury.com
Author:      LadyFury
Author URI:  https://ladyfury.com
Description: Official LadyFury Fightwear landing page theme
Version:     1.0.0
License:     All Rights Reserved
Text Domain: ladyfury
*/
/* ============================================================
   LADYFURY FIGHTWEAR
   ============================================================ */

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

:root {
  --pink:       #BE1C7C;
  --dark-blue:  #113665;
  --dark:       #1A1A1E;
  --grey:       #5D5552;
  --muted:      #999999;
  --white:      #FFFFFF;
  --black:      #000000;
  --dawn-pink:  #F6EFEC;

  --container:  1384px;
  --gutter:     clamp(24px, 8vw, 154px);

  --section-v:  clamp(60px, 8vw, 130px);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   UTILITY COLORS
   ============================================================ */

.c-pink  { color: var(--pink); }
.c-dark  { color: var(--dark); }
.c-white { color: var(--white); }

/* ============================================================
   BADGE
   ============================================================ */

.badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 58px;
  background: rgba(241, 241, 241, 0.15);
  color: var(--white);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 22.4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.75; }

.btn-white-outline { color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.btn-dark-outline  { color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }

.btn-pink {
  background: var(--pink);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
  padding: 0 24px;
  height: 100%;
}

.btn-submit {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 8px;
}

/* Icon box inside buttons — circle (default for subscribe/newsletter) */
.icon-box {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background: var(--dark-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icon-box img { width: 18px; height: 18px; object-fit: contain; }

/* Rounded square — used only on the "Discover Now" button */
.icon-box--square {
  width: 20px;
  height: 20px;
  border-radius: 10px;
}

.icon-box--square img { width: 16px; height: 16px; }

/* Dark icon box — fond noir, sur bouton à fond blanc */
.icon-box--dark { background: var(--dark); }

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  padding: clamp(16px, 2vw, 24px) var(--gutter);
  pointer-events: none;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.header-logo {
  height: clamp(44px, 4.5vw, 72px);
  width: auto;
}

/* ============================================================
   COMING SOON HERO  (100vh)
   ============================================================ */

.hero-coming-soon {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.25vw, 24px); /* Figma: 24px gap */
  text-align: center;
  padding: 0 var(--gutter);
}

/* Rotating badge — straddling hero / hero-text boundary */
.hero-badge-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  z-index: 10;
  width: clamp(180px, 16vw, 260px);
  height: clamp(180px, 16vw, 260px);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin-badge 40s linear infinite;
}

.hero-badge-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
}

.hero-badge-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes spin-badge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(28px, 4.17vw, 80px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.15;
}

/* ============================================================
   HERO TEXT
   ============================================================ */

.hero-text {
  padding: clamp(110px, 12vw, 180px) 0 clamp(55px, 6.77vw, 130px);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.hero-text-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-heading {
  width: 44%;
}

.hero-heading h2 {
  font-size: clamp(28px, 4.2vw, 80px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero-copy {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 3.5vw, 50px);
  align-items: flex-start;
}

.hero-copy p {
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--grey);
}

/* ============================================================
   THREE CARDS
   ============================================================ */

.cards-section {
  padding-bottom: var(--section-v);
  background: var(--white);
}

/* Cards: 431/1384 ≈ 31.1% each, space-between = ~45.5px gap like Figma */
.cards-grid {
  display: flex;
  justify-content: space-between;
}

.card {
  position: relative;
  width: 31.1%;     /* 431 / 1384 */
  aspect-ratio: 431 / 586;
  border-radius: clamp(16px, 2vw, 31px);
  overflow: hidden;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,1) 100%);
}

.card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2vw, 28px);
  text-align: center;
  color: var(--white);
}

.card-body h3 {
  font-size: clamp(22px, 2.5vw, 40px);
  font-weight: 600;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}

.card-body p {
  font-size: clamp(13px, 1.1vw, 20px);
  font-weight: 400;
  line-height: 1.6;
}

/* ============================================================
   ABOUT SECTIONS
   ============================================================ */

.about-section {
  position: relative;
  /* Figma: 547px dans un design 1920×1080 = ~50% de la hauteur écran */
  height: clamp(300px, 50vh, 547px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  top: -5%;
  object-fit: cover;
}

.about-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.60) 100%);
  z-index: 1;
}

/* Positioned absolutely to fill section, padding drives the content placement */
.about-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/*
  Section 1 — Figma: padding 606px droite sur 1920px = 31.6vw
  Content "About Right" = 708px = 36.9vw
*/
.about-inner--1 {
  padding-right: 24vw;
  padding-left: 0;
}

.about-inner--1 .about-content {
  width: 28.1vw;
  min-width: 240px;
  max-width: 540px;
}

/*
  Section 2 — Figma: padding 268px droite sur 1920px = 13.96vw
  Content "About Right" = 540px = 28.1vw
*/
.about-inner--2 {
  padding-right: 13.96vw;
  padding-left: 0;
}

.about-inner--2 .about-content {
  width: 28.1vw;
  min-width: 240px;
  max-width: 540px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start; /* badge colle au texte, pas stretch */
}

.about-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.33vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--white);
}

/* ============================================================
   SOCIAL / FOLLOW SECTION
   ============================================================ */

.social-section {
  position: relative;
  background: var(--white);
  padding: var(--section-v) 0;
  overflow: hidden;
}

/* Figma: container 1384px, justify-content: space-between, align-items: flex-start */
.social-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Left: 678px / 1384px = 49% */
.social-left {
  width: 49%;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.5vw, 48px);
  align-items: flex-start;
}

/* Figma: 56px / line-height 67.2px / letter-spacing -1.5px */
.social-heading {
  font-size: clamp(24px, 2.92vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

/* Right: 678px / 1384px = 49%, align-items: flex-end (bottom) */
.social-right {
  width: 49%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0;
  flex-shrink: 0;
}

/* Figma: padding 20px, column, icon 40x43 + label */
.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  transition: opacity 0.2s;
}

.social-btn:hover { opacity: 0.6; }

.social-btn svg {
  width: 40px;
  height: 43px;
  flex-shrink: 0;
}

/* Watermark diagonal logo */
.social-watermark {
  position: absolute;
  right: -6%;
  bottom: -35%;
  width: 60%;
  transform: rotate(-16deg); /* JS override via style.transform */
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  will-change: transform;
}

.social-watermark img { width: 100%; }

/* ============================================================
   MARQUEE SECTION
   ============================================================ */

.marquee-section {
  position: relative;
  height: 100vh;
  background: var(--black);
  overflow: hidden;
}

.marquee-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

/* Figma: gradient en bas sur 50% de la section, bleu foncé */
.marquee-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(17,54,101,0) 0%, rgba(17,54,101,0.60) 100%);
  z-index: 1;
}

/* Figma: 787px wide, 740px tall, left:547px (≈28.5%), bottom: 0 */
.marquee-fighter {
  position: absolute;
  top: 80px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4; /* au-dessus du marquee (z-index 3) */
  pointer-events: none;
}

.marquee-fighter img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

/* Figma: marquee container height 200px, top: 62px */
.marquee-wrap {
  position: absolute;
  top: clamp(30px, 3.24vw, 62px);
  left: 0;
  right: 0;
  height: clamp(80px, 10.4vw, 200px);
  overflow: hidden;
  z-index: 3;
  /* Figma mask: fade in/out sur les bords */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 8%, #000 92%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 8%, #000 92%, rgba(0,0,0,0) 100%);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  /* plus rapide que 20s */
  animation: scroll-left 12s linear infinite;
  height: 100%;
  align-items: center;
}

.marquee-track span {
  font-family: 'Outfit', sans-serif;
  /* Figma: 90px / line-height 103.5px */
  font-size: clamp(40px, 4.69vw, 90px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 103.5px;
  text-transform: uppercase;
  color: var(--white);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   COMMUNITY / CONTACT
   ============================================================ */

.community-section {
  padding: var(--section-v) 0;
  background: var(--white);
}

.community-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: clamp(30px, 4.17vw, 80px);
}

.community-symbol {
  width: clamp(120px, 18.6vw, 357px);
  height: auto;
}

/* Figma: 80px — réduit proportionnellement */
.community-title {
  font-size: clamp(24px, 3.33vw, 64px);
  font-weight: 600;
  letter-spacing: -2px;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--dark);
}

/* Contact form — Figma: width 640px, gap 32px form→button, gap 10px entre rows */
.contact-form {
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Figma: gap 10px entre les rows */
.form-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  /* Figma: padding 18px 12px */
  padding: 18px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  display: block;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field select {
  color: var(--muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M3.5 1L8 5.5L12.5 1' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-field select option { color: var(--dark); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--pink);
  z-index: 1;
}

/* Figma: textarea height 100px */
.form-field textarea { resize: vertical; min-height: 100px; }

/* Figma: bouton 240px, centré, pas de fond, border 1px black, border-radius 999px */
.btn-send-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  padding: 16px 0;
  margin-top: 32px;
  border-radius: 999px;
  border: 1px solid var(--black);
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500; /* moins gras que 600 */
  color: var(--black);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-send-msg:hover { opacity: 0.7; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--black);
}

/* Même marges que le reste du site via --gutter */
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 6.77vw, 130px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Figma: logo 105×52px */
.footer-logo {
  height: clamp(36px, 2.7vw, 52px);
  width: auto;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

/* Figma: 44×44px, border rgba(255,255,255,0.2), border-radius 50px */
.footer-social-link {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.footer-social-link:hover { border-color: rgba(255,255,255,0.5); }

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  width: 528px;
  max-width: 100%;
}

/* Figma: Poppins 16px weight 400 */
.footer-newsletter p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(13px, 0.83vw, 16px);
  font-weight: 400;
  color: var(--white);
  line-height: 25.6px;
  text-align: right;
}

.newsletter-row {
  display: flex;
  width: 100%;
  height: 53px;
}

/* Figma: Inter 14px weight 400 */
.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 18px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-right: none;
  outline: none;
}

.newsletter-row input::placeholder { color: var(--muted); }

/* Figma: pink bg, 188px, Inter 14px 400, SVG arrow inline, NO icon-box */
.btn-notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 188px;
  flex-shrink: 0;
  background: var(--pink);
  border: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-notify:hover { opacity: 0.85; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Figma: Poppins 16px weight 400, color #F6EFEC, opacity 0.8 */
.footer-bottom p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(12px, 0.83vw, 16px);
  font-weight: 400;
  color: var(--dawn-pink);
  opacity: 0.8;
  line-height: 25.6px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* 1 — Scroll reveal: fade + slide up */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }

/* 6 — Header fade in au chargement */
.header {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.header.header-loaded {
  opacity: 1;
}

/* 5 — Hover boutons */
.btn-send-msg:hover,
.btn-notify:hover {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

/* "Discover Now" → fond blanc, texte noir */
.btn-white-outline {
  transition: background 0.45s ease, color 0.45s ease;
}
.btn-white-outline:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
}

.btn-dark-outline {
  transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
.btn-dark-outline:hover {
  background: #3d3d3d;
  color: var(--white);
  box-shadow: inset 0 0 0 1px #3d3d3d;
  opacity: 1;
}

.footer-social-link:hover {
  border-color: rgba(255,255,255,0.6);
  transition: border-color 0.2s ease;
}

.social-btn:hover,
.footer-logo-link:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

/* ============================================================
   RESPONSIVE  (tablet / mobile)
   ============================================================ */

/* ---- Tablet large (≤1100px) ---- */
@media (max-width: 1100px) {
  .about-inner--1 { padding-right: 18vw; }
  .about-inner--2 { padding-right: 8vw; }
  .about-inner--1 .about-content,
  .about-inner--2 .about-content { width: 34vw; }
}

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {

  /* Badge */
  .hero-badge-wrap {
    width: 180px;
    height: 180px;
  }

  /* Hero text — extra top padding to clear the badge */
  .hero-text {
    padding-top: 120px;
  }

  .hero-text-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(32px, 5vw, 56px);
  }
  .hero-heading { width: 100%; }
  .hero-copy    { width: 100%; }

  /* Cards — 2 colonnes sur tablet, 1 en dessous */
  .cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .card {
    width: 100%;
    aspect-ratio: 1 / 1.2;
  }
  /* 3e carte prend toute la largeur */
  .card:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
  }

  /* About */
  .about-section { height: auto; padding: 64px 0; }
  .about-inner--1,
  .about-inner--2 {
    justify-content: center;
    padding: 0 var(--gutter);
  }
  .about-inner--1 .about-content,
  .about-inner--2 .about-content {
    width: 100%;
    min-width: unset;
    max-width: 520px;
    align-items: center;
    text-align: center;
  }
  .about-gradient { background: rgba(0,0,0,0.6); }

  /* Social */
  .social-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .social-left,
  .social-right { width: 100%; }
  .social-left { align-items: center; text-align: center; }
  .social-heading { text-align: center; }
  .social-right  { justify-content: center; }
  .social-watermark { display: none; }

  /* Marquee */
  .marquee-section { height: 70vh; min-height: 380px; }

  /* Community form */
  .form-row { grid-template-columns: 1fr; }
  .community-title { font-size: clamp(28px, 7vw, 56px); }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .footer-right {
    align-items: flex-start;
    width: 100%;
  }
  .footer-newsletter {
    align-items: flex-start;
    width: 100%;
  }
  .footer-newsletter p { text-align: left; }
  .newsletter-row {
    width: 100%;
    height: auto;
    flex-direction: column;
  }
  .newsletter-row input {
    border-right: 1px solid rgba(0,0,0,0.2);
    border-bottom: none;
    padding: 16px 12px;
  }
  .btn-notify {
    width: 100%;
    padding: 16px;
    justify-content: center;
  }
}

/* ---- Mobile (≤600px) ---- */
@media (max-width: 600px) {

  /* Badge */
  .hero-badge-wrap {
    width: 150px;
    height: 150px;
  }

  /* Hero text */
  .hero-text { padding-top: 100px; }

  .hero-heading h2 { letter-spacing: -1px; }

  /* Cards — 1 colonne */
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card { aspect-ratio: 4 / 3; }
  .card:last-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  /* About */
  .about-section { padding: 48px 0; min-height: 260px; }
  .about-title { font-size: clamp(24px, 7vw, 48px); }

  /* Social */
  .social-heading { font-size: clamp(22px, 6vw, 36px); }
  .social-btn span { font-size: 14px; }

  /* Marquee */
  .marquee-section { height: auto; min-height: 320px; }
  .marquee-fighter { display: none; }

  /* Community */
  .contact-form { width: 100%; }
  .btn-send-msg { width: 100%; }

  /* Footer */
  .footer-newsletter p { font-size: 13px; }
}

/* ---- Very small (≤400px) ---- */
@media (max-width: 400px) {
  .hero-badge-wrap {
    width: 130px;
    height: 130px;
  }
  .hero-text { padding-top: 85px; }
  .hero-title { letter-spacing: -1px; }
}




/* Overlay Background - Fade in */
.framer-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.4s ease forwards;
}

/* Modal Container - Spring Pop In */
.framer-popup-modal {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: springPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
}

/* SVG Animation Container */
.icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}
/* --- อัปเดตสี SVG วงกลมเครื่องหมายถูก --- */
.animated-check .circle-bg-light {
    fill: #ffa4da6e; /* สีชมพูอ่อน */
    transform-origin: center;
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

.animated-check .circle-bg-main{
    fill: #ff46b4; /* สีชมพูหลัก */
    transform-origin: center;
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
}

.animated-check .check-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    /* หน่วงเวลาไว้ 0.5s รอให้วงกลมเด้งเสร็จก่อน แล้วค่อยลากเส้น 0.4s */
    animation: drawCheck 0.4s ease-out 0.5s forwards;
}

/* --- Keyframes --- */
@keyframes popIn { 
    to { transform: scale(1); } 
}
/* --- อัปเดตสีและเงาของปุ่ม --- */
.popup-btn {
    background: #ff46b4; /* เปลี่ยนพื้นหลังปุ่มเป็นสีชมพูหลัก */
    color: white;
    border: none;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.5s ease 0.8s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
	    margin-top: 20px;
}

.popup-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 20px rgb(222 74 202 / 30%); /* เปลี่ยนเงาเป็นสีชมพูให้เข้ากับปุ่ม */
}

/* --- Keyframes --- */
@keyframes fadeInOverlay { to { opacity: 1; } }
@keyframes springPop { to { transform: scale(1); opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes slideUpFade { to { transform: translateY(0); opacity: 1; } }

/* ลบแอนิเมชันตอนปิด Popup */
.framer-popup-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}
.framer-popup-overlay.closing .framer-popup-modal {
    animation: scaleDown 0.3s ease forwards;
}

@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes scaleDown { to { transform: scale(0.9); opacity: 0; } }

/* --- แอนิเมชันสำหรับลากเส้นติ๊กถูก --- */
.check-path {
    /* 1. กำหนดความยาวของเส้น (ค่า 100 คือกะให้ยาวครอบคลุมเส้น Path ของเรา) */
    stroke-dasharray: 100;
    
    /* 2. ผลักเส้นให้ซ่อนตัวออกไปก่อน (ต้องเท่ากับค่าด้านบน) */
    stroke-dashoffset: 100;
    
    /* 3. สั่งให้เล่นแอนิเมชันชื่อ drawCheck 
       - ใช้เวลาวาด 0.5 วินาที 
       - หน่วงเวลา 0.4 วินาที (เพื่อให้วงกลมเด้งขึ้นมาก่อนค่อยวาดเส้น) 
       - forwards คือเล่นเสร็จแล้วให้ค้างสถานะสุดท้ายไว้ */
    animation: drawCheck 0.5s ease-in-out 0.4s forwards;
}

/* --- Keyframes สำหรับสั่งให้เส้นวิ่ง --- */
@keyframes drawCheck {
    0% {
        stroke-dashoffset: 100; /* จุดเริ่มต้น: เส้นยังซ่อนอยู่ */
    }
    100% {
        stroke-dashoffset: 0;   /* จุดสิ้นสุด: เส้นถูกลากจนเต็ม */
    }
}

