/* ═══════════════════════════════════════════════════════════
   T&T SPICES — GLOBAL DESIGN SYSTEM
   style.css — Single source of truth for all shared styles.
   Page-specific overrides live in css/home.css, css/products.css,
   css/contact.css and are loaded only on the relevant page.
═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Typography */
  --font-display:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --font-text:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  /* Label colours */
  --label-primary:    #1d1d1f;
  --label-secondary:  #6e6e73;
  --label-tertiary:   #86868b;
  --label-quaternary: #aeaeb2;

  /* Surface fills */
  --fill-primary:   #ffffff;
  --fill-secondary: #f5f5f7;
  --fill-tertiary:  #ebebf0;
  --fill-grouped:   #e8e8ed;

  /* Separators */
  --separator:        rgba(0, 0, 0, 0.09);
  --separator-opaque: #d2d2d7;

  /* Base colours */
  --black: #1d1d1f;
  --white: #ffffff;

  /* Accent (warm gold) */
  --accent:      #fff8d0;
  --accent-mid:  #fff0a0;
  --accent-deep: #e8d84a;
  --accent-text: #7a6800;

  /* Elevation shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07);

  /* Border radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 980px;

  /* Easing */
  --spring:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --nav-h:    52px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  background: var(--fill-primary);
  color: var(--label-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════════════════ */

.eyebrow {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--label-secondary);
  margin-bottom: 10px;
}

.eyebrow-sm {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--label-tertiary);
  margin-bottom: 12px;
}

.large-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--label-primary);
}

.title-1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: var(--label-primary);
}

.body-text {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--label-secondary);
}

.body-text-sm {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--label-secondary);
}

/* ═══════════════════════════════════════════════════════════
   BUTTON SYSTEM
═══════════════════════════════════════════════════════════ */

.btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--label-primary);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.2s var(--spring);
}
.btn-filled:hover {
  opacity: 0.82;
  transform: scale(1.03);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--label-primary);
  border: 1px solid var(--separator-opaque);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.2s var(--spring);
}
.btn-ghost:hover {
  background: var(--fill-secondary);
  transform: scale(1.03);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--label-primary);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-text:hover {
  opacity: 0.65;
}
.btn-text .arrow {
  transition: transform 0.25s var(--spring);
}
.btn-text:hover .arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL-REVEAL SYSTEM
   Elements start hidden; JS adds .is-visible when in viewport.
═══════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.72s var(--spring),
    transform 0.72s var(--spring);
}
[data-reveal="up"]    { transform: translateY(32px); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.93); }
[data-reveal="fade"]  { /* opacity only */ }

[data-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.07s; }
[data-delay="2"] { transition-delay: 0.14s; }
[data-delay="3"] { transition-delay: 0.21s; }
[data-delay="4"] { transition-delay: 0.28s; }
[data-delay="5"] { transition-delay: 0.35s; }
[data-delay="6"] { transition-delay: 0.42s; }
[data-delay="7"] { transition-delay: 0.49s; }
[data-delay="8"] { transition-delay: 0.56s; }

/* Page entrance animation */
.page-body {
  padding-top: var(--nav-h);
  animation: page-in 0.42s var(--spring) both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION — frosted glass, fixed top
═══════════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  animation: nav-drop 0.55s var(--spring) both;
}

@keyframes nav-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}
img.nav-logo-img {
    width: 90px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.logo-mark .lm-top { height: 5px; background: #27922a; }
.logo-mark .lm-mid {
  flex: 1;
  background: #c41a15;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark .lm-mid span {
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-size: 10px;
  letter-spacing: -0.3px;
}
.logo-mark .lm-bot { height: 5px; background: #d4a017; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.3px;
}

/* Centre links */
.nav-links {
  display: flex;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  padding: 0 14px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  color: var(--label-primary);
  text-decoration: none;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.15s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--label-primary);
  transform: scaleX(0);
  transition: transform 0.25s var(--spring);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover { color: var(--label-secondary); }
.nav-links a.active { font-weight: 500; }

/* CTA button */
.nav-cta {
  background: var(--label-primary);
  color: var(--white);
  border: none;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.2s var(--spring);
}
.nav-cta:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--fill-secondary);
  border-top: 0.5px solid var(--separator);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 0.5px solid var(--separator);
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.2px;
}

.footer-brand-sub {
  font-size: 13px;
  color: var(--label-tertiary);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--label-primary);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--label-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--label-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.footer-legal,
.footer-tagline {
  font-size: 12px;
  color: var(--label-quaternary);
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION: TICKER (client scroll strip)
═══════════════════════════════════════════════════════════ */

.ticker-wrap {
  background: var(--fill-secondary);
  border-top: 0.5px solid var(--separator);
  border-bottom: 0.5px solid var(--separator);
  height: 48px;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  background: var(--label-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.ticker-track {
  display: flex;
  padding-left: 175px;
  animation: ticker 38s linear infinite;
}

.ticker-item {
  padding: 0 32px;
  font-size: 12px;
  font-weight: 400;
  color: var(--label-secondary);
  white-space: nowrap;
  line-height: 48px;
  border-right: 0.5px solid var(--separator);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION: PAGE MASTHEAD (Products & Contact)
═══════════════════════════════════════════════════════════ */

.page-masthead {
  background: var(--fill-primary);
  padding: 80px 40px 64px;
  border-bottom: 0.5px solid var(--separator);
}

.page-masthead-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.page-masthead h1 { max-width: 700px; }

.page-masthead p {
  max-width: 560px;
  margin-top: 18px;
}

/* ═══════════════════════════════════════════════════════════
   HAMBURGER BUTTON
═══════════════════════════════════════════════════════════ */

.nav-hamburger {
  display: none; /* visible only on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
}
.nav-hamburger:hover { background: var(--fill-secondary); }

.nav-hamburger .bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--label-primary);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.35s var(--spring),
    opacity 0.2s,
    width 0.3s var(--spring);
}

/* Animate bars → X when open */
.nav-hamburger.is-open .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE DRAWER
═══════════════════════════════════════════════════════════ */

.mobile-drawer {
  display: none; /* rendered in DOM but hidden; JS toggles .is-open */
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  pointer-events: none;
}

.mobile-drawer.is-open {
  display: block;
  pointer-events: auto;
}

/* Backdrop */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-drawer.is-open .drawer-backdrop {
  opacity: 1;
}

/* Panel */
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 0.5px solid var(--separator);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 20px 24px 28px;
  transform: translateY(-16px);
  opacity: 0;
  transition:
    transform 0.38s var(--spring),
    opacity 0.28s;
  box-shadow: var(--shadow-xl);
}
.mobile-drawer.is-open .drawer-panel {
  transform: translateY(0);
  opacity: 1;
}

/* Drawer nav links */
.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--label-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: background 0.15s, color 0.15s;
}
.drawer-links a:hover,
.drawer-links a.active {
  background: var(--fill-secondary);
}
.drawer-links a.active {
  color: var(--label-primary);
}
.drawer-links a .link-arrow {
  font-size: 14px;
  color: var(--label-quaternary);
  transition: transform 0.2s var(--spring);
}
.drawer-links a:hover .link-arrow {
  transform: translateX(4px);
  color: var(--label-secondary);
}

/* Drawer CTA */
.drawer-cta {
  display: block;
  width: 100%;
  background: var(--label-primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.2s var(--spring);
}
.drawer-cta:hover {
  opacity: 0.85;
  transform: scale(1.01);
}

/* Stagger drawer link animation */
.mobile-drawer.is-open .drawer-links li {
  animation: drawer-item-in 0.4s var(--spring) both;
}
.mobile-drawer.is-open .drawer-links li:nth-child(1) { animation-delay: 0.06s; }
.mobile-drawer.is-open .drawer-links li:nth-child(2) { animation-delay: 0.12s; }
.mobile-drawer.is-open .drawer-links li:nth-child(3) { animation-delay: 0.18s; }

@keyframes drawer-item-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — shared breakpoints
═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .site-nav { padding: 0 16px; }

  /* Hide desktop nav links and CTA; show hamburger instead */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  .site-footer { padding: 48px 20px 28px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-masthead { padding: 60px 20px 48px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════════════════
   FORM VALIDATION STYLES
   Add these to your contact.css (or style.css)
═══════════════════════════════════════════════════════════ */

/* Inline per-field error message */
.field-error {
  display: none;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #d93025;
  letter-spacing: 0.1px;
}

/* Invalid input / select / textarea border */
.field-input.is-invalid,
.field-select.is-invalid,
.field-textarea.is-invalid {
  border-color: #d93025 !important;
  background-color: rgba(217, 48, 37, 0.04);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}

/* Banner-level error (top of form, already exists as #form-error) */
#form-error {
  display: none;
  color: #d93025;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(217, 48, 37, 0.07);
  border: 1px solid rgba(217, 48, 37, 0.25);
  border-radius: 8px;
  line-height: 1.5;
}