﻿/* Java Point Cafe - Global Theme Styles\r\n   Tasks covered in this file:\r\n   1) Define shared color and spacing tokens\r\n   2) Style global layout building blocks (nav, hero, section, footer)\r\n   3) Provide common animations + responsive breakpoints\r\n   4) Expose utility classes used by JavaScript interactions\r\n*/

/* Styles for: :root */
:root {
  --primary-green: #8b0000;
  --light-green: #b22222;
  --cream: #ffffff;
  --wood-brown: #5c0000;
  --light-wood: #ffd6d6;
  --dark-text: #2c2c2c;  
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Styles for: * */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles for: body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  background-color: var(--cream);
  line-height: 1.6;
}

/* Navigation: fixed header and primary site links */
/* Styles for: .navbar */
.navbar {
  background: var(--primary-green);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

/* Styles for: .nav-container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Styles for: .logo */
.logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Styles for: .logo-image */
.logo-image {
  display: block;
  height: 60px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

/* Styles for: .nav-menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* Styles for: .nav-menu a */
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

/* Styles for: .nav-menu a:hover */
.nav-menu a:hover {
  color: var(--cream);
}

/* Styles for: .nav-menu a.active */
.nav-menu a.active {
  color: var(--cream);
  border-bottom: 2px solid var(--cream);
}

/* Styles for: .hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* Styles for: .hamburger span */
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section: top visual + CTA container on homepage */
/* Styles for: .hero */
.hero {
  margin-top: 70px;
  background: url('../images/ourcafeground.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
  min-height: clamp(420px, 68vh, 640px);
  padding: clamp(72px, 12vw, 120px) 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Styles for: .hero-content */
.hero-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Styles for: .hero-content h1 */
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s;
}

/* Styles for: .hero-content .tagline */
.hero-content .tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s;
}

/* Styles for: .cta-buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1.5s;
}

/* Styles for: .btn */
.btn {
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Styles for: .btn:active */
.btn:active {
  transform: scale(0.95);
}

/* Styles for: .btn-primary */
.btn-primary {
  background: var(--wood-brown);
  color: var(--white);
}

/* Styles for: .btn-primary:hover */
.btn-primary:hover {
  background: var(--light-wood);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
}

/* Styles for: .btn-secondary */
.btn-secondary {
  background: var(--white);
  color: var(--primary-green);
}

/* Styles for: .btn-secondary:hover */
.btn-secondary:hover {
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
}

/* Reusable section spacing and heading treatment */
/* Styles for: .section */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Styles for: .section-title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 3rem;
  position: relative;
}

/* Styles for: .section-title::after */
.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--light-green);
  margin: 15px auto;
  border-radius: 2px;
}

/* Home bestsellers carousel */
/* Styles for: .bestsellers-carousel */
.bestsellers-carousel {
  overflow: hidden;
  margin-top: 2rem;
  scroll-behavior: smooth;
}

/* Styles for: .bestsellers-grid */
.bestsellers-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* Styles for: .bestsellers-grid::-webkit-scrollbar */
.bestsellers-grid::-webkit-scrollbar {
  height: 0;
}

/* Styles for: .bestsellers-grid */
.bestsellers-grid {
  scrollbar-width: none;
}

/* Styles for: .bestsellers-grid .product-card */
.bestsellers-grid .product-card {
  flex: 0 0 clamp(240px, 30vw, 320px);
}

/* Styles for: .product-card */
.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s;
  animation: fadeInUp 0.8s;
}

/* Styles for: .product-card:hover */
.product-card:hover {
  transform: translateY(-10px);
}

/* Styles for: .product-image */
.product-image {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  overflow: hidden;
}

/* Styles for: .product-image img */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Styles for: .product-info */
.product-info {
  padding: 1.5rem;
}

/* Styles for: .product-info h3 */
.product-info h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

/* Styles for: .product-info p */
.product-info p {
  color: #666;
  margin-bottom: 1rem;
}

/* Styles for: .price */
.price {
  font-size: 1.5rem;
  color: var(--wood-brown);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Offer cards and badges */
/* Styles for: .offers */
.offers {
  background: var(--light-wood);
}

/* Styles for: .offers-grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

/* Styles for: .offer-card */
.offer-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow);
  border: 3px solid var(--wood-brown);
  animation: pulse 2s infinite;
}

/* Styles for: .offer-badge */
.offer-badge {
  background: var(--wood-brown);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Styles for: .offer-card h3 */
.offer-card h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Global footer blocks and links */
/* Styles for: .footer */
.footer {
  background: var(--primary-green);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

/* Styles for: .footer-content */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Styles for: .footer-section h3 */
.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-section p,
/* Styles for: .footer-section a */
.footer-section a {
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

/* Styles for: .footer-section a:hover */
.footer-section a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* Styles for: .footer-section p.clickable */
.footer-section p.clickable {
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}

/* Styles for: .footer-section p.clickable:hover */
.footer-section p.clickable:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* Styles for: .footer-section p a */
.footer-section p a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

/* Styles for: .footer-section p a:hover */
.footer-section p a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* Styles for: .social-links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Styles for: .social-links a */
.social-links a {
  width: 40px;
  height: 40px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

/* Styles for: .social-links a:hover */
.social-links a:hover {
  background: var(--wood-brown);
}

/* Styles for: .social-icon */
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Styles for: .sr-only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Styles for: .footer-bottom */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--light-green);
}

/* Keyframes reused across pages */
/* At-rule block: @keyframes fadeIn */
@keyframes fadeIn {
/* Styles for: from */
  from {
    opacity: 0;
  }
/* Styles for: to */
  to {
    opacity: 1;
  }
}

/* At-rule block: @keyframes fadeInDown */
@keyframes fadeInDown {
/* Styles for: from */
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
/* Styles for: to */
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* At-rule block: @keyframes fadeInUp */
@keyframes fadeInUp {
/* Styles for: from */
  from {
    opacity: 0;
    transform: translateY(30px);
  }
/* Styles for: to */
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* At-rule block: @keyframes pulse */
@keyframes pulse {
/* Rule block: 0%, 100% */
  0%, 100% {
    transform: scale(1);
  }
/* Rule block: 50% */
  50% {
    transform: scale(1.02);
  }
}

/* Shared responsive adjustments */
/* Large tablet and small laptop tuning (<= 1200px). */
/* At-rule block: @media (max-width: 1200px) */
@media (max-width: 1200px) {
  .nav-container,
  .section,
/* Styles for: .footer-content */
  .footer-content {
    max-width: 1000px;
  }

/* Styles for: .hero-content h1 */
  .hero-content h1 {
    font-size: 3rem;
  }

/* Styles for: .section-title */
  .section-title {
    font-size: 2.25rem;
  }
}

/* Tablet tuning (<= 992px): reduce spacing and tighten grids. */
/* At-rule block: @media (max-width: 992px) */
@media (max-width: 992px) {
/* Styles for: .navbar */
  .navbar {
    padding: 0.9rem 1.2rem;
  }

/* Styles for: .nav-menu */
  .nav-menu {
    gap: 1.2rem;
  }

/* Styles for: .hero */
  .hero {
    min-height: 500px;
    padding: 76px 18px;
  }

/* Styles for: .section */
  .section {
    padding: 50px 18px;
  }

/* Styles for: .footer */
  .footer {
    padding: 2.5rem 1.2rem 1rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile menu + stacked CTA behavior (<= 768px). */
/* At-rule block: @media (max-width: 768px) */
@media (max-width: 768px) {
/* Styles for: .nav-menu */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--primary-green);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 1.2rem 0.8rem;
    gap: 0.6rem;
  }

/* Styles for: .nav-menu li */
  .nav-menu li {
    list-style: none;
  }

/* Styles for: .nav-menu a */
  .nav-menu a {
    display: block;
    padding: 0.5rem 0.2rem;
  }

/* Styles for: .nav-menu.active */
  .nav-menu.active {
    left: 0;
  }

/* Styles for: .hamburger */
  .hamburger {
    display: flex;
  }

/* Styles for: .hero */
  .hero {
    min-height: 460px;
    background-position: center top;
  }

/* Styles for: .hero-content h1 */
  .hero-content h1 {
    font-size: 2.5rem;
  }

/* Styles for: .hero-content .tagline */
  .hero-content .tagline {
    font-size: 1.2rem;
  }

/* Styles for: .cta-buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

/* Styles for: .btn */
  .btn {
    width: 80%;
  }

/* Styles for: .bestsellers-grid, .offers-grid */
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .bestsellers-grid .product-card {
    flex: 0 0 100%;
  }
}

/* Small mobile tuning (<= 576px): keep text/buttons readable and avoid overflow. */
/* At-rule block: @media (max-width: 576px) */
@media (max-width: 576px) {
/* Styles for: .navbar */
  .navbar {
    padding: 0.8rem 0.9rem;
  }

/* Styles for: .logo */
  .logo {
    font-size: 1.3rem;
  }

/* Styles for: .logo-image */
  .logo-image {
    height: 42px;
    max-width: 175px;
  }

/* Styles for: .hero */
  .hero {
    margin-top: 64px;
    min-height: 400px;
    padding: 56px 14px;
  }

/* Styles for: .hero-content h1 */
  .hero-content h1 {
    font-size: 2rem;
  }

/* Styles for: .hero-content .tagline */
  .hero-content .tagline {
    font-size: 1rem;
  }

/* Styles for: .section */
  .section {
    padding: 40px 14px;
  }

/* Styles for: .section-title */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

/* Styles for: .btn */
  .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 1rem;
  }

/* Styles for: .footer-content */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

/* Styles for: .footer */
  .footer {
    padding: 2rem 0.9rem 1rem;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

}

/* Extra-small phones (<= 420px): final compaction pass. */
/* At-rule block: @media (max-width: 420px) */
@media (max-width: 420px) {
/* Styles for: .hero */
  .hero {
    min-height: 360px;
  }

/* Styles for: .hero-content h1 */
  .hero-content h1 {
    font-size: 1.75rem;
  }

/* Styles for: .logo-image */
  .logo-image {
    height: 38px;
    max-width: 155px;
  }

/* Styles for: .section-title */
  .section-title {
    font-size: 1.55rem;
  }

/* Styles for: .product-image */
  .product-image {
    height: 160px;
  }
}

/* Product card image tuning for small/medium screens */
/* At-rule block: @media (max-width: 768px) */
@media (max-width: 768px) {
/* Styles for: .product-image */
  .product-image {
    height: 180px;
  }
}

/* At-rule block: @media (max-width: 576px) */
@media (max-width: 576px) {
/* Styles for: .product-image */
  .product-image {
    height: 170px;
  }
}


/* Make all clickable elements obvious */
/* Styles for: a, button, .btn, [onclick] */
a, button, .btn, [onclick] {
  cursor: pointer !important;
}

/* Styles for: button:disabled */
button:disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* Improve button accessibility */
.btn:focus,
button:focus,
/* Styles for: a:focus */
a:focus {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

/* Add ripple effect on click */
.btn:active,
/* Styles for: button:active */
button:active {
  position: relative;
  top: 2px;
}

/* Ensure all links are styled */
/* Styles for: a:not(.btn):not(.logo) */
a:not(.btn):not(.logo) {
  cursor: pointer;
  transition: all 0.3s;
}

/* Social links hover effect */
/* Styles for: .social-links a */
.social-links a {
  cursor: pointer !important;
  transition: all 0.3s;
}

/* Styles for: .social-links a:hover */
.social-links a:hover {
  transform: scale(1.1);
}

/* Utility styles referenced by JS (reveal + notifications) */
/* Styles for: .hamburger */
.hamburger {
  background: transparent;
  border: none;
  padding: 0;
}

/* Styles for: .reveal-ready */
.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Styles for: .in-view */
.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Styles for: .site-notification */
.site-notification {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.25s ease;
}

/* Styles for: .site-notification-success */
.site-notification-success {
  background: #c1121f;
}

/* Styles for: .site-notification-error */
.site-notification-error {
  background: #a93226;
}

/* Styles for: .site-notification.hide */
.site-notification.hide {
  animation: slideOut 0.25s ease forwards;
}

/* At-rule block: @keyframes slideIn */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* At-rule block: @keyframes slideOut */
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(12px); }
}




