/* ============================================================
   The Morning Cafe — style.css
   Tông màu chủ đạo: nâu ấm / kem.
   → Muốn đổi tông màu, chỉ cần sửa biến ở :root bên dưới.
   ============================================================ */

/* ---------- Biến giao diện ---------- */
:root {
  --primary: #6f4e37;        /* nâu cà phê */
  --primary-dark: #4e3423;   /* nâu đậm (hover, footer) */
  --accent: #c08a5a;         /* caramel (giá, nhấn) */
  --bg: #faf6f0;             /* nền kem ấm */
  --surface: #ffffff;        /* nền thẻ/khối */
  --text: #2e241b;           /* màu chữ chính */
  --muted: #8a7663;          /* chữ phụ */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(78, 52, 35, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

/* ---------- Reset cơ bản ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); text-align: center; color: var(--primary-dark); }
.section-sub { text-align: center; color: var(--muted); margin: 10px auto 36px; max-width: 560px; }

/* ---------- Nút bấm ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(111, 78, 55, .35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-nav { padding: 9px 20px; font-size: .92rem; }

/* ---------- Điều hướng ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.nav.scrolled { background: rgba(250, 246, 240, .96); box-shadow: 0 2px 16px rgba(0, 0, 0, .08); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: #fff; transition: color .25s; }
.nav.scrolled .nav-logo { color: var(--primary-dark); }
.nav-toggle { display: block; background: none; border: none; font-size: 1.7rem; color: #fff; cursor: pointer; line-height: 1; }
.nav.scrolled .nav-toggle { color: var(--primary-dark); }

/* Menu mobile: ẩn/hiện bằng nút ☰ */
.nav-links {
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--surface); flex-direction: column; gap: 16px; padding: 22px;
  box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .3s ease;
  z-index: 49;
}
.nav-links.open { transform: translateY(0); }
.nav-links a:not(.btn) { color: var(--text); font-weight: 500; font-size: .98rem; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static; transform: none; background: none; box-shadow: none;
    flex-direction: row; padding: 0; gap: 22px; margin-left: auto;
  }
  .nav-links a:not(.btn) { color: #fff; transition: color .2s; }
  .nav.scrolled .nav-links a:not(.btn) { color: var(--text); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(92vh, 720px);
  min-height: 520px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; text-align: center;
  color: #fff;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 10, .5), rgba(30, 18, 10, .68)); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 14px; }
.hero-tagline { font-size: clamp(1.02rem, 2.5vw, 1.3rem); opacity: .93; max-width: 640px; margin: 0 auto 30px; }

/* ---------- Giới thiệu ---------- */
.about-grid { display: grid; gap: 34px; align-items: center; }
.about-img-wrap img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-text { color: var(--muted); margin-top: 14px; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Thực đơn ---------- */
.services-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.service-card {
  background: var(--bg); border: 1px solid rgba(111, 78, 55, .14);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { font-size: 2.1rem; margin-bottom: 10px; }
.service-card h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 6px; }
.service-card p { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.service-price { font-weight: 700; color: var(--accent); font-size: 1.08rem; }
@media (min-width: 560px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Thư viện ảnh ---------- */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; transition: transform .25s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }
@media (min-width: 820px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Liên hệ ---------- */
.contact-grid { display: grid; gap: 32px; margin-top: 34px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(78, 52, 35, .07);
}
.info-emoji { font-size: 1.15rem; line-height: 1.6; }
#hours-list { list-style: none; display: flex; flex-direction: column; gap: 4px; flex: 1; }
#hours-list li { display: flex; justify-content: space-between; gap: 16px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 260px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--surface); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.contact-form h3 { color: var(--primary-dark); margin-bottom: 4px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #e5d9cb;
  border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: #f4ebe1; text-align: center; padding: 26px 0; }
.footer-sub { opacity: .75; font-size: .9rem; margin-top: 4px; }

/* ---------- Nút nổi Zalo / Messenger ---------- */
.floating-buttons {
  position: fixed; right: 16px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
}
.float-btn:hover { transform: scale(1.08); }
.zalo-btn { background: #0068ff; font-size: .76rem; letter-spacing: .2px; }
.fb-btn { background: linear-gradient(45deg, #00b2ff, #006aff); }
