/* =========================================================
   LIMBEST – Global styles (shared by all pages)
   ========================================================= */

:root {
  /* Brand colours */
  --blue: #263F7B;
  --navy: #14243A;
  --red: #D52B30;
  --white: #FFFFFF;
  --grey-light: #F4F6F8;
  --border: #E2E6EB;
  --body: #555B64;
  --muted: #687487;
  --slate: #3B4856; /* About / CTA / Footer background (taken from mockup) */

  /* Layout */
  --max: 1120px;
  --pad: 24px;
  --header-h: 78px;
  --space-main: 80px;
  --space-normal: 64px;
  --space-compact: 40px;
  --gap: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Typography ---------- */
h1 { font-size: 52px; font-weight: 800; line-height: 1.15; }
h2 { font-size: 36px; font-weight: 800; line-height: 1.25; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.4; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.small { font-size: 12px; font-weight: 400; line-height: 1.6; }
.lead { font-size: 17px; line-height: 1.7; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn--primary { background: var(--red); }
.btn--primary:hover { background: #b8232a; }
.btn--ghost-blue {
  background: rgba(38, 63, 123, .6);
  border-color: rgba(255, 255, 255, .18);
}
.btn--ghost-blue:hover { background: rgba(38, 63, 123, .85); }

/* ---------- Circle chevron (arrow link icon) ---------- */
.chevron-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
}
.chevron-circle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: -2px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg);
}
.chevron-circle--white { background: var(--white); }
.chevron-circle--white::after { border-color: var(--slate); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  /* Soft dark fade from the top, no hard edge */
  background: linear-gradient(180deg, rgba(10, 20, 35, .6) 0%, rgba(10, 20, 35, .3) 55%, rgba(10, 20, 35, 0) 100%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.site-header__logo img { height: 36px; width: auto; }
.site-header__panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 32px;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  transition: color .2s ease;
}
.site-nav__link:hover { color: var(--red); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

/* =========================================================
   CTA
   The photo fades into the slate background (left and bottom edges)
   and is slightly darkened, so it blends in instead of looking pasted.
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: var(--white);
  padding: var(--space-compact) 0;
}
.cta__content { position: relative; z-index: 2; max-width: 560px; }
.cta__title { color: var(--white); }
.cta__text { margin-top: 14px; font-size: 17px; line-height: 1.6; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.cta__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 46%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: brightness(.88) saturate(.92);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 55%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 55%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  mask-composite: intersect;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--slate);
  color: var(--white);
  padding-bottom: 88px;
}
.site-footer .container > * { border-color: rgba(255, 255, 255, .55); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-compact);
  padding: var(--space-compact) 0;
  border-top: 1px solid;
  font-size: 13px;
  line-height: 1.8;
}
.site-footer__logo img { height: 44px; width: auto; }
.footer-brand p { margin-top: 18px; }
.site-footer h4 { margin-bottom: 14px; font-size: 16px; font-weight: 700; color: var(--white); }
.site-footer__list li + li { margin-top: 4px; }
.site-footer a:hover { color: #ffb3b6; }
.footer-address { margin-top: 22px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact li + li { margin-top: 12px; }
.footer-contact a { display: block; }
.footer-contact address { font-style: normal; }
.footer-icon {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid;
  font-size: 11px;
}
.site-footer__legal { display: flex; gap: 16px; }

/* =========================================================
   Floating WhatsApp button (shown on every page)
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float img { width: 100%; height: 100%; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, .34); }
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* =========================================================
   Responsive – Tablet (900px)
   ========================================================= */
@media (max-width: 900px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  .nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    cursor: pointer;
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    width: 22px;
    height: 2px;
    background: var(--navy);
  }
  .nav-burger span { position: relative; display: block; }
  .nav-burger span::before,
  .nav-burger span::after { content: ""; position: absolute; left: 0; }
  .nav-burger span::before { top: -7px; }
  .nav-burger span::after { top: 7px; }

  .site-header__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--pad) 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(20, 36, 58, .12);
  }
  .nav-toggle:checked ~ .site-header__panel { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; }
  .site-nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); }

  /* CTA: photo sits under the text and fades in at the top and bottom */
  .cta { padding-bottom: 0; }
  .cta__image {
    position: relative;
    width: 100%;
    height: 240px;
    margin-top: 24px;
    object-position: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
    mask-composite: add;
  }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   Responsive – Mobile (600px)
   ========================================================= */
@media (max-width: 600px) {
  :root { --pad: 18px; --header-h: 64px; --space-main: 64px; --space-normal: 48px; }

  body { font-size: 14px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 17px; }
  h4 { font-size: 15px; }
  .lead { font-size: 15px; }

  .site-header__logo img { height: 30px; }
  .cta__image { height: 200px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
/* =========================================================
   Swiss grid – desktop (≥901px): header · CTA · footer
   ========================================================= */
@media (min-width: 901px) {

  /* Header: logo = 第1–2栏,菜单从第3栏开始,按钮靠第12栏右边 */
  .site-header__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .site-header__logo { grid-column: 1 / 3; }
  .site-header__panel { grid-column: 3 / -1; flex: none; }
  .site-nav__list { margin-left: 0; }

  /* CTA: 文字占第1–6栏,图片从第7栏开始一直到屏幕右边 */
  .cta > .container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .cta__content { grid-column: 1 / 7; max-width: none; }
  .cta__image {
    left: calc(var(--x0) + 6 * (var(--col) + var(--gutter)));
    width: auto;
  }

  /* Footer: 3 个区块各占 4 栏(1–4 / 5–8 / 9–12) */
  .site-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: var(--space-compact);
  }
  .footer-brand { grid-column: 1 / 5; }
  .site-footer__grid > :nth-child(2) { grid-column: 5 / 9; }
  .site-footer__grid > :nth-child(3) { grid-column: 9 / 13; }
}

/* Desktop: white menu text (the mobile dropdown keeps its white panel + navy text) */
@media (min-width: 901px) {
  .site-nav__link { color: var(--white); }
  .site-nav__link:hover { color: #ffb3b6; }
}

/* Tablet / mobile: white burger icon on the dark bar */
@media (max-width: 900px) {
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after { background: var(--white); }
}
/* Pages with a light area behind the header: slightly deeper fade for contrast */
.header-solid .site-header {
  background: linear-gradient(180deg, rgba(10, 20, 35, .7) 0%, rgba(10, 20, 35, .4) 60%, rgba(10, 20, 35, 0) 100%);
}