/* =========================================
   聯合製冰官方網站 — 冰山晶透毛玻璃風 v2
   ========================================= */

/* ---------- CSS Variables — Glacier/Iceberg Palette ---------- */
:root {
  /* Glacier/iceberg palette — light, translucent, icy */
  --frost-white: #F0F7FC;    /* fresh snow on ice */
  --ice-blue: #D6E8F5;       /* glacier frost */
  --glacier-blue: #A3CCE8;   /* the blue of glacial ice */
  --deep-glacial: #72B0D9;   /* deep glacier glow */
  --arctic-blue: #4A94C4;    /* arctic meltwater */
  --deep-arctic: #2E7AAD;    /* crevasse blue */
  --midnight-ice: #1A5C87;   /* deepest ice shadow */

  /* Aliases for backwards compat in CSS */
  --glacier-green: var(--glacier-blue);
  --lake-blue: var(--deep-glacial);
  --deep-teal: var(--arctic-blue);
  --ocean-blue: var(--deep-arctic);
  --ink-dark: var(--midnight-ice);

  /* Enhanced glass tokens */
  --bg-glass: rgba(255, 255, 255, 0.22);
  --bg-glass-mid: rgba(255, 255, 255, 0.35);
  --bg-glass-strong: rgba(255, 255, 255, 0.5);
  --border-glass: rgba(255, 255, 255, 0.45);
  --border-glass-shine: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.5) 100%);
  --shadow-glass: 0 8px 32px rgba(26, 92, 135, 0.10), inset 0 1px 0 rgba(255,255,255,.6);
  --shadow-card: 0 4px 24px rgba(26, 92, 135, 0.08), inset 0 1px 0 rgba(255,255,255,.5);
  --shadow-glow: 0 0 40px rgba(163, 204, 232, 0.2);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font-main: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-main);
  color: var(--ink-dark);
  line-height: 1.7;
  min-height: 100vh;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  /* Animated ice crystal background */
  background:
    radial-gradient(ellipse at 15% 20%, rgba(163, 204, 232, .45) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 25%, rgba(114, 176, 217, .3) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(214, 232, 245, .5) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(163, 204, 232, .2) 0%, transparent 40%),
    linear-gradient(170deg, #EAF2FA 0%, #F2F8FC 30%, #ffffff 60%, #EEF5FB 100%);
  background-attachment: fixed;
}

/* Floating ice crystal particles overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(3px 3px at 60% 20%, rgba(214,232,245,.9), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 15% 80%, rgba(163,204,232,.5), transparent),
    radial-gradient(3px 3px at 90% 85%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 50% 45%, rgba(114,176,217,.4), transparent),
    radial-gradient(2px 2px at 35% 15%, rgba(255,255,255,.7), transparent);
  animation: shimmer 20s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { opacity: .6; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-30px); }
}

body > *:not(script) {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lake-blue); }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--ink-dark); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
p { color: #3A6A7A; }

.section-subtitle {
  color: var(--ocean-blue);
  font-size: 1.1rem;
  margin-top: .5rem;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section { padding: 80px 0; }

.section-alt {
  position: relative;
  background:
    linear-gradient(135deg, rgba(163, 204, 232, .12) 0%, rgba(214, 232, 245, .25) 50%, rgba(114, 176, 217, .08) 100%);
}

/* Ice refraction stripe on alt sections */
.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.8) 30%, rgba(163,204,232,.5) 50%, rgba(255,255,255,.8) 70%, transparent 100%);
}

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.grid-3 > .glass-card { display: flex; flex-direction: column; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Station Card Layout ---------- */
.station-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--glacier-green) transparent;
}

.station-scroll::-webkit-scrollbar {
  height: 6px;
}

.station-scroll::-webkit-scrollbar-track {
  background: rgba(214, 232, 245, .3);
  border-radius: 3px;
}

.station-scroll::-webkit-scrollbar-thumb {
  background: var(--glacier-green);
  border-radius: 3px;
}

.station-scroll > .glass-card {
  min-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ---------- Scroll Arrows ---------- */
.station-scroll-wrap {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--arctic-blue);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(26, 92, 135, .15);
  transition: opacity .3s, transform .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow:hover {
  background: var(--arctic-blue);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 20px rgba(74, 148, 196, .3);
}

.scroll-arrow-left { left: -16px; }
.scroll-arrow-right { right: -16px; }

@media (max-width: 768px) {
  .scroll-arrow-left { left: 4px; }
  .scroll-arrow-right { right: 4px; }
  .scroll-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

.station-card-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.station-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.station-card-body h3 {
  white-space: nowrap;
}

.station-card-body .station-addr {
  min-height: 3em;
  display: flex;
  align-items: center;
  text-align: center;
}

.station-hours {
  font-size: .9rem;
  margin-top: 8px;
  color: var(--deep-glacial);
  font-weight: 600;
}

.station-map-btn {
  margin-top: auto;
  align-self: center;
  margin-top: 16px;
  white-space: nowrap;
}

/* ---------- Glassmorphism Card — Crystal Ice ---------- */
.glass-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: 32px;
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s;
  overflow: hidden;
}

/* Top-edge light refraction */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  border-radius: 50%;
}

/* Corner sparkle */
.glass-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,.35) 0%, transparent 70%);
  border-radius: 50%;
  transition: opacity .3s;
  opacity: .6;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 92, 135, 0.14), inset 0 1px 0 rgba(255,255,255,.7), var(--shadow-glow);
}

.glass-card:hover::after {
  opacity: 1;
}

.glass-card-solid {
  position: relative;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  overflow: hidden;
}

.glass-card-solid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.23,1,.32,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Button inner shine */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.25), transparent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lake-blue), var(--deep-teal));
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 148, 196, .3);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 148, 196, .45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.35);
  color: var(--ocean-blue);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--deep-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 92, 135, .1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: var(--deep-teal);
  border: 1.5px solid var(--glacier-green);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline::before { display: none; }
.btn-outline:hover {
  background: var(--lake-blue);
  color: #fff;
  border-color: var(--lake-blue);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  /* Start transparent on hero/page-header (dark bg) */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  transition: background .4s, box-shadow .4s, border-color .4s;
}

/* After scrolling: frosted white */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(26, 92, 135, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-inner > .logo { flex: 0 0 auto; margin-right: clamp(12px, 2vw, 24px); }
.header-inner > .main-nav { flex: 1 1 auto; }
.header-inner > .header-cta { flex: 0 0 auto; display: flex; justify-content: flex-end; margin-left: clamp(12px, 2vw, 24px); }

/* Default: white text (on dark hero/page-header) */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  transition: color .4s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-compact { display: none; }
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(163,204,232,.4));
  transition: filter .4s, transform .3s;
  animation: logo-breathe 3s ease-in-out infinite;
  position: relative;
}

/* Hover: scale up + intense ice glow */
.logo:hover .logo-img {
  transform: scale(1.12);
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(163,204,232,1)) drop-shadow(0 0 40px rgba(114,176,217,.7)) drop-shadow(0 0 60px rgba(200,230,255,.4));
  animation: none;
}
.site-header.scrolled .logo:hover .logo-img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 20px rgba(163,204,232,.9)) drop-shadow(0 0 40px rgba(114,176,217,.6)) drop-shadow(0 0 60px rgba(200,230,255,.3));
  animation: none;
}

/* Scroll: white → original color */
.site-header.scrolled .logo-img {
  filter: drop-shadow(0 0 6px rgba(163,204,232,.3));
  animation: logo-breathe-color 3s ease-in-out infinite;
}

/* Breathing glow animation (white version) */
@keyframes logo-breathe {
  0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(163,204,232,.5)) drop-shadow(0 0 16px rgba(114,176,217,.2)); }
  50% { filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(163,204,232,.9)) drop-shadow(0 0 36px rgba(114,176,217,.5)) drop-shadow(0 0 50px rgba(200,230,255,.3)); }
}

/* Breathing glow animation (color version for scrolled) */
@keyframes logo-breathe-color {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(163,204,232,.4)) drop-shadow(0 0 16px rgba(114,176,217,.15)); }
  50% { filter: drop-shadow(0 0 16px rgba(163,204,232,.8)) drop-shadow(0 0 32px rgba(114,176,217,.4)) drop-shadow(0 0 48px rgba(200,230,255,.2)); }
}

/* Frost shimmer sweep effect — overlay on logo-img */
.logo-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.1) 30%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,.1) 70%,
    transparent 100%
  );
  animation: frost-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
.logo { position: relative; }
.logo-img { position: relative; overflow: hidden; }

@keyframes frost-shimmer {
  0%, 100% { left: -100%; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 200%; opacity: 1; }
  60%, 100% { opacity: 0; }
}
.logo span { color: rgba(255,255,255,.85); transition: color .4s; }

/* Scrolled: dark text */
.site-header.scrolled .logo { color: var(--midnight-ice); }
.site-header.scrolled .logo span { color: var(--arctic-blue); }

.main-nav ul {
  display: flex;
  gap: clamp(0px, 0.5vw, 4px);
}

.main-nav a {
  padding: 8px clamp(6px, 1.2vw, 14px);
  border-radius: var(--radius-sm);
  font-size: clamp(.75rem, 1.1vw, .95rem);
  white-space: nowrap;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: background .2s, color .4s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Scrolled: dark nav text */
.site-header.scrolled .main-nav a {
  color: var(--midnight-ice);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  background: rgba(74, 148, 196, 0.12);
  color: var(--arctic-blue);
}

.header-cta .btn {
  padding: 8px 20px;
  font-size: clamp(.75rem, 1.1vw, .9rem);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta {
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}
.lang-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Header CTA adapts to scroll state */
.site-header .header-cta .btn-primary {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.site-header.scrolled .header-cta .btn-primary {
  background: linear-gradient(135deg, var(--deep-glacial), var(--arctic-blue));
  border: none;
  color: #fff;
}

/* Language Toggle */
.lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: all .3s;
  margin-left: 8px;
}
.lang-toggle:hover {
  background: rgba(255,255,255,.15);
}
.site-header.scrolled .lang-toggle {
  border-color: var(--glacier-blue);
  color: var(--midnight-ice);
}
.site-header.scrolled .lang-toggle:hover {
  background: var(--ice-blue);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  transition: .3s;
}
.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after {
  background: var(--midnight-ice);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { content: ''; top: -8px; }
.nav-toggle span::after { content: ''; top: 8px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #2A6B8F 0%, #3D8AB5 20%, #5BA3CA 40%, #78B8D8 60%, #9DCDE5 80%, #C0DFF0 100%);
  z-index: 0;
}

/* Frost overlay for icy feel */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(210, 240, 255, .2) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 25%, rgba(230, 245, 255, .15) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(190, 230, 250, .12) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 70%, rgba(255, 255, 255, .08) 0%, transparent 30%);
}

/* Ice crystal particles */
.hero-crystals {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.crystal {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(200,230,255,.4) 40%, transparent 70%);
  border-radius: 50%;
  animation: crystal-fall linear infinite;
}

.crystal::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .8);
  font-size: inherit;
}

@keyframes crystal-fall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: .6; }
  100% {
    transform: translateY(calc(100vh + 20px)) rotate(360deg) scale(.6);
    opacity: 0;
  }
}

/* Animated aurora / ice refraction in hero */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(163, 204, 232, .3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 25%, rgba(114, 176, 217, .25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 55% 80%, rgba(74, 148, 196, .2) 0%, transparent 50%);
  animation: aurora 12s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Prismatic light streaks */
  background:
    linear-gradient(125deg, transparent 30%, rgba(255,255,255,.04) 35%, rgba(255,255,255,.08) 37%, transparent 42%),
    linear-gradient(125deg, transparent 55%, rgba(163,204,232,.06) 59%, rgba(255,255,255,.1) 61%, transparent 66%),
    linear-gradient(125deg, transparent 75%, rgba(114,176,217,.05) 78%, rgba(255,255,255,.07) 80%, transparent 85%);
}

@keyframes aurora {
  0% {
    transform: scale(1) translateX(0);
    opacity: .7;
  }
  100% {
    transform: scale(1.1) translateX(3%);
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Ice crystal texture overlay */
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.08) 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.06) 0%, transparent 25%),
    rgba(26, 92, 135, 0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,.15);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,.1);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  padding: 8px 22px;
  font-size: .9rem;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 16px rgba(0,0,0,.1);
}

/* Hero decorative shapes — ice crystals */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes .circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(163, 204, 232, 0.15);
  animation: float 18s ease-in-out infinite;
}

.hero-shapes .circle:nth-child(1) {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(163, 204, 232, .08) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero-shapes .circle:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: 8%;
  background: radial-gradient(circle, rgba(114, 176, 217, .1) 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.hero-shapes .circle:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 25%;
  right: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 70%);
  animation-delay: -12s;
  animation-duration: 15s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.03); }
  66% { transform: translate(-10px, 10px) scale(.97); }
}

/* ---------- Hero Icebergs & Waves ---------- */
.hero-icebergs {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 250px;
  pointer-events: none;
  z-index: 1;
}

.iceberg {
  position: absolute;
  bottom: 0;
  opacity: 1;
}

.iceberg-1 {
  left: 1%;
  width: 340px;
  height: 220px;
  animation: iceberg-float 9s ease-in-out infinite;
}

.iceberg-2 {
  right: 5%;
  width: 180px;
  height: 250px;
  animation: iceberg-float 11s ease-in-out infinite reverse;
}

.iceberg-3 {
  left: 38%;
  width: 120px;
  height: 100px;
  animation: iceberg-float 7s ease-in-out infinite;
  animation-delay: -2s;
}

.iceberg-4 {
  right: 28%;
  width: 70px;
  height: 60px;
  animation: iceberg-float 6s ease-in-out infinite;
  animation-delay: -4s;
}

/* Floating ice pieces on water surface */
.hero-floating-ice {
  position: absolute;
  bottom: 55px;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 2;
}

.ice-piece {
  position: absolute;
  bottom: 0;
  border-radius: 40% 50% 45% 55%;
  background: rgba(230, 248, 255, .25);
  border: 1px solid rgba(255, 255, 255, .15);
  animation: ice-drift linear infinite;
}

.ice-piece-1 { width: 60px; height: 14px; left: 8%; animation-duration: 18s; }
.ice-piece-2 { width: 35px; height: 10px; left: 25%; animation-duration: 22s; animation-delay: -5s; }
.ice-piece-3 { width: 80px; height: 16px; left: 50%; animation-duration: 25s; animation-delay: -10s; }
.ice-piece-4 { width: 25px; height: 8px; left: 70%; animation-duration: 15s; animation-delay: -3s; }
.ice-piece-5 { width: 45px; height: 12px; left: 88%; animation-duration: 20s; animation-delay: -8s; }

@keyframes ice-drift {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  25% { transform: translateX(30px) translateY(-3px) rotate(2deg); }
  50% { transform: translateX(-20px) translateY(2px) rotate(-1deg); }
  75% { transform: translateX(15px) translateY(-2px) rotate(1.5deg); }
  100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes iceberg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 2;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-1 {
  animation: wave-drift 7s ease-in-out infinite;
}

.wave-2 {
  animation: wave-drift 9s ease-in-out infinite reverse;
  bottom: -5px;
}

.wave-3 {
  animation: wave-drift 11s ease-in-out infinite;
  bottom: -10px;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 140px 0 70px;
  text-align: center;
  background: linear-gradient(135deg, #143F63 0%, var(--ink-dark) 30%, var(--ocean-blue) 65%, var(--deep-teal) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Ice crystal texture in page header */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(163,204,232,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 40%, rgba(114,176,217,.15) 0%, transparent 45%),
    linear-gradient(125deg, transparent 40%, rgba(255,255,255,.04) 45%, transparent 50%);
  animation: aurora 15s ease-in-out infinite alternate;
}

.page-header h1 { color: #fff; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.page-header p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; }

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #F0F7FC);
}

/* ---------- Feature Cards ---------- */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lake-blue), var(--glacier-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 148, 196, .3), inset 0 1px 0 rgba(255,255,255,.3);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: .95rem; }

/* ---------- Highlight Section (24hr) ---------- */
.highlight-section {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(114, 176, 217, .15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(163, 204, 232, .12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(74, 148, 196, .06) 0%, rgba(214, 232, 245, .15) 100%);
}

/* Top/bottom ice refraction lines */
.highlight-section::before,
.highlight-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
}

.highlight-section::before {
  top: 0;
  background: linear-gradient(90deg, transparent, var(--glacier-green), rgba(255,255,255,.8), var(--glacier-green), transparent);
}

.highlight-section::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--glacier-green), rgba(255,255,255,.8), var(--glacier-green), transparent);
}

.highlight-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--lake-blue), var(--deep-teal));
  color: #fff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(74, 148, 196, .3);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lake-blue), var(--deep-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(74, 148, 196, .3), inset 0 1px 0 rgba(255,255,255,.3);
  position: relative;
}

/* Glow ring around step number */
.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(114, 176, 217, .3);
}

.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; }

/* Connector line between steps — ice crystal style */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  width: calc(100% - 68px);
  height: 2px;
  background: linear-gradient(90deg, var(--glacier-green), rgba(255,255,255,.6), var(--glacier-green));
  opacity: .6;
}

/* ---------- Product Card ---------- */
.product-section { padding: 60px 0; }
.product-section:nth-child(even) { flex-direction: row-reverse; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-grid.reverse { direction: rtl; }
.product-grid.reverse > * { direction: ltr; }

.product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  /* Icy crystal gradient background for placeholder */
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(163,204,232,.3) 0%, transparent 45%),
    linear-gradient(135deg, var(--frost-white) 0%, var(--ice-blue) 50%, rgba(114,176,217,.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(26, 92, 135, .1);
}

/* Inner glass shine on product images */
.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}

.product-info h3 { margin-bottom: 12px; color: var(--ink-dark); }
.product-info .desc { margin-bottom: 16px; }
.product-info .suitable { margin-bottom: 16px; font-size: .95rem; }
.product-info .suitable strong { color: var(--ink-dark); }

.spec-list {
  background: rgba(214, 232, 245, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .9rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.spec-list dt {
  font-weight: 600;
  color: var(--ink-dark);
  margin-top: 8px;
}

.spec-list dt:first-child { margin-top: 0; }
.spec-list dd { color: #3A6A7A; margin-left: 0; }

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-glass-mid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.compare-table th {
  background: linear-gradient(135deg, var(--lake-blue), var(--deep-teal));
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}

.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(163, 204, 232, .2);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255, 255, 255, .2); }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  transition: background .2s;
}

.faq-question:hover { background: rgba(255, 255, 255, .2); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--lake-blue);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after { content: '\2212'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  color: #4A7A9A;
  line-height: 1.8;
}

/* ---------- Contact Cards ---------- */
.contact-card { text-align: center; }
.contact-card .icon { font-size: 2rem; margin-bottom: 12px; display: flex; justify-content: center; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: .95rem; }

/* ---------- Contact Form ---------- */
.contact-form { max-width: 640px; margin: 0 auto; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
  color: var(--ink-dark);
}

.form-group label .required { color: #e74c3c; margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(163, 204, 232, .4);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-dark);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lake-blue);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 148, 196, .12), 0 0 20px rgba(114, 176, 217, .1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Service Area ---------- */
.area-column h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--lake-blue);
}

.area-column p {
  font-size: .95rem;
  line-height: 1.8;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #143F63 0%, var(--ink-dark) 40%, var(--ocean-blue) 100%);
  padding: 70px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Ice refraction in CTA */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(114,176,217,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(163,204,232,.1) 0%, transparent 45%),
    linear-gradient(125deg, transparent 35%, rgba(255,255,255,.04) 40%, transparent 45%);
  pointer-events: none;
}

.cta-banner h2 { color: #fff; margin-bottom: 24px; text-shadow: 0 2px 16px rgba(0,0,0,.15); }
.cta-banner .btn-primary {
  background: linear-gradient(135deg, var(--glacier-green), var(--lake-blue));
  color: #fff;
  font-weight: 700;
}
.cta-banner .btn-primary:hover { background: #fff; color: var(--ink-dark); }
.cta-banner .btn-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink-dark) 0%, #143F63 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 0;
}

.footer-logo {
  margin-bottom: 24px;
  margin-left: -60px;
}
.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-logo .footer-logo-compact { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: .9rem;
  line-height: 2;
}

.footer-col a:hover { color: var(--glacier-green); }

.footer-links a { display: block; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: all .25s;
}

.footer-social a:hover {
  background: rgba(114, 176, 217, 0.15);
  border-color: var(--glacier-green);
  color: var(--glacier-green);
  box-shadow: 0 0 16px rgba(114, 176, 217, .2);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Map placeholder ---------- */
.map-placeholder {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,.3), transparent 50%),
    linear-gradient(135deg, var(--frost-white), var(--ice-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-blue);
  font-size: 1.1rem;
  border: 1.5px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--glacier-green), rgba(114,176,217,.3));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lake-blue), var(--glacier-green));
  border: 3px solid var(--frost-white);
  box-shadow: 0 0 12px rgba(74, 148, 196, .3);
}

/* Minor events: smaller dot */
.timeline-item.minor::before {
  width: 10px;
  height: 10px;
  left: -31px;
  top: 7px;
  background: var(--glacier-green);
  border-width: 2px;
  box-shadow: 0 0 8px rgba(114, 176, 217, .2);
}

.timeline-item.minor {
  margin-bottom: 16px;
}

.timeline-item.minor h3 { font-size: .9rem; opacity: .8; }
.timeline-item.minor p { font-size: .85rem; opacity: .75; }

/* Year group: minor text hidden, dots always visible, expand on hover */
.timeline-year-group {
  padding: 12px 0;
  margin-bottom: 0;
  position: relative;
  cursor: default;
}

/* Large invisible hover zone */
.timeline-year-group::before {
  content: '';
  position: absolute;
  top: -40px;
  bottom: -40px;
  left: -200px;
  right: -200px;
  z-index: -1;
}

/* Minor items: dot always visible, text hidden */
.timeline-year-group .timeline-item.minor {
  margin-bottom: 8px;
  position: relative;
}

/* Hide only the text, not the dot */
.timeline-year-group .timeline-item.minor h3,
.timeline-year-group .timeline-item.minor p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height .3s ease, opacity .3s, margin .3s;
}

/* Hint: "..." after major item when there are minor items */
.timeline-year-group.has-minor > .timeline-item.major::after {
  content: '＋';
  display: inline-block;
  margin-left: 8px;
  color: var(--glacier-green);
  font-size: .75rem;
  opacity: .5;
  transition: opacity .2s;
}

/* On hover: expand minor text, hide hint */
.timeline-year-group:hover > .timeline-item.major::after {
  opacity: 0;
}

.timeline-year-group:hover .timeline-item.minor h3,
.timeline-year-group:hover .timeline-item.minor p,
.timeline-year-group.expanded .timeline-item.minor h3,
.timeline-year-group.expanded .timeline-item.minor p {
  max-height: 60px;
  opacity: 1;
  margin-bottom: 4px;
}

.timeline-item h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item p { font-size: .95rem; }

/* ---------- Insurance Badge ---------- */
.insurance-badge {
  text-align: center;
  padding: 48px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.insurance-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
}

.insurance-badge .amount {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--lake-blue);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(74, 148, 196, .2);
}

/* ---------- Tab Navigation ---------- */
.tab-nav {
  display: flex;
  gap: 0;
  justify-content: center;
  background: rgba(214, 232, 245, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 6px;
  max-width: 480px;
  margin: 0 auto;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  font-family: var(--font-main);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-arctic);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .25s;
  border-radius: calc(var(--radius) - 4px);
  letter-spacing: .5px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, .5);
  color: var(--midnight-ice);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--arctic-blue), var(--deep-glacial));
  box-shadow: 0 4px 16px rgba(74, 148, 196, .35);
}
.tab-btn img {
  width: clamp(28px, 6vw, 45px);
  height: clamp(28px, 6vw, 45px);
  flex-shrink: 0;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Path Card (homepage quick selection) ---------- */
.path-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.path-card:hover {
  transform: translateY(-6px);
  color: inherit;
}

.path-card h3 { margin-bottom: 8px; }
.path-card p { font-size: .95rem; margin-bottom: 16px; }

.path-link {
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--arctic-blue);
  transition: color .2s;
}

.path-card:hover .path-link { color: var(--deep-arctic); }

/* ---------- Related Links ---------- */
.related-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .9rem;
}

.related-links span { color: var(--deep-arctic); font-weight: 500; }

.related-links a {
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(214,232,245,.3);
  color: var(--arctic-blue);
  font-weight: 500;
  transition: all .2s;
}

.related-links a:hover {
  background: var(--arctic-blue);
  color: #fff;
}

/* ---------- Nav Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(26,92,135,.12);
  padding: 8px 0;
  z-index: 100;
  flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.nav-dropdown .dropdown-menu a {
  padding: 10px 20px;
  font-size: .9rem;
  color: var(--midnight-ice) !important;
  border-radius: 0;
}

.nav-dropdown .dropdown-menu a:hover {
  background: rgba(74,148,196,.1);
  color: var(--arctic-blue) !important;
}

/* ---------- Ice Type Card (products-types) ---------- */
/* Product types: same-row cards must have equal height */
#product-types-container .grid-2 {
  align-items: stretch;
}

.ice-type-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 28px;
  align-items: center;
}

.ice-type-info h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.ice-shape {
  font-size: .9rem;
  color: var(--arctic-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.ice-dimension {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: rgba(214,232,245,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.dimension-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--deep-arctic);
  white-space: nowrap;
}

.dimension-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--midnight-ice);
}

.ice-desc { font-size: .95rem; margin-bottom: 10px; }
.ice-use { font-size: .9rem; }
.ice-use strong { color: var(--midnight-ice); }

/* ---------- Sales Card (products-sales) ---------- */
.sales-card .product-image {
  aspect-ratio: 5/3;
}

.sales-card {
  position: relative;
}

.sales-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--midnight-ice);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sales-badge.accent {
  background: var(--arctic-blue);
}

.sales-badge.new {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.sales-type-hint {
  font-size: .85rem;
  color: var(--deep-arctic);
  opacity: .8;
  margin-bottom: 12px;
  font-style: italic;
}

.sales-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.sales-specs {
  font-size: .9rem;
}

.sales-specs dt {
  font-weight: 600;
  color: var(--midnight-ice);
  margin-top: 10px;
}

.sales-specs dt:first-child { margin-top: 0; }

.sales-specs dd {
  color: #4A7A9A;
  margin-left: 0;
}

/* ---------- Announcement Marquee ---------- */
.announcement-marquee {
  display: flex;
  gap: 60px;
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
  white-space: nowrap;
}

.announcement-marquee:hover {
  animation-play-state: paused;
}

.announcement-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.announcement-marquee-item strong {
  font-weight: 700;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Announcement Banner (from admin) ---------- */
.announcement-banner {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--lake-blue), var(--deep-teal));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(26, 92, 135, .15);
}

/* ---------- Flow Steps (訂購流程圓形圖) ---------- */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.flow-circle {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--frost-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 16px rgba(26, 92, 135, .08);
}

.flow-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(26, 92, 135, .15);
}

.flow-circle img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.flow-circle.done {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.8);
}

.flow-label {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--midnight-ice);
  text-align: center;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-top: 42px;
  color: var(--arctic-blue);
  opacity: .5;
}

@media (max-width: 768px) {
  .flow-steps {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .flow-arrow {
    display: none;
  }
  .flow-step {
    width: 40%;
  }
}

/* ---------- Legal Content ---------- */
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--midnight-ice);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: .95rem;
  line-height: 1.8;
}

/* ---------- LINE Floating Button ---------- */
.line-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06C755;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(6, 199, 85, .35);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.line-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(6, 199, 85, .5);
  color: #fff;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(214, 232, 245, .5);
  color: var(--arctic-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  box-shadow: 0 2px 12px rgba(26, 92, 135, .1);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--arctic-blue);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .logo-full { display: none; }
  .logo-compact { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { margin-left: 0; }
  .footer-logo .footer-logo-full { display: none; }
  .footer-logo .footer-logo-compact { display: inline; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(255,255,255,.4);
    z-index: 999;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 12px; }
  .main-nav a { padding: 10px 24px; font-size: 1.05rem; color: var(--midnight-ice) !important; border-radius: 8px; text-align: center; transition: background .2s; }
  .main-nav a:hover,
  .main-nav a.active { background: rgba(74, 148, 196, 0.08); }
  .header-inner > .logo { margin-right: auto; }
  .header-inner > .header-cta { margin-left: 0; }
  .header-cta { gap: 8px; }
  .header-cta .btn { font-size: .8rem; padding: 4px 12px; }
  .header-cta .lang-toggle { margin-left: 0; padding: 4px 10px; }
  .nav-toggle { margin-left: 8px; }

  /* Mobile dropdown: always visible inline */
  .nav-dropdown .dropdown-menu {
    display: flex;
    position: static;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-dropdown .dropdown-menu a { font-size: .95rem !important; padding: 8px 24px !important; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-grid.reverse { direction: ltr; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .compare-table { font-size: .85rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }

  .line-float { width: 36px; height: 36px; bottom: 16px; right: 16px; }
  .line-float img { width: 20px; height: 20px; }
  .back-to-top { width: 36px; height: 36px; bottom: 60px; right: 16px; font-size: .8rem; }

  /* Feature cards: horizontal layout on mobile */
  .grid-3 > .glass-card.text-center {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    text-align: left;
    padding: 20px;
  }
  .grid-3 > .glass-card.text-center .feature-icon {
    grid-row: 1 / -1;
    margin: 0 !important;
    align-self: center;
  }
  .grid-3 > .glass-card.text-center h3 { margin-bottom: 4px; align-self: end; }
  .grid-3 > .glass-card.text-center p { margin-bottom: 0; align-self: start; }


  /* Compare table: no word break on mobile */
  .compare-table th,
  .compare-table td { white-space: nowrap; }

  /* Related links: vertical on mobile */
  .related-links {
    flex-direction: column;
    align-items: center;
  }

  /* Ice type card: smaller on mobile */
  .ice-type-card .product-image { max-height: 160px; }
  .ice-type-card h2 { font-size: 1.15rem; }
  .ice-type-card .ice-desc,
  .ice-type-card .ice-use { font-size: .85rem; }
  .ice-dimension { padding: 8px 12px; margin-bottom: 10px; }
  .dimension-value { font-size: .95rem; }

  /* Sales card: smaller on mobile */
  .sales-card { padding: 20px; }
  .sales-card .product-image { max-height: 160px; }
  .sales-card h3 { font-size: 1rem; }
  .sales-specs { font-size: .85rem; }

  /* Sales badge: don't stretch full width */
  .sales-badge { align-self: flex-start; }

  /* Contact cards: horizontal on mobile */
  .contact-card {
    display: grid !important;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 0 14px;
    text-align: left !important;
    padding: 16px 20px !important;
  }
  .contact-card .icon {
    grid-row: 1 / -1;
    align-self: center;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
  }
  .contact-card .icon img { width: 48px !important; height: 48px !important; }
  .contact-card h3 { margin-bottom: 2px; align-self: end; }
  .contact-card p { margin-bottom: 0; font-size: .85rem !important; }

  /* Station cards: smaller on mobile */
  .station-scroll > .glass-card { min-width: 260px; padding: 20px; }
  .station-card-body h3 { font-size: 1.05rem; }
  .station-card-body .station-addr { font-size: .85rem; min-height: auto; }
  .station-card-body .station-icon { width: 48px; height: 48px; margin-bottom: 8px; }
  .station-card-body .station-icon img { width: 28px; height: 28px; }
  .station-card-body .hours-badge { font-size: .8rem; padding: 4px 10px; }
  .station-card-body .btn { font-size: .85rem; padding: 8px 16px; }
}

@media (max-width: 650px) {
  .ice-type-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(.92);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: .4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: .5s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile Performance Optimizations ---------- */
@media (max-width: 768px) {
  /* Reduce backdrop-filter complexity: remove saturate on mobile */
  .site-header.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Disable body::before shimmer animation on mobile */
  body::before {
    animation: none !important;
    opacity: .5;
  }
}
