/* ================================
   Base CSS for Forjar Labs Website
   ================================ */

:root {
  /* Color palette */
  --color-primary-bg: #212529;
  --color-body-bg: #f8f9fa;
  --color-button-bg: #000;
  --color-button-hover: #333;
  --color-text: #212529;

  /* Typography (1rem = 16px by default) */
  --font-base: "Inter", "Helvetica Neue", sans-serif;
  --font-size-base: 1rem; /* 16px */
  --font-size-md: 1.125rem; /* 18px */
  --font-size-lg: 1.25rem; /* 20px */

  /* Spacing */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 2rem; /* 32px */

  /* Border Radius */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.75rem; /* 12px */

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
}

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

/*. Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-body-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  /* font-size: var(--font-size-base); */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Make images responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit fonts */
input,
button,
textarea,
select {
  font: inherit;
}

/*  Link styles */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/*  Button reset */
button {
  background: none;
  border: none;
  cursor: pointer;
  background-color: var(--color-button-bg);
}

button:hover {
  background-color: var(--color-button-hover);
}

/*  Remove all animations/transitions for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Typography */
@media (min-width: 600px) {
  /* body {
    font-size: var(--font-size-md);
  } */
}

@media (min-width: 1024px) {
  /* body {
    font-size: var(--font-size-lg);
  } */
}

/* div {
  background-color: var(--color-primary-bg);
} */

/* Button Styling */
button {
  background-color: var(--color-button-bg);
  color: #fff;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color var(--transition-fast);
}

button:hover {
  background-color: var(--color-button-hover);
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-md {
  margin-bottom: var(--space-md);
}

/* Container, logo, nav base styles assumed from earlier */

#header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--color-body-bg);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.nav {
  border-radius: var(--radius-sm, 0.25rem);
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  display: flex;
  padding: 0.5rem 0.5rem;
  gap: 5rem;
  color: #000;
  flex: 1;
}

.nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  margin-left: 4rem;
  padding: 0.25rem 0.5rem;
  align-items: center;
}

.nav a:not(.active)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:not(.active):hover {
  color: #555;
}

.nav a:not(.active):hover::after {
  transform: scaleX(1);
}

.nav .active {
  color: #ca81ef;
  text-decoration: underline;
}

.nav a {
  text-decoration: none;
  position: relative;
  /* font-weight: 500; */
}

.nav button {
  background-color: var(--color-button-bg, #f5c518);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm, 0.25rem);
  cursor: pointer;
}

/* Hamburger base styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  z-index: 20;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #212529;
  border-radius: 2px;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Animate to X when .open is applied to .hamburger */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.cart-icon .cart-count {
  position: absolute;
  top: -15px;
  right: -10px;
  color: #000;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
  }

  .nav.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 1rem;
    background-color: #000;
    color: #fff;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .nav button {
    width: 100%;
    margin-top: 0.5rem;
  }

  .header-right img, .header-right .cart-count {
    width: 80%;
  }
}

/* Footer Container */
#footer {
  color: #fff;
}

.footer-top {
  display: inline-block;
  position: relative;
}

.footer-top img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 0.5rem;
  color: white;
  padding: 0 0.5rem;
}

.footer-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
}

#footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.logo-text {
  font-family: "Anton SC", sans-serif;
  font-size: 5rem;
  color: #fff;
  font-weight: normal;
}

#footer p {
  max-width: 600px;
  color: #ccc;
}

#footer form {
  position: relative;
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: row;
  border: none;
  border-radius: 10px;
  padding: 0;
  gap: 0;
  margin-top: 2rem;
}

#footer input[type="email"] {
  flex: 1;
  padding: 0 1rem;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  border: none;
}

#footer input[type="email"]:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

#footer button[type="submit"] {
  padding: 0.5rem 1rem;
  background-color: #861c1c;
  border: none;
  border-radius: 0;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  width: max-content;
}

/* Sitemap Full Width */
.sitemap {
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  background-color: #000;
  padding: 2rem;
}

.sitemap .area {
  min-width: 150px;
}

.sitemap .area h4 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.sitemap .area ul {
  list-style: none;
  padding: 0;
}

.sitemap .area li {
  margin-bottom: 0.5rem;
}

.sitemap .area a {
  color: #ccc;
  text-decoration: none;
}

.sitemap .area a:hover {
  color: var(--color-button-bg, #f5c518);
}

.sitemap .social-icon {
  background-color: #fff;
  border-radius: 100%;
  padding: 0.3rem;
  margin-top: 2rem;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
  background-color: #000;
  padding: 2rem;
}

.footer-bottom .scroll-up {
  cursor: pointer;
  text-decoration: underline;
  color: var(--color-button-bg, #f5c518);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  #footer .footer-content {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 6rem;
  }

  #footer form {
    align-self: flex-start;
  }

  #footer button[type="submit"] {
    padding: 0.5rem 6.5rem;
  }

  .footer-overlay {
    padding: 0 6rem;
  }

  .sitemap {
    padding: 6rem;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

/* Contact Form */

#contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.contact-left,
.contact-right {
  flex: 1 1 500px;
}

.contact-left img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.contact-right h4 {
  font-size: 1rem;
  color: #8c8f92;
  margin-bottom: 0.5rem;
}

.contact-right h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

.contact-right p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 10rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

.name-column,
.email-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #555;
}

input,
textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  resize: vertical;
  color: #212529;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #f5c518;
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.25);
}

textarea {
  min-height: 150px;
}

.contact-button {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  background-color: var(--color-primary-bg);
  color: #ffffff;
  font-weight: normal;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.contact-button:hover {
  background-color: #262a27;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .contact-right h1 {
    font-size: 1.75rem;
  }

  form {
    margin-top: 4rem;
  }
}
