/* ============================================
   SEAFOAM BEADS - Component Styles
   ============================================ */

/* ---- 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: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--seafoam-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--seafoam-primary-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  color: var(--text-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

.subheading {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--text-medium);
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section--hero {
  padding: var(--space-24) 0 var(--space-20);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-dark);
}

.header__logo img {
  height: 48px;
  width: 48px;
  border-radius: var(--radius-full);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--seafoam-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--seafoam-primary);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-spring);
}

.nav__link:hover,
.nav__link--active {
  color: var(--seafoam-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 110;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  min-height: 52px;
  min-width: 48px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background: var(--seafoam-primary);
  color: var(--white);
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(60, 180, 160, 0);
}

.btn--primary:hover {
  background: var(--seafoam-primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn--primary:active {
  background: var(--seafoam-primary-active);
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background: var(--white);
  color: var(--seafoam-primary);
  border: 2px solid var(--seafoam-primary);
}

.btn--secondary:hover {
  background: var(--seafoam-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn--small {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
}

/* ---- Glass Card (from VISUAL-2026-002) ---- */
.glass-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-xl);
}

.glass-card:active {
  transform: translateY(-2px) scale(1.002);
}

/* Solid card variant for non-glass backgrounds */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg);
}

/* ---- Product Card ---- */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__image {
  aspect-ratio: 1;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-light);
}

.product-card__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-dark);
}

.product-card__price {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--seafoam-primary);
}

.product-card__btn {
  margin-top: var(--space-3);
}

/* ---- Product Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-8);
}

/* ---- Category Tabs ---- */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  justify-content: center;
}

.category-tab {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--text-medium);
  border: 1px solid var(--border-medium);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.category-tab:hover {
  border-color: var(--seafoam-primary);
  color: var(--seafoam-primary);
}

.category-tab.active {
  background: var(--seafoam-primary);
  color: var(--white);
  border-color: var(--seafoam-primary);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: var(--space-8) var(--gutter);
}

.hero__logo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-8);
  box-shadow: var(--shadow-xl);
}

.hero__title {
  font-size: var(--text-4xl);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(45, 62, 80, 0.15);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--white);
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(45, 62, 80, 0.1);
  margin-bottom: var(--space-10);
  font-weight: var(--weight-regular);
}

.hero__cta {
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-10);
  min-height: 56px;
  background: var(--white);
  color: var(--seafoam-primary);
  font-weight: var(--weight-bold);
}

.hero__cta:hover {
  background: var(--white);
  color: var(--seafoam-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Decorative aurora blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: blob-float 20s ease-in-out infinite alternate;
}

.hero__blob--1 {
  width: 400px;
  height: 400px;
  background: var(--pastel-lavender);
  top: -10%;
  right: -5%;
}

.hero__blob--2 {
  width: 350px;
  height: 350px;
  background: var(--pastel-pink);
  bottom: -10%;
  left: -5%;
  animation-delay: -7s;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: var(--pastel-blue-mid);
  top: 30%;
  left: 10%;
  animation-delay: -14s;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ---- Wave Divider ---- */
.wave-divider {
  width: 100%;
  height: auto;
  display: block;
  margin: -1px 0;
}

.wave-divider--flip {
  transform: scaleY(-1);
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
  color: var(--seafoam-primary);
}

.section-header p {
  color: var(--text-medium);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Values / Features Grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.value-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  background: var(--gradient-ocean);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
  stroke: var(--white);
  fill: none;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.value-card p {
  color: var(--text-medium);
  font-size: var(--text-base);
}

/* ---- About Page ---- */
.about-hero {
  background: var(--gradient-hero);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(45, 62, 80, 0.15);
}

.about-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-16) var(--gutter);
}

.about-content p {
  font-size: var(--text-lg);
  color: var(--text-medium);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

/* ---- Custom Orders ---- */
.custom-hero {
  background: var(--gradient-ocean);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
}

.custom-hero h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(45, 62, 80, 0.15);
}

.custom-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin: var(--space-10) 0;
}

.custom-option {
  text-align: center;
  padding: var(--space-8) var(--space-5);
}

.custom-option__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.custom-option h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.custom-option p {
  color: var(--text-medium);
  font-size: var(--text-sm);
}

/* ---- Contact Form ---- */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-6);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--seafoam-primary);
  box-shadow: 0 0 0 3px rgba(60, 180, 160, 0.15);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---- Email CTA ---- */
.email-cta {
  text-align: center;
  padding: var(--space-12) var(--gutter);
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-12);
}

.email-cta h2 {
  color: var(--seafoam-primary);
  margin-bottom: var(--space-4);
}

.email-cta__link {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--seafoam-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.email-cta__link:hover {
  color: var(--seafoam-primary-hover);
}

/* ---- Footer ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-10);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--aqua-light);
}

.footer__brand p {
  font-size: var(--text-sm);
  max-width: 280px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-title {
  font-weight: var(--weight-semibold);
  color: var(--white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__nav a:hover {
  color: var(--aqua-light);
}

.footer__social {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--seafoam-primary);
  color: var(--white);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  text-align: center;
  font-size: var(--text-xs);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Scroll Reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }

/* ---- Coming Soon Badge ---- */
.badge-coming-soon {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--pastel-lavender);
  color: var(--text-dark);
}

/* ---- Page Header (non-hero pages) ---- */
.page-header {
  background: var(--gradient-hero);
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(45, 62, 80, 0.15);
  margin-bottom: var(--space-3);
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    transition: right var(--duration-normal) var(--ease-out);
    z-index: 105;
  }

  .nav.open {
    right: 0;
  }

  .nav__link {
    font-size: var(--text-lg);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 102;
  }

  .nav-overlay.visible {
    display: block;
  }

  .hero {
    min-height: 75vh;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .footer__brand p {
    max-width: none;
  }

  .footer__social {
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__blob {
    animation: none;
  }
}