/* ==========================================================================
   Huibang Supply Chain — huibanginc.com
   Design system: hand-compiled, Tailwind-equivalent utility foundation.
   Offline-ready for Baota deployment (no CDN dependency, no external fonts).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #081727;
  --ink-2: #0b2138;
  --ink-3: #12314e;
  --ocean: #0e7490;
  --ocean-2: #0891b2;
  --ocean-3: #22d3ee;
  --gold: #c9a24b;
  --gold-2: #e5c878;
  --paper: #f6f7f2;
  --paper-2: #eef0e8;
  --white: #ffffff;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(11, 33, 56, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 10px rgba(8, 23, 39, 0.08);
  --shadow-md: 0 16px 40px -12px rgba(8, 23, 39, 0.25);
  --shadow-lg: 0 40px 80px -24px rgba(8, 23, 39, 0.45);
  --shadow-gold: 0 12px 36px -8px rgba(201, 162, 75, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;          /* kill horizontal scroll on mobile */
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(201, 162, 75, 0.35); }

/* Scrollbar (desktop) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #1c4058; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Utilities ---------- */
.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}
.container-wide { width: min(1360px, 100% - 2.5rem); margin-inline: auto; }

.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--navy { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, #0d2940 100%); color: var(--white); }
.section--paper { background: var(--paper); }

.text-gold { color: var(--gold); }
.text-ocean { color: var(--ocean-2); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(270deg, var(--gold), transparent);
}

/* Display type */
.display {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.display--serif { font-family: var(--font-serif); font-weight: 700; }

.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); }
.section--dark .lead, .section--navy .lead { color: rgba(255,255,255,0.62); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
  min-height: 48px;
}
.btn--gold {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, #a8842f);
  color: #241a05;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -8px rgba(201,162,75,0.6); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.32);
  color: var(--white);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn--dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(14,116,144,0.35); }
.card--glass {
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  color: var(--white);
}
.card--glass:hover { border-color: rgba(201,162,75,0.55); box-shadow: 0 30px 60px -18px rgba(0,0,0,0.6); transform: translateY(-6px); }

/* Icon chip */
.icon-chip {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(14,116,144,0.16), rgba(34,211,238,0.06));
  border: 1px solid rgba(14,116,144,0.3);
  color: var(--ocean-2);
}
.section--navy .icon-chip, .section--dark .icon-chip {
  background: linear-gradient(140deg, rgba(201,162,75,0.2), rgba(201,162,75,0.04));
  border: 1px solid rgba(201,162,75,0.4);
  color: var(--gold-2);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(20px, 2.6vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Language switch — segmented control, active segment lit in gold */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
  min-height: 44px;
}
.lang-switch:hover { border-color: rgba(201,162,75,0.55); background: rgba(255,255,255,0.1); }
.lang-switch__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  transition: color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.lang-switch__opt.is-on {
  color: #241a05;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, #a8842f);
  box-shadow: 0 6px 18px -6px rgba(201,162,75,0.55);
}
.lang-switch__opt:not(.is-on):hover { color: var(--white); }
.drawer .lang-switch { padding: 6px; margin-top: 26px; }
.drawer .lang-switch__opt { min-width: 72px; padding: 12px 20px; font-size: 16px; }

/* Header / nav */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.is-scrolled {
  background: rgba(8, 23, 39, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.55);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.15; }
.brand__sub { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-2); background: rgba(255,255,255,0.07); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: background 0.3s, color 0.3s;
}
.lang-toggle button.is-on { background: var(--gold); color: #241a05; }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--white); }
.burger span {
  display: block; width: 22px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s;
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(170deg, rgba(8,23,39,0.98), rgba(11,33,56,0.98));
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer a {
  font-size: 26px; font-weight: 800; color: var(--white);
  padding: 12px 20px; border-radius: 999px;
}
.drawer a:hover { color: var(--gold-2); }
.drawer .lang-toggle { margin-top: 26px; }
.drawer__phone { margin-top: 22px; font-size: 20px; color: var(--gold-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  will-change: transform;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,23,39,0.96) 8%, rgba(8,23,39,0.72) 42%, rgba(11,33,56,0.32) 100%),
    linear-gradient(0deg, rgba(8,23,39,0.95) 0%, transparent 34%);
}
.hero__route {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.55;
}
.hero__route path { stroke-dasharray: 12 10; animation: route-dash 9s linear infinite; }

@keyframes route-dash { to { stroke-dashoffset: -880; } }

.hero__inner { padding: 150px 0 90px; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(201,162,75,0.55);
  background: rgba(201,162,75,0.12);
  color: var(--gold-2);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.4; transform: scale(0.7);} }

.hero__title { margin-bottom: 22px; }
.hero__title .stroke {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
}
.hero__sub { max-width: 620px; color: rgba(255,255,255,0.72); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero stats */
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 90px);
  backdrop-filter: blur(10px);
}
.hero__stat {
  background: rgba(8,23,39,0.55);
  padding: clamp(18px, 2.4vw, 30px);
  text-align: center;
}
.hero__stat b { display: block; font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 800; color: var(--gold-2); letter-spacing: -0.01em; }
.hero__stat span { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold);
  color: #241a05;
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  z-index: 5;
}
.marquee__track {
  display: flex; gap: 54px; white-space: nowrap; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 54px; }
.marquee__track span::after { content: "✦"; font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media .img-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about__media .img-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.about__media:hover .img-frame img { transform: scale(1.07); }

.float-card {
  position: absolute; left: -34px; bottom: -26px;
  background: var(--ink); color: var(--white);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  max-width: 300px;
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }
.float-card b { display: block; font-size: 22px; color: var(--gold-2); }
.float-card span { font-size: 12.5px; color: rgba(255,255,255,0.66); line-height: 1.5; }

.fact-row { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; }
.fact-row .icon-chip { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.fact-row h4 { font-size: 16.5px; margin-bottom: 4px; }
.fact-row p { font-size: 14px; color: var(--muted); }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 26px); margin-top: clamp(40px, 6vw, 64px); }
.adv-card { position: relative; overflow: hidden; }
.adv-card__num {
  position: absolute; top: 18px; right: 22px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.08);
  transition: color 0.4s;
}
.adv-card:hover .adv-card__num { color: rgba(201,162,75,0.35); }
.adv-card h3 { font-size: 19px; margin: 20px 0 10px; }
.adv-card p { font-size: 14.5px; color: rgba(255,255,255,0.62); }

/* CBP banner */
.cbp-banner {
  margin-top: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
}
.cbp-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(8,23,39,0.94) 20%, rgba(8,23,39,0.72) 65%, rgba(8,23,39,0.45)),
    var(--bg, url("../img/hero-fallback.svg")) center/cover no-repeat;
}
.cbp-banner__body { padding: clamp(26px, 4vw, 48px); color: var(--white); }
.cbp-banner h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.cbp-banner p { font-size: 14.5px; color: rgba(255,255,255,0.7); max-width: 520px; }
.cbp-date {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 12px 20px;
  border: 1px dashed rgba(201,162,75,0.6);
  border-radius: 14px;
  background: rgba(201,162,75,0.1);
  font-weight: 800; color: var(--gold-2); letter-spacing: 0.06em;
}
.cbp-banner__rail {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: clamp(26px, 4vw, 48px);
  border-left: 1px solid var(--line);
}
.rail-step { display: flex; gap: 16px; align-items: flex-start; }
.rail-step .n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(201,162,75,0.55); color: var(--gold-2);
  font-weight: 800; font-size: 14px;
}
.rail-step b { display: block; font-size: 15px; color: var(--white); }
.rail-step span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------- Model ---------- */
.model-list { margin-top: clamp(40px, 6vw, 64px); }
.model-row {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 40px) clamp(6px, 2vw, 22px);
  border-top: 1px solid var(--line-dark);
  transition: background 0.4s, padding 0.4s var(--ease);
  position: relative;
}
.model-row:last-child { border-bottom: 1px solid var(--line-dark); }
.model-row:hover { background: rgba(14,116,144,0.05); padding-left: 26px; }
.model-row__num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14,116,144,0.55);
  line-height: 1;
}
.model-row h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 8px; }
.model-row p { font-size: 14.5px; color: var(--muted); max-width: 640px; }
.model-row__arr {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(14,116,144,0.35);
  color: var(--ocean-2);
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.model-row:hover .model-row__arr { background: var(--ink); color: var(--gold-2); border-color: var(--ink); transform: rotate(-45deg); }

/* ---------- Guarantee ---------- */
.guarantee { position: relative; overflow: hidden; }
.guarantee::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,23,39,0.94) 10%, rgba(8,23,39,0.8) 60%, rgba(8,23,39,0.96)),
    var(--bg, url("../img/hero-fallback.svg")) center/cover no-repeat fixed;
}
.guarantee__inner { position: relative; text-align: center; }
.guarantee__amount {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: clamp(14px, 3vw, 40px);
  margin: clamp(30px, 5vw, 52px) 0 clamp(10px, 2vw, 20px);
}
.guarantee__amount .a { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.guarantee__amount .a small { display: block; font-size: clamp(0.8rem, 1.6vw, 1rem); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 10px; }
.guarantee__amount .sep { font-size: clamp(1.6rem, 3vw, 2.4rem); color: rgba(255,255,255,0.3); }
.guarantee__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(34px, 5vw, 54px);
  text-align: left;
}
.g-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.6vw, 30px);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
  position: relative;
}
.g-step:hover { border-color: rgba(201,162,75,0.5); background: rgba(255,255,255,0.08); transform: translateY(-5px); }
.g-step .n {
  position: absolute; top: 18px; right: 20px;
  font-size: 40px; font-weight: 800; color: rgba(201,162,75,0.22); line-height: 1;
}
.g-step h4 { font-size: 16.5px; color: var(--gold-2); margin-bottom: 8px; }
.g-step p { font-size: 13.5px; color: rgba(255,255,255,0.62); }

/* ---------- Philosophy ---------- */
.philosophy {
  position: relative; overflow: hidden; color: var(--white);
}
.philosophy::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,23,39,0.92) 0%, rgba(8,23,39,0.55) 70%, rgba(8,23,39,0.35) 100%),
    var(--bg, url("../img/hero-fallback.svg")) center/cover no-repeat;
}
.philosophy__inner { position: relative; max-width: 860px; }
.philosophy blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.5;
  font-weight: 600;
  margin: 26px 0 34px;
}
.philosophy blockquote em { color: var(--gold-2); font-style: normal; }
.philosophy .who { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 68px); align-items: start; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-card:first-of-type { border-top: 1px solid var(--line-dark); }
.contact-card h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocean-2); margin-bottom: 5px; }
.contact-card p { font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.contact-card .icon-chip { width: 48px; height: 48px; border-radius: 14px; }

/* Form */
.form { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.field label .req { color: #d64545; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line-dark);
  border-radius: 12px;
  background: var(--white);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ocean-2);
  box-shadow: 0 0 0 4px rgba(14,116,144,0.14);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #d64545; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 160%);
  z-index: 200;
  background: var(--ink); color: var(--white);
  border: 1px solid rgba(201,162,75,0.4);
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
  display: flex; align-items: center; gap: 10px;
  max-width: min(92vw, 560px);
  pointer-events: none;   /* informational only — never blocks taps */
}
.toast.is-show { transform: translate(-50%, 0); }
.toast.ok::before { content: "✓"; color: var(--gold-2); font-weight: 800; }
.toast.err::before { content: "!"; color: #ff8b8b; font-weight: 800; }

/* ---------- Footer ---------- */
.footer { background: #060f1c; color: var(--white); padding: clamp(56px, 7vw, 88px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 60px); }
.footer h5 { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer p, .footer li { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer ul { list-style: none; }
.footer ul a:hover { color: var(--gold-2); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,0.42);
}

/* Floating phone — the only floating button on the site (call us) */
.fab-phone {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  display: none; place-items: center;   /* mobile-only float */
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: #241a05; box-shadow: var(--shadow-gold);
  animation: floaty 4s ease-in-out infinite;
}

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--ocean-3));
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--scale { transform: scale(0.94); }
.reveal--left.is-in, .reveal--right.is-in, .reveal--scale.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: grid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .cbp-banner { grid-template-columns: 1fr; }
  .cbp-banner__rail { border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .float-card { left: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .brand__sub { display: none; }   /* hide site subtitle on phones & tablets */
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .guarantee__steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .model-row { grid-template-columns: 1fr; gap: 12px; }
  .model-row__arr { display: none; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .fab-phone { display: grid; }   /* phone float: mobile only */
  .float-card { max-width: 240px; padding: 16px 18px; left: 12px; bottom: -20px; }
  .toast { bottom: 96px; max-width: calc(100vw - 2.5rem); }
  .container, .container-wide { width: calc(100% - 2rem); }
  .hero__inner { padding-top: 130px; }
}
