/* Importing Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-image: url("coffee-hero-bg.jpg"); /* dahil nasa root */
  background-size: cover;        /* sakupin ang buong screen */
  background-repeat: no-repeat;  /* huwag ulitin ang image */
  background-position: center;   /* i-center ang image */
  background-attachment: fixed;  /* steady kahit mag-scroll */
  color: #fff;                   /* puti ang text para malinaw */
  min-height: 100vh;             /* buong taas ng screen */
}

.hidden { display: none !important; }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 20;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}

header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .logo {
  color: #fff;
  font-weight: 600;
  font-size: 2.1rem;
  text-decoration: none;
}

.navbar .logo span {
  color: #C06B3E;
}

.navbar .menu-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.navbar a:hover, .navbar a.active {
  color: #C06B3E;
}

.hero-section {
  min-height: 100vh;
  background-image: url("https://www.codingnepalweb.com/demos/create-responsive-coffee-website-html-css/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 40px;
  text-align: center;
}

.hero-section .content,
.content-section .content,
.coffee-action-section .content {
  width: min(95%, 900px);
  margin: 0 auto;
  color: #fff;
}

.hero-section .content h2 {
  font-size: 3rem;
  max-width: 600px;
  line-height: 70px;
}

.hero-section .content p {
  font-weight: 300;
  max-width: 600px;
  margin-top: 15px;
}

.hero-section .content button {
  background: #fff;
  padding: 12px 30px;
  border: none;
  font-size: 1rem;
  border-radius: 6px;
  margin-top: 38px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
}

.hero-section .content button:hover {
  color: #fff;
  background: #C06B3E;
}

   .coffee-action-section,
  .content-section {
    min-height: calc(100vh - 80px);
    padding: 90px 20px 40px;
    position: relative;
    background-image: url("https://www.codingnepalweb.com/demos/create-responsive-coffee-website-html-css/hero-bg.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
    overflow-y: auto;
  }

  .hero-section {
    min-height: calc(100vh - 80px);
    padding-top: 80px;
  }

  .content-section .content,
  .coffee-action-section .content,
  .hero-section .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }


  .coffee-action-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
  }

  .coffee-action-section .content,
  .content-section .content,
  .hero-section .content {
    position: relative;
    z-index: 1;
  }

  .content-section {
    min-height: calc(100vh - 80px);
    background-image: url("https://www.codingnepalweb.com/demos/create-responsive-coffee-website-html-css/hero-bg.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 140px 20px 40px;
    position: relative;
  }

  .testimonial-list-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
  }

  .testimonial-list-container::-webkit-scrollbar {
    width: 8px;
  }
  .testimonial-list-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
  }

  .testimonial-card {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 12px;
    padding: 16px 18px;
    line-height: 1.4;
    text-align: left;
  }

  .testimonial-card h4 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.2rem;
  }

  .testimonial-card .stars {
    margin-top: 10px;
    color: #FFCC33;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .about-text {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #f4f4f4;
  }

  .about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
    max-width: 860px;
  }

  .about-card {
    width: 100%;
    max-width: 380px;
  }

  .about-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    min-width: 150px;
    padding: 12px;
    text-align: left;
  }

  .about-card h4 {
    color: #fff;
    margin-bottom: 5px;
  }

  .about-card p { margin: 0; color: #ddd; }

  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 900px;
    margin-top: 14px;
  }

  .contact-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 14px;
    flex: 1 1 220px;
    min-width: 220px;
    text-align: left;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-card h4 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1rem;
  }

  .contact-card p {
    margin: 0;
    color: #fff;
    opacity: 0.95;
  }

  .contact-email {
    font-weight: 700;
    color: #ffcc66;
    word-break: break-all;
  }

  .contact-link {
    color: #ffcc66;
    text-decoration: none;
    font-weight: 600;
  }

  .contact-follow {
    margin-top: 20px;
    width: min(95%, 560px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
  }

  .contact-follow h4 {
    margin: 0;
  }

  .contact-avatar-wrap {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    margin-bottom: 8px;
  }

  .contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .avatar-name {
    color: #fff;
    font-weight: 600;
    margin-top: 0;
  }

  .content-section::before,
  .coffee-action-section::before,
  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
  }

  .coffee-action-section .coffee-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .coffee-action-section .coffee-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 500;
  }

  .coffee-action-section .coffee-btn:hover,
  .coffee-action-section .coffee-btn.selected {
    background: #C06B3E;
    border-color: #C06B3E;
  }

  .coffee-action-section .order-controls {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .coffee-action-section .order-controls label {
    font-weight: 500;
  }

  .coffee-action-section .order-controls input {
    width: 80px;
    border-radius: 6px;
    border: 1px solid #fff;
    background: #111;
    color: #fff;
    padding: 8px;
    text-align: center;
  }

  .coffee-action-section .order-controls span {
    font-weight: 600;
    color: #fff;
  }

  .coffee-action-section .coffee-info {
    background: rgba(255,255,255,0.08);
    margin: 8px auto 0;
    max-width: 600px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 16px;
    line-height: 1.5;
    text-align: left;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    width: 100%;
  }

  .product-summary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 260px;
  }

  .order-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .total-box {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
  }

  .cart-box {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px;
    text-align: left;
    margin-top: 10px;
    max-height: 130px;
    overflow-y: auto;
  }

  .cart-box h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
  }

  .cart-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
  }

  .cart-list li {
    margin-bottom: 4px;
  }

  #add-order {
    background: #C06B3E;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
  }

  #add-order:hover {
    background: #e5934f;
  }

  #complete-order {
    background: #30a14e;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 7px;
  }

  #complete-order:hover {
    background: #2f8d42;
  }

  .payment-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    color: #fff;
  }

  .payment-row select {
    border-radius: 6px;
    background: #111;
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 8px;
  }

  .final-message {
    margin-top: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    min-height: 34px;
    color: #fff;
    text-align: center;
  }

  .menu-table-wrap {
    margin: 0;
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
  }

  .menu-table-wrap h4 {
    margin: 0 0 8px;
  }

  .menu-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: rgba(0,0,0,0.3);
  }

  .menu-table th, .menu-table td {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 10px;
    color: #fff;
  }

  .menu-table th {
    background: rgba(255,255,255,0.1);
  }

  .menu-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.03);
  }

  .menu-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.01);
  }

  .menu-table .product-row.selected {
    background: rgba(255, 182, 89, 0.25);
  }

  .menu-table .product-row:hover {
    background: rgba(255,255,255,0.14);
    cursor: pointer;
  }

  #close-menu-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    display: none;
  }

#hamburger-btn {
  color: #fff;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  header {
    padding: 10px;
  }

  header.show-mobile-menu::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
  }

  .navbar .logo {
    font-size: 1.7rem;
  }

    
  #hamburger-btn, #close-menu-btn {
    display: block;
  }

  .navbar .menu-links {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 70px 40px 0;
    transition: left 0.2s ease;
  }

  header.show-mobile-menu .navbar .menu-links {
    left: 0;
  }

  .navbar a {
    color: #000;
  }

  .hero-section .content {
    text-align: center;
  }

  .hero-section .content :is(h2, p) {
    max-width: 100%;
  }

  .hero-section .content h2 {
    font-size: 2.3rem;
    line-height: 60px;
  }
  
  .hero-section .content button {
    padding: 9px 18px;
  }
}