/*-----------------------------------*\
  #require.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */

/**
 * TABLE OF CONTENT
 *
 * Custom properties..............Global variables
 * Reset..........................Removed browser default style
 * Typography.....................Typography style
 * Reused.........................Reused classes
 * Preloader......................Preload style
 * Header.........................Header style
 * Footer.........................Footer style
 * Media queries..................Responsive for all devices
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors - 更新为现代商务配色
   */
  --primary-color: #2c3e50;    /* 深蓝色主色调 */
  --secondary-color: #34495e;   /* 次要深蓝色 */
  --accent-color: #3498db;      /* 亮蓝色强调色 */
  --accent-hover: #2980b9;      /* 亮蓝色悬停色 */
  --background-light: #f8f9fa;  /* 浅灰背景色 */
  --text-primary: #2c3e50;      /* 主要文字颜色 */
  --text-secondary: #7f8c8d;    /* 次要��字颜色 */
  --white: #ffffff;
  --black: #000000;
  --gray-light: #ecf0f1;
  --gray: #bdc3c7;
  --success-color: #27ae60;
  --warning-color: #f1c40f;
  --error-color: #e74c3c;

  /**
   * typography - 更新字体系统
   */
  --ff-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px */
  --fs-3xl: 1.875rem;  /* 30px */
  --fs-4xl: 2.25rem;   /* 36px */
  --fs-5xl: 3rem;      /* 48px */
  
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /**
   * spacing
   */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */

  /**
   * shadows
   */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /**
   * border radius
   */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /**
   * transitions
   */
  --transition-base: all 0.3s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

}


/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a,
img,
span,
label,
button,
ion-icon { display: block; }

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

img { height: auto; }

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

button { cursor: pointer; }

input,
textarea { width: 100%; }

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-primary);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background-light);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.loaded { overflow: visible; }

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 8px; }

::-webkit-scrollbar-track { background: var(--background-light); }

::-webkit-scrollbar-thumb { background: var(--accent-color); }

::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }





/*-----------------------------------*\
  #TYPOGRAPHY
\*-----------------------------------*/

.headline-lg { font-size: var(--fs-45); }

.headline-md { font-size: var(--fs-38); }

.headline-sm { font-size: var(--fs-32); }

.title-lg { font-size: var(--fs-27); }

.title-md { font-size: var(--fs-26); }

.title-sm { font-size: var(--fs-22); }

.body-lg { font-size: var(--fs-20); }

.body-md { font-size: var(--fs-18); }

.body-sm { font-size: var(--fs-17); }

.label-lg { font-size: var(--fs-14); }

.label-md { font-size: var(--fs-12); }

/**
 * font weight
 */

.headline-lg,
.headline-md,
.headline-sm,
.title-lg,
.title-md,
.title-sm,
.label-lg {
  color: var(--jet);
  font-weight: var(--fw-600);
  line-height: 1.2;
}

.body-lg { font-weight: var(--fw-500); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 16px; }

.section { padding-block: var(--section-padding); }

.w-100 { width: 100%; }

.section-title {
  margin-block-end: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.text-center { text-align: center; }
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}





/*-----------------------------------*\
  #PRELOADER
\*-----------------------------------*/

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--orange-red);
  display: grid;
  place-items: center;
  z-index: 6;
}

.preloader.loaded { display: none; }

.preloader-circle {
  width: 60px;
  height: 60px;
  border: 8px solid transparent;
  border-block-color: var(--white);
  border-radius: var(--radius-circle);
  animation: loading 1s linear infinite;
}

@keyframes loading {
  0% { transform: rotate(0); }
  100% { transform: rotate(1turn); }
}





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn { display: none; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 16px;
  z-index: 4;
  transition: var(--transition-1);
}

.header.active { box-shadow: var(--shadow); }

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle-btn {
  color: var(--jet);
  font-size: 3.8rem;
}

.navbar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-block: 2px solid var(--jet);
  transition: 0.25s var(--cubic-out);
  transition-delay: 0.15s;
  transform: scaleY(0);
  transform-origin: top;
  visibility: hidden;
}

.navbar.active {
  transform: scaleY(1);
  visibility: visible;
  transition-duration: 0.5s;
  transition-delay: 0s;
}

.navbar > * {
  opacity: 0;
  transition: var(--transition-1);
}

.navbar.active > * {
  opacity: 1;
  transition-delay: 0.4s;
}

.navbar-item:not(:last-child) { border-block-end: 1px solid var(--jet_a10); }

.navbar-link {
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 16px 15px;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible, .active) { color: var(--orange-red); }





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--jet);
  color: var(--white_a75);
  border-block-start: 1px solid var(--white_a10);
  padding-block: 18px;
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-block-end: 15px;
}

.social-link { font-size: 1.8rem; }

.social-link:is(:hover, :focus-visible) { color: var(--orange-red); }





/*-----------------------------------*\
  #MEDIA QUEREIS
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  .title-lg { --fs-27: 3.5rem; }

}





/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * TYPOGRAPHY
   */

  .headline-lg { --fs-45: 6rem; }

  .headline-md { --fs-38: 4.5rem; }

  .title-md { --fs-26: 3.2rem; }



  /**
   * REUSED STYLE
   */

  .section { --section-padding: 100px; }

  .section-title { margin-block-end: 40px; }



  /**
   * FOOTER
   */

  .footer { padding-block: 25px; }

  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .social-list { margin-block-end: 0; }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {
  
  /**
   * TYPOGRAPHY
   */

  .headline-md { --fs-38: 5rem; }

  .title-lg { --fs-27: 4rem; }

  .title-sm { --fs-22: 2.4rem; }



  /**
   * REUSED STYLE
   */

  .section-title { margin-block-end: 60px; }



  /**
   * HEADER
   */

  .nav-toggle-btn { display: none; }

  .navbar,
  .navbar.active,
  .navbar > * {
    all: unset;
    display: block;
  }

  .navbar-list { display: flex; }

  .navbar-item:not(:last-child) { border-block-end: none; }

  .navbar-link { position: relative; }

  .navbar-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: right;
    width: 80%;
    height: 2px;
    background-color: var(--orange-red);
    transition: transform var(--transition-1);
  }

  .navbar-link:is(:hover, :focus-visible, .active)::after {
    transform: translateX(-50%) scaleX(1);
    transform-origin: left;
  }

  .header .btn { display: block; }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * TYPOGRAPHY
   */

  .headline-lg { --fs-45: 7rem; }

  

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 1240px;
    width: 100%;
    margin-inline: auto;
  }

}
