/* VIEW TRANSITIONS */
@view-transition {
  navigation: auto;
}

/* Shared coffee image: grows from card to hero */
::view-transition-group(coffee-1-img),
::view-transition-group(coffee-2-img),
::view-transition-group(coffee-3-img) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

/* Rest of the page fades out quickly, new page fades in */
::view-transition-old(root) {
  animation-duration: 0.2s;
  animation-timing-function: ease-in;
}

::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: ease-out;
}

/* RESET */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noticia Text", serif;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a0a00;
}

main {
  flex: 1;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #040404;
  color: white;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  }
  

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 1;
}

.hero h1 {
  font-size: 28px;
  color: #ececec;
}

.hero p {
  font-size: 12px;
  color: #ececec;
}

.hero button {
  padding: 10px 22px;
  font-size: 13px;
}

/* SECTION A */
.section-a {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-top: 0px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}

.section-a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.card {
  flex: 1;
  padding: 15px;
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.card h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.card p {
  font-size: 16px;
  font-weight: 200;
  color: white;
}

.card img {
  width: 100%;
  margin: 10px 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.card img:hover {
  transform: scale(1.25);
}




.text-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-btn:hover {
  opacity: 0.7;
}


/* FOOTER */
.footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  background: #0c0c0c;

}

.footer a {
  color: white;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 14px 20px;
    border-bottom: 1px solid #2a2a2a;
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .section-a {
    flex-direction: column;
  }

  .hero-overlay {
    padding: 40px 20px;
  }
}

@media (min-width: 1024px) {
  .section-a {
    padding: 60px 80px;
    gap: 0px;
  }

  .hero h1 {
    font-size: 64px;
  }
}

@media (min-width: 1440px) {
  .section-a {
    padding: 80px 140px;
    gap: 60px;
  }
}

/* PAGE-SPECIFIC THEMES */
.page-light {
  background-color: #001A29;
}

.page-light .coffee-content h1,
.page-light .coffee-content p,
.page-light .detail-block h3,
.page-light .detail-block p {
  color: #FFADAD;
}

.page-medium {
  background-color: #2B0700;
}

.page-medium .coffee-content h1,
.page-medium .coffee-content p,
.page-medium .detail-block h3,
.page-medium .detail-block p {
  color: #FF5D11;
}

.page-dark {
  background-color: #16000F;
}

.page-dark .coffee-content h1,
.page-dark .coffee-content p,
.page-dark .detail-block h3,
.page-dark .detail-block p {
  color: #B28EA9;
}

/* LOGO */
.logo img {
  height: 40px;
}

/* COFFEE DETAIL PAGES */
.coffee-hero-section {
  background-color: #000;
  width: 100%;
  display: flex;
  justify-content: center;
}

.coffee-hero {
  width: 100%;
  height: 60vh;
  object-fit: contain;
  display: block;
}

.coffee-hero-1 { view-transition-name: coffee-1-img; }
.coffee-hero-2 { view-transition-name: coffee-2-img; }
.coffee-hero-3 { view-transition-name: coffee-3-img; }

.coffee-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 40px;
  color: white;
}

.coffee-content h1 {
  font-size: 42px;
  color: #faeeda;
  margin-bottom: 20px;
  font-weight: 700;
}

.coffee-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #f0997b;
  margin-bottom: 20px;
}

.coffee-details {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.detail-block {
  flex: 1;
  border-top: 1px solid #4e2300;
  padding-top: 16px;
}

.detail-block h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0997b;
  margin-bottom: 8px;
}

.detail-block p {
  font-size: 15px;
  color: #faeeda;
  margin: 0;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #61050c;
  color: #faeeda;
  border: 2px solid #4e2300;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.back-btn:hover {
  background: #4e2300;
}

@media (max-width: 768px) {
  .coffee-content {
    padding: 0 20px;
    margin: 40px auto;
  }

  .coffee-content h1 {
    font-size: 28px;
  }

  .coffee-details {
    flex-direction: column;
    gap: 20px;
  }
}