:root {
  --brand-red: #940012;
  --charcoal: #333;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}
.book-container {
  perspective: 1500px; /* Gives the 3D depth */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.book {
  width: 350px; /* Matches your card width */
  height: 600px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.page {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform-origin: left; /* Flips from the spine */
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  backface-visibility: hidden;
  cursor: pointer;
  padding: 20px;
  border-radius: 0 10px 10px 0; /* Rounded edges like a book */
}

/* The flipped state */
.page.flipped {
  transform: rotateY(-180deg);
}

/* The "Page" Container */
.menu-page {
  width: 100%;
  max-width: 450px;
  min-height: 800px;
  margin: 0 auto 40px auto;
  background-color: white;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Specific Card Backgrounds */
.page-cover {
  background-image: url("../img/Happy Puppy BC.png");
}
.page-sitting {
  background-image: url("../img/Happy Puppy BC2.png");
}
.page-logistics {
  background-image: url("../img/Happy Puppy BC3.png");
}

/* Content Placement */
.content-area {
  padding: 40px 25px;
  flex-grow: 1;
  background: rgba(
    255,
    255,
    255,
    0.85
  ); /* Keeps text readable over card patterns */
}

header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.logo {
  width: 60px;
}

h1 {
  font-family: "Merriweather", serif;
  color: var(--brand-red);
  font-size: 1.4rem;
  margin: 0;
}

/* Service Styling */
.category-block {
  margin-bottom: 25px;
  border-left: 3px solid var(--brand-red);
  padding-left: 12px;
}

.category-title {
  color: var(--brand-red);
  font-weight: bold;
  font-size: 1.1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 0.9rem;
}

.unit {
  font-size: 0.7rem;
  color: #888;
}

/* Buttons Anchored on the Yellow Wave */
.wave-actions {
  position: absolute;
  bottom: 50px; /* Positions exactly over the yellow area */
  width: 100%;
  text-align: center;
}

.holiday-btn {
  background: var(--brand-red);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-app-btn {
  background: var(--brand-red);
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Modal / Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 80%;
  max-width: 400px;
  padding: 25px;
  border-radius: 10px;
  border-left: 8px solid var(--brand-red);
  text-align: center;
}

.modal-close-action {
  margin-top: 15px;
  background: #eee;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#kahu-chat-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
}

#kahu-chat-trigger img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #f0c605; /* Your Brand Gold */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  object-fit: cover;
}

#kahu-chat-trigger:hover {
  transform: scale(1.1);
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  background-color: var(--brand-red);
  border-radius: 50%;
  border: 2px solid white;
}

/* Chat Window Styles */
#kahu-chat-window {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  height: 450px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}
/* Styling the individual message bubbles */
.bot-msg, .user-msg {
    padding: 12px 16px;
    margin: 8px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 85%;
    display: inline-block;
    clear: both;
}

/* Debbie's Bubbles */
.bot-msg {
    background-color: #f1f1f1;
    color: #333;
    float: left;
    border-bottom-left-radius: 4px;
    border-left: 4px solid #f0c605; /* Brand Gold */
}

/* User's Bubbles */
.user-msg {
    background-color: #940012; /* Brand Burgundy */
    color: white;
    float: right;
    border-bottom-right-radius: 4px;
}

/* Clearfix for the message container */
#chat-messages::after {
    content: "";
    clear: both;
    display: table;
}
.chat-header {
    background: #ffffff; /* Clean white background for the header */
    color: #940012; /* Burgundy text */
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f0c605; /* Your Brand Gold */
}

.chat-header img {
    width: 60px; /* Bigger logo as requested */
    height: auto;
}

.close-chat {
    background: none;
    border: none;
    color: #940012; /* Red 'X' as requested */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
/* Container for the input and button */
.chat-input-area {
    padding: 15px;
    background: #fdfcfb;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px; /* This creates the gap between the box and button */
    align-items: center;
}

/* The "Ask about..." Input Box */
#user-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px; /* Rounded pill shape */
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: #f0c605; /* Gold glow when typing */
}

/* The Branded Send Button */
#kahu-chat-window button[onclick="sendMessage()"] {
    background: #940012; /* Brand Burgundy */
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

#kahu-chat-window button[onclick="sendMessage()"]:hover {
    background: #b50016;
}

/* Anchors the menu to the right edge with a professional boutique feel */
.menu-trigger {
    position: fixed;
    top: 50%; /* Centers the tab vertically */
    right: 0; /* Sticks exactly to the browser edge */
    transform: translateY(-50%);
    z-index: 9999;
    background: #ffffff;
    
    /* 1. Taller, thinner shape for an app-like feel */
    padding: 30px 10px; 
    
    /* 2. Boutique Border: Thick Gold to match your brand */
    border-radius: 20px 0 0 20px; 
    border: 3px solid #f0c605; 
    border-right: none; 
    
    /* 3. Luxury Shadow: Adds depth so it pops off the screen */
    box-shadow: -6px 0 25px rgba(0,0,0,0.15);
    
    color: #940012; /* Happy Puppy Red */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

/* Designer Label styling for the word MENU */
.menu-trigger small {
    writing-mode: vertical-rl;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 4px; /* Wide spacing looks more expensive */
    margin-top: 10px;
    text-transform: uppercase;
}

/* Subtle interactive effect */
.menu-trigger:hover {
    padding-right: 15px;
    background-color: #fffdf5;
}
/* 1. This hides the menu until you click it */
.side-nav {
    height: 100%;
    width: 0; 
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    background-color: #940012; /* Your Brand Red */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

/* 2. This fixes the "Blue Links" and makes them Boutique White */
.nav-links a {
    padding: 20px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Merriweather', serif;
    color: white !important; /* Forces them to stay white, not blue */
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 3. The Close Button (X) */
.side-nav .closebtn {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 36px;
    color: white;
    text-decoration: none;
}


