/* ===================================
   JADI Promotional Website Styles
   Mobile-first responsive design
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #F53133;
  --color-primary-dark: #420D0C;
  --color-primary-light: #FF8A8A;
  --color-cream: #FFF0F0;
  --color-white: #FFFFFF;
  --color-dark: #1A1A1A;
  --color-gray: #4A4A4A;
  --color-light-gray: #E8E8E8;
  --color-green: #43A047;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-stack);
  color: var(--color-dark);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-white);
  z-index: 1000;
  box-shadow: 0 1px 0 var(--color-light-gray);
  transition: box-shadow 0.3s;
}

.nav--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo img {
  border-radius: 8px;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.nav__socials a {
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav__socials a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.nav__menu {
  list-style: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-white);
  padding: 100px 32px 32px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav__menu.open {
  right: 0;
}

.nav__link {
  display: block;
  padding: 12px 0;
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--color-light-gray);
}

.nav__link:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  background: var(--color-cream);
  text-align: center;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 49, 51, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(66, 13, 12, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__logo {
  margin: 0 auto 2rem;
  border-radius: 24px;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* --- About --- */
.about {
  padding: 80px 0;
  background: var(--color-white);
}

.about__content {
  max-width: 720px;
  margin: 0 auto;
}

.about__text {
  font-size: 1.1rem;
  color: var(--color-dark);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 24px 16px;
  background: var(--color-cream);
  border-radius: 12px;
}

.stat__number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gray);
  font-weight: 500;
}

/* --- Features --- */
.features {
  padding: 80px 0;
  background: var(--color-cream);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: 80px 0;
  background: var(--color-white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.95rem;
  color: var(--color-gray);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Team --- */
.team {
  padding: 80px 0;
  background: var(--color-cream);
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  background: var(--color-cream);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.team-card__bio {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.team-card__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 6px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.team-card__links a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 0;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand img {
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__links h4,
.footer__contact h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__links a,
.footer__contact a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer__socials {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__socials svg {
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive: Tablet (640px+) --- */
@media (min-width: 640px) {
  .section__title {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* --- Responsive: Desktop (960px+) --- */
@media (min-width: 960px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    gap: 4px;
  }

  .nav__link {
    padding: 8px 16px;
    font-size: 0.95rem;
    border-bottom: none;
    border-radius: 6px;
  }

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

  .hero {
    padding: 100px 0 100px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about, .features, .how-it-works, .team {
    padding: 100px 0;
  }
}
