/*
Theme Name: Twenty Twenty-Five Child - Krishna Restaurant Group
Theme URI: https://indian.mondialwebsite.com/
Description: Krishna Restaurant Group homepage. Built with native Gutenberg/FSE blocks so IT can edit text, images, buttons, icons, navigation and block layout in Appearance > Editor.
Author: MondiaL
Template: twentytwentyfive
Version: 1.1.0
*/

:root {
  --kg-red: #9b0b19;
  --kg-blue: #17376b;
  --kg-yellow: #E1C498;
}
html { scroll-behavior: smooth; }
body .wp-site-blocks > * { margin-block-start: 0; }
html, body {
  overflow-x: hidden;
}
a { transition: 0.3s ease-out; }
a:hover { color: var(--kg-blue) }
a,
a:focus,
a:active,
a:focus-visible {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}
button:focus,
button:active,
button:focus-visible {
    outline: none !important;
}

/*HEADER*/
.kg-main-menu { gap: 3px 18px;}
.kg-main-menu a:hover { color: var(--kg-red) !important }
/*FOOTER*/

/*Breadcrumb*/
.custom-breadcrumbs * {
  color: #fff;
  margin-right: 6px;
  font-size: 14px;
}
.custom-breadcrumbs a:hover {
  color: var(--kg-yellow);
}

/*HOMEPAGE*/
/*banner*/
.kg-handwritten-1 {
  text-shadow: 0 2px 5px #000;
  transform: rotate(-5deg);
}
.kg-handwritten-2 {
  font-size: 24px;
  transform: rotate(-1deg);
}
.kg-handwritten {
  font-family: "Brush Script MT", "Segoe Script", cursive;
}

.kg-home-blocks-1 .wp-block-image {
  position: relative;
}
.kg-home-blocks-1 .wp-block-image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 50px;
  height: 50px;
  background: url('images/play.png') no-repeat center center / contain;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
  transition: border-color 0.5s ease;
}

.kg-home-blocks-1 .wp-block-image:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #fff;
  filter: brightness(1.2); 
}

.wp-block-columns.kg-home-blocks-1,
.wp-block-columns.kg-home-blocks-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.wp-block-columns.kg-home-blocks-3 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 900px) {
  .wp-block-columns.kg-home-blocks-1,
  .wp-block-columns.kg-home-blocks-2 { grid-template-columns: repeat(2, 1fr); }
  .wp-block-columns.kg-home-blocks-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .wp-block-columns.kg-home-blocks-1,
  .wp-block-columns.kg-home-blocks-2 { grid-template-columns: repeat(1, 1fr); }
  .wp-block-columns.kg-home-blocks-3 { grid-template-columns: repeat(2, 1fr); }
}
.kg-home-blocks-4 >.wp-block-column >.wp-block-group,
.kg-home-blocks-4 >.wp-block-column >.wp-block-group>.wp-block-columns  { height: 100% ; }



/*CUSTOM*/
/*responsive*/
@media (min-width: 601px) { 
  .dom { display: none !important; } 
  .tacd { text-align: center;}
}
@media (max-width: 600px) { 
  .talm { text-align: left !important; }
  .dod { display: none !important; } 
}

/* Cấu hình căn chỉnh chung cho nút */
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  border-radius: 10px;
  z-index: 1;
  transition: color 0.4s ease, box-shadow 0.3s ease;
}

/* Lớp nền gold đè phủ rộng hơn nút 2px để che triệt để viền đỏ mép dưới */
.wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: -0.5px; /* Mở rộng 2px ra cả 4 hướng để phủ kín các góc bo */
  background: linear-gradient(90deg, #eddbc0, #DCBB89);
  border-radius: inherit; /* Khớp góc bo tuyệt đối */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s ease;
  z-index: -1;
}
/* Hiệu ứng Hover: Mở rộng vùng hiển thị nền gold */
.wp-block-button__link:hover {
  color: #000000 !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}
.wp-block-button__link:hover::before {
  clip-path: inset(0 0 0 0);
}
/* Mặc định: Mũi tên chỉ qua phải */
.wp-block-button__link::after {
  content: "→";
  display: inline-block;
  flex-shrink: 0;
}
.kg-wa-btn .wp-block-button__link,
.kg-tvc-btn .wp-block-button__link {
  box-shadow: inset 0 0 0 1px #aaaaaa;
}
.kg-tvc-btn .wp-block-button__link:hover,
.kg-wa-btn .wp-block-button__link:hover {
  box-shadow: inset 0 0 0 1px #aaaaaa, 0 1px 5px rgba(0, 0, 0, 0.25);
}
.kg-wa-btn .wp-block-button__link::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url('images/whatsapp.png') no-repeat center / contain;
}

/* 3. Khi có class .kg-tvc-btn (hiện hình TVC) */
.kg-tvc-btn .wp-block-button__link::after {
  content: "";
  width: 25px;
  height: 25px;
  background: url('images/play.png') no-repeat center / contain;
}

ul.wp-block-list {
  list-style: none;
}
ul.wp-block-list li {
  position: relative;
  padding-left: 20px;
}
ul.wp-block-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: #c00000;
  font-weight: bold;
  flex-shrink: 0;
}

/*slide in effect*/
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
img.slide-in-right {
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, 
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
