/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Color Palette Matrix */
  --snc-cream: #F9F5E8;     /* Primary Canvas Base */
  --snc-espresso: #322017;  /* Primary Typography */
  --snc-terracotta: #B74635; /* Primary Accent */
  --snc-olive: #607340;     /* Secondary Accent */
  --snc-olive-light: #dfe3d9; /* Light Olive Background */
  --snc-taupe: #8F7B6E;     /* Muted Typography */
  --snc-ochre: #DFBA73;     /* Border & Matrix Rules */

  /* Font System */
  --font-primary: 'Montserrat', sans-serif;
}

/* Global Overrides */
html, body {
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  background-color: var(--snc-espresso);
  color: var(--snc-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-light-olive {
  background-color: var(--snc-olive-light) !important;
  color: var(--snc-espresso) !important;
}

/* Typography Hierarchy Rules */
.category-title {
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--snc-terracotta);
  margin-bottom: 1.5rem;
}

.menu-item-name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--snc-espresso);
  margin-bottom: 0.25rem;
}

.item-desc {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--snc-taupe);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.price-text {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--snc-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--snc-cream);
  letter-spacing: -0.02em;
}

a {
  color: var(--snc-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--snc-cream);
}

/* Layout Structure: Standard double rule frame */
.double-frame {
  border: 3px double var(--snc-ochre);
  padding: 2.5rem; /* Generous padding for international look */
  background-color: transparent;
}
@media (max-width: 768px) {
  .double-frame {
    padding: 1.5rem;
  }
}

/* Padding utilities */
.padded-section {
  padding: 6rem 1.5rem;
}
@media (max-width: 768px) {
  .padded-section {
    padding: 4rem 1rem;
  }
}

/* Navbar overrides */
.navbar {
  background-color: var(--snc-cream) !important;
  border-bottom: 1px solid rgba(223, 186, 115, 0.3); /* Subtle ochre border */
  padding: 0.2rem 0;
  transition: transform 0.3s ease-in-out, padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  transform: translateY(0);
  will-change: transform, padding;
}

.navbar.hide-nav {
  transform: translateY(-100%);
}

.navbar.scrolled {
  transform: translateY(0);
  padding: 0.25rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  background-color: var(--snc-cream);
  padding: 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.navbar-brand img {
  height: 85px;
  mix-blend-mode: multiply;
  transition: height 0.4s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 55px;
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 65px;
  }
  .navbar.scrolled .navbar-brand img {
    height: 45px;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--snc-cream);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-icon {
  font-size: 4rem;
  color: var(--snc-terracotta);
  animation: pulseCup 1.5s infinite ease-in-out;
}

@keyframes pulseCup {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.navbar-nav {
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--snc-espresso) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--snc-terracotta);
  transition: width 0.3s ease;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--snc-terracotta) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--snc-terracotta);
  border-color: var(--snc-terracotta);
  color: var(--snc-cream);
  font-weight: 700;
  border-radius: 0;
  padding: 1rem 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--snc-espresso);
  border-color: var(--snc-espresso);
}

.btn-outline-primary {
  color: var(--snc-terracotta);
  border-color: var(--snc-terracotta);
  background-color: transparent;
  font-weight: 600;
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  letter-spacing: 0.05em;
}

.btn-outline-primary:hover {
  background-color: var(--snc-terracotta);
  border-color: var(--snc-terracotta);
  color: var(--snc-cream);
}

.btn-outline-primary:hover .menu-item-name,
.btn-outline-primary:hover .item-desc,
.btn-outline-primary:hover i {
  color: var(--snc-cream) !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: calc(100vh  - 100px);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
    height: auto;
    padding: 6rem 0;
  }
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(50, 32, 23, 0.3), rgba(50, 32, 23, 0.8));
  z-index: -1;
}

.hero-content {
  color: var(--snc-cream);
  padding: 2rem;
  max-width: 900px;
}

.hero-card {
  background: rgba(30, 20, 14, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--snc-cream);
}

.hero-highlight {
  color: var(--snc-ochre) !important;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .offerings-divider::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 2px;
    height: 80%;
    background-color: var(--snc-ochre);
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero-card {
    padding: 2rem 1.25rem;
    margin: 1rem;
    width: auto;
  }
  .hero-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .hero-highlight {
    font-size: 0.9rem;
  }
}

.hero-content h1 {
  color: var(--snc-cream);
  font-size: 4.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

.hero-content p {
  color: var(--snc-cream);
  font-weight: 300;
}

/* Footer */
footer {
  background-color: var(--snc-cream);
  color: var(--snc-espresso);
  padding: 5rem 0 3rem;
  border-top: 5px solid var(--snc-terracotta);
}

footer h5 {
  color: var(--snc-espresso);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1rem;
}

footer .footer-logo-container {
  background-color: var(--snc-cream);
  padding: 1rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .footer-logo-container img {
  mix-blend-mode: multiply;
}

footer p {
  color: var(--snc-espresso) !important;
}

footer a {
  color: var(--snc-terracotta);
}

footer a:hover {
  color: var(--snc-espresso);
}

/* Allergy Alert */
.allergy-alert {
  background-color: var(--snc-cream);
  border: 1px solid var(--snc-terracotta); background: var(--snc-cream);
  color: var(--snc-terracotta);
  padding: 3rem;
  text-align: center;
}
@media (max-width: 768px) {
  .allergy-alert {
    padding: 1.5rem;
  }
}

.allergy-alert strong {
  font-family: var(--font-primary);
  font-weight: 700;
}

/* Images */
.img-fluid-rounded {
  border-radius: 0; 
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* --- Starbucks Style Overrides --- */

/* Notice Strip */
.notice-strip {
  background-color: var(--snc-espresso);
  color: var(--snc-cream);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.notice-strip .btn {
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

/* 50/50 Edge-to-Edge Split Sections */
.split-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.split-section > div {
  width: 100%;
}

@media (min-width: 768px) {
  .split-section > .split-content {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .split-section > .split-image {
    flex: 0 0 35%;
    max-width: 35%;
  }
}

@media (min-width: 992px) {
  .split-section > .split-content {
    flex: 0 0 55%;
    max-width: 55%;
  }
  .split-section > .split-image {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

@media (min-width: 1200px) {
  .split-section > .split-content {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .split-section > .split-image {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.split-image {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.split-image img {
  width: 100%;
  flex-grow: 1;
  object-fit: cover;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 10%;
  text-align: center;
}

@media (max-width: 768px) {
  .split-image {
    min-height: 250px;
  }
  .split-content {
    padding: 3rem 1.5rem;
  }
  .category-title {
    font-size: 1.75rem !important;
  }
}

/* Colored Blocks */
.bg-olive { background-color: var(--snc-olive) !important; color: var(--snc-cream) !important; }
.bg-espresso { background-color: var(--snc-espresso) !important; color: var(--snc-cream) !important; }
.bg-terracotta { background-color: var(--snc-terracotta) !important; color: var(--snc-cream) !important; }
.bg-ochre { background-color: var(--snc-ochre) !important; color: var(--snc-espresso) !important; }
.bg-cream { background-color: var(--snc-cream) !important; color: var(--snc-espresso) !important; }

/* Menu Sidebar & Grid */
.menu-sidebar {
  padding-right: 2rem;
}

.menu-sidebar h5 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.menu-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-sidebar li a {
  color: var(--snc-taupe);
  display: block;
  padding: 0.4rem 0;
  font-weight: 500;
}

.menu-sidebar li a:hover, .menu-sidebar li a.active {
  color: var(--snc-terracotta);
}

.circle-grid-item {
  text-align: center;
}

.circle-grid-item img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--snc-cream);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Circular Menu Images for menu.html */
.menu-circle-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3px solid var(--snc-espresso);
}

@media (max-width: 576px) {
  .menu-circle-img {
    width: 100px;
    height: 100px;
  }
}

/* Footer Grid */
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-list li {
  margin-bottom: 0.8rem;
}

/* Premium Animations & Hover Effects */

/* Button Hover Expansion */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Image Zoom in Split Sections */
.split-image {
  overflow: hidden;
}

.split-image img {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.split-section:hover .split-image img {
  transform: scale(1.05);
}

/* Menu Circular Images Hover */
.rounded-circle {
  transition: all 0.4s ease;
}

.rounded-circle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2) !important;
}

/* Interactive Cards & Forms */
.double-frame, .allergy-alert {
  transition: all 0.4s ease;
}

.double-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Footer Link Hover */
.footer-link-list a {
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-link-list a:hover {
  color: var(--snc-terracotta) !important;
  padding-left: 5px;
}.footer-link-list a {
  color: var(--snc-taupe);
}
.footer-link-list a:hover {
  color: var(--snc-cream);
}

/* Image Collage Section */
.collage-grid {
  display: grid;
  grid-template-columns: 50% 25% 25%;
  grid-template-rows: 50% 50%;
  height: 60vh;
  min-height: 500px;
  width: 100%;
}

.collage-item-wrapper {
  overflow: hidden;
}

.collage-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.collage-item-wrapper:hover .collage-item {
  transform: scale(1.05);
}

.collage-item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.collage-item-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.collage-item-3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.collage-item-4 {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

@media (max-width: 768px) {
  .collage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  
  .collage-item-1, .collage-item-2, .collage-item-3, .collage-item-4 {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 350px;
  }
}
