/********** Template CSS **********/
:root {
    --primary: #B78D65;
    --light: #F8F8F8;
    --dark: #252525;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 15px;
    bottom: 80px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: var(--primary);
    border-color: #777777;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    /*color: var(--light);*/
}



/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}


.pricing-header {
    background: linear-gradient(135deg, #D1AE92, #B20000); /* 背景漸變 */
    border-radius: 10px; /* 圓角 */
    color: #ffffff; /* 文字顏色 */
    padding: 20px;
}

.pricing-header .d-flex {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直對齊 */
    gap: 15px; /* 圖標和文字間距 */
}

.pricing-header i {
    font-size: 2rem; /* 調整圖標大小 */
}

.pricing-header h2 {
    color: #ffffff;
    font-size: 1.8rem; /* 調整文字大小 */
    margin: 0; /* 去掉默認的外邊距 */
    text-transform: uppercase; /* 全大寫 */
    letter-spacing: 1px; /* 增加字母間距 */
}

/* 統一表格樣式 */
.pricing-table {
    background-color: #ffffff; /* 背景色 */
    border: 2px solid #ddd; /* 淺灰色外框 */
    border-radius: 10px; /* 圓角外框 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 外框陰影 */
}

/* 表格 Header */
.pricing-table .text-center h2 {
    font-size: 1.5rem;
    /*color: #007bff; /* 主色調 */
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pricing-table .text-center h1 {
    font-size: 2.5rem;
    color: #dc3545; /* 醒目紅色 */
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* 添加文字陰影 */
}

/* 表格 Body */
.pricing-box {
    background-color: #eeeeee; /* 卡片背景色 */
    border-radius: 10px; /* 卡片圓角 */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* 卡片陰影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-box:hover {
    transform: translateY(-10px); /* Hover 時上移 */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); /* 增強陰影 */
}

.pricing-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

.pricing-box ul li:last-child {
    border-bottom: none;
}



/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}

/*** Photo Desk Style ***/
.photo-desk {
    position: relative;
    height: 600px; /* 保持容器高度 */
    width: 100%; /* 容器寬度自適應 */
    border: 1px solid #ddd; /* 增加邊框，避免邊界不清楚 */
    border-radius: 10px; /* 圓角背景 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* 背景陰影 */
    overflow: hidden;
    padding: 0; /* 無內邊距 */
    display: flex;
    align-items: center; /* 讓所有內容垂直置中 */
    justify-content: center; /* 讓所有內容水平置中（如果需要） */
}

/* 照片樣式 */
.photo-layer {
    position: absolute;
    width: 60%; /* 照片寬度稍微增大 */
    height: auto; /* 保持比例 */
    object-fit: cover;
    border-radius: 8px; /* 照片圓角 */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 1); /* 照片陰影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover 動畫 */
    
    /* 新增：確保圖片置中 */
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); /* 讓圖片完全居中 */
}

/* 低溫配送資訊區塊 */
.photo-description {
    background: linear-gradient(to right, #e3f2fd, #4c93ce); /* 冷色系漸層 (淡藍) */
    border-radius: 8px;
    padding: 20px;
    width: 100%;
}

/* 低溫配送標題 */
.title-cold {
    font-size: 20px;
    text-align: center;
    color: #022d5a !important; /* 冰藍色 */
    font-weight: bold;
    text-shadow: 1px 1px 5px rgb(255, 255, 255); /* 冰霧感陰影 */
}

/* 內容樣式 */
.photo-description ul li {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 警告提示 */
.photo-description p.text-danger {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}


/* 第一層照片 */
.photo-layer:nth-child(1) {
    top: 5%; /* 貼近頂部 */
    left: -5%; /* 靠左 */
    transform: rotate(-12deg); /* 明顯旋轉 */
    z-index: 1;
}

/* 第二層照片 */
.photo-layer:nth-child(2) {
    top: 45%; /* 中間偏下 */
    left: 5%; /* 靠左偏內 */
    transform: rotate(8deg); /* 輕微旋轉 */
    z-index: 2;
}

/* 第三層照片 */
.photo-layer:nth-child(3) {
    top: 7%; /* 靠近頂部 */
    left: 25%; /* 靠右 */
    transform: rotate(-7deg); /* 反向旋轉 */
    z-index: 3;
}

/* 第四層照片 */
.photo-layer:nth-child(4) {
    top: 55%; /* 貼近底部 */
    left: 40%; /* 更靠右 */
    transform: rotate(6deg); /* 增加旋轉 */
    z-index: 4;
}

/* 第五層照片 */
.photo-layer:nth-child(5) {
    top: 15%; /* 貼近底部 */
    left: 55%; /* 更靠右 */
    transform: rotate(-3deg); /* 增加旋轉 */
    z-index: 5;
}

/* Hover 效果 */
.photo-layer:hover {
    transform: scale(1.1) rotate(0deg); /* 放大且恢復角度 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* 增強陰影 */
    z-index: 6; /* 提升層級 */
}

/* 響應式設計 */
@media (max-width: 768px) {
    .photo-desk {
        height: 400px; /* 減少高度以適應小屏幕 */
    }
    .photo-layer {
        width: 70%; /* 縮小照片寬度 */
    }
    .photo-layer:nth-child(1) {
        top: 5%;
        left: -5%;
    }
    .photo-layer:nth-child(2) {
        top: 45%;
        left: 5%;
    }
    .photo-layer:nth-child(3) {
        top: 7%;
        left: 25%;
    }
    .photo-layer:nth-child(4) {
        top: 55%;
        left: 40%;
    }
    .photo-layer:nth-child(5) {
        top: 15%;
        left: 55%;
    }
}

/* 預設狀態（未選擇時） */
.nav-pills .nav-link {
    background: white; /* 白色背景 */
    color: black; /* 黑色文字 */
    border-radius: 10px; /* 圓角 */
    padding: 10px; /* 調整內邊距 */
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ddd; /* 添加細邊框 */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 輕微陰影 */
}

/* `hover` 和 `active` 狀態時，套用 gradient-custom-4 */
.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
    background: linear-gradient(to right, rgb(240, 208, 122), rgba(105, 19, 19)); /* 漸層背景 */
    color: white !important; /* 文字變白 */
    transform: translateY(-3px); /* 滑鼠移入時浮起效果 */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    border-color: transparent; /* 隱藏邊框 */
}

/* 確保 active 狀態的文字顏色為白色 */
.nav-pills .nav-link.active h4 {
    color: white !important;
}

/* Icon 置中 */
.icon-container {
    width: 60px; /* 縮小 icon */
    height: 60px;
    background: rgba(0, 0, 0, 0.05); /* 低透明度背景，增強層次 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

/* 確保圖片適應框 */
.icon-container img {
    max-width: 90%;
    height: auto;
}

/* 響應式設計：在小螢幕上變成兩列 */
@media (max-width: 768px) {
    .nav-item {
        width: 50%; /* 讓每個項目占 50% 寬度，變成兩列 */
        /*margin-bottom: 10px;*/
    }
    
    .nav-pills .nav-link {
        padding: 8px; /* 進一步縮小按鈕 */
    }

    .icon-container {
        width: 50px;
        height: 50px;
    }

    h4 {
        font-size: 0.85rem; /* 調整標題大小 */
    }
}


/* 初始狀態（隱藏） */
.timeline ul li {
    opacity: 0;
    transform: translateY(50px); /* 初始位置下移 50px */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 當畫面載入後觸發動畫 */
.timeline ul li.show {
    opacity: 1;
    transform: translateY(0); /* 移回原位 */
}

/* 限制樣式只在 .timeline 內生效 */
.timeline *,
.timeline *::before,
.timeline *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.timeline {
  --color: rgba(30, 30, 30);
  
  min-height: 100vh;
  display: grid;
  gap: 2rem;
  padding: 2rem;
  font-family: "Poppins", sans-serif;
  color: var(--color);
  background: var(--bgColor);
}

.timeline h1 {
  text-align: center;
}

.timeline ul {
  --col-gap: 2rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(80rem, 90%);
  margin-inline: auto;
}

/* line */
.timeline ul::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

/* row gaps */
.timeline ul li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

/* card */
.timeline ul li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
.timeline ul li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);
  text-align: center;
  background-color: var(--accent-color);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.timeline ul li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timeline ul li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title and descr */
.timeline ul li .title,
.timeline ul li .descr {
  background: var(--bgColor);
  position: relative;
  padding-inline: 1.5rem;
}

.timeline ul li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}

.timeline ul li .descr {
  padding-block-end: 1.5rem;
  font-weight: 300;
}

/* shadows */
.timeline ul li .title::before,
.timeline ul li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.timeline ul li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline ul li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .timeline ul {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }

  .timeline ul::before {
    grid-column: 2;
  }

  .timeline ul li:nth-child(odd) {
    grid-column: 1;
  }

  .timeline ul li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  .timeline ul li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline ul li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline ul li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }

  .timeline ul li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}




/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5;
}

.service-item:hover * {
    color: #FFFFFF;
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}