/* =========================================================
   Hidden Spot Cafe — Global Styles
   File: /style.css
   Notes:
   - Keep page-specific styles in their own CSS (ex: /stories/stories.css)
   - This file covers: body, header, navbar, menu cards, utilities, footer
   ========================================================= */


/* =========================================================
   0) DESIGN TOKENS / THEME VARIABLES
   - Premium Dark Cafe v2
   - Keeps the magical dark identity
   - Adds warmer cafe accents + cleaner readability
   ========================================================= */

:root{
  --bg-top: #2b2d57;
  --bg-mid: #17182f;
  --bg-bottom: #08080d;

  --surface-dark: rgba(20,20,35,0.82);
  --surface-dark-strong: rgba(14,14,26,0.92);
  --surface-dark-soft: rgba(28,28,46,0.76);

  --text-main: #f3f1f8;
  --text-soft: #d5d1e0;
  --text-muted: #a9a3b7;

  --accent-purple: #b06cff;
  --accent-purple-soft: #c995ff;
  --accent-purple-deep: #8d4ce6;

  --accent-gold: #f0c77a;
  --accent-gold-deep: #dca85a;

  --accent-blue: #67b4ff;

  --border-soft: rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.12);

  --shadow-soft: rgba(0,0,0,0.30);
  --shadow-mid: rgba(0,0,0,0.42);
  --shadow-glow: rgba(176,108,255,0.18);

  --glass-blur: blur(12px);
}


/* =========================================================
   1) BASE / GLOBAL RESET
   ========================================================= */

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -20%, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 92%);
  color:var(--text-main);

  /* Because navbar is fixed at the top */
  padding-top:40px;
}


/* =========================================================
   1.5) GLOBAL READABILITY / TYPOGRAPHY SAFETY
   - Keeps light text readable and consistent across sections
   - Prevents random faded text from looking too weak
   ========================================================= */

h1, h2, h3, h4, h5, h6{
  color:var(--text-main);
}

p, li{
  color:var(--text-soft);
}

strong{
  color:#ffffff;
}

a{
  color:inherit;
}

.section{
  padding:40px 20px;
  text-align:center;
}


/* =========================================================
   2) HERO HEADER (Global banner header)
   - Sparkles are absolutely positioned inside this header
   ========================================================= */

header{
  position:relative;   /* Needed for sparkles */
  overflow:hidden;

  text-align:center;
  padding:120px 20px;
  background:
    linear-gradient(rgba(5,5,10,0.46), rgba(8,8,14,0.68)),
    url("assets/images/banners/magic-banner.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  border-bottom:1px solid rgba(255,255,255,0.07);
  box-shadow:inset 0 -40px 80px rgba(0,0,0,0.22);
}

header h1{
  font-size:40px;
  margin-bottom:10px;
  text-shadow:0 2px 14px rgba(0,0,0,0.40);
}

header p{
  color:#f1eaf9;
  text-shadow:0 1px 10px rgba(0,0,0,0.35);
  letter-spacing:0.2px;
}


/* =========================================================
   3) HEADER SPARKLES (Used by JS)
   ========================================================= */

.sparkle{
  position:absolute;
  width:3px;
  height:3px;
  background:white;
  border-radius:50%;
  opacity:0.4;
  animation:twinkle 4s infinite ease-in-out;
}

@keyframes twinkle{
  0%   { opacity:0.1; transform:scale(1); }
  50%  { opacity:0.6; transform:scale(1.4); }
  100% { opacity:0.1; transform:scale(1); }
}


/* =========================================================
   4) PRIMARY CTA BUTTON (Message Us)
   ========================================================= */

.message-btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 25px;
  background:linear-gradient(135deg, var(--accent-purple-deep), var(--accent-purple));
  color:white;
  text-decoration:none;
  border-radius:30px;
  font-weight:bold;
  letter-spacing:0.2px;
  border:1px solid rgba(255,255,255,0.10);
  animation:pulse 2.4s infinite;
  transition:0.3s ease;
  box-shadow:
    0 10px 24px rgba(141,76,230,0.30),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

@keyframes pulse{
  0%   { box-shadow:0 0 0 0 rgba(176,108,255,0.45); }
  70%  { box-shadow:0 0 0 18px rgba(176,108,255,0); }
  100% { box-shadow:0 0 0 0 rgba(176,108,255,0); }
}

.message-btn:hover{
  transform:scale(1.05) translateY(-1px);
}


/* =========================================================
   5) NAVBAR (Glass + accent + interactions)
   ========================================================= */

.navbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;

  background:rgba(12,12,20,0.68);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  border-bottom:1px solid var(--border-soft);
  transition:0.3s ease;
  margin:0;
}

/* Shadow when scrolling (added via JS) */
.navbar.scrolled{
  background:rgba(10,10,18,0.90);
  box-shadow:0 10px 25px rgba(0,0,0,0.34);
}

/* Animated top accent line */
.nav-accent{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,var(--accent-purple),var(--accent-gold),var(--accent-blue),var(--accent-purple-soft));
  background-size:400% 400%;
  animation:gradientMove 8s linear infinite;
}

@keyframes gradientMove{
  0%   { background-position:0% 50%; }
  100% { background-position:100% 50%; }
}

/* Navbar layout container */
.nav-container{
  max-width:1200px;
  margin:auto;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  font-weight:bold;
  font-size:18px;
  letter-spacing:1px;
  color:#ffffff;

  position:relative; /* Needed for shimmer */
}

/* Logo shimmer effect overlay */
.nav-container::after{
  content:"";
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.28),transparent);
  animation:shine 5s infinite;
  pointer-events:none;
}

@keyframes shine{
  0%   { left:-75%; }
  50%  { left:125%; }
  100% { left:125%; }
}

/* Navbar links */
.nav-links{
  display:flex;
  gap:30px;
}

.nav-link{
  position:relative;
  text-decoration:none;
  color:#d8cff0;
  font-weight:500;
  transition:0.3s ease;
}

.nav-link:hover{
  color:#ffffff;
}

/* Underline animation */
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background:linear-gradient(90deg,var(--accent-purple),var(--accent-gold));
  transition:0.3s ease;
  border-radius:999px;
}

.nav-link:hover::after{
  width:100%;
}

/* Active page highlight */
.nav-link.active{
  color:#ffffff;
}

.nav-link.active::after{
  width:100%;
}


/* =========================================================
   6) NAVBAR LOGO IMAGE
   ========================================================= */

.nav-container img{
  height:40px;
  width:auto;
  display:block;
  transition:0.3s ease;
}

.nav-container img:hover{
  transform:scale(1.05);
  filter:drop-shadow(0 0 8px rgba(255,255,255,0.26));
}


/* =========================================================
   7) HAMBURGER MENU (Mobile)
   - Animation to X when .open is added by JS
   ========================================================= */

.hamburger{
  display:none;                 /* shown only on mobile via media query */
  flex-direction:column;
  gap:6px;
  cursor:pointer;
  z-index:1100;
}

.hamburger span{
  width:28px;
  height:3px;
  background:white;
  border-radius:3px;
  transition:all 0.3s ease;
}

/* Animate into X */
.hamburger.open span:nth-child(1){
  transform:rotate(45deg) translate(6px,6px);
}

.hamburger.open span:nth-child(2){
  opacity:0;
}

.hamburger.open span:nth-child(3){
  transform:rotate(-45deg) translate(6px,-6px);
}

.hamburger.open span{
  background:var(--accent-purple-soft);
  box-shadow:0 0 8px rgba(201,149,255,0.60);
}

/* Mobile navbar behavior */
@media (max-width:768px){
  .nav-links{
    position:absolute;
    top:70px;
    right:0;
    width:100%;
    background:rgba(10,10,18,0.96);
    flex-direction:column;
    text-align:center;
    gap:20px;
    padding:20px 0;

    max-height:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;

    transition:0.4s ease;
    border-bottom:1px solid var(--border-soft);
    box-shadow:0 14px 26px rgba(0,0,0,0.34);
  }

  .nav-links.active{
    max-height:300px;
    opacity:1;
    pointer-events:auto;
  }

  .hamburger{
    display:flex;
  }
}




/* =========================================================
   8) MENU / PRODUCTS GRID
   ========================================================= */

.products{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:35px;
  max-width:1200px;
  margin:auto;
}


/* =========================================================
   9) MENU / PRODUCT CARD
   ========================================================= */

.card{
  position:relative;
  background:
    linear-gradient(180deg, rgba(30,30,48,0.90), rgba(15,15,28,0.92));
  padding:20px;
  border-radius:18px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid var(--border-soft);
  transition:0.3s ease;
  overflow:hidden;
  box-shadow:
    0 14px 28px var(--shadow-soft),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

.card:hover{
  transform:translateY(-6px);
  border-color:rgba(240,199,122,0.18);
  box-shadow:
    0 18px 34px var(--shadow-mid),
    0 0 18px rgba(176,108,255,0.10);
}

/* Badge used ONLY for menu cards (do not reuse for stories) */
.badge{
  position:absolute;
  top:10px;
  left:10px;
  background:linear-gradient(135deg, #ff5f88, #ff2e63);
  color:white;
  padding:5px 10px;
  font-size:12px;
  border-radius:20px;
  box-shadow:0 8px 18px rgba(255,46,99,0.28);
}

.drink-img{
  width:140px;
  height:180px;
  object-fit:cover;
  border-radius:14px;
  transition:0.3s ease;
  box-shadow:0 10px 22px rgba(0,0,0,0.24);
}

.card:hover .drink-img{
  transform:translateY(-2px);
}

.price{
  font-weight:bold;
  margin-top:8px;
  color:var(--accent-gold);
  letter-spacing:0.2px;
}

.desc{
  font-size:14px;
  color:var(--text-muted);
  margin-top:6px;
  min-height:40px;
  line-height:1.5;
}


/* =========================================================
   10) GLITTER ANIMATION (Used on menu cards)
   ========================================================= */

.glitter{
  position:absolute;
  width:6px;
  height:6px;
  background:white;
  border-radius:50%;
  animation:floatUp 2s linear forwards;
}

@keyframes floatUp{
  from{ transform:translateY(0); opacity:1; }
  to{ transform:translateY(-80px); opacity:0; }
}


/* =========================================================
   11) PACKAGES SECTION
   ========================================================= */

.package-section{
  margin:40px auto;
  max-width:800px;
  text-align:center;
}

.package-section h2{
  margin-bottom:18px;
}

.package-card{
  background:
    linear-gradient(180deg, rgba(30,30,48,0.90), rgba(15,15,28,0.92));
  padding:20px;
  margin:15px;
  border-radius:16px;
  border:1px solid var(--border-soft);
  transition:0.4s ease;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.26),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

.package-card h3{
  margin-top:0;
  margin-bottom:8px;
}

.package-card p{
  color:var(--text-soft);
}

.package-card:hover{
  transform:scale(1.05);
  border-color:rgba(240,199,122,0.18);
  box-shadow:
    0 0 24px rgba(176,108,255,0.16),
    0 18px 34px rgba(0,0,0,0.34);
}


/* =========================================================
   12) MAP / IFRAME
   - Wrapped in a premium dark card for better section framing
   ========================================================= */

.map-section{
  margin:60px 0;
  padding:0 20px;
  display:flex;
  justify-content:center;
}

.map-card{
  width:100%;
  max-width:1100px;

  padding:26px 24px 24px;
  border-radius:22px;

  background:
    linear-gradient(180deg, rgba(30,30,48,0.90), rgba(12,12,22,0.94));

  border:1px solid var(--border-mid);

  box-shadow:
    0 16px 34px rgba(0,0,0,0.36),
    0 0 22px rgba(176,108,255,0.08);

  text-align:center;

  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.map-card h2{
  margin:0 0 18px;
  color:#ffffff;
}

.map-card iframe{
  width:100%;
  height:350px;
  border:none;
  border-radius:16px;
  box-shadow:0 14px 28px rgba(0,0,0,0.30);
}

/* =========================================================
   13) SHARE BUTTON (Facebook)
   - Kept distinct, but tuned to match the premium palette better
   ========================================================= */

.share-btn{
  display:inline-block;
  margin-top:15px;
  padding:10px 20px;
  background:linear-gradient(135deg, #2f7de9, #67b4ff);
  color:white;
  text-decoration:none;
  border-radius:30px;
  font-weight:bold;
  border:1px solid rgba(255,255,255,0.08);
  transition:0.3s ease;
  box-shadow:0 10px 22px rgba(47,125,233,0.24);
}

.share-btn:hover{
  transform:scale(1.05) translateY(-1px);
  box-shadow:0 0 15px rgba(103,180,255,0.34);
}

/* =========================================================
   FIX: Before You Visit alignment + responsive safety
========================================================= */

.section {
  display: flex;
  justify-content: center;
  padding: 0 16px; /* prevents edge overflow on mobile */
  box-sizing: border-box;
}

.about-card {
  width: 100%;
  max-width: 900px; /* same feel as other cards */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Optional: tighten spacing consistency */
.section + .section {
  margin-top: 40px;
}

/* Mobile safety (extra protection) */
@media (max-width: 768px) {
  .section {
    padding: 0 14px;
  }

  .about-card {
    max-width: 100%;
  }
}

/* =========================================================
   FIX: Products section intro alignment
========================================================= */

.products-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.products-section-intro {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.products-section-intro h2 {
  margin-bottom: 12px;
}

.products-section-intro p {
  margin: 0;
}

.products {
  width: 100%;
}

/* Mobile safety */
@media (max-width: 768px) {
  .products-section {
    padding: 0 14px;
  }

  .products-section-intro {
    margin-bottom: 22px;
  }
}

/* =========================================================
   15) ABOUT SECTION (Premium Dark Cafe Card)
   ========================================================= */

.about-section{
  display:flex;
  justify-content:center;
  padding:60px 20px;
}

.about-card{
  max-width:820px;
  width:100%;

  padding:30px 28px;

  border-radius:20px;

  /* Premium dark glass card */
  background:
    linear-gradient(180deg, rgba(30,30,48,0.90), rgba(12,12,22,0.92));

  border:1px solid var(--border-mid);

  box-shadow:
    0 16px 34px rgba(0,0,0,0.36),
    0 0 22px rgba(176,108,255,0.08);

  text-align:center;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-card h2{
  margin-bottom:14px;
  font-size:22px;
  color:#ffffff;
}

.about-intro{
  max-width:680px;
  margin:0 auto 20px;
  color:var(--text-soft);
  line-height:1.7;
}

.about-list{
  list-style:none;
  padding:0;
  margin:0 auto 20px;

  color:var(--text-soft);
  line-height:1.8;
}

.about-list li{
  margin:4px 0;
}

.about-tagline{
  margin-top:14px;
  font-weight:bold;

  color:var(--accent-gold); /* warm cafe highlight */

  letter-spacing:0.3px;
}
/* =========================================================
   FIX APPEND: Force "Our Sparkling Drinks" intro above products
   - Keeps intro centered on top
   - Prevents side-by-side layout with product grid
   - Safe override only
   ========================================================= */

.products-section{
  display:block !important;
  max-width:1200px;
  margin:0 auto;
  padding:40px 16px !important;
  box-sizing:border-box;
  text-align:center;
}

.products-section .products-section-intro{
  display:block !important;
  width:100%;
  max-width:780px;
  margin:0 auto 28px;
  text-align:center;
}

.products-section .products-section-intro h2{
  display:block !important;
  width:100%;
  margin:0 0 12px;
  text-align:center;
}

.products-section .products-section-intro p{
  display:block !important;
  width:100%;
  margin:0 auto;
  text-align:center;
  max-width:780px;
}

.products-section .products{
  width:100%;
  margin:0 auto;
}

/* Neutralize old flex behavior only for the products section */
.section.products-section{
  justify-content:initial !important;
  align-items:initial !important;
}

/* Extra protection in case old direct-child section styles interfere */
.products-section > h2,
.products-section > p{
  width:100% !important;
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Mobile safety */
@media (max-width:768px){
  .products-section{
    padding:32px 14px !important;
  }

  .products-section .products-section-intro{
    margin:0 auto 22px;
  }

  .products-section .products-section-intro p{
    max-width:100%;
  }
}


/* =========================================================
   14) FOOTER
   ========================================================= */

footer{
  text-align:center;
  padding:40px 20px;
  margin-top:60px;
  background:rgba(10,10,18,0.92);
  color:var(--text-muted);
  border-top:1px solid var(--border-soft);
}

footer a{
  color:var(--accent-purple-soft);
  text-decoration:none;
  font-weight:bold;
}


/* =========================================================
   16) OPTIONAL SMALL POLISH
   - Keeps spacing and readability nicer on smaller screens
   ========================================================= */

@media (max-width:768px){
  header{
    padding:100px 18px;
  }

  header h1{
    font-size:34px;
  }

  .about-card{
    padding:24px 20px;
  }

  .card,
  .package-card{
    border-radius:16px;
  }
}
