/* ===================== FONTS ===================== */
@font-face {
  font-family: saveurSans;
  src: url(fonts/Saveur_sans.otf);
}
@font-face {
  font-family: jost;
  src: url(fonts/Jost.ttf);
}
@font-face {
  font-family: jost_light;
  src: url(fonts/Jost_light.ttf);
}

/* ===================== BASE ===================== */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: jost_light;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6, p, span, button, a {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

button, input[type="button"], input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

/* ===================== HR ===================== */
.hr {
  border: none;
  border-top: 0.5px solid rgba(128, 128, 128, 0.42);
  margin: 35px 0;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: transparent;
  padding: 0 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.7s;
  z-index: 1000;
}

.navbar:hover,
.navbar.scrolled {
  background: white;
  color: black;
  border-bottom: 1px solid lightgray;
}

.navbar .brand {
  font-family: saveurSans;
  font-size: 1.8em;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar:hover .brand,
.navbar.scrolled .brand {
  color: black;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar ul li {
  list-style: none;
}

.navbar ul li a {
  font-family: 'Poppins', sans-serif;
  color: white;
  padding: 0 12px;
  font-size: 0.8em;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar:hover ul li a,
.navbar.scrolled ul li a {
  color: black;
}

.navbar i.fa-bars,
.navbar i.fa-magnifying-glass {
  color: white;
  font-size: inherit;
  transition: color 0.3s;
}

.navbar:hover i.fa-bars,
.navbar:hover i.fa-magnifying-glass,
.navbar.scrolled i.fa-bars,
.navbar.scrolled i.fa-magnifying-glass {
  color: black;
}

/* ===================== HERO / VIDEO / IMAGE ===================== */
/* ===================== HERO / VIDEO / IMAGE ===================== */
.videobg, .imagebg {
  position: relative;
  width: 100%;
  height: 100vh; /* 每个视频全屏高度，可根据需要调整 */
  display: flex;
  flex-direction: column;   /* 垂直排列 */
  justify-content: flex-end; /* 标题 + 按钮靠下 */
  align-items: center;       /* 水平居中 */
  overflow: hidden;
  text-align: center;
  margin: 0;                 /* 消除默认间距 */
}

.video, .imagebg img {
  position: absolute;       /* 视频背景覆盖整个容器 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(85%);
  z-index: 0;               /* 背景层 */
  display: block;
}

.videobg h2, .imagebg h2 {
  position: relative;
  z-index: 1;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin: 0;
  margin-bottom: 1rem;     /* 标题与按钮间距 */
  font-size: 2rem;
}

.videobg button, .imagebg button {
  position: relative;
  z-index: 1;
  font-family: jost_light;
  color: white;
  font-weight: 100;
  background-color: rgba(0,0,0,0.3);
  backdrop-filter: blur(45px);
  border: 1px solid white;
  border-radius: 30px;
  cursor: pointer;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  white-space: nowrap;
  margin-bottom: 3rem;    /* 距离容器底部 */
  transition: 0.2s;
}

.videobg button:hover,
.imagebg button:hover {
  box-shadow: inset 0 0 0 1px white;
}

/* ================ 手机竖屏响应 ================= */
@media screen and (max-width: 600px){
  .videobg, .imagebg {
    height: 70vh;            /* 手机上视频稍低，避免空白 */
    justify-content: flex-end;
  }
  .videobg h2, .imagebg h2 {
    font-size: 4vw;
    margin-bottom: 1.5vw;
  }
  .videobg button, .imagebg button {
    font-size: 4vw;
    padding: 2.5vh 6vw;
    border-radius: 10vw;
    margin-bottom: 5vw;
  }
}


/* ===================== GRID / CARDS ===================== */
.services h2 {
  font-family: 'Poppins';
  font-weight: 500;
  color: black;
  font-size: large;
  margin-top: 80px;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 4.5rem;
  align-items: start;
  margin-bottom: 85px;
}

.grid-item {
  background-color: white;
  overflow: hidden;
  cursor: pointer;
}

.card-image {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.card-content {
  text-align: left;
  padding: 1rem;
}

.card-content h1 {
  font-family: jost;
  color: black;
  font-size: 1.3rem;
  font-weight: 100;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-family: jost_light;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  margin-right: 1.7rem;
  font-weight: 500;
  color: black;
}

.card-btn {
  font-family: jost_light;
  color: black;
  border: none;
  font-size: 0.9rem;
  font-weight: 100;
  text-decoration: underline;
  text-underline-offset: 6px;
  background-color: transparent;
  cursor: pointer;
}

/* ===================== FLEX / CONTAINER ===================== */
.container {
  display: flex;
}

.column {
  flex: 1;
  padding: 0 4.5rem;
  text-align: left;
}

.cell {
  font-family: jost_light;
  color: black;
  margin-bottom: 10px;
  padding: 5px;
  font-size: 14px;
}

a.links {
  color: inherit;
  text-decoration: none;
}

span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cell-head {
  font-size: 12px;
  font-weight: 600;
}

/* ===================== FOOTER ===================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language {
  font-family: jost_light;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
  padding: 0 4.5rem;
}

.footer ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style-type: none;
  padding-right: 50px;
}

.footer ul li {
  margin-left: 10px;
  margin-right: 30px;
}

.footer ul li a {
  font-family: jost_light;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.footer .language .globe-icon {
  color: rgba(5, 4, 4, 0.775);
}

.footer span {
  padding-left: 10px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.last-logo {
  margin-top: 45px;
  margin-bottom: 50px;
  font-family: saveurSans;
  font-size: 1.3em;
  text-align: center;
}

/* ===================== MOBILE FOOTER & ACCORDION ===================== */
.accordian-container {
  display: none;
}
.hr-hid {
  display: none;
}
.mobile-footer {
  display: none;
}

/* ===================== MEDIA QUERIES ===================== */
@media screen and (max-width: 1024px){
  .column { flex: 1; padding: 0 2rem; }
  .cell { font-size: 12px; }
}

@media screen and (max-width: 600px){
  body { width: 100%; }

  .videobg, .imagebg { aspect-ratio: 9/16; }
  .videobg h2, .imagebg h2 { font-size: clamp(16px, 4vw, 24px); }
  .videobg button, .imagebg button {
    font-size: clamp(14px, 3.5vw, 20px);
    padding: 2.5vh 6vw;
    border-radius: 10vw;
  }

  .grid { grid-template-columns: 1fr; }
  .card-image { height: 50vh; }
  .card-content h1 { font-size: 4vw; }
  .card-content p { font-size: 3.5vw; }
  .card-btn { font-size: 4vw; }

  .links, .footer { display: none; }
  .mobile-footer { display: flex; flex-direction: column; align-items: center; text-align: center; }

  .accordian-container { display: contents; }
  .accordion {
    font-family: jost_light;
    background-color: white;
    color: black;
    cursor: pointer;
    padding: 2rem 4.5rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 2.4rem;
    transition: 0.4s;
  }
  .accordion:after { content: '\002B'; float: right; margin-left: 5px; font-weight: 500; }
  .active:after { content: "\2212"; transform: rotate(90deg); }

  .panel {
    display: block;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }
  .panel a {
    display: block;
    margin: 3rem 1rem;
    font-size: 2.3rem;
    font-family: jost_light;
    color: black;
    text-decoration: none;
  }
  .panel a span { text-underline-offset: 12px; }

  .social { margin: 30px; font-size: 60px; color: black; }
  .mobile-footer span { margin-top: 3rem; padding-left: 10px; text-decoration: underline; text-underline-offset: 20px; }
}
