/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Montserrat:wght@400;700&display=swap');

:root {
  --bakery-brown: #7c4f1d;
  --bakery-cream: #f7e7ce;
  --bakery-gold: #f3d6b6;
  --bakery-dark: #4b2e05;
  --bakery-pink: #ffe6e6;
  --bakery-shadow: 0 4px 24px rgba(124, 79, 29, 0.08);
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bakery-cream);
  color: var(--bakery-dark);
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- Navbar --- */
.navbar.bakery-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100vw;
  background: transparent;
  box-shadow: none;
  z-index: 3000;
  transition: background 0.3s;
}
.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  position: relative;
}
.store-cursive {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: var(--bakery-brown);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-right: 2rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 4000;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: var(--bakery-brown);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: none;
}
.nav-link {
  color: var(--bakery-brown);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  background: none;
  outline: none;
  border: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(124, 79, 29, 0.04);
}
.nav-link:hover, .nav-link:focus {
  background: var(--bakery-gold);
  color: var(--bakery-dark);
  box-shadow: 0 4px 16px rgba(124, 79, 29, 0.10);
}
.nav-portfolio {
  background: var(--bakery-brown);
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.5rem;
}
.nav-portfolio:hover, .nav-portfolio:focus {
  background: var(--bakery-gold);
  color: var(--bakery-brown) !important;
}
@media (max-width: 900px) {
  .navbar-content {
    padding: 0.7rem 0.7rem;
  }
  .store-cursive {
    font-size: 1.5rem;
    margin-right: 1rem;
  }
}
@media (max-width: 768px) {
  .navbar-content {
    position: relative;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4001;
  }
  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(120deg, var(--bakery-cream) 60%, var(--bakery-pink) 100%);
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    z-index: 3500;
    padding: 6rem 1.5rem 2rem 1.5rem;
    gap: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    overflow-y: auto;
    align-items: flex-start;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}
@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
    width: auto;
    max-width: none;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}
body {
  padding-top: 70px !important;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('cookie.png') center center/cover no-repeat, linear-gradient(120deg, var(--bakery-cream) 60%, var(--bakery-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--bakery-shadow);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bakery-brown);
  background: rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 4px 32px rgba(124,79,29,0.10);
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp 1s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.bakery-name {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 1rem 0;
  line-height: 1.1;
  color: var(--bakery-brown);
  text-shadow: 0 4px 24px rgba(124,79,29,0.10);
}
.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 1.2rem;
  color: var(--bakery-dark);
}
.order-btn {
  background: var(--bakery-brown);
  border: 2px solid var(--bakery-brown);
  color: #fff;
  font-weight: 600;
  padding: 0.5em 1.5em;
  border-radius: 2em;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(124, 79, 29, 0.10);
}
.order-btn:hover {
  background: #fff;
  color: var(--bakery-brown);
  box-shadow: 0 4px 16px rgba(124, 79, 29, 0.18);
}

/* --- Menu Page --- */
.menu-main {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, var(--bakery-cream) 60%, var(--bakery-gold) 100%);
}
.menu-image {
  flex: 1.2;
  background: url('cookies.png') center center/cover no-repeat;
  filter: blur(2px) brightness(0.92);
  min-width: 0;
}
.menu-panel {
  flex: 1.5;
  background: #fff8f0;
  color: var(--bakery-dark);
  padding: 4.5rem 4vw 2.5rem 4vw;
  display: flex;
  flex-direction: column;
  min-width: 340px;
  max-width: 700px;
  box-sizing: border-box;
  box-shadow: 0 4px 32px rgba(124,79,29,0.07);
  border-radius: 24px 0 0 24px;
  margin-left: -40px;
}
.menu-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
  color: var(--bakery-brown);
}
.menu-sub {
  font-size: 1.1rem;
  color: var(--bakery-dark);
  margin-bottom: 2.5rem;
}
.menu-section {
  margin-bottom: 2.5rem;
}
.menu-section h2 {
  color: var(--bakery-brown);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}
.menu-item-group {
  margin-bottom: 1.7rem;
}
.menu-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--bakery-dark);
}
.menu-item-desc {
  font-size: 1rem;
  color: var(--bakery-brown);
  margin-bottom: 0.5rem;
}
.menu-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  color: var(--bakery-dark);
}
.menu-item-row span:last-child {
  font-weight: 500;
  min-width: 60px;
  text-align: right;
}

/* --- About Page --- */
.about-main {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: linear-gradient(120deg, var(--bakery-cream) 60%, var(--bakery-pink) 100%);
}
.about-hero {
  flex: 1.2;
  background: url('cook.png') center center/cover no-repeat;
  filter: blur(2px) brightness(0.92);
  min-width: 0;
}
.about-content {
  flex: 1.5;
  margin: 3.5rem 3vw 3.5rem 0;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  box-shadow: 0 4px 32px rgba(124,79,29,0.07);
  display: flex;
  flex-direction: column;
  background: #fff8f0;
  border-radius: 24px 0 0 24px;
  max-width: 600px;
}
.about-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bakery-brown);
  margin-bottom: 1.2rem;
}
.about-story {
  font-size: 1.15rem;
  color: var(--bakery-dark);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.about-side {
  background: var(--bakery-gold);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 12px rgba(124,79,29,0.07);
  margin-top: 1.5rem;
}
.about-side h2 {
  color: var(--bakery-brown);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.about-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--bakery-dark);
  font-size: 1.08rem;
}
.about-info a {
  color: var(--bakery-brown);
  text-decoration: underline;
}
.about-info .hours {
  margin-top: 0.5rem;
  width: 100%;
  border-collapse: collapse;
}
.about-info .hours td {
  padding: 0.2em 0.7em 0.2em 0;
  font-size: 1rem;
  color: var(--bakery-dark);
}

/* --- Contact Page --- */
.contact-main {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: linear-gradient(120deg, var(--bakery-cream) 60%, var(--bakery-pink) 100%);
}
.contact-hero {
  flex: 1.2;
  background: url('coo.png') center center/cover no-repeat;
  filter: blur(2px) brightness(0.92);
  min-width: 0;
}
.contact-content {
  flex: 1.5;
  margin: 3.5rem 3vw 3.5rem 0;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  box-shadow: 0 4px 32px rgba(124,79,29,0.07);
  display: flex;
  flex-direction: column;
  background: #fff8f0;
  border-radius: 24px 0 0 24px;
  max-width: 600px;
}
.contact-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bakery-brown);
  margin-bottom: 1.2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}
.contact-form label {
  color: var(--bakery-dark);
  font-size: 1.05rem;
  text-align: left;
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  padding: 0.7em 1em;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.85);
  color: var(--bakery-dark);
  margin-bottom: 0.2rem;
  outline: none;
  box-shadow: 0 1px 4px rgba(124,79,29,0.06);
  transition: box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 2px 8px rgba(124,79,29,0.13);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .order-btn {
  margin-top: 0.5rem;
  width: 100%;
}
.contact-side {
  background: var(--bakery-gold);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 12px rgba(124,79,29,0.07);
  margin-top: 1.5rem;
}
.contact-side h2 {
  color: var(--bakery-brown);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--bakery-dark);
  font-size: 1.08rem;
}
.contact-info a {
  color: var(--bakery-brown);
  text-decoration: underline;
}
.contact-info .hours {
  margin-top: 0.5rem;
  width: 100%;
  border-collapse: collapse;
}
.contact-info .hours td {
  padding: 0.2em 0.7em 0.2em 0;
  font-size: 1rem;
  color: var(--bakery-dark);
}

/* --- Scrollable Content Section (Index) --- */
.scroll-section {
  background: #fff8f0;
  padding: 4rem 0;
}
.scroll-item {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 3vw;
  gap: 3rem;
}
.scroll-item.reverse {
  flex-direction: row-reverse;
}
.scroll-image {
  flex: 1;
  min-width: 0;
}
.scroll-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(124,79,29,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.scroll-image img:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(124,79,29,0.18);
}
.scroll-text {
  flex: 1;
  padding: 1rem 0;
}
.scroll-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bakery-brown);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.scroll-text p {
  font-size: 1.1rem;
  color: var(--bakery-dark);
  line-height: 1.7;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .menu-panel, .about-content, .contact-content {
    margin-left: 0;
    border-radius: 24px;
  }
}
@media (max-width: 900px) {
  .menu-main, .about-main, .contact-main {
    flex-direction: column;
    min-height: auto;
  }
  .menu-image, .about-hero, .contact-hero {
    min-height: 180px;
    height: 30vw;
    filter: blur(1.5px) brightness(0.92);
  }
  .menu-panel, .about-content, .contact-content {
    padding: 2.2rem 2vw 1.5rem 2vw;
    min-width: 0;
    max-width: 100vw;
    border-radius: 24px;
    margin: 1.5rem 1vw 1.5rem 1vw;
  }
  .menu-title, .about-title, .contact-title {
    font-size: 2.2rem;
  }
  .scroll-section {
    padding: 2rem 0;
  }
  .scroll-item, .scroll-item.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2vw;
  }
  .scroll-image img {
    height: 250px;
  }
  .scroll-text h2 {
    font-size: 1.5rem;
  }
  .scroll-text p {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .menu-panel, .about-content, .contact-content {
    padding: 1.2rem 1vw 1rem 1vw;
  }
  .menu-title, .about-title, .contact-title {
    font-size: 1.4rem;
  }
  .scroll-item, .scroll-item.reverse {
    padding: 0 1vw;
    gap: 1.5rem;
  }
  .scroll-image img {
    height: 200px;
  }
  .scroll-text h2 {
    font-size: 1.3rem;
  }
}
@media (max-width: 480px) {
  .bakery-name {
    font-size: 2rem;
  }
  .hero-content {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .menu-panel, .about-content, .contact-content {
    padding: 1rem 0.8rem;
  }
  .menu-title, .about-title, .contact-title {
    font-size: 1.1rem;
  }
  .scroll-item, .scroll-item.reverse {
    padding: 0 1rem;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .scroll-image img {
    height: 140px;
  }
  .scroll-text h2 {
    font-size: 1.1rem;
  }
  .scroll-text p {
    font-size: 0.9rem;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
  .store-cursive {
    font-size: 2rem;
  }
  .hero-content {
    padding: 0 2rem;
  }
  .scroll-item {
    gap: 3rem;
  }
  .menu-panel, .about-content, .contact-content {
    padding: 3rem 2rem;
  }
}

@media (max-width: 600px) {
  .store-cursive {
    font-size: 1.8rem;
  }
  .bakery-name {
    font-size: 3rem;
    line-height: 1.2;
  }
  .hero-sub {
    font-size: 1.1rem;
    max-width: 95%;
    margin: 0 auto;
  }
  .order-btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
  }
  .scroll-item {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .scroll-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  .scroll-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .menu-item-title {
    font-size: 1.2rem;
  }
  .menu-item-desc {
    font-size: 0.9rem;
  }
  .about-story {
    font-size: 1rem;
    line-height: 1.6;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 1rem;
    border-radius: 12px;
  }
  .contact-form .order-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
  }
}

@media (max-width: 400px) {
  .store-cursive {
    font-size: 1.6rem;
  }
  .bakery-name {
    font-size: 2.5rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .order-btn {
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
  }
  .scroll-item {
    padding: 1.5rem 1rem;
  }
  .scroll-text h2 {
    font-size: 1.6rem;
  }
  .scroll-text p {
    font-size: 0.95rem;
  }
  .menu-panel, .about-content, .contact-content {
    padding: 1.5rem 1rem;
  }
  .menu-title, .about-title, .contact-title {
    font-size: 1.8rem;
  }
}

/* Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
  .order-btn:active,
  .nav-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  .scroll-image img:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }
  .hamburger {
    min-height: 44px;
    min-width: 44px;
  }
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  .scroll-image img {
    border-radius: 15px;
  }
  .menu-item-row {
    padding: 0.8rem 0;
  }
  .about-info {
    font-size: 0.9rem;
  }
  .contact-info {
    font-size: 0.9rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  
  .nav-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .order-btn,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .hamburger {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Prevent horizontal scrolling */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Optimize images and videos */
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* iOS-specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .hero-content,
  .menu-panel,
  .about-content,
  .contact-content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bakery-cream: #2a2a2a;
    --bakery-dark: #e5e5e5;
    --bakery-brown: #f3d6b6;
    --bakery-gold: #7c4f1d;
    --bakery-pink: #4a4a4a;
  }
}
