/* ============================================
   AMINTOYS — BASE STYLES
   "Factory of Wonder" — Toy Manufacturer
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: var(--fw-normal); /* Lilita One only has 400 */
  line-height: var(--lh-tight);
  color: var(--clr-navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin-bottom: var(--sp-4); }

input, textarea, select {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  border: 2px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  outline: none;
  transition: border-color var(--dur-normal) ease, box-shadow var(--dur-normal) ease;
  width: 100%;
  background: var(--clr-white);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 4px rgba(43, 143, 255, 0.12);
}

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

/* ---- Sections ---- */
.section {
  padding: var(--sp-20) 0;
  position: relative;
}
.section--alt {
  background: var(--clr-gray-100);
  background-image: var(--pattern-dots);
  background-size: 20px 20px;
}
.section--warm {
  background: var(--clr-cream);
  background-image: var(--pattern-diagonal);
}
.section--navy {
  background: var(--clr-navy);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.section--navy > .container { position: relative; z-index: 1; }
.section--navy h2, .section--navy h3 { color: var(--clr-white); }

/* Factory conveyor accent on section tops */
.section--factory-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--grad-toyshelf);
  z-index: 1;
}

/* Section Header */
.section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section__header h2 {
  margin-bottom: var(--sp-4);
  position: relative;
  display: inline-block;
  color: var(--clr-navy);
}
/* Colored underline bar — like a factory warning stripe */
.section__header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--clr-yellow);
  border-radius: var(--radius-full);
}
.section__header p {
  color: var(--clr-text-light);
  font-size: var(--fs-lg);
  max-width: 580px;
  margin: var(--sp-5) auto 0;
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-normal);
}

/* ---- 3D TACTILE BUTTONS — injection-molded plastic feel ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: var(--ff-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  border-radius: var(--radius-lg);
  transition: all var(--dur-fast) ease;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.btn:active {
  transform: translateY(3px);
}

/* Primary — Orange 3D */
.btn--primary {
  background: var(--clr-orange);
  color: var(--clr-white);
  box-shadow: var(--shadow-3d-orange), 0 8px 20px rgba(255,107,53,0.2);
  border-bottom: none;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-orange), 0 12px 28px rgba(255,107,53,0.3);
  background: #FF7A48;
}
.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #C84A1A, 0 2px 8px rgba(255,107,53,0.15);
}

/* Secondary */
.btn--secondary {
  background: var(--clr-white);
  color: var(--clr-orange);
  border: 2px solid var(--clr-orange);
  box-shadow: var(--shadow-3d-sm);
}
.btn--secondary:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-orange);
}
.btn--secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.1); }

/* Navy 3D */
.btn--navy {
  background: var(--clr-navy);
  color: var(--clr-white);
  box-shadow: var(--shadow-3d-navy), 0 8px 20px rgba(21,27,43,0.2);
}
.btn--navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-navy), 0 12px 28px rgba(21,27,43,0.3);
  background: var(--clr-navy-light);
}
.btn--navy:active { transform: translateY(3px); box-shadow: 0 1px 0 #0A0F1A; }

/* Yellow 3D */
.btn--yellow {
  background: var(--clr-yellow);
  color: var(--clr-navy);
  box-shadow: var(--shadow-3d-yellow), 0 8px 20px rgba(255,206,0,0.2);
  font-weight: var(--fw-extrabold);
}
.btn--yellow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-yellow), 0 12px 28px rgba(255,206,0,0.3);
}
.btn--yellow:active { transform: translateY(3px); box-shadow: 0 1px 0 #C9A200; }

/* Blue 3D */
.btn--blue {
  background: var(--clr-blue);
  color: var(--clr-white);
  box-shadow: var(--shadow-3d-blue), 0 8px 20px rgba(43,143,255,0.2);
}
.btn--blue:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-blue), 0 12px 28px rgba(43,143,255,0.3);
}

/* Ghost (for hero overlays) */
.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--clr-white);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: var(--shadow-3d-sm);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

.btn--lg { padding: 16px 36px; font-size: var(--fs-lg); }
.btn--sm { padding: 8px 18px; font-size: var(--fs-sm); }

/* ---- Screen reader ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Badge — toy label style ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 4px 10px;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-3d-sm);
}
.badge--age {
  background: var(--clr-blue);
  color: var(--clr-white);
}
.badge--new {
  background: var(--clr-red);
  color: var(--clr-white);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  .section { padding: var(--sp-12) 0; }
  .container { padding: 0 var(--sp-4); }
}
@media (max-width: 480px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
}
