/* ============================================
   amplastics CHAIRS — Design System
   Industrial Editorial Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,700;9..144,900&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #16110D;
  --ink-soft: #2A211B;
  --cream: #F5EFE6;
  --cream-warm: #EDE4D3;
  --orange: #E85D1F;
  --orange-deep: #C44513;
  --rust: #8B3A0E;
  --green-mute: #4A5D3A;
  --line: rgba(22, 17, 13, 0.12);
  --line-strong: rgba(22, 17, 13, 0.3);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'ss02';
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============== NAVIGATION ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--orange);
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--orange);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--orange-deep);
}

.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--orange);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============== TYPOGRAPHY UTILS ============== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--orange-deep);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.italic-accent {
  font-style: italic;
  font-weight: 400;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--orange);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-arrow {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
  transition: transform 0.25s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 2.5rem 2rem;
  margin-top: 0;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 239, 230, 0.15);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: rgba(245, 239, 230, 0.6);
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--orange);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(245, 239, 230, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.5);
  font-family: var(--font-mono);
}

/* ============== PAGE BANNER (inner pages) ============== */
.page-banner {
  padding: 10rem 2.5rem 4rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  margin-top: 1rem;
  max-width: 900px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ============== SECTIONS ============== */
section {
  padding: 6rem 2.5rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 800px;
}

.section-header h2 {
  margin-top: 1rem;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: var(--ink);
    color: var(--cream);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

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

  .nav-links a {
    color: var(--cream);
    font-size: 1.1rem;
  }

  .nav-cta {
    background: var(--orange);
  }

  .mobile-toggle {
    display: block;
  }  
  
  .mobile-toggle.open span {
     background: white;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .page-banner {
    padding: 8rem 1.5rem 3rem;
  }

  .footer {
    padding: 4rem 1.5rem 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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