/* 
========================================================================================

                                    CODE BỞI NGUYỄN HOÀNG BẢO

========================================================================================
*/

/* 
=================================== DÙNG CHỦ ĐỀ CHUNG ==================================
*/

:root {
  /* MÀU CHỦ ĐẠO */
  --primary: #4b2c20;
  --accent: #d4a373;
  --bg: #fdf8f5;
  --text: #2d2424;
  --white: #ffffff;

  /* Light mode */
  --bg: #fdfcfb;
  --text: #2c1b12;
  --navbar: rgba(255, 255, 255, 0.9);
  --card: #ffffff;

  /* Coffee accent */
  --accent-dark: #b08968;

  /* Fonts */
  --font-heading: "Playfair Display", serif;
  --font-body: "Montserrat", sans-serif;
}

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

/* ================================== NỀN TỐI ==================================  */
body.dark {
  --bg: #121212;
  --text: #f5f5f5;
  --navbar: rgba(75, 44, 32, 0.95);
  --card: #1e1e1e;
  .menu-title,
  .menu-section h3 {
    color: var(--accent);
  }
}

body {
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.navbar {
  background: var(--navbar);
}

.card,
.product-item {
  background: var(--card);
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(15deg);
}

/* 
========================================== PHẦN HEADER ==================================
*/
.header {
  position: sticky; /* cuộn xuống */
  top: 0;
  z-index: 999;
  background: var(--primary);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  transition: 0.4s ease;
}

.logo:hover img {
  transform: rotate(8deg) scale(1.05);
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.7);
}

/* THANH ĐIỀU HƯỚNG */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8%;
  background: rgba(75, 44, 32, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* Gạch chân chạy */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Khi scroll */
.header.scrolled {
  background-color: var(
    --primary-color
  ); /* Sử dụng đúng tên biến đã khai báo ở :root */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Đổ bóng dùng rgba để chỉnh độ mờ cho đẹp */
  padding: 10px 5%; /* Thu gọn header lại một chút khi cuộn cho tinh tế */
  transition: all 0.4s ease; /* Giúp hiệu ứng biến đổi mượt mà */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  color: var(--white);
  font-size: 14px;
}

.icon-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

.icon-btn.cart {
  font-size: 18px;
  padding: 6px 12px;
}

.header.scrolled {
  background: rgba(75, 44, 32, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================== PHẦN THÂN ================================== */

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* ========================================== PHẦN FOOTER ================================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 15px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links a {
  display: inline-block;
  margin: 0 15px 10px 0;
  font-size: 14px;
  border: 1px solid var(--white);
  padding: 8px 18px;
  border-radius: 20px;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* CĂN CHỈNH KÍCH THƯỚC PHÙ HỢP VỚI CẢ MOBILE */

/* ===== NÚT HAMBURGER (ẨN TRÊN DESKTOP) ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 992px) {
  .header-container {
    padding: 10px 15px;
  }

  .logo img {
    width: 60px;
    height: 60px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .menu-card img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  /* HEADER */
  .logo span {
    display: none;
  }

  .logo img {
    width: 45px;
    height: 45px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Nav overlay mobile */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(75, 44, 32, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav.active .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.active .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav.active .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav.active .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links a {
    font-size: 22px;
    padding: 18px 30px;
    display: block;
    letter-spacing: 3px;
  }

  .menu-toggle.active i::before {
    content: "\f00d";
  }

  .menu-toggle {
    z-index: 9999;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .icon-btn span:first-of-type {
    display: none;
  }

  .icon-btn.cart {
    font-size: 16px;
    padding: 6px 8px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  /* MENU CONTENT */
  .menu-container {
    margin: 25px auto;
    padding: 0 12px;
  }

  .menu-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .menu-card {
    padding: 10px;
  }

  .menu-card img {
    height: 200px;
    border-radius: 8px;
  }

  .menu-card h4 {
    font-size: 14px;
    margin: 8px 0 3px;
  }

  .menu-card p {
    font-size: 12px;
  }

  .price {
    font-size: 13px;
  }

  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .footer-col {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .menu-card img {
    height: 250px;
  }

  .menu-card h4 {
    font-size: 16px;
  }

  .menu-card p {
    font-size: 13px;
  }

  .menu-title {
    font-size: 20px;
  }

  .header-actions {
    gap: 5px;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  .icon-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

.menu-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

body.dark .menu-container {
  background: var(--dark-page-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body.dark .menu-title,
body.dark .section-title,
body.dark .menu-card h4,
body.dark .price {
  color: #f0d7bd;
}

body.dark .menu-card {
  background: linear-gradient(165deg, #1f1f25 0%, #18181d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.dark .menu-card p {
  color: rgba(255, 255, 255, 0.76);
}

/* =========================================
   TIÊU ĐỀ MENU (MENU GIBOR COFFEE)
========================================= */
.menu-title {
  text-align: center;
  font-size: 32px;
  color: #5a2d1a;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* =========================================
   MỖI NHÓM MENU (CÀ PHÊ / TRÀ / ...)
========================================= */
.menu-section {
  margin-bottom: 50px; /* Tách các nhóm menu ra */
}

/* =========================================
   TIÊU ĐỀ NHÓM (☕ CÀ PHÊ, 🍃 TRÀ...)
========================================= */
.section-title {
  font-size: 24px;
  color: #8b5e3c;
  margin-bottom: 20px;
  border-left: 5px solid #c9a063;
  padding-left: 12px;
}

/* =========================================
   GRID CHỨA CÁC MÓN (CARD)
========================================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

/* =========================================
   CARD SẢN PHẨM
========================================= */
.menu-card {
  background: #fff7f0;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(194, 123, 67, 0.16);
  transform: translateY(0) translateZ(0);
  transition:
    transform 460ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 460ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 320ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    background-color 320ms
      var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
  position: relative;
  will-change: transform, box-shadow;
  isolation: isolate;
}

.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(194, 123, 67, 0.08) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms
    var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

.menu-card > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   ẢNH SẢN PHẨM
========================================= */
.menu-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  will-change: transform, filter;
  transition:
    transform 700ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 420ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 420ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

/* =========================================
   TÊN SẢN PHẨM
========================================= */
.menu-card h4 {
  margin: 12px 0 5px;
  color: #5a2d1a;
  font-size: 18px;
  transition: color 300ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

/* =========================================
   MÔ TẢ NGẮN
========================================= */
.menu-card p {
  font-size: 14px;
  color: #777;
  transition: color 300ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

/* =========================================
   GIÁ SẢN PHẨM
========================================= */
.price {
  display: inline-block;
  margin-top: 8px;
  font-weight: bold;
  color: #c27b43;
  transition:
    color 300ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 300ms var(--motion-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (hover: hover) and (pointer: fine) {
  .menu-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 18px 36px rgba(58, 34, 22, 0.2);
    border-color: rgba(194, 123, 67, 0.36);
  }

  .menu-card:hover::after {
    opacity: 1;
  }

  .menu-card:hover img {
    transform: translateZ(0) scale(1.06);
    filter: saturate(1.08) contrast(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .menu-card:hover h4 {
    color: #4a2b1c;
  }

  .menu-card:hover p {
    color: #664a36;
  }

  .menu-card:hover .price {
    color: #ad6b34;
    transform: translateY(-1px);
  }

  body.dark .menu-card:hover {
    border-color: rgba(240, 215, 189, 0.42);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  }

  body.dark .menu-card:hover img {
    filter: saturate(1.08) brightness(1.05) contrast(1.02);
  }

  body.dark .menu-card:hover h4 {
    color: #ffe2c6;
  }

  body.dark .menu-card:hover p {
    color: rgba(255, 255, 255, 0.9);
  }

  body.dark .menu-card:hover .price {
    color: #ffd2a8;
  }
}

.menu-card:active {
  transform: translateY(-3px) scale(0.998);
}

/* Nhãn dán best seller */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff9f1c, #ff5722);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transform: rotate(-8deg);

  opacity: 1;
  visibility: visible;

  animation: bestSellerPulse 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.badge .icon {
  font-size: 14px;
  display: inline-block;
  animation: fireWiggle 1.9s ease-in-out infinite;
}

/* Animation Best Seller */
@keyframes bestSellerPulse {
  0% {
    transform: rotate(-8deg) scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: rotate(-8deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.42);
  }
  100% {
    transform: rotate(-8deg) scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  }
}

/* ANIMATION CHO IC0N*/
@keyframes fireWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}
/* 
========================================================================================

                                KẾT THÚC CODE BỞI NGUYỄN HOÀNG BẢO

========================================================================================
*/

/* ===== HEADER SYNC (desktop/tablet) ===== */
@media (min-width: 769px) {
  .header {
    background: var(--header-surface);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(14px) saturate(140%);
  }

  .header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(212, 163, 115, 0.55) 50%,
      transparent 100%
    );
    pointer-events: none;
  }

  .header-container {
    max-width: 1240px;
    min-height: 80px;
    padding: 10px 22px;
    gap: 22px;
    flex-wrap: nowrap;
    transition:
      min-height 0.35s ease,
      padding 0.35s ease;
  }

  .header .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    flex-shrink: 0;
    white-space: nowrap;
    font-size: inherit;
  }

  .header .logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1.5px solid rgba(212, 163, 115, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  }

  .header .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .header .logo-text strong {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    letter-spacing: 0.8px;
  }

  .header .logo-text small {
    margin-top: 2px;
    font-size: 0.67rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
  }

  .nav {
    flex: 1;
    min-width: 0;
  }

  .nav-links {
    justify-content: center;
    gap: 6px;
  }

  .nav-links a {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    text-transform: none;
    background: transparent;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-links a.is-active,
  .nav-links a[aria-current="page"] {
    color: var(--primary);
    background: var(--accent);
    box-shadow: 0 6px 16px rgba(212, 163, 115, 0.32);
  }

  .header.scrolled {
    background: var(--header-surface-scrolled);
    border-bottom-color: var(--header-border-strong);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  }

  .header.scrolled .header-container {
    min-height: 74px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-actions {
    gap: 9px;
  }

  .icon-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--header-border);
    background: var(--header-action-bg);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
  }

  .icon-btn i {
    font-size: 0.84rem;
  }

  .icon-btn:hover {
    background: var(--header-action-bg-hover);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
  }

  .icon-btn.auth-btn.logged-in {
    border-color: rgba(212, 163, 115, 0.7);
    background: rgba(212, 163, 115, 0.2);
  }

  .icon-btn.cart {
    font-size: 0.82rem;
    padding-right: 10px;
  }

  .icon-btn.cart span:last-child {
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 0.72rem;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--header-border);
    border-radius: 12px;
    background: var(--header-action-bg);
    color: var(--white);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .theme-toggle:hover {
    background: var(--header-action-bg-hover);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
  }

  .menu-toggle {
    background: var(--header-action-bg);
    border: 1px solid var(--header-border);
    border-radius: 12px;
    color: var(--white);
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .header-container {
    min-height: 72px;
    padding: 10px 15px;
    gap: 12px;
  }

  .header .logo img {
    width: 48px;
    height: 48px;
  }

  .header .logo-text small {
    display: none;
  }

  .nav-links a {
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .icon-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ===== FOOTER SYNC (desktop/tablet) ===== */
@media (min-width: 769px) {
  .footer {
    position: relative;
    margin-top: 72px;
    padding: 72px 0 24px;
    color: #f3ece6;
    background:
      radial-gradient(
        circle at 10% 10%,
        rgba(212, 163, 115, 0.2),
        transparent 42%
      ),
      radial-gradient(
        circle at 90% 0%,
        rgba(255, 255, 255, 0.08),
        transparent 28%
      ),
      linear-gradient(160deg, #25160f 0%, #3a2418 45%, #4b2c20 100%);
    overflow: hidden;
  }

  .footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(212, 163, 115, 0.7) 50%,
      transparent 100%
    );
  }

  .footer-container {
    max-width: 1240px;
    margin: auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .footer-brand-link img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
    border: 1.5px solid rgba(212, 163, 115, 0.7);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  }

  .footer-logo {
    font-family: var(--font-heading);
    color: #fff8f1;
    font-size: 1.42rem;
    margin-bottom: 2px;
  }

  .footer-brand-link p {
    font-size: 0.72rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
  }

  .footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
  }

  .footer-badges,
  .footer-links,
  .footer-contact,
  .footer-social-note {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
  }

  .footer-badges li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
  }

  .footer-badges i {
    color: var(--accent);
  }

  .footer-col h4 {
    margin-bottom: 16px;
    font-size: 0.96rem;
    color: #f8d7b7;
    text-transform: uppercase;
    letter-spacing: 1.4px;
  }

  .footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    transition: all 0.25s ease;
  }

  .footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
  }

  .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .footer-contact i {
    width: 14px;
    margin-top: 4px;
    color: var(--accent);
  }

  .footer-contact a {
    color: rgba(255, 255, 255, 0.88);
  }

  .footer-contact a:hover {
    color: var(--white);
  }

  .footer-branch-link {
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 163, 115, 0.62);
    color: #ffe8d2 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background: rgba(212, 163, 115, 0.14);
    transition: all 0.25s ease;
  }

  .footer-branch-link:hover {
    background: var(--accent);
    color: var(--primary) !important;
  }

  .footer-social-note li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .footer .social-links {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .footer .social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
  }

  .footer .social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
  }

  .footer-bottom {
    max-width: 1240px;
    margin: 36px auto 0;
    padding: 18px 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.74);
  }

  .footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
  }

  .footer-bottom-links a:hover {
    color: #fff;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}
