/* ===== CSS VARIABLES ===== */
:root {
  --primary: #e60023;
  --accent: #ffd700;
  --dark-overlay: rgba(0,0,0,.45);
  --font: 'Kanit', sans-serif;
  --shadow: 0 4px 14px rgba(0,0,0,.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: #222;
  background: #fff;
  width: 100%;
  overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
  background: url('../assets/kimchi.png') center/cover no-repeat;
  height: 100vh;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
}

.price-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: #fff;
  padding: .5rem .9rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,.3);
  z-index: 5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

.price-tag.bounce {
  animation: bounce 3s infinite;
}

.hero-content.bottom {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  color: #fff;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: .5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,.35);
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
}

.button {
  background: var(--accent);
  color: #000;
  padding: .85rem 1.75rem;
  border: none;
  border-radius: 60px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,.3);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.button.pulse {
  animation: pulse 2s infinite;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 1rem;
}

/* ===== OFFER SECTION ===== */
.offer {
  text-align: center;
  background: #fff8e1;
}

.offer h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.offer form {
  max-width: 600px;
  margin: 1.25rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.offer input[type=text],
.offer input[type=number],
.offer input[type=email] {
  flex: 1 1 180px;
  padding: .85rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.offer input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.offer button {
  padding: .85rem 1.5rem;
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.offer button:hover {
  background: #cc001f;
  transform: translateY(-1px);
}

.small {
  font-size: .9rem;
  color: #555;
  margin-top: .5rem;
}

/* ===== PRODUCT SECTION ===== */
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.product img {
  width: 290px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product img:hover {
  transform: scale(1.02);
}

.product-copy {
  max-width: 450px;
}

.product-copy h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: .75rem;
}

.product-copy ul {
  list-style-type: disc;
  margin-left: 1.25rem;
  font-size: 1.05rem;
}

.product-copy li {
  margin-bottom: .5rem;
}

/* ===== ORDER SECTION ===== */
.order {
  text-align: center;
  background: #ffe5e5;
}

.order h2 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 1.25rem;
}

.order-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.order-buttons a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border: 2px dashed var(--primary);
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  color: #000;
  background: #fff;
  transition: var(--transition);
}

.order-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.order-buttons img {
  width: 26px;
  height: 26px;
}

.order-buttons .grab {
  background: #16a443;
  color: #fff;
  border: none;
}

.order-buttons .line {
  background: #00b900;
  color: #fff;
  border: none;
}

/* ===== FOUNDER SECTION ===== */
.founder {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.founder img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.founder img:hover {
  transform: scale(1.05);
}

.founder-copy {
  max-width: 480px;
}

.founder-copy h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* ===== FOOTER ===== */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .9rem;
  background: #222;
  color: #fff;
}

/* ===== FORM SUCCESS MESSAGE ===== */
.thanks {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #c3e6cb;
  margin: 1rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  h1 {
    font-size: 5rem;
  }
  
  .product {
    flex-direction: row;
  }
  
  .founder {
    flex-direction: row;
    text-align: left;
  }
  
  .order-buttons {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .offer h2 {
    font-size: 1.75rem;
  }
  
  .product img {
    width: 250px;
  }
  
  .founder img {
    width: 200px;
    height: 200px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STYLES ===== */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
