@font-face {
  font-family: "Kaushan Script";
  src: url("../fonts/kaushan-script-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --primary: #f2ca50; /* Gold */
  --primary-deep: #b7892a;
  --secondary-container: #d11f1f; /* Heritage Red */
  --secondary-dark: #8f0f14;
  --background: #121411;
  --on-background: #e3e3de;
  --on-surface: #e3e3de;
  --on-error: #ffffff;
  --surface: #080807;
  --surface-variant: #333532;
  --surface-container-lowest: #050605;
  --surface-container: #1e201d;
  --outline: rgba(242, 202, 80, 0.2);
  --outline-variant: rgba(242, 202, 80, 0.1);

  /* Spacing */
  --margin-desktop: 70px;
  --margin-mobile: 20px;
  --section-gap: 74px;
  --section-gap-mobile: 64px;

  /* Decorative Assets */
  --bg-frame: url("../image/bg.jpg");
  --zuzi-sprite: url("../image/zuzi.png");
}

body {
  background-color: var(--background);
  color: var(--on-background);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* Typography precision */
.font-display-lg {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 400;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .font-display-lg {
    font-size: 48px;
  }
}

.font-headline-lg {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
}

@media (max-width: 767px) {
  .font-headline-lg {
    font-size: 32px;
  }
}

.font-headline-md {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
}

.font-label-md {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.font-body-lg {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.font-body-md {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
}

.fill-icon {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* Custom Utilities */
.px-margin {
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .px-margin {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.py-section-gap {
  padding-top: var(--section-gap-mobile);
  padding-bottom: var(--section-gap-mobile);
}

@media (min-width: 768px) {
  .py-section-gap {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
  }
}

/* Color Utilities */
.text-primary {
  color: var(--primary) !important;
}
.text-secondary-container {
  color: var(--secondary-container) !important;
}
.text-on-surface {
  color: var(--on-surface) !important;
}
.text-on-error {
  color: var(--on-error) !important;
}

/* Navigation */
.navbar-custom {
  background-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.3s ease;
  z-index: 1000;
  min-height: 104px;
}

.navbar-custom.shadow-sm {
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 78px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
}

.navbar-custom.shadow-sm .brand-seal {
  width: 45px;
  height: 45px;
}

.navbar-custom.shadow-sm .brand-seal span {
  font-size: 24px;
}

.navbar-custom.shadow-sm .brand-copy .font-headline-md {
  font-size: 31px;
}

.navbar-custom.shadow-sm .brand-copy .font-label-md {
  font-size: 8px;
  margin-top: 5px;
}

.nav-link-custom {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 16px 0;
}

.nav-link-custom:hover {
  color: var(--primary);
}

.nav-link-custom.active {
  color: var(--secondary-container);
  border-bottom: 0;
}

.nav-link-custom.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 30px;
  height: 2px;
  background: var(--secondary-container);
  transform: translateX(-50%);
}

.brand-seal {
  width: 58px;
  height: 58px;
  border: 3px solid var(--secondary-container);
  background: transparent !important;
  color: var(--secondary-container);
}

.brand-seal span {
  color: var(--secondary-container) !important;
  font-family: serif;
  font-size: 31px;
  line-height: 1;
}

.brand-copy .font-headline-md {
  font-family: "Kaushan Script", cursive;
  font-size: 42px;
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-copy .font-label-md {
  color: var(--primary) !important;
  font-size: 11px;
  letter-spacing: 0.22em;
  margin-top: 8px;
}

.btn-order {
  background-color: var(--secondary-container);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 18px rgba(134, 0, 0, 0.28);
}

.btn-order:hover {
  background-color: #b91518;
  transform: translateY(-2px);
  color: #fff;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-left: calc(var(--margin-desktop) + 40px) !important;
}

.hero-subtitle {
  max-width: 360px;
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1.35;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
  height: 100%;
}

.swiper-slide img {
  filter: saturate(1.08) contrast(1.05);
}

/* Swiper Custom */
.swiper-pagination {
  bottom: 24px !important;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 1 !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 9px !important;
}

.swiper-pagination-bullet-active {
  background: var(--secondary-container) !important;
  opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  width: 38px !important;
  height: 38px !important;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 17px !important;
  font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Sections Background */
.bg-light-parchment {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1),
      rgba(244, 236, 222, 0.72) 16%,
      rgba(247, 242, 233, 0.92) 50%,
      rgba(244, 236, 222, 0.78) 86%,
      rgba(255, 255, 255, 0.08)
    ),
    #f6f1e8 !important;
}

.bg-surface {
  background-color: #070707 !important;
  background-image:
    radial-gradient(
      circle at center,
      rgba(242, 202, 80, 0.035) 0 1px,
      transparent 1px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 18px
    );
  background-size:
    22px 22px,
    100% 100%;
}

.bg-black {
  background-color: #000000 !important;
}

/* Gallery Styles */
.gallery-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease;
  border-radius: 7px !important;
  border-color: rgba(212, 175, 55, 0.48) !important;
  margin-bottom: 0 !important;
}

.gallery-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.92));
  pointer-events: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-card:hover .gallery-img-wrapper {
  border-color: var(--primary) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-card {
  position: relative;
}

.gallery-card h3,
.gallery-card p {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 2;
}

.gallery-card h3 {
  bottom: 43px;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.15;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.gallery-card h3 .text-primary {
  display: none;
}

.gallery-card p {
  bottom: 15px;
  color: var(--secondary-container) !important;
  font-size: 20px !important;
  line-height: 1;
  font-weight: 800;
}

.gallery-line {
  display: none;
}

#gallery .text-center.mb-5 {
  padding-top: 0 !important;
  margin-bottom: 34px !important;
}

#gallery h2 {
  color: #d8b75f !important;
  font-size: 37px;
}

#gallery .row {
  --bs-gutter-x: 32px;
  --bs-gutter-y: 26px;
  position: relative;
  z-index: 10;
}

/* Gallery Corners */
.gallery-corner {
  position: absolute;
  width: 62.5px;
  height: 62.5px;
  background-image: var(--bg-frame);
  background-size: 200% 200%; /* Perfectly slice into quarters */
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.2);
  mix-blend-mode: screen;
}

.corner-tl {
  top: 0;
  left: 0;
  background-position: 0 0;
}
.corner-tr {
  top: 0;
  right: 0;
  background-position: 100% 0;
}
.corner-bl {
  bottom: 0;
  left: 0;
  background-position: 0 100%;
}
.corner-br {
  bottom: 0;
  right: 0;
  background-position: 100% 100%;
}

@media (max-width: 767px) {
  .gallery-corner {
    width: 30px;
    height: 30px;
  }
}

#about {
  min-height: 414px;
}

#about,
#contact {
  background-color: rgb(243, 234, 215) !important;
  background-image: url("../image/section_bg_1.jpg") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

#about h2,
#gallery h2,
#contact h2 {
  font-family: "Kaushan Script", cursive !important;
  font-weight: 400;
}

#about h2 {
  font-size: 31px !important;
}

#about p {
  color: #1d1d1c !important;
  opacity: 0.9 !important;
}

.feature-grid {
  border-left: 0;
}

.feature-item {
  min-height: 228px;
  padding: 10px 22px;
  border-right: 0;
}

.feature-icon span {
  font-size: 58px !important;
}

.feature-item h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

#contact {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 500px;
}

#contact h2 {
  font-size: 31px !important;
}

#contact .row.g-4 {
  border-left: 0 !important;
  padding-left: 0 !important;
}

.border-md-end {
  border-right: 1px solid rgba(242, 202, 80, 0.15) !important;
}

#contact .col-md-6.col-xl-3:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.14);
}

#contact .material-symbols-outlined {
  font-size: 30px !important;
}

.map-card {
  height: 400px;
  border: 1px solid rgba(153, 144, 124, 0.45);
  border-radius: 5px;
}

.contact-label {
  font-size: 16px !important;
  letter-spacing: 0.15em !important;
}

.contact-text {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.contact-icon-lg {
  font-size: 36px !important;
}

@media (max-width: 767px) {
  .contact-icon-lg {
    font-size: 48px !important;
    margin-bottom: 8px;
  }
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative Bamboo */
.deco-zuzi {
  position: absolute;
  background-image: var(--zuzi-sprite);
  background-size: 300% 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.deco-about-l {
  width: 480px;
  height: 400px;
  left: -200px;
  bottom: -50px;
  opacity: 0.15;
  background-position: 0 0; /* Bamboo Bush */
}

.deco-about-r {
  width: 280px;
  height: 400px;
  right: -100px;
  opacity: 0.15;
  bottom: -50px;
  background-position: 50% 0; /* Stalks */
}

.deco-contact-l {
  width: 500px;
  opacity: 0.15;
  height: 350px;
  left: -180px;
  bottom: 0;
  background-position: 0 100%; /* Mountain */
}

.deco-contact-r {
  width: 550px;
  height: 450px;
  right: -200px;
  bottom: 0;
  background-position: 100% 100%; /* Mountain/Bamboo */
}

@media (max-width: 991px) {
  .deco-zuzi {
    opacity: 0.08;
    width: 150px;
    height: 150px;
  }
}

/* Contact Details Fix */
.contact-details-grid .col-md-6 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
  padding-top: 20px;
}

@media (min-width: 992px) {
  .contact-details-grid .col-lg-3 {
    border-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
  }
}
.social-icon {
  width: 39px;
  height: 39px;
  background: var(--secondary-container);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #a01218;
  transform: translateY(-3px);
  color: #fff;
}

.social-letter {
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.footer-custom {
  position: relative;
  padding-top: 60px !important;
  padding-bottom: 50px !important;
  overflow: hidden;
}

.footer-custom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.76)),
    url("../image/about-bg.png") center bottom / cover no-repeat;
  opacity: 0.75;
}

.footer-custom .brand-seal {
  width: 48px;
  height: 48px;
}

.footer-custom .brand-seal span {
  font-size: 26px;
}

.footer-custom .brand-copy .font-headline-md {
  font-size: 38px;
}

/* General Layout Fixes */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

@media (max-width: 991px) {
  .navbar-brand span {
    font-size: 20px !important;
  }
}

@media (max-width: 991px) {
  .hero-section {
    height: 100vh;
    min-height: 580px;
  }

  .navbar-custom {
    min-height: 86px;
  }

  #nav-links.mobile-nav-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 86px;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid rgba(242, 202, 80, 0.25);
    border-radius: 6px;
    gap: 20px !important;
    z-index: 1100;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  }

  #nav-links.mobile-nav-active .nav-item {
    width: 100%;
    text-align: center;
  }

  #nav-links.mobile-nav-active .nav-link-custom {
    padding: 10px 0;
    font-size: 16px;
    display: block;
  }

  .feature-grid {
    border-left: 0;
  }

  .border-md-end {
    border-right: 0 !important;
  }

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  #contact .col-md-6.col-xl-3:not(:last-child) {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  .brand-seal {
    width: 44px;
    height: 44px;
  }

  .brand-seal span {
    font-size: 24px !important;
  }

  .brand-copy .font-headline-md {
    font-size: 30px !important;
  }

  .brand-copy .font-label-md {
    font-size: 8px !important;
    letter-spacing: 0.15em;
  }

  .hero-content {
    padding-top: 82px;
    padding-left: var(--margin-mobile) !important;
    text-align: center;
  }

  .hero-content .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    font-size: 18px !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  #gallery h2 {
    font-size: 30px;
    letter-spacing: 0.12em !important;
  }

  #contact .d-flex.align-items-center.gap-3 {
    align-items: flex-start !important;
  }
}

/* Fixed Order Button */
.fixed-order-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background-color: var(--secondary-container);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  box-shadow: none;
  transition: none;
  border: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  text-align: center;
  line-height: 1.1;
  padding: 8px;
}

.fixed-order-btn:hover {
  background-color: var(--secondary-container);
  color: var(--primary);
}

.fixed-order-btn .btn-en {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

@media (max-width: 767px) {
  .fixed-order-btn {
    width: 70px;
    height: 70px;
  }
  .fixed-order-btn .btn-en {
    font-size: 10px;
  }
}
