/* ============================================================
   Hess Trading Co. — Design System & Styles
   Heritage Luxury + Modern Craft
   ============================================================ */

/* ---- Design Tokens ---- */

:root {
  /* Brand Colors */
  --forest: #1B3A2D;
  --forest-light: #2A5440;
  --forest-dark: #0F2419;
  --bronze: #B87333;
  --bronze-light: #D4956A;
  --bronze-dark: #8B5A2B;
  --copper-glow: #C4844A;
  --cream: #F5F0E8;
  --cream-dark: #E8DFD0;
  --parchment: #FAF7F2;
  --charcoal: #2C2C2C;
  --warm-grey: #6B6560;

  /* Functional Colors */
  --bg-primary: #0F1A14;
  --bg-elevated: rgba(27, 58, 45, 0.45);
  --bg-card: rgba(27, 58, 45, 0.30);
  --bg-input: rgba(15, 36, 25, 0.80);
  --surface-border: rgba(184, 115, 51, 0.15);
  --surface-border-hover: rgba(184, 115, 51, 0.35);
  --text-primary: var(--cream);
  --text-muted: rgba(245, 240, 232, 0.60);
  --text-label: rgba(245, 240, 232, 0.80);
  --success: #7ee0a8;
  --error: #ffb0a0;

  /* Typography */
  --font-display: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-label: "Cormorant SC", Georgia, serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Shadows */
  --shadow-card: 0 4px 24px -4px rgba(0, 0, 0, 0.35),
                 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.45),
                       0 4px 12px rgba(184, 115, 51, 0.08);
  --shadow-glow: 0 0 60px -20px rgba(184, 115, 51, 0.25);
}

/* ---- Reset ---- */

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

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

body {
  min-height: 100dvh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

/* ---- Background Texture & Ambient Light ---- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184, 115, 51, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(27, 58, 45, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  will-change: transform;
  z-index: 0;
}

.bg-glow--bronze {
  width: 500px;
  height: 500px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, var(--bronze) 0%, transparent 70%);
  animation: drift-bronze 20s ease-in-out infinite alternate;
}

.bg-glow--forest {
  width: 450px;
  height: 450px;
  bottom: 5%;
  left: -120px;
  background: radial-gradient(circle, var(--forest-light) 0%, transparent 70%);
  animation: drift-forest 24s ease-in-out infinite alternate;
}

@keyframes drift-bronze {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 70px) scale(1.12); }
}

@keyframes drift-forest {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.08); }
}

/* ---- Page Container ---- */

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* ---- Hero ---- */

.hero {
  text-align: center;
  padding-bottom: 36px;
}

.hero__seal-frame {
  position: relative;
  display: inline-block;
  margin: 0 auto 24px;
}

.hero__seal-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 115, 51, 0.25);
  animation: seal-pulse 4s ease-in-out infinite;
}

@keyframes seal-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

.hero__mark {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5))
          drop-shadow(0 2px 8px rgba(184, 115, 51, 0.15));
}

.hero__kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 4px;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--bronze-light);
  margin-bottom: 12px;
}

.hero__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Decorative divider */
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  max-width: 200px;
}

.hero__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  opacity: 0.4;
}

.hero__divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
  opacity: 0.6;
}

/* ---- Social Links ---- */

.links {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration-base) var(--ease-spring),
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--surface-border-hover);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card-hover);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 80ms;
}

.link-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(184, 115, 51, 0.08);
  border: 1px solid rgba(184, 115, 51, 0.12);
  color: var(--bronze-light);
}

.link-card__icon svg {
  width: 20px;
  height: 20px;
}

.link-card__body {
  flex: 1;
  min-width: 0;
}

.link-card__label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.link-card__handle {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.link-card__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  transform: translateX(3px);
  color: var(--bronze-light);
}

.link-card__arrow svg {
  width: 16px;
  height: 16px;
}

/* Platform accent colors */
.link-card[data-platform="instagram"]:hover {
  border-color: rgba(225, 48, 108, 0.30);
}
.link-card[data-platform="instagram"] .link-card__icon {
  background: rgba(225, 48, 108, 0.10);
  border-color: rgba(225, 48, 108, 0.15);
  color: #e1306c;
}

.link-card[data-platform="whatnot"]:hover {
  border-color: rgba(42, 122, 120, 0.35);
}
.link-card[data-platform="whatnot"] .link-card__icon {
  background: rgba(42, 122, 120, 0.12);
  border-color: rgba(42, 122, 120, 0.18);
  color: #3a9e9b;
}

.link-card[data-platform="youtube"]:hover {
  border-color: rgba(255, 0, 0, 0.25);
}
.link-card[data-platform="youtube"] .link-card__icon {
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.12);
  color: #ff4444;
}

.link-card[data-platform="collection"]:hover {
  border-color: var(--surface-border-hover);
}
.link-card[data-platform="collection"] .link-card__icon {
  background: rgba(184, 115, 51, 0.10);
  border-color: rgba(184, 115, 51, 0.15);
  color: var(--bronze-light);
}

/* ---- Support Line ---- */

.support-line {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding: 0 8px;
}

/* ---- Inquiry Section ---- */

.inquiry {
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px 22px 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}

.inquiry__header {
  margin-bottom: 22px;
}

.inquiry__label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(184, 115, 51, 0.10);
  border: 1px solid rgba(184, 115, 51, 0.18);
  margin-bottom: 16px;
}

.inquiry__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 7vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.inquiry__intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Contact Tags ---- */

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-tag {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184, 115, 51, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}

/* ---- Form ---- */

.form {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-label);
}

.field__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.field__input::placeholder {
  color: rgba(245, 240, 232, 0.28);
  font-style: italic;
}

.field__input:focus {
  outline: none;
  border-color: rgba(184, 115, 51, 0.50);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.10);
}

.field__input--textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-spring),
    box-shadow 200ms var(--ease-out);
}

.btn--primary {
  background: linear-gradient(135deg, var(--bronze-dark), var(--bronze), var(--bronze-light));
  color: var(--parchment);
  box-shadow: 0 4px 20px -4px rgba(184, 115, 51, 0.40),
              inset 0 1px 0 rgba(212, 149, 106, 0.30);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -4px rgba(184, 115, 51, 0.50),
              inset 0 1px 0 rgba(212, 149, 106, 0.40);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.form__note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form__note.success {
  color: var(--success);
}

.form__note.error {
  color: var(--error);
}

/* ---- Footer ---- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 4px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer__seal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.6;
}

.footer__wordmark {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  opacity: 0.6;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: var(--bronze);
  opacity: 0.2;
}

.footer__copy {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer__link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--bronze-light);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 200ms var(--ease-out);
}

.footer__link:hover {
  color: var(--cream);
}

/* ---- Focus States ---- */

.link-card:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

.field__input:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
}

/* ---- Responsive ---- */

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

@media (min-width: 640px) {
  .page {
    padding: 64px 24px 96px;
  }

  .inquiry {
    padding: 40px 32px 44px;
  }

  .hero__mark {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 379px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .hero__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }
}

/* ---- Reduced Motion ---- */

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