/* ============================================
   MISK COFFEE — Global Stylesheet
   Brand: Blue #1d4f91 · Yellow #fccd00 · Cream #f1f1e6
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1d4f91;
  --yellow: #fccd00;
  --cream: #f1f1e6;
  --dark: #14355f;
  --white: #ffffff;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--blue);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  max-width: 620px;
}

.accent-font, .caveat-note, .custom-note {
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(241,241,230,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(29,79,145,0.08);
  padding: 0.9rem 0;
}

.nav-container, .navbar-container, .container.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo, .navbar-logo, .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--blue);
  letter-spacing: -0.03em;
}

.nav-menu, .nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link, .nav-item {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

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

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

.nav-cta {
  background: var(--blue) !important;
  color: var(--cream) !important;
  padding: 0.65rem 1.6rem !important;
  border-radius: 100px !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29,79,145,0.25);
}

/* Hamburger */
.hamburger, .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span, .nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: var(--cream);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(29,79,145,0.3);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--blue);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(252,205,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--cream);
}

/* ========================================
   HERO (Homepage)
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem clamp(1.5rem, 4vw, 4rem) 4rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--yellow);
  margin-bottom: 1rem;
  display: inline-block;
  font-weight: 700;
}

.hero-heading { margin-bottom: 1.5rem; }

.hero-heading .highlight,
.hero h1 .highlight {
  color: var(--yellow);
}

.hero-subtext {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-blob {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 65%;
  background: var(--yellow);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  opacity: 0.12;
  z-index: 1;
}

/* ========================================
   PAGE HERO (Inner pages)
   ======================================== */
.page-hero, .hero-menu {
  padding: clamp(9rem, 14vw, 12rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-label, .page-hero .section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 1rem;
  display: inline-block;
}

.page-hero h1, .hero-menu h1 { margin-bottom: 1rem; }
.page-hero p, .hero-menu p { opacity: 0.7; }

/* ========================================
   SECTION CONTAINERS & LABELS
   ======================================== */
.section-container, .container, .page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

section, .what-we-do, .event-types, .stats-section,
.origin-story, .beliefs, .how-we-work, .menu-section,
.seasonal-section, .extras-section, .booking-form-section,
.contact-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-label.blue { color: var(--blue); }

.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2rem, 3vw, 3rem);
  max-width: 600px;
}

/* ========================================
   TWO-COLUMN LAYOUTS
   ======================================== */
.what-we-do-grid, .origin-grid, .two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.what-we-do-image {
    align-self: start;
    position: sticky;
    top: 120px;
}
.what-we-do-content p, .origin-text p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  opacity: 0.8;
  line-height: 1.75;
}

/* Image Placeholders */
.image-placeholder, .origin-image, .img-placeholder {
    background: transparent;
    border-radius: 0;
    aspect-ratio: unset;
    display: block;
    overflow: visible;
}

.origin-image {
    background: transparent;
    border-radius: 0;
    min-height: unset;
    display: block;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
}

.placeholder-text {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--cream);
  opacity: 0.6;
}

/* ========================================
   EVENT CARDS GRID
   ======================================== */
.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s var(--ease);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(29,79,145,0.1);
}

.event-icon {
  width: 56px;
  height: 56px;
  background: rgba(252,205,0,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.event-card h3 { margin-bottom: 0.75rem; }
.event-card p { opacity: 0.7; font-size: 0.95rem; }

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  background: var(--blue);
  color: var(--cream);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--yellow);
  color: var(--blue);
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}

.cta-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.cta-subtext {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  opacity: 0.8;
  margin: 0 auto 2rem;
  max-width: 520px;
}

.cta-section .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(29,79,145,0.35);
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee-section {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(29,79,145,0.08);
  border-bottom: 1px solid rgba(29,79,145,0.08);
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
}

.marquee-item {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  white-space: nowrap;
  opacity: 0.35;
  padding: 0 0.5rem;
}

.marquee-item::after {
  content: '·';
  margin-left: 3rem;
  color: var(--yellow);
  font-weight: 700;
}

/* ========================================
   BELIEFS / VALUES (About page)
   ======================================== */
.beliefs {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.beliefs-grid {
  display: grid;
  gap: 3rem;
  max-width: 700px;
}

.belief-block h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.belief-block p {
  opacity: 0.75;
  line-height: 1.75;
}

/* ========================================
   HOW WE WORK / PROCESS (About page)
   ======================================== */
.how-we-work {
  background: var(--blue);
  color: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.process-step {
  position: relative;
}

.process-step .step-number,
.process-step span:first-child {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--yellow);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.process-step h3, .process-step h4 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.process-step p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.65;
}

/* ========================================
   MENU PAGE
   ======================================== */
.hero.hero-menu {
  min-height: auto;
  padding: clamp(9rem, 14vw, 12rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
}

.menu-section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.menu-column h3 {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--yellow);
  margin-bottom: 1.5rem;
}

.menu-list { margin-top: 0.5rem; }

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(29,79,145,0.08);
  font-weight: 500;
  font-size: 1.05rem;
}

.menu-item:last-child { border-bottom: none; }

/* Seasonal Section */
.seasonal-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.seasonal-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.seasonal-section p {
  opacity: 0.8;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.custom-note, .caveat-note {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--yellow);
  margin-top: 1.5rem;
  font-weight: 700;
}

/* Extras Section */
.extras-section {
  background: var(--blue);
  color: var(--cream);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.extra-item h4, .extra-item h3 {
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.extra-item p {
  font-size: 0.92rem;
  opacity: 0.65;
  line-height: 1.65;
}

/* ========================================
   BOOKING FORM (Book page)
   ======================================== */
.booking-form, .contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(29,79,145,0.12);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--blue);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Info sidebar (book page) */
.info-sidebar, .column-right {
  padding: 2rem;
}

.info-sidebar h3, .column-right h3 {
  margin-bottom: 1.5rem;
}

.steps { margin-bottom: 2rem; }

.step {
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.step h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Contact page specifics */
.contact-details, .contact-info {
  margin-top: 1.5rem;
}

.detail-item {
  margin-bottom: 1.25rem;
}

.detail-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  opacity: 0.5;
}

.detail-item p, .detail-item a {
  font-size: 1.05rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--blue);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-heading, .footer h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-column:first-child .footer-heading {
  font-size: 1.8rem;
}

.footer-description {
  font-size: 0.9rem;
  opacity: 0.55;
  margin-top: 0.5rem;
  max-width: 280px;
}

.footer-column p {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.92rem;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 0;
  border-top: 1px solid rgba(241,241,230,0.1);
  font-size: 0.82rem;
  opacity: 0.4;
  text-align: center;
}

.social-links, .footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.social-links a, .footer-social a {
  opacity: 0.7;
  transition: opacity 0.3s;
  font-size: 0.92rem;
}

.social-links a:hover, .footer-social a:hover {
  opacity: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .nav-menu, .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: 2px solid rgba(29,79,145,0.06);
  }

  .nav-menu.active, .nav-links.open {
    display: flex;
  }

  .hamburger, .nav-toggle {
    display: flex;
  }

  .what-we-do-grid, .origin-grid, .two-column {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-blob { display: none; }

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

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .event-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }
}
