/* ========================================
   Café Coco — style.css (mobile-fixed)
   ======================================== */

:root {
  --primary: #c4848b;
  --secondary: #00888c;
  --dark: #34252f;
  --accent: #244f26;
  --soft: #d19900;
  --white: #ffffff;
  --light: #f9f7f4;
  --gray: #666666;
  --font-main: 'Naiche', serif;
  --font-body: 'Lato', Arial, sans-serif;
}

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

@font-face {
  font-family: 'Naiche';
  src: url('../Fonts.woff/Naiche-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Naiche';
  src: url('../Fonts.woff/Naiche-Black.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Naiche';
  src: url('../Fonts.woff/Naiche-Black.woff') format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}

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

body {
  font-family: 'Naiche', serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
p { font-family: var(--font-body); font-weight: 400; }
h1,h2,h3,h4,h5,h6 { font-family: 'Naiche', serif; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  height: 80px;
  transition: all 0.3s;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar.scrolled {
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(52,37,47,0.12);
}

/* Logo always sits inside the bar: 80px bar → 64px logo, 60px bar → 48px logo */
.logo-container { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.logo-img { display: block; height: 64px; width: 64px; max-width: none; padding: 0; transition: height 0.3s, width 0.3s; }
.navbar.scrolled .logo-img { height: 48px; width: 48px; }

/* Desktop nav */
.desktop-nav { display: flex; align-items: center; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.language-toggle {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.language-toggle:hover { background: var(--secondary); color: var(--white); }

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
  align-items: center;
  gap: 12px;
}

/* Burger button — must be a real button so it's tappable */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block;
  flex-shrink: 0;
  height: 3px;
  width: 26px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.2s;
  pointer-events: none;
}
/* Bars are 3px tall with a 5px gap, so the outer bars move 8px to meet in the middle */
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Dropdown panel */
.dropdown-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  /* Hidden state: fully invisible and untappable, so it can't sit over the header */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: -1;
}
.dropdown-links.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}
.dropdown-links li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #f0ecea;
}
.dropdown-links li:last-child { border-bottom: none; }
.dropdown-links li a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}
.dropdown-links li a:hover { color: var(--primary); }

/* ============================================
   SECTIONS — base
   ============================================ */
section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { color: var(--primary); margin-bottom: 12px; }
.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 580px; margin: 0 auto; font-family: var(--font-body); }
.section-divider { width: 70px; height: 4px; background: var(--secondary); margin: 16px auto; border-radius: 2px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(52,37,47,0.68) 0%, rgba(36,79,38,0.48) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 1rem 1.5rem;
  max-width: 820px;
  width: 100%;
}
.hero-content h1 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 1rem; text-shadow: 2px 2px 6px rgba(0,0,0,0.3); }
.hero-content p { font-size: clamp(0.95rem, 2.5vw, 1.25rem); margin-bottom: 2rem; opacity: 0.92; font-family: var(--font-body); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2; color: var(--white);
  font-size: 0.9rem; opacity: 0.75;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions { padding: 40px 0 20px; background: linear-gradient(180deg, transparent 0%, rgba(196,132,139,0.06) 100%); }
.quick-actions .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-action-card {
  background: var(--white); border-radius: 16px; padding: 22px;
  box-shadow: 0 8px 24px rgba(52,37,47,0.08);
  display: flex; gap: 14px; align-items: flex-start;
}
.quick-action-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,136,140,0.1); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.quick-action-card h3 { color: var(--primary); margin-bottom: 6px; font-size: 1.05rem; }
.quick-action-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 8px; font-family: var(--font-body); }
.text-link { color: var(--accent); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body); }
.text-link:hover { color: var(--secondary); }

/* ============================================
   ABOUT
   ============================================ */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.about-image img { width: 100%; height: 380px; object-fit: cover; transition: transform 0.5s; }
.about-image:hover img { transform: scale(1.04); }
.about-text h3 { color: var(--accent); font-size: 1rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 2px; }
.about-text h2 { color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--gray); font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); line-height: 1.7; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.about-feature { display: flex; align-items: center; gap: 12px; }
.about-feature i { width: 44px; height: 44px; background: var(--light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; }
.about-feature span { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; }

/* ============================================
   DISCOVER / MENU CARDS
   ============================================ */
.discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.discover-card {
  display: block; background: var(--white); border-radius: 18px;
  overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.07); transition: all 0.3s;
}
.discover-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.13); }
.discover-card-image { height: 200px; overflow: hidden; }
.discover-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.discover-card:hover .discover-card-image img { transform: scale(1.05); }
.discover-card-content { padding: 22px; }
.discover-card-content h3 { color: var(--primary); margin-bottom: 8px; }
.discover-card-content p { color: var(--gray); font-size: 0.9rem; margin-bottom: 12px; font-family: var(--font-body); line-height: 1.6; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section { padding: 70px 0; background: var(--light); }
.reviews-average { text-align: center; margin-bottom: 36px; }
.reviews-rating-number { font-size: 3rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; }
.reviews-stars { font-size: 1.4rem; color: var(--soft); margin: 8px 0; letter-spacing: 3px; }
.reviews-total { font-size: 0.9rem; color: var(--gray); font-family: var(--font-body); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.review-card {
  background: var(--white); border-radius: 12px; padding: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-4px); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-author { font-weight: 700; color: var(--dark); font-size: 1rem; }
.review-rating { color: var(--soft); font-size: 0.88rem; letter-spacing: 1px; }
.review-text { color: var(--gray); font-size: 0.9rem; font-style: italic; line-height: 1.6; margin-bottom: 10px; font-family: var(--font-body); }
.review-date { font-size: 0.78rem; color: #aaa; font-family: var(--font-body); }
.reviews-more { grid-column: 1 / -1; text-align: center; margin-top: 8px; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-card {
  display: flex; gap: 16px; padding: 20px; background: var(--light);
  border-radius: 14px; margin-bottom: 14px; transition: all 0.3s;
}
.contact-card:hover { transform: translateX(8px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.contact-card-icon {
  width: 52px; height: 52px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem; flex-shrink: 0;
}
.contact-card-content h4 { color: var(--primary); margin-bottom: 4px; font-size: 0.95rem; }
.contact-card-content p, .contact-card-content a { color: var(--gray); font-family: var(--font-body); font-size: 0.9rem; }
.contact-card-content a:hover { color: var(--secondary); }
.contact-social { margin-top: 16px; }
.contact-social h4 { color: var(--primary); margin-bottom: 12px; font-size: 0.95rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 46px; height: 46px; background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all 0.3s;
}
.social-link:hover { background: var(--secondary); transform: translateY(-4px); }
.contact-map { border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.contact-map iframe { width: 100%; height: 420px; border: none; display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: inline-block; font-size: 1.2rem; font-weight: 800; }
.footer-brand p { opacity: 0.75; line-height: 1.7; font-family: var(--font-body); font-size: 0.9rem; }
.footer-links h4 { color: var(--secondary); margin-bottom: 16px; font-size: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { opacity: 0.75; font-family: var(--font-body); font-size: 0.9rem; transition: all 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--secondary); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.6; font-size: 0.85rem; font-family: var(--font-body); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all 0.3s; z-index: 998; border: none;
  box-shadow: 0 4px 16px rgba(36,79,38,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-4px); }

/* ============================================
   RESPONSIVE — tablet 992px
   ============================================ */
@media (max-width: 992px) {
  .about-content, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 28px; }
  .quick-actions .container { grid-template-columns: 1fr; gap: 16px; }
  .discover-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ============================================
   RESPONSIVE — mobile 768px
   ============================================ */
@media (max-width: 768px) {
  .navbar { height: 64px; }
  .navbar.scrolled { height: 54px; }

  .logo-img { height: 50px; width: 50px; }
  .navbar.scrolled .logo-img { height: 42px; width: 42px; }

  /* Hide desktop nav, show burger */
  .desktop-nav { display: none; }
  .mobile-menu { display: flex; }

  /* Dropdown visible only when .active */
  .dropdown-links { display: flex; }

  section { padding: 56px 0; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-buttons { gap: 0.75rem; }
  .hero-buttons .btn { padding: 10px 20px; font-size: 0.88rem; }

  .about-content { gap: 24px; }
  .about-image img { height: 260px; }
  .about-features { grid-template-columns: 1fr; }

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

  .contact-card:hover { transform: none; }

  .footer-content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-links ul { align-items: center; }

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

/* ============================================
   RESPONSIVE — small mobile 480px
   ============================================ */
@media (max-width: 480px) {
  .hero { min-height: 420px; }
  .hero-content h1 { font-size: 1.65rem; }

  .quick-action-card { flex-direction: column; gap: 10px; }

  .social-links { justify-content: center; }

  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }

  .btn { padding: 10px 22px; font-size: 0.85rem; }
}
