/* ==========================================================================
   GASKEN — Creative Experience Website
   Design System v1
   ========================================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Anton&family=Archivo+Black&family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg-0); color: var(--fg-0);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; text-wrap: pretty; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent-primary); color: #000; }

/* --- Tokens --- */
:root {
  /* Colors — Dark mode default */
  --bg-0: #0A0A0A;       /* deep black */
  --bg-1: #101010;       /* charcoal */
  --bg-2: #1A1A1A;       /* card */
  --bg-3: #262626;       /* elevated */
  --fg-0: #F5F1EA;       /* main text */
  --fg-1: #B8B4AC;       /* secondary */
  --fg-2: #6A6660;       /* muted */
  --fg-3: #3A3733;       /* subtle line */
  --border: rgba(245, 241, 234, 0.08);
  --border-strong: rgba(245, 241, 234, 0.18);

  /* Brand accents */
  --accent-primary: #9D4EDD;   /* Creative Purple */
  --accent-primary-deep: #7B2CBF;
  --accent-secondary: #FF6B1A; /* Energy Orange */
  --accent-secondary-deep: #E85A0C;

  /* Fonts */
  --font-display: 'Bebas Neue', 'Anton', 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --gutter: clamp(20px, 5vw, 96px);
  --section-y: clamp(80px, 12vw, 180px);

  /* Type scale */
  --fs-mega: clamp(3.5rem, 14vw, 14rem);
  --fs-xl: clamp(2.75rem, 9vw, 8.5rem);
  --fs-lg: clamp(2rem, 5vw, 4.5rem);
  --fs-md: clamp(1.5rem, 3vw, 2.75rem);
  --fs-sm: clamp(1.1rem, 1.6vw, 1.4rem);
  --fs-base: 1rem;
  --fs-xs: 0.75rem;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Light mode */
body.light {
  --bg-0: #F5F1EA;
  --bg-1: #EDE8DE;
  --bg-2: #FFFFFF;
  --bg-3: #E5DFD3;
  --fg-0: #0A0A0A;
  --fg-1: #3A3733;
  --fg-2: #6A6660;
  --fg-3: #B8B4AC;
  --border: rgba(10, 10, 10, 0.1);
  --border-strong: rgba(10, 10, 10, 0.22);
}

/* --- Typography --- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.86;
           letter-spacing: -0.01em; text-transform: uppercase; }
.display.tight { letter-spacing: -0.03em; }
.body { font-family: var(--font-body); }
.eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
           letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-1); }
.mega { font-size: var(--fs-mega); }
.xl { font-size: var(--fs-xl); }
.lg { font-size: var(--fs-lg); }
.md { font-size: var(--fs-md); }
.sm { font-size: var(--fs-sm); }

/* --- Utility --- */
.container { width: 100%; padding-inline: var(--gutter); }
.max { max-width: 1600px; margin-inline: auto; }
.section { padding-block: var(--section-y); }
.hairline { border-top: 1px solid var(--border); }
.text-purple { color: var(--accent-primary); }
.text-orange { color: var(--accent-secondary); }
.text-mute { color: var(--fg-1); }
.italic-thin { font-family: 'Space Grotesk', sans-serif; font-style: italic; font-weight: 300; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px;
       font-family: var(--font-body); font-weight: 500; font-size: 0.86rem;
       letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
       border: 1px solid var(--border-strong); border-radius: 999px;
       transition: all 0.4s var(--ease-out); position: relative; overflow: hidden; }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }
.btn.primary { background: var(--accent-secondary); color: #0A0A0A;
                border-color: var(--accent-secondary); }
.btn.primary:hover { background: var(--accent-secondary-deep); border-color: var(--accent-secondary-deep); }
.btn.outline:hover { border-color: var(--fg-0); background: var(--fg-0); color: var(--bg-0); }
.btn.ghost { padding-inline: 4px; border: none; border-bottom: 1px solid var(--border-strong);
             border-radius: 0; padding-bottom: 10px; padding-top: 10px; letter-spacing: 0.18em; }
.btn.ghost:hover { border-color: var(--accent-secondary); color: var(--accent-secondary); }

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
       padding: 22px var(--gutter); display: flex; align-items: center;
       justify-content: space-between; transition: all 0.4s var(--ease-out);
       mix-blend-mode: normal; }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--bg-0);
               opacity: 0; transition: opacity 0.3s; z-index: -1; }
.nav.scrolled::before { opacity: 0.9; backdrop-filter: blur(20px); }
.nav.scrolled { border-bottom: 1px solid var(--border); padding-block: 16px; }
.nav-logo { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.04em;
            display: flex; align-items: center; gap: 10px; }
.nav-logo .dot { width: 10px; height: 10px; background: var(--accent-secondary);
                 border-radius: 50%; box-shadow: 0 0 20px var(--accent-secondary); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
               font-weight: 500; position: relative; padding: 6px 0; color: var(--fg-1); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0;
                      height: 1px; background: var(--accent-secondary); transition: width 0.4s var(--ease-out); }
.nav-links a:hover, .nav-links a.active { color: var(--fg-0); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
           border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.75rem;
           letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
           transition: all 0.4s var(--ease-out); }
.nav-cta:hover { background: var(--accent-secondary); color: #0A0A0A;
                 border-color: var(--accent-secondary); }
.nav-hamb { display: none; }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out),
          transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }
.reveal.delay-4 { transition-delay: 0.6s; }

/* --- Kinetic mask reveal --- */
.mask-reveal { display: inline-block; overflow: hidden; }
.mask-reveal > span { display: inline-block; transform: translateY(110%);
                      transition: transform 1.2s var(--ease-out); }
.mask-reveal.in > span { transform: translateY(0); }

/* --- Marquee --- */
.marquee { display: flex; gap: 60px; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee-wrap { overflow: hidden; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-slow { animation-duration: 60s; }
.marquee-reverse { animation-direction: reverse; }

/* --- Hexagon shape utility --- */
.hex { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%); }

/* --- Cursor blob --- */
.cursor-blob { position: fixed; width: 20px; height: 20px; border-radius: 50%;
               background: var(--accent-secondary); pointer-events: none; z-index: 200;
               mix-blend-mode: difference; transform: translate(-50%, -50%);
               transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                           opacity 0.3s; opacity: 0.7; }
.cursor-blob.hover { width: 60px; height: 60px; opacity: 0.4; }

/* --- Grid overlay bg --- */
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
           background-image:
             linear-gradient(to right, var(--border) 1px, transparent 1px),
             linear-gradient(to bottom, var(--border) 1px, transparent 1px);
           background-size: 88px 88px; mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%); }

/* --- Media --- */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media:hover img { transform: scale(1.05); }
.media .overlay { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.85) 100%); }

/* --- Tag chip --- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
        border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.72rem;
        letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-1); }
.chip.solid { background: var(--accent-primary); color: #fff; border-color: transparent; }
.chip.orange { background: var(--accent-secondary); color: #0A0A0A; border-color: transparent; }

/* --- Scroll indicator --- */
.scroll-ind { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
              display: flex; flex-direction: column; align-items: center; gap: 14px;
              color: var(--fg-1); font-size: 0.7rem; letter-spacing: 0.28em;
              text-transform: uppercase; }
.scroll-ind .line { width: 1px; height: 60px; background: linear-gradient(180deg,
                    var(--fg-1) 0%, transparent 100%); position: relative; overflow: hidden; }
.scroll-ind .line::after { content: ''; position: absolute; top: -60px; left: 0; width: 1px;
                           height: 60px; background: var(--accent-secondary);
                           animation: scrollDot 2.2s var(--ease-in-out) infinite; }
@keyframes scrollDot {
  0% { top: -60px; }
  100% { top: 60px; }
}

/* --- Number counter --- */
.big-num { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 12rem);
           line-height: 0.86; letter-spacing: -0.02em; }

/* --- Footer --- */
.footer { padding: 100px var(--gutter) 40px; background: var(--bg-0);
          border-top: 1px solid var(--border); position: relative; }
.footer-mega { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 20rem);
               line-height: 0.86; letter-spacing: -0.02em; color: var(--fg-0);
               text-align: center; margin-block: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
               padding-block: 60px; border-top: 1px solid var(--border);
               border-bottom: 1px solid var(--border); }
.footer-col h5 { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
                 color: var(--fg-2); margin-bottom: 20px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; padding: 6px 0; color: var(--fg-1); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-secondary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px;
                 font-size: 0.78rem; color: var(--fg-2); letter-spacing: 0.1em; }

/* --- Whatsapp floating --- */
.wa-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
            background: #25D366; border-radius: 50%; display: flex; align-items: center;
            justify-content: center; z-index: 90; cursor: pointer;
            box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* --- Tweaks panel --- */
.tweaks { position: fixed; bottom: 24px; left: 24px; width: 320px; background: var(--bg-1);
          border: 1px solid var(--border-strong); border-radius: 16px; padding: 20px;
          z-index: 150; font-size: 0.85rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
          transform: translateY(20px); opacity: 0; pointer-events: none;
          transition: opacity 0.3s, transform 0.3s; max-height: 82vh; overflow-y: auto; }
.tweaks.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tweaks h4 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.05em;
             margin-bottom: 4px; }
.tweaks .sub { color: var(--fg-2); font-size: 0.72rem; letter-spacing: 0.16em;
               text-transform: uppercase; margin-bottom: 20px; }
.tweaks .group { padding: 14px 0; border-top: 1px solid var(--border); }
.tweaks .group:first-of-type { border-top: none; padding-top: 0; }
.tweaks .group label { display: block; color: var(--fg-1); font-size: 0.72rem;
                       letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.tweaks .swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweaks .swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
                  border: 2px solid transparent; transition: transform 0.2s; position: relative; }
.tweaks .swatch:hover { transform: scale(1.1); }
.tweaks .swatch.active { border-color: var(--fg-0); }
.tweaks .segments { display: flex; gap: 4px; padding: 4px; background: var(--bg-0);
                    border-radius: 8px; }
.tweaks .segments button { flex: 1; padding: 8px 12px; font-size: 0.72rem;
                           letter-spacing: 0.12em; text-transform: uppercase;
                           border-radius: 6px; color: var(--fg-1); }
.tweaks .segments button.active { background: var(--accent-primary); color: #fff; }
.tweaks .slider { width: 100%; }
.tweaks input[type=range] { width: 100%; accent-color: var(--accent-secondary); }
.tweaks-toggle { position: fixed; bottom: 24px; left: 24px; z-index: 150;
                 width: 52px; height: 52px; border-radius: 50%; background: var(--accent-secondary);
                 color: #0A0A0A; display: flex; align-items: center; justify-content: center;
                 box-shadow: 0 10px 30px rgba(255, 107, 26, 0.4); transition: all 0.3s; }
.tweaks-toggle:hover { transform: scale(1.1); }
.tweaks-toggle.open { background: var(--bg-2); color: var(--fg-0); }
.tweaks .close-x { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px;
                   border-radius: 50%; background: var(--bg-2); display: flex; align-items: center;
                   justify-content: center; font-size: 1rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamb { display: block; width: 40px; height: 40px; border: 1px solid var(--border-strong);
              border-radius: 50%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cursor-blob { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tweaks { width: calc(100vw - 48px); }
}


/* --- WP theme: nav theme toggle button --- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-0); transition: all 0.3s;
}
.theme-toggle:hover { background: var(--accent-secondary); color: #0A0A0A; border-color: var(--accent-secondary); }
body.light .theme-toggle svg circle { fill: var(--fg-0); }

/* --- WP: custom logo support --- */
.nav-logo .custom-logo {
  max-height: 40px; width: auto;
}

/* --- WP: skip link --- */
.skip-link.screen-reader-text {
  position: absolute; left: -9999px;
  padding: 12px 20px; background: var(--accent-secondary); color: #0A0A0A;
  font-weight: 600; z-index: 999;
}
.skip-link.screen-reader-text:focus {
  left: 20px; top: 20px; outline: 2px solid var(--fg-0);
}

/* --- WP: WordPress admin bar compat --- */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* --- WP: WPForms integration --- */
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-sublabel {
  color: var(--fg-1) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
}
.wpforms-container input,
.wpforms-container select,
.wpforms-container textarea {
  background: transparent !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 8px !important;
  color: var(--fg-0) !important;
  padding: 16px 18px !important;
  font-family: inherit !important;
  font-size: 1rem !important;
}
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  border-color: var(--accent-secondary) !important;
  outline: none !important;
  box-shadow: none !important;
}
.wpforms-container .wpforms-submit {
  background: var(--accent-secondary) !important;
  color: #0A0A0A !important;
  padding: 18px 28px !important;
  border-radius: 999px !important;
  border: 1px solid var(--accent-secondary) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.4s var(--ease-out) !important;
}
.wpforms-container .wpforms-submit:hover {
  background: var(--accent-secondary-deep) !important;
  border-color: var(--accent-secondary-deep) !important;
}

/* --- WordPress core block adjustments --- */
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-group.alignwide { max-width: 1600px; margin-inline: auto; }
.wp-block-cover { min-height: 500px; }

/* --- Pagination --- */
.nav-links.pagination, .page-numbers {
  display: flex; gap: 8px; justify-content: center; margin: 40px 0;
}
.page-numbers a, .page-numbers span {
  padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-1);
  transition: all 0.3s;
}
.page-numbers a:hover, .page-numbers .current {
  background: var(--accent-secondary); color: #0A0A0A; border-color: var(--accent-secondary);
}

/* --- No-grid mode (from Tweaks) --- */
body.no-grid .grid-bg { display: none; }

/* --- Print styles --- */
@media print {
  .nav, .footer, .wa-float, .theme-toggle, .cta-block, .banner-scroll { display: none !important; }
}
