/* -------------------- RESET & BASE -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Playfair Display', serif;
  color: #fff4e6;
  background-color: #2e1b10;
  overflow-x: hidden;
}


/* -------------------- SIDEBAR MENU -------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100vh;
  background: linear-gradient(180deg, #e3b383, #ffe8cd);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.sidebar .logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1.6px;
  text-align: center;
  background: linear-gradient(120deg, #5b3a21, #a37450, #3d2415);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
  margin-bottom: 16px;
}

.sidebar .logo-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 30px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.sidebar nav a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #482c12;
  padding: 6px;
  border-left: 3px solid transparent;
  letter-spacing: 1.3px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.sidebar nav a:hover {
  color: #7a5533;
  border-left: 2px solid #7a5533;
}

.sidebar .socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sidebar .socials a {
  color: #6a4420;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.sidebar .socials a:hover {
  color: #b57842;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar nav a {
    border-left: 4px solid transparent;
  }

  .sidebar nav a:hover {
    border-left: 4px solid #ffd49b;
  }
}


/* -------------------- SIDEBAR TOGGLE -------------------- */
.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.sidebar-toggle span {
  width: 28px;
  height: 3px;
  background: #fcecd9;
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .sidebar-toggle {
    display: flex;
  }
}


/* -------------------- ABOUT CAFE SECTION -------------------- */
.about-cafe-section {
  position: relative;
  margin-left: 230px;
  background: url('images/bg/about-main.webp') no-repeat center center fixed;
  background-size: cover;
  padding: 100px 40px 180px;
  z-index: 10;
}

.about-cafe-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(40, 20, 10, 0.756);
  z-index: 1;
}

.about-cafe-section > .about-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 3rem;
  background: linear-gradient(120deg, #f9f2ea, #af8659);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.1rem;
  text-align: center;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-heading {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
    padding: 0 20px;
  }

  .about-heading {
    margin-bottom: 50px;
  }
}

.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  gap: 40px;
  flex-wrap: nowrap;
}

.about-block.reverse {
  flex-direction: row-reverse;
}

.about-block:nth-child(odd) .about-img {
  transform: translateY(10px);
}

.about-block:nth-child(even) .about-text {
  transform: translateY(10px);
}

.about-text {
  flex: 0.9;
  font-size: 1rem;
  color: #ffe4c2;
  padding: 24px;
  line-height: 1.7;
  letter-spacing: 1.2px;
}

.about-text h3 {
  font-size: 1.5rem;
  color: #ffd9a8;
  margin-bottom: 14px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.about-img {
  flex: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 120%;
  height: 70vh;
  max-height: 70vh;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .about-cafe-section {
    margin-left: 0;
    padding: 100px 16px 200px;
    background-attachment: scroll;
    background-size: cover;
    background-repeat: repeat-y;
    background-position: center top;
  }

  .about-block {
    flex-direction: column;
    text-align: center;
    min-height: unset;
    gap: 30px;
  }

  .about-block.reverse {
    flex-direction: column;
  }

  .about-text {
    max-width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .about-img img {
    width: 100%;
    height: auto;
    max-height: 400px;
  }

  .about-block:nth-child(odd) .about-img,
  .about-block:nth-child(even) .about-text {
    transform: none;
  }
}

@media (max-width: 768px) {
  .coffee-beans-fixed img {
    width: 200%;
  }
}


/* -------------------- SCROLL ANIMATIONS -------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-block {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.about-block.animate {
  animation: fadeInUp 0.8s ease forwards;
}


/* -------------------- TEAM SECTION -------------------- */
.team-light-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #fdc18597;
  padding: 100px 20px;
  overflow: hidden;
  margin-left: 230px;
}

.team-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: url('images/bg/bell.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.75;
  z-index: 0;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(63, 39, 26, 0.302);
  z-index: 1;
}

.team-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.team-heading {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  background: rgb(85, 45, 27);
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.team-heading h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: transparent;
  background: linear-gradient(120deg, #fce7c2, #f0c89c);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.team-heading p {
  font-size: 1.2rem;
  color: #fddaac;
  font-weight: 500;
  line-height: 1.6;
}

.team-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.team-block.reverse {
  flex-direction: row-reverse;
}

.team-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.team-text {
  font-family: 'Raleway', sans-serif;
  flex: 1;
  background: rgba(108, 58, 35, 0.705);
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #f9d4a4;
}

.team-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
  color: #ffd49b;
  text-decoration: underline;
  text-underline-offset: 12px;
}

.team-text h3 span {
  font-style: italic;
  color: #bd8550;
}

@media (max-width: 1024px) {
  .team-light-section {
    margin-left: 0;
    padding-top: 80px;
  }

  .team-block {
    flex-direction: column;
    text-align: center;
  }

  .team-block.reverse {
    flex-direction: column;
  }

  .team-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .team-text {
    padding: 20px;
  }

  .team-heading h2 {
    font-size: 2.2rem;
  }

  .team-heading p {
    font-size: 1rem;
  }

  .team-text h3 {
    font-size: 1.6rem;
  }

  
 .team-bg {
    background-image: url('images/bg/team-phone.jpeg');
    background-repeat: repeat-y;
    background-size: contain;
    background-position: center top;
    background-attachment: scroll; /* avoids background sticking or breaking */
  }
}

/* -------------------- SCROLL ANIMATIONS: TEAM -------------------- */
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Initial state before animation */
.team-block {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When animated */
.team-block.animate-left {
  animation: fadeSlideLeft 0.8s ease-out forwards;
}

.team-block.animate-right {
  animation: fadeSlideRight 0.8s ease-out forwards;
}




/* -------------------- TESTIMONIALS SECTION -------------------- */
.testimonials {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(90deg, #af714f 0%, rgb(42, 27, 17) 100%);
  color: #f5e9e1;
  margin-left: 230px;
  width: calc(100% - 230px);
  box-sizing: border-box;
}

.testimonial-slider {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.testimonial {
  display: none;
  animation: fade 0.5s ease-in-out;
}

.testimonial.active {
  display: block;
}

.reviewer-img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

blockquote {
  font-style: italic;
  margin: 0 auto 20px auto;
  max-width: 500px;
  color: #e2c0ae;
}

.author {
  font-weight: bold;
  color: #dd925d;
}

.slider-nav {
  margin-top: 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #5e3b2a;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #c9a38a;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile devices */
@media (max-width: 768px) {
  .testimonials {
    margin-left: 0;
    width: 100%;
    padding: 40px 15px;
  }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .testimonials {
    margin-left: 0;
    width: 100%;
    padding: 50px 20px;
  }
}




/* -------------------- DESKTOP SPACING (GLOBAL LAYOUT) -------------------- */
@media (min-width: 1025px) {
  .main-content {
    margin-right: 230px;
    margin-left: 0;
    padding: 0;
  }

  .team-light-section {
    margin-left: 230px;
    padding: 60px 0;
  }

  .team-container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
}
