/* ============================================================
   SUED Studio — Global CSS
   Design tokens, resets, utilities, and base styles
   ============================================================ */

/* ── Self-hosted Montserrat (Variable, wght 400–900) ───────── */
/* Includes: Regular (400), Medium (500), SemiBold (600),
   Bold (700), ExtraBold (800), Black (900) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --sued-dark: #0F1923;
  --sued-dark-deep: #0a1118;
  --sued-dark-soft: #141f2b;
  --sued-light: #F5F2EC;
  --sued-accent: #26AFFF;
  --sued-accent-secondary: #C8A96E;
  --sued-mid: #2A3A47;
  --sued-muted: #7A8B95;
  --sued-off-white: #E8E5DF;

  --sued-font-heading: 'Montserrat', system-ui, sans-serif;
  --sued-font-body: 'Open Sans', system-ui, sans-serif;

  --sued-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sued-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --sued-t-base: 0.3s;
  --sued-t-slow: 0.6s;
  --sued-t-xslow: 1s;

  --sued-section-py: clamp(5rem, 10vh, 8rem);
  --sued-max-w: 1280px;
  --sued-gutter: clamp(1.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  background: radial-gradient(circle at center, #141f2b 0%, #0a1118 100%);
  background-attachment: fixed;
  color: var(--sued-light);
  font-family: var(--sued-font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Global 3D Canvas ───────────────────────────────────────── */
.sued-global-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sued-accent);
  text-decoration: none;
  transition: color var(--sued-t-base) var(--sued-ease);
}

a:hover {
  color: var(--sued-light);
}

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sued-font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sued-light);
  text-shadow: 0 1px 2px rgba(15, 25, 35, 0.5);
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(15, 25, 35, 0.6), 0 0 40px rgba(15, 25, 35, 0.3);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  max-width: 68ch;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.sued-container {
  width: 100%;
  max-width: var(--sued-max-w);
  margin-inline: auto;
  padding-inline: var(--sued-gutter);
}

.sued-section {
  padding-block: var(--sued-section-py);
  position: relative;
}

/* Subtle dark gradient separator between sections */
.sued-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(15, 25, 35, 0.8) 15%,
      rgba(42, 58, 71, 0.3) 50%,
      rgba(15, 25, 35, 0.8) 85%,
      transparent 100%);
  pointer-events: none;
}

.sued-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.sued-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
}

.sued-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sued-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sued-text-center {
  text-align: center;
}

/* ── Eyebrow Label ──────────────────────────────────────────── */
.sued-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sued-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sued-accent-secondary);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 12px rgba(200, 169, 110, 0.2);
}

.sued-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--sued-accent-secondary);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(200, 169, 110, 0.3), 0 2px 0 #0F1923;
}

/* Dark decorative dot after eyebrow */
.sued-eyebrow::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0F1923;
  border: 1px solid rgba(200, 169, 110, 0.4);
  margin-left: 0.25rem;
  box-shadow: 0 0 4px rgba(200, 169, 110, 0.2);
}

/* ── Buttons ────────────────────────────────────────────────── */
.sued-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: .5rem 1rem;
  font-family: var(--sued-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--sued-t-base) var(--sued-ease),
    box-shadow var(--sued-t-base) var(--sued-ease);
}

.sued-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: scale(0);
  border-radius: inherit;
  transition: transform 0.4s var(--sued-ease-out), opacity 0.4s;
}

.sued-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.sued-btn:hover {
  transform: translateY(-2px);
}

.sued-btn:active {
  transform: translateY(0);
}

.sued-btn--primary {
  background: var(--sued-accent);
  color: var(--sued-dark);
  box-shadow: 0 1px 2px rgba(15, 25, 35, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sued-btn--primary:hover {
  box-shadow: 0 8px 32px rgba(38, 175, 255, 0.4),
    0 2px 4px rgba(15, 25, 35, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--sued-dark);
}

.sued-btn--outline {
  background: rgba(15, 25, 35, 0.3);
  color: var(--sued-light);
  border: 1.5px solid rgba(245, 242, 236, 0.12);
  box-shadow: inset 0 1px 1px rgba(15, 25, 35, 0.4);
}

.sued-btn--outline:hover {
  border-color: rgba(38, 175, 255, 0.5);
  color: var(--sued-accent);
  background: rgba(15, 25, 35, 0.5);
  box-shadow: inset 0 1px 1px rgba(15, 25, 35, 0.4),
    0 0 16px rgba(38, 175, 255, 0.08);
}

/* Ripple */
.sued-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  animation: sued-ripple 0.6s linear;
  pointer-events: none;
}

.sued-ripple-btn {
  padding: 1rem 2rem;
}

@keyframes sued-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Accent Highlight ───────────────────────────────────────── */
.sued-highlight {
  color: var(--sued-accent);
}

.sued-highlight-underline {
  background: linear-gradient(transparent 55%, #0F1923 55%);
  background-repeat: no-repeat;
  padding-inline: 0.2em;
  border-bottom: 2px solid rgba(38, 175, 255, 0.4);
}

/* ── Divider ────────────────────────────────────────────────── */
.sued-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--sued-accent), rgba(38, 175, 255, 0.3));
  border-radius: 3px;
  margin-block: 1.5rem;
  box-shadow: 0 0 8px rgba(38, 175, 255, 0.2), 0 1px 2px rgba(15, 25, 35, 0.6);
  position: relative;
}

/* Dark base bar beneath the accent divider */
.sued-divider::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 4px;
  width: 36px;
  height: 2px;
  background: #0F1923;
  border-radius: 2px;
  opacity: 0.8;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--sued-t-slow) var(--sued-ease),
    transform var(--sued-t-slow) var(--sued-ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed {
  transform: translateX(0);
}

[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

[data-reveal-delay="4"] {
  transition-delay: 0.4s;
}

[data-reveal-delay="5"] {
  transition-delay: 0.5s;
}

/* ── Glassmorphism Card ─────────────────────────────────────── */
.sued-glass {
  background: linear-gradient(145deg,
      rgba(42, 58, 71, 0.45) 0%,
      rgba(20, 31, 43, 0.55) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 4px 16px rgba(15, 25, 35, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(15, 25, 35, 0.3);
}

/* ── Custom Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--sued-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--sued-mid);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sued-accent);
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(38, 175, 255, 0.3);
  color: var(--sued-light);
}

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sued-accent);
  outline-offset: 3px;
}

/* ── Noise Overlay ──────────────────────────────────────────── */
.sued-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Subtle Vignette ───────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%,
      transparent 50%,
      rgba(15, 25, 35, 0.4) 100%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ── Floating WhatsApp ──────────────────────────────────────── */
.sued-whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sued-accent);
  background: rgba(15, 25, 35, 0.8);
  border: 1px solid rgba(38, 175, 255, 0.2);
  box-shadow: 0 4px 12px rgba(15, 25, 35, 0.6);
  z-index: 1000;
  transition: transform 0.3s var(--sued-ease), box-shadow 0.3s var(--sued-ease), border-color 0.3s, color 0.3s;
}

.sued-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(38, 175, 255, 0.3);
  border-color: rgba(38, 175, 255, 0.5);
  color: var(--sued-light);
}

/* Touch feedback for mobile */
.sued-whatsapp-float:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(38, 175, 255, 0.4);
  border-color: var(--sued-accent);
  color: var(--sued-light);
}

/* ── Footer Social Links ─────────────────────────────────────── */
.sued-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sued-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sued-muted);
  font-size: 0.875rem;
  font-family: var(--sued-font-body);
  text-decoration: none;
  transition: color 0.25s var(--sued-ease), transform 0.25s var(--sued-ease);
}

.sued-social-link svg {
  flex-shrink: 0;
  transition: color 0.25s var(--sued-ease);
}

.sued-social-link:hover {
  color: var(--sued-light);
  transform: translateX(4px);
}

.sued-social-link--whatsapp:hover {
  color: #25D366;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --sued-section-py: clamp(4rem, 8vh, 6rem);
    --sued-gutter: 1.25rem;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .sued-whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}