/* ============================================================
   UBEY — Shared Stylesheet
   Design: Clean minimalist with organic warmth
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --ube-purple-deep: #5c129d;
  --ube-purple:      #7a38bf;
  --ube-purple-light: #e8d5f7;
  --white:           #fefefe;
  --cream:           #f3ede0;
  --cream-dark:      #e8dfd0;
  --text-dark:       #1a1019;
  --text-body:       #3d3347;
  --text-muted:      #7a6e85;

  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(92,18,157,0.06);
  --shadow-md:  0 8px 32px rgba(92,18,157,0.10);
  --shadow-lg:  0 20px 60px rgba(92,18,157,0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --header-h: 84px;
  --max-w:    1200px;
  --gutter:   clamp(1.25rem, 5vw, 3rem);
}

/* --- 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);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { max-width: 65ch; }
p + p { margin-top: 1rem; }

strong { font-weight: 600; color: var(--text-dark); }

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

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.section--sm {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ube-purple-deep);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(92,18,157,0.3);
}
.btn-primary:hover {
  background: var(--ube-purple);
  box-shadow: 0 6px 24px rgba(92,18,157,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--ube-purple-deep);
  border-color: var(--ube-purple-deep);
}
.btn-outline:hover {
  background: var(--ube-purple-deep);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* Arrow icon on buttons */
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 237, 224, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(92,18,157,0.1);
  box-shadow: 0 2px 20px rgba(92,18,157,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.header-logo img {
  height: 56px;
  width: auto;
}

/* When the logo image loads successfully, hide the redundant text wordmark */
.header-logo.has-image .logo-wordmark {
  display: none;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ube-purple-deep);
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav a {
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-body);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-nav a:hover {
  color: var(--ube-purple-deep);
  background: rgba(92,18,157,0.06);
}

.header-nav a.active {
  color: var(--ube-purple-deep);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(92,18,157,0.07);
  border-radius: 100px;
  padding: 3px;
}

.lang-btn {
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}

.lang-btn.active {
  background: var(--ube-purple-deep);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 499;
  background: rgba(243, 237, 224, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2rem var(--gutter);
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-body);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--ube-purple-deep); }

.mobile-nav .lang-toggle {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-brand .logo-wordmark { color: var(--white); }

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 28ch;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--ube-purple);
  background: rgba(122,56,191,0.2);
}

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ANIMATIONS — IntersectionObserver
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  background: var(--cream);
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ube-purple);
  margin-bottom: 1rem;
}

.page-hero h1 { color: var(--ube-purple-deep); }

.page-hero .subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 52ch;
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding-block: clamp(2rem, 6vw, 5rem);
  overflow: clip;
  background: var(--cream);
}

.hero-bg-circle {
  position: absolute;
  top: -20%;
  right: -10%;
  width: clamp(300px, 55vw, 700px);
  height: clamp(300px, 55vw, 700px);
  background: radial-gradient(circle at 60% 40%, rgba(122,56,191,0.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1400px;
  width: 100%;
  padding-inline: var(--gutter);
}

.hero-content { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ube-purple);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ube-purple);
}

.hero h1 {
  color: var(--ube-purple-deep);
  letter-spacing: -0.02em;
}

.hero .hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-moq {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-moq strong {
  color: var(--ube-purple-deep);
  font-weight: 600;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 600px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  margin-right: -8%;
}

.hero-image-wrap img {
  width: auto;
  height: 100%;
  min-height: 600px;
  max-height: 85vh;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(92, 18, 157, 0.18));
}

/* Placeholder for missing hero image */
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ube-purple);
}

.hero-image-placeholder svg {
  opacity: 0.4;
}

.hero-image-placeholder span {
  font-size: 0.8125rem;
  opacity: 0.5;
  font-style: italic;
}

/* ============================================================
   HOME — PRODUCT SECTION
   ============================================================ */
.product-section {
  background: var(--white);
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.product-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ube-purple);
  margin-bottom: 1rem;
}

.product-body {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.product-image-wrap {
  background: transparent;
  aspect-ratio: 4/3;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: scale(1.3);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(92, 18, 157, 0.12));
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ube-purple);
  opacity: 0.4;
  font-style: italic;
  font-size: 0.875rem;
}

/* Why Ubey cards */
.why-section { background: var(--cream); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--ube-purple-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-icon svg { color: var(--ube-purple-deep); }

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
  color: var(--ube-purple-deep);
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

/* Certifications */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  align-items: center;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: 100px;
  border: 1px solid var(--cream-dark);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.cert-badge svg { color: var(--ube-purple); }

.certs-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ============================================================
   HOME — B2B SECTION
   ============================================================ */
.b2b-section { background: var(--ube-purple-deep); color: var(--white); }

.b2b-section h2 { color: var(--white); }

.b2b-intro {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  margin-top: 1rem;
  max-width: 54ch;
}

.b2b-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.b2b-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(50% / 3 + 2rem);
  right: calc(50% / 3 + 2rem);
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 0;
}

.b2b-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-inline: auto;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.05);
}

.b2b-step h3 {
  font-size: 1.1875rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.b2b-step p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  max-width: none;
}

/* ============================================================
   HOME — CLOSING CTA
   ============================================================ */
.closing-cta {
  background: var(--cream);
  text-align: center;
}

.closing-cta h2 { color: var(--ube-purple-deep); }

.closing-cta p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-inline: auto;
}

.closing-cta .btn {
  margin-top: 2rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story {
  background: var(--white);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ube-purple);
  opacity: 0.4;
  font-style: italic;
  font-size: 0.875rem;
}

.about-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.about-sourcing { background: var(--cream); }

.sourcing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-mission {
  background: var(--ube-purple-deep);
  text-align: center;
}

.about-mission h2 { color: var(--white); }

.mission-statement {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  margin-inline: auto;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ============================================================
   INQUIRY / FORM
   ============================================================ */
.inquiry-section { background: var(--white); }

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.inquiry-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.inquiry-sidebar h3 {
  font-size: 1.375rem;
  color: var(--ube-purple-deep);
}

.inquiry-sidebar p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.sidebar-contact {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.sidebar-contact p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.sidebar-contact a {
  font-weight: 500;
  color: var(--ube-purple-deep);
  transition: color 0.2s;
}
.sidebar-contact a:hover { color: var(--ube-purple); }

/* Form layout */
.inquiry-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row.full { grid-template-columns: 1fr; }

.field-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.field-wrap label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: var(--white);
  padding-inline: 0.25rem;
  line-height: 1;
}

.field-wrap input,
.field-wrap textarea {
  width: 100%;
  padding: 1.25rem 1rem 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
}

.field-wrap textarea {
  min-height: 130px;
  resize: vertical;
  padding-top: 1.5rem;
}

.field-wrap input:focus,
.field-wrap textarea:focus {
  border-color: var(--ube-purple);
}

/* Floating label activation */
.field-wrap input:focus + label,
.field-wrap input:not(:placeholder-shown) + label,
.field-wrap textarea:focus + label,
.field-wrap textarea:not(:placeholder-shown) + label {
  top: 0.35rem;
  font-size: 0.7rem;
  color: var(--ube-purple);
  letter-spacing: 0.02em;
}

/* Select wrapper */
.select-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.select-wrap label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
  letter-spacing: 0.02em;
}

.select-wrap select {
  width: 100%;
  padding: 0.9rem 2.5rem 0.9rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-wrap select:focus { border-color: var(--ube-purple); }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 1.05rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  accent-color: var(--ube-purple-deep);
  cursor: pointer;
}

.checkbox-wrap label {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  max-width: none;
}

.checkbox-wrap a {
  color: var(--ube-purple-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form feedback */
.form-feedback {
  display: none;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin-top: 1.25rem;
}

.form-feedback.success {
  display: block;
  background: #edf7f0;
  color: #1a6636;
  border: 1px solid #b7e4c7;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ube-purple-deep);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.legal-content p {
  color: var(--text-body);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  max-width: none;
}

.legal-content a {
  color: var(--ube-purple-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-body);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet ~768px */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: none; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-moq { text-align: center; }
  .hero-image-wrap { max-width: 440px; margin-inline: auto; aspect-ratio: 1/1; transform: scale(1); }

  .product-inner { grid-template-columns: 1fr; }
  .product-image-wrap { order: -1; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .b2b-steps { grid-template-columns: 1fr; gap: 2rem; }
  .b2b-steps::before { display: none; }
  .b2b-step { text-align: left; }
  .step-number { margin-inline: 0; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-sidebar { position: static; }

  .about-story-grid { grid-template-columns: 1fr; }
  .sourcing-grid { grid-template-columns: 1fr; }
}

/* Mobile 375–767px */
@media (max-width: 700px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn { display: none; }

  .why-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
}
