/* ==========================================================================
   Country Cuisine - Global Responsive & Layout Alignment Stylesheet
   Ensures consistent alignment, spacing, layout, and fully responsive behavior
   across Desktop, Tablet, and Mobile for all 6 pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Global Resets & Anti-Overflow
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   02. Header & Navigation (Consistent on all 6 pages)
   -------------------------------------------------------------------------- */
.header-three .menu-area {
  padding: 16px 0;
}

.header-three .menu-logo-wrap img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* Main Desktop Menu */
.header-three .mainmenu > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-three .mainmenu > ul > li {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.header-three .mainmenu > ul > li > a {
  font-family: var(--ff-dm-sans, 'DM Sans', sans-serif);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-white, #ffffff);
  padding: 8px 4px;
  display: inline-block;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.header-three .mainmenu > ul > li > a:hover,
.header-three .mainmenu > ul > li.active > a {
  color: #c8a97e;
}

.header-three .mainmenu > ul > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: #c8a97e;
  border-radius: 2px;
}

/* Header Right Items (Phone + Mobile Hamburger) */
.header-three .menu-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-three .phone-call {
  font-family: var(--ff-dm-sans, 'DM Sans', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white, #ffffff);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.header-three .phone-call:hover {
  background-color: #c8a97e;
  border-color: #c8a97e;
  color: #ffffff;
}

/* Hamburger toggle visibility */
@media (min-width: 992px) {
  .header-three .header__right-hamburger {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .header-three .mainmenu {
    display: none !important;
  }
  .header-three .header__right-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
  }
  .header-three .header__right-hamburger .line {
    width: 26px;
    height: 2.5px;
    background-color: var(--color-white, #ffffff);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
}

@media (max-width: 575.98px) {
  .header-three .phone-call {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   03. Hero Section (index.html)
   -------------------------------------------------------------------------- */
.hero-three__content .content-info .hero-title {
  font-size: clamp(34px, 5.5vw, 76px) !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  margin-block: 20px 35px !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.hero-three__content .content-info .hero-title span {
  color: #08a44e !important;
  display: inline !important;
}

@media (max-width: 767.98px) {
  .hero-three.section {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  .hero-three__content .content-info .hero-title {
    font-size: 36px !important;
    line-height: 1.2 !important;
    margin-block: 15px 25px !important;
  }
  .hero-three__content .rotating-badge {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   04. About Section (index.html & about.html)
   -------------------------------------------------------------------------- */
.about-three__content .restaurant__header .section-title {
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
}

/* Fix for SplitText / gradient text clipping overlap bug */
@media (max-width: 991.98px) {
  .about-three__content .restaurant__header .section-title,
  .about-three__content .restaurant__header .section-title > div {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: initial !important;
    color: var(--primary-color, #1a2a1d) !important;
    display: block !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
  }
}

.about-three__content .about-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.about-three__content .about-info .info-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .about-three__wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .about-three__thumb {
    max-width: 100%;
    text-align: center;
  }
  .about-three__thumb img {
    max-height: 350px;
    width: auto;
    border-radius: 10px;
  }
  .about-three__content .about-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   05. Highlights Section (special-menu-four in index.html)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .special-menu-four__wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
  }
  .special-menu-four__wrapper .special-menu-four__list-wrapper {
    flex: 1 1 0 !important;
    max-width: none !important;
  }
  .special-menu-four__wrapper .special-menu-four__thumb {
    flex: 0 0 320px !important;
    max-width: 320px !important;
    align-self: center !important;
    text-align: center !important;
    order: 0 !important;
  }
  .special-menu-four__wrapper .special-menu-four__thumb img {
    max-height: 360px;
    width: auto;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .special-menu-four__wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
  }
  .special-menu-four__wrapper .special-menu-four__list-wrapper {
    flex: 1 1 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }
  .special-menu-four__wrapper .special-menu-four__thumb {
    order: 2 !important;
    flex: 0 0 100% !important;
    max-width: 320px !important;
    margin: 20px auto 0 auto !important;
    text-align: center !important;
  }
  .special-menu-four__wrapper .special-menu-four__thumb img {
    max-height: 300px;
    width: auto;
    border-radius: 12px;
  }
}

@media (max-width: 767.98px) {
  .special-menu-four__wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .special-menu-four__wrapper .special-menu-four__list-wrapper {
    max-width: 100% !important;
  }
  .special-menu-four__wrapper .special-menu-four__thumb {
    order: 2 !important;
    max-width: 260px !important;
    margin: 10px auto 0 auto !important;
    text-align: center !important;
  }
  .special-menu-four__wrapper .special-menu-four__thumb img {
    border-radius: 10px;
  }
}

/* --------------------------------------------------------------------------
   06. Why Choose Us Section (choose-us-three in index.html)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .choose-us-three__wrapper {
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }
  .choose-us-three__list {
    flex: 1 1 0 !important;
    max-width: 360px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }
  .choose-us-three__thumb {
    flex: 1 1 0 !important;
    max-width: 480px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    align-self: stretch !important;
    display: flex !important;
  }
  .choose-us-three__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 991.98px) {
  .choose-us-three__wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .choose-us-three__list {
    max-width: 100% !important;
    gap: 16px !important;
  }
  .choose-us-three__thumb {
    max-width: 100% !important;
    height: 280px !important;
    order: 2 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 10px 0 !important;
  }
  .choose-us-three__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

.choose-us-three__item {
  border-radius: 10px;
  border: 1px solid rgba(var(--primary-color-rgb, 26, 42, 29), 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   07. Popular Dishes Section (popular-dishes-three in index.html)
   -------------------------------------------------------------------------- */
/* Reset awkward artificial staggered offsets */
.popular-dishes-three__wrapper .popular-dishes-three__item:nth-child(n) {
  margin-top: 0 !important;
}

.popular-dishes-three__wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  align-items: start !important;
}

@media (max-width: 991.98px) {
  .popular-dishes-three__wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 575.98px) {
  .popular-dishes-three__wrapper {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
}

.popular-dishes-three__item {
  display: flex;
  flex-direction: column;
}

.popular-dishes-three__item .item-thumb {
  height: 280px !important;
  width: 100% !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.popular-dishes-three__item .item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease;
}

.popular-dishes-three__item:hover .item-thumb img {
  transform: scale(1.05);
}

.popular-dishes-three__item .item-content {
  margin-top: 16px !important;
}

.popular-dishes-three__item .item-content .item-title {
  font-size: 19px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px !important;
}

/* --------------------------------------------------------------------------
   08. Instagram Slider (Fix width: 100vw horizontal overflow)
   -------------------------------------------------------------------------- */
.instagram-three.section {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.instagram-three__wrapper {
  overflow: hidden;
  width: 100%;
}

/* --------------------------------------------------------------------------
   09. Menu Page (menu.html)
   -------------------------------------------------------------------------- */
.menu-three__wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease;
}

.menu-three__wrapper:hover {
  border-color: rgba(var(--primary-color-rgb, 26, 42, 29), 0.3);
}

@media (max-width: 991.98px) {
  .menu-three__wrapper,
  .menu-three__wrapper.v2 {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 16px !important;
  }
  .menu-three__wrapper .menu-three__thumb,
  .menu-three__wrapper.v2 .menu-three__thumb {
    order: 0 !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  .menu-three__wrapper .menu-three__list-wrapper,
  .menu-three__wrapper.v2 .menu-three__list-wrapper {
    order: 1 !important;
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   10. Contact Page (contact.html)
   -------------------------------------------------------------------------- */
.contact-map__map {
  width: 100% !important;
  min-height: 420px !important;
  height: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 0 !important;
}

.contact-map__map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  border: 0 !important;
}

.contact-map__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-map__item {
  border-radius: 10px;
  border: 1px solid rgba(var(--primary-color-rgb, 26, 42, 29), 0.1);
  padding: 18px 20px;
  background: #ffffff;
}

.contact-map__item .item-body p,
.contact-map__item .item-body p a {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.contact-form-no-inline-margin {
  margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  .contact-map__map {
    min-height: 350px !important;
    margin-top: 15px;
  }
}

/* --------------------------------------------------------------------------
   11. Reservations Page (reservations.html)
   -------------------------------------------------------------------------- */
.book-table-two__form .input-wrap {
  position: relative;
}

.book-table-two__form .input-wrap input,
.book-table-two__form .input-wrap select,
.book-table-two__form .input-wrap textarea {
  width: 100%;
  height: 52px;
  background: rgba(var(--primary-color-rgb, 26, 42, 29), 0.04);
  border: 1px solid rgba(var(--primary-color-rgb, 26, 42, 29), 0.15);
  border-radius: 6px;
  padding: 0 42px 0 16px;
  color: var(--primary-color, #1a2a1d);
  font-family: var(--ff-dm-sans, 'DM Sans', sans-serif);
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.book-table-two__form .input-wrap textarea {
  height: 110px;
  padding: 14px 16px;
}

.book-table-two__form .input-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.book-table-two__form .input-wrap .icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(var(--primary-color-rgb, 26, 42, 29), 0.5);
}

.opening-five__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.opening-five__thumb {
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
}

.opening-five__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  .opening-five__wrapper {
    flex-direction: column !important;
    text-align: center !important;
  }
  .opening-five__thumb {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   12. 404 Page (404.html)
   -------------------------------------------------------------------------- */
.error-common__content {
  padding: 80px 0;
  text-align: center;
}

.error-common__content .header-title {
  font-size: clamp(64px, 12vw, 130px) !important;
  line-height: 1 !important;
  font-family: var(--ff-boldonse, sans-serif) !important;
  color: var(--primary-color, #1a2a1d) !important;
  margin-bottom: 10px;
}

.error-common__content .content-title {
  font-size: clamp(20px, 3.5vw, 32px) !important;
  margin-bottom: 25px !important;
}

/* --------------------------------------------------------------------------
   13. Footer (Consistent across all 6 pages)
   -------------------------------------------------------------------------- */
.footer-three__main .main-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 40px;
}

@media (max-width: 991.98px) {
  .footer-three__main .main-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 575.98px) {
  .footer-three__main .main-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.footer-three__top .footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
}

.footer-three__top .footer-top-inner .social-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.footer-three__top .footer-top-inner .social-text:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-three__bottom .bottom-werappe {
  padding: 24px 0 45px 0 !important;
}

.footer-three__tricker {
  overflow: hidden;
  padding: 20px 0;
}

.footer-three__tricker .slide-track {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}

.footer-three__tricker .tricker-text {
  font-size: clamp(30px, 5vw, 60px);
  margin: 0;
}
