/* =========================================================
🌈 GLOBAL STYLES & VARIABLES
========================================================= */
:root {
  --color-mango: #ff8903;
  --color-cream: #FDF6E9;
  --color-tealish: #3EC9A7;
  --color-rosey: #a53030;
  --color-cocoa: #4B2E2B;

  /* 💡 Complementary shades */
  --color-honey: #FFC145;
  --color-peach: #FFB38A;
  --color-latte: #C7A27C;
  --color-berry: #D64B6B;
  --color-leaf: #5FBF7F;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* improves anchor scroll with sticky header */
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: linear-gradient(to bottom right, #fb7185, var(--color-mango), var(--color-tealish));
  color: var(--color-cocoa);
}

/* =========================================================
🧭 HEADER & NAVIGATION
========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.3);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-cocoa);
  transition: 0.3s ease;
}

nav a:first-child {
  font-weight: bold;
  color: var(--color-rosey);
}

nav a:hover {
  color: var(--color-rosey);
  opacity: 1;
}

/* =========================================================
🏠 HOME SECTION (Hero)
========================================================= */
#hero {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  #hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Hero image & animation */
.hero-logo {
  width: 180px;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
  animation: floatY 4s ease-in-out infinite;
}

.hero-cup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Hero Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: .3s ease;
}

.btn-primary {
  background: var(--color-cocoa);
  color: var(--color-cream);
  box-shadow: 0 4px 10px rgba(255,100,150,.3);
}

.btn-primary:hover {
  background: var(--color-berry);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,.6);
  color: var(--color-cocoa);
}

.btn-secondary:hover {
  background: var(--color-peach);
  color: var(--color-cocoa);
  transform: translateY(-2px);
}

/* Animations */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 0 12px rgba(255,255,255,.08); }
}

/* =========================================================
👥 ABOUT US SECTION
========================================================= */
#about-us {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 3rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
}

#about-us h2 {
  color: var(--color-rosey);
  font-size: 2rem;
  margin-bottom: 1rem;
}

#about-us p {
  color: var(--color-cocoa);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0.5rem auto 1.5rem;
}

.aboutus-team {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.team-card {
  background: var(--color-cream);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 150px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.team-card img {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.team-card h3 {
  margin: 0.5rem 0 0.2rem;
  color: var(--color-rosey);
}

.team-card p {
  margin: 0;
  color: var(--color-cocoa);
  font-size: 0.95rem;
}

/* Responsive fix */
@media (max-width: 350px) {
  #about-us {
    padding: 2rem 1rem;
  }
  .team-card {
    width: 85%;
  }
}

/* =========================================================
📖 ABOUT PRODUCT SECTION
========================================================= */
#about .card {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  max-width: 900px;
  margin: 2rem auto;
}

/* Product table & media */
#about table {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-collapse: collapse;
  text-align: center;
}

#about td {
  padding: 1rem;
  vertical-align: middle;
}

#about img, #about video {
  width: 100%;
  max-width: 420px;
  border-radius: 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about img:hover, #about video:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Frosted frame */
#about > div[style*="overflow-x:auto"] {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 1000px;
  margin: 2rem auto;
}

/* Ingredients section */
.ingredients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ingredient {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-cream);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  font-weight: bold;
}

.ingredient img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ingredient img:hover {
  transform: scale(1.05);
}

/* =========================================================
🌟 HIGHLIGHTS / PROMO SECTION
========================================================= */
.promo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
}

.promo-card {
  flex: 1 1 45%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.promo-card h2 {
  font-size: 1.8rem;
  color: var(--color-rosey);
  margin-bottom: 1rem;
  text-align: center;
}

.promo-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-cocoa);
  text-align: justify;
}

/* =========================================================
💬 FEEDBACK SECTION
========================================================= */

#feedback {
  padding: 2rem 1rem;
  background: transparent;
  font-family: Arial, sans-serif;
}

.feedback-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* --- FORM STYLE --- */
.feedback-form-wrapper {
  flex: 1 1 400px;
  background: rgba(255, 255, 255, 0.15); /* transparent white layer */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  backdrop-filter: blur(8px); /* glass effect */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 280px;
}

.feedback-form h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #a53030;
}

.feedback-form label {
  display: block;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #fff;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: #eee;
}

.star-rating {
  display: flex;
  justify-content: center;
  margin: 0.8rem 0;
  direction: rtl;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5c518;
}

.btn-primary {
  width: 100%;
  background-color: rgba(165, 48, 48, 0.85);
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.8rem;
}

.btn-primary:hover {
  background-color: rgba(141, 40, 40, 0.9);
}

/* --- TABLE STYLE --- */
.feedback-table-wrapper {
  flex: 1 1 500px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow-x: auto;
}

.feedback-table-wrapper h3 {
  text-align: center;
  color: #a53030;
  margin-bottom: 1rem;
}

#feedbackTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #fff;
}

#feedbackTable th, #feedbackTable td {
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  padding: 0.6rem;
  backdrop-filter: blur(8px);
}

#feedbackTable th {
  background-color: rgba(165, 48, 48, 0.3);
  color: #fff;
}

.btn-secondary {
  display: block;
  margin: 1rem auto 0 auto;
  padding: 0.6rem 1.2rem;
  background-color: rgba(165, 48, 48, 0.85);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(141, 40, 40, 0.9);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 600px) {
  .feedback-container {
    flex-direction: column;
    align-items: center;
  }

  .feedback-form-wrapper,
  .feedback-table-wrapper {
    width: 100%;
    padding: 1rem;
  }

  #feedbackTable th, #feedbackTable td {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .star-rating label {
    font-size: 1.5rem;
  }

  .btn-primary, .btn-secondary {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}

/* =========================================================
📞 CONTACT SECTION
========================================================= */
#contact {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 3rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#contact h2 {
  font-size: 2rem;
  color: var(--color-rosey);
  margin-bottom: 1rem;
}

#contact p {
  color: var(--color-cocoa);
  font-size: 1.1rem;
}

/* Social Buttons */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.social-btn img {
  width: 28px;
  height: 28px;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

/* Platform colors */
.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.tiktok { background: linear-gradient(45deg, #010101, #25f4ee, #fe2c55); }
.whatsapp { background: linear-gradient(45deg, #25D366, #128C7E); }

/* =========================================================
📱 RESPONSIVE FIXES
========================================================= */
@media (max-width: 800px) {
  /* About Table */
  #about table {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #about td { width: 100%; padding: 0.5rem 0; }
  #about img, #about video { max-width: 95%; }

  /* Feedback Layout */
  .feedback-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  .feedback-form-wrapper, .feedback-table-wrapper {
    max-width: 95%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  header .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  nav a { margin: 0 0.5rem; font-size: 0.95rem; }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-cup-wrapper { width: 200px; height: 200px; }

  .btn-primary, .btn-secondary {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
    font-size: 1rem;
  }

  .promo-container { flex-direction: column; padding: 1rem; }
  .promo-card { flex: 1 1 100%; padding: 1.5rem; }

  .ingredients { grid-template-columns: 1fr 1fr; }

  /* Feedback Form Mobile */
  .feedback-form {
    max-width: 360px;
    padding: 1rem 1.2rem;
  }

  .feedback-form h3 { font-size: 1.1rem; }
  .feedback-form input, .feedback-form textarea { font-size: 0.9rem; }

  .star-rating label { font-size: 1.6rem; }

  #contact {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }

  .social-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

/* =========================================================
🧾 FOOTER
========================================================= */
footer {
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  background: rgba(255, 255, 255, .4);
  border-top: 1px solid rgba(255, 255, 255, .6);
}
