/* ==========================================================================
   ERAWAN DIGITAL PLUS — REDESIGNED STYLESHEET
   Color System Ratio:
     - 50% White (#FFFFFF / #F6F9FD)
     - 30% Deep Royal Navy Blue (#0B1F44 / #12316B / #1A448F)
     - 10% Sky / Digital Blue (#0EA5E9 / #38BDF8 / #E0F2FE)
     - 10% Erawan Gold (#C8982E / #DFB54B / #FBF3DC)
   ========================================================================== */

:root {
  /* 50% White Surfaces */
  --white: #ffffff;
  --surface-soft: #f5f9fe;
  --border-light: #e2eaf4;

  /* 30% Deep Navy Blue */
  --navy-950: #081836;
  --navy-900: #0f2957;
  --navy-800: #163b7a;
  --navy-700: #1e4d9b;
  --ink-body: #3b4c68;
  --ink-muted: #64748b;

  /* 10% Sky / Digital Blue */
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-100: #e0f2fe;
  --sky-50: #f0f9ff;

  /* 10% Erawan Gold */
  --gold-700: #996d15;
  --gold-600: #b88723;
  --gold-500: #d1a136;
  --gold-400: #e7c265;
  --gold-100: #fcf4df;

  /* Functional */
  --line-green: #06c755;
  --line-green-dark: #05a847;

  /* Elevation & Geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(15, 41, 87, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 41, 87, 0.10);
  --shadow-lg: 0 24px 56px rgba(8, 24, 54, 0.18);

  --header-h: 78px;
  --container-max: 1200px;
  --font-sans: 'IBM Plex Sans Thai', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.icon-sm {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.text-gold {
  color: var(--gold-400);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 55%, var(--gold-600) 100%);
  color: var(--navy-950);
  box-shadow: 0 10px 26px rgba(209, 161, 54, 0.34);
}

.btn-gold:hover {
  box-shadow: 0 14px 32px rgba(209, 161, 54, 0.48);
  filter: brightness(1.04);
}

.btn-gold-outline {
  background: var(--gold-100);
  color: var(--navy-900);
  border-color: var(--gold-400);
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-gold-outline:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

.btn-sky-outline {
  background: rgba(14, 165, 233, 0.14);
  color: var(--white);
  border-color: rgba(56, 189, 248, 0.55);
  backdrop-filter: blur(8px);
}

.btn-sky-outline:hover {
  background: var(--sky-500);
  border-color: var(--sky-400);
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.34);
}

.btn-white-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-white-ghost:hover {
  background: var(--white);
  color: var(--navy-900);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 41, 87, 0.22);
}

.btn-navy:hover {
  background: var(--navy-800);
  box-shadow: 0 14px 30px rgba(15, 41, 87, 0.3);
}

.btn-navy-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-navy-outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-line {
  background: var(--line-green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.25);
}

.btn-line:hover {
  background: var(--line-green-dark);
}

/* ==========================================================================
   HEADER / NAVIGATION (White Surface)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 41, 87, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  background: var(--white);
  padding: 2px;
  box-shadow: 0 4px 12px rgba(15, 41, 87, 0.1);
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-900);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--sky-600);
  background: var(--sky-50);
}

.nav-link.is-active {
  color: var(--navy-900);
  font-weight: 600;
  background: var(--sky-100);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}

.lang-btn.is-active {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(15, 41, 87, 0.2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 18px 40px rgba(15, 41, 87, 0.12);
}

.mobile-drawer-inner {
  padding: 18px 24px 24px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
}

.mobile-nav-link:hover {
  background: var(--sky-50);
  color: var(--sky-600);
}

.mobile-drawer-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-start;
}

.lang-switcher--mobile .lang-btn {
  padding: 7px 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   2.1 HERO SECTION (Deep Navy Blue — 30% Pillar + Sky & Gold Accents)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-950) 0%, var(--navy-900) 56%, var(--navy-800) 100%);
  color: var(--white);
  padding: 68px 0 84px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 60% 45%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero-glow-sky {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
}

.hero-glow-gold {
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 161, 54, 0.22) 0%, rgba(209, 161, 54, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.eyebrow--gold {
  background: rgba(209, 161, 54, 0.14);
  border: 1px solid rgba(231, 194, 101, 0.45);
  color: var(--gold-400);
}

.eyebrow--sky {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: var(--sky-400);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.06rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-desc strong {
  color: var(--white);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dbd-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 12px;
  border: 2px solid var(--gold-400);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease);
}

.dbd-badge:hover {
  transform: translateY(-2px);
}

.dbd-badge img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.15;
}

.metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
}

.metric-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
}

/* Hero Visual Column */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.hero-visual-ring {
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--gold-400), rgba(56, 189, 248, 0.65), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.16), rgba(8, 24, 54, 0.45));
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-900);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(8, 24, 54, 0.28);
  border: 1px solid var(--border-light);
  max-width: 255px;
}

.floating-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.floating-card span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.floating-card--top {
  top: 24px;
  left: -26px;
}

.floating-card--bottom {
  bottom: 24px;
  right: -20px;
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.floating-icon--sky {
  background: var(--sky-100);
  color: var(--sky-600);
}

.floating-icon--gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

/* ==========================================================================
   SHARED SECTION STYLING (White 50% & Soft White Canvas)
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section--white {
  background: var(--white);
}

.section--soft {
  background: var(--surface-soft);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--white);
}

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-600);
  background: var(--sky-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--ink-body);
  line-height: 1.72;
}

/* ==========================================================================
   2.2 SERVICES GRID (6 Core SME Services)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-900), var(--sky-500), var(--gold-500));
  opacity: 0.85;
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.45);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--sky-50), var(--sky-100));
  color: var(--navy-900);
  display: grid;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.25);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--navy-900);
  color: var(--gold-400);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.service-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Services LINE CTA Bar */
.services-cta-bar {
  margin-top: 40px;
  background: linear-gradient(120deg, var(--surface-soft) 0%, var(--white) 55%, var(--gold-100) 100%);
  border: 1.5px solid rgba(209, 161, 54, 0.45);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.services-cta-copy h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.services-cta-copy p {
  font-size: 0.94rem;
  color: var(--ink-body);
}

.services-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

.section-bottom-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* ==========================================================================
   SUBPAGE HERO BANNER, BREADCRUMBS & MULTI-PAGE COMPONENTS
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 58%, var(--navy-800) 100%);
  color: var(--white);
  padding: 58px 0 64px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.page-hero-copy {
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--sky-400);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.42);
}

.page-hero-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero-desc {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.72;
  margin-bottom: 24px;
}

.page-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.22s var(--ease);
}

.jump-pill:hover {
  background: var(--gold-400);
  color: var(--navy-950);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.page-hero-emblem {
  width: 170px;
  height: 170px;
  border-radius: 28px;
  background: var(--white);
  padding: 12px;
  border: 2.5px solid var(--gold-400);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.page-hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

/* Portfolio Showcase Sections (ourwork.html) */
.work-group {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.work-group + .work-group {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border-light);
}

.work-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.work-group-head h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--navy-900);
}

.work-group-head p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.work-count-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid rgba(209, 161, 54, 0.4);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.portfolio-grid--content {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-grid--content .portfolio-trigger {
  aspect-ratio: 3 / 4;
}

.portfolio-grid--content .portfolio-trigger img {
  object-position: top center;
}

.portfolio-grid--logos {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.portfolio-grid--logos .portfolio-trigger {
  aspect-ratio: 1 / 1;
  background: var(--white);
  padding: 12px;
}

.portfolio-grid--logos .portfolio-trigger img {
  object-fit: contain;
}

.portfolio-grid--richmenu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-grid--richmenu .portfolio-trigger {
  aspect-ratio: 16 / 10.8;
}

.portfolio-grid--video {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.website-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.website-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.website-card .portfolio-trigger {
  aspect-ratio: 1 / 1;
}

.website-card-footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

.website-domain {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
}

.website-visit-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky-600);
  background: var(--sky-50);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sky-100);
  transition: all 0.2s var(--ease);
}

.website-visit-link:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

/* Pricing Packages (services.html) */
.pricing-section-block + .pricing-section-block {
  margin-top: 68px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-400);
}

.pricing-card--featured {
  border-color: var(--gold-500);
  box-shadow: 0 18px 42px rgba(15, 41, 87, 0.14);
  background: linear-gradient(180deg, var(--white) 0%, #fffdf6 100%);
}

.pricing-ribbon {
  position: absolute;
  top: -13px;
  right: 22px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(209, 161, 54, 0.35);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.pricing-sub {
  font-size: 0.86rem;
  color: var(--sky-600);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 22px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-600);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-unit {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--sky-600);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card--featured .pricing-features li::before {
  background: var(--gold-100);
  color: var(--gold-700);
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.pricing-card .btn {
  width: 100%;
}

/* Contact Page Quick Cards & Form (contact-us.html) */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.contact-mini-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-400);
}

.contact-mini-card h2,
.contact-mini-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.contact-mini-card p,
.contact-mini-card a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-mini-card a:hover {
  color: var(--sky-600);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
}

.form-field .req {
  color: #dc2626;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy-900);
  background: var(--surface-soft);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

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

.form-feedback {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-feedback[hidden] {
  display: none;
}

.mobile-nav-link.is-active {
  background: var(--sky-100);
  color: var(--navy-900);
}

.line-img-cta {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.line-img-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 30px rgba(6, 199, 85, 0.34);
}

.line-img-cta img {
  height: 58px;
  width: auto;
}

/* ==========================================================================
   2.3 VALUE PROPOSITION & BENTO COLLAGE (Deep Navy 30% Pillar)
   ========================================================================== */
.value-prop {
  position: relative;
  overflow: hidden;
}

.value-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 52px;
}

.bento-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 108px;
  gap: 12px;
}

.bento-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--navy-800);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-item--tall {
  grid-column: span 6;
  grid-row: span 3;
}

.bento-item:nth-child(2) {
  grid-column: span 6;
  grid-row: span 2;
}

.bento-item:nth-child(3) {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-item:nth-child(4) {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-item--wide {
  grid-column: span 7;
  grid-row: span 2;
}

.bento-mini-row {
  grid-column: span 5;
  grid-row: span 2;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.bento-item--mini {
  grid-column: auto;
  grid-row: auto;
}

.bento-badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(8, 24, 54, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 194, 101, 0.5);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-badge span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.04em;
}

.bento-badge small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.value-title {
  font-size: clamp(1.75rem, 2.9vw, 2.45rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
}

.value-desc {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.value-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.value-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 15px 18px;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.2);
  color: var(--sky-400);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.value-pillars strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.value-pillars p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.value-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   2.4 WORKFLOW — 4 CONNECTED STEPS (White Canvas)
   ========================================================================== */
.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 12px;
}

.workflow-connector {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--sky-500) 55%, var(--gold-500) 100%);
  border-radius: 3px;
  z-index: 1;
}

.workflow-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--sky-400), 0 10px 22px rgba(15, 41, 87, 0.18);
  margin-bottom: 20px;
}

.step-badge--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 0 0 2px var(--gold-400), 0 10px 24px rgba(209, 161, 54, 0.34);
}

.step-card {
  width: 100%;
  flex-grow: 1;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-400);
}

.step-card--highlight {
  background: linear-gradient(180deg, var(--white) 0%, var(--gold-100) 100%);
  border-color: rgba(209, 161, 54, 0.55);
}

.step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sky-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.step-card--highlight .step-label {
  color: var(--gold-700);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.35;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.65;
}

/* ==========================================================================
   FILTER TABS (Shared by Portfolio & Customer Reviews)
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-tabs--center {
  justify-content: center;
}

.filter-tab {
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.22s var(--ease);
}

.filter-tab:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
  background: var(--sky-50);
}

.filter-tab.is-active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(15, 41, 87, 0.22);
}

/* ==========================================================================
   PORTFOLIO GRID
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portfolio-card.is-hidden,
.portfolio-video-card.is-hidden,
.review-card.is-hidden {
  display: none;
}

.portfolio-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  background: var(--white);
  overflow: hidden;
}

.portfolio-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.portfolio-trigger:hover img {
  transform: scale(1.05);
}

.zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 41, 87, 0.88);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(231, 194, 101, 0.5);
  backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.portfolio-trigger:hover .zoom-pill,
.review-img-btn:hover .zoom-pill {
  background: var(--gold-400);
  color: var(--navy-950);
}

.portfolio-video-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  grid-column: span 1;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  padding: 18px 20px;
}

.video-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.video-meta p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   2.5 CUSTOMER REVIEWS GRID (Categorized Authentic Chat Screenshots)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(209, 161, 54, 0.55);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-cat-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--sky-100);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.review-stars {
  color: var(--gold-500);
  font-size: 0.92rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.review-img-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
}

.review-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease);
}

.review-img-btn:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   CLIENT LOGOS DUAL MARQUEE
   ========================================================================== */
.logos-section {
  padding-top: 24px;
  padding-bottom: 84px;
  overflow: hidden;
}

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 16px;
}

.marquee-row--left {
  animation: marqueeLeft 46s linear infinite;
}

.marquee-row--right {
  animation: marqueeRight 50s linear infinite;
}

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

.logo-tile {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(15, 41, 87, 0.05);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.logo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contact-lead {
  color: var(--ink-body);
  margin-bottom: 26px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sky-50);
  color: var(--sky-600);
  border: 1px solid var(--sky-100);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 19px;
  height: 19px;
}

.contact-list small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.contact-list a,
.contact-list span {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.45;
}

.contact-list a:hover {
  color: var(--sky-600);
}

.contact-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.contact-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  min-height: 400px;
  background: var(--white);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* ==========================================================================
   2.6 FOOTER (Deep Navy Blue — 30% Brand Anchor)
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.84);
  border-top: 3px solid var(--gold-500);
}

.footer-top {
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr;
  gap: 44px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
  border: 2px solid var(--gold-400);
}

.footer-company {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.footer-company-th {
  font-size: 0.82rem;
  color: var(--gold-400);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  max-width: 390px;
}

.footer-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: var(--gold-400);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--sky-400);
  padding-left: 4px;
}

.partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.partner-pill svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.partner-pill--fb svg {
  color: #1877f2;
  background: var(--white);
  border-radius: 50%;
  padding: 2px;
}

.partner-pill--line svg {
  color: var(--line-green);
}

.partner-pill strong {
  display: block;
  font-size: 0.94rem;
  color: var(--white);
  line-height: 1.2;
}

.partner-pill small {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.68);
}

.partner-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--sky-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

.privacy-link {
  color: var(--gold-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy-link:hover {
  color: var(--sky-400);
}

/* ==========================================================================
   RESPONSIVE BOTTOM STICKY CTA BAR (LINE & CALL US)
   ========================================================================== */
.mobile-sticky-cta {
  display: none;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 54, 0.84);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: min(860px, 94vw);
  max-height: 90vh;
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-900);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  background: var(--navy-900);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-row {
    animation: none;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1023px) {
  .primary-nav,
  .header-phone-btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-grid,
  .value-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-visual-frame {
    max-width: 420px;
  }

  .floating-card--top {
    left: 10px;
    top: 12px;
  }

  .floating-card--bottom {
    right: 10px;
    bottom: 12px;
  }

  .services-grid,
  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-connector {
    display: none;
  }

  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 26px 22px;
  }

  .services-cta-actions {
    justify-content: center;
  }

  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero-emblem {
    width: 124px;
    height: 124px;
  }

  .pricing-grid,
  .pricing-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid--content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid--logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  /* Responsive Bottom Sticky CTA Bar (LINE + Call Us) */
  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-top: 2px solid var(--gold-400);
    box-shadow: 0 -8px 28px rgba(8, 24, 54, 0.16);
  }

  .sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 700;
    transition: transform 0.2s var(--ease);
  }

  .sticky-btn:active {
    transform: scale(0.97);
  }

  .sticky-btn svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }

  .sticky-btn--line {
    background: var(--line-green);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.28);
  }

  .sticky-btn--call {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    border: 1.5px solid var(--gold-400);
    box-shadow: 0 6px 16px rgba(15, 41, 87, 0.25);
  }

  /* Reserve space at bottom of footer so sticky CTA bar never covers copyright */
  .site-footer {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 639px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    height: 66px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .brand-sub {
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.74rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 6px 13px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .floating-card {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .services-grid,
  .workflow-track,
  .portfolio-grid,
  .portfolio-grid--richmenu,
  .portfolio-grid--video,
  .reviews-grid,
  .pricing-grid,
  .pricing-grid--4,
  .contact-info-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .portfolio-grid--logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-collage {
    grid-auto-rows: 92px;
    gap: 10px;
  }

  .bento-item--tall {
    grid-column: span 12;
    grid-row: span 3;
  }

  .bento-item:nth-child(2) {
    grid-column: span 6;
    grid-row: span 2;
  }

  .bento-item:nth-child(3) {
    grid-column: span 6;
    grid-row: span 1;
  }

  .bento-item:nth-child(4) {
    grid-column: span 6;
    grid-row: span 1;
  }

  .bento-item--wide {
    grid-column: span 12;
    grid-row: span 2;
  }

  .bento-mini-row {
    grid-column: span 12;
    grid-row: span 2;
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-cta-btns {
    flex-direction: column;
  }

  .contact-cta-btns .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 18px 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   V3 UPGRADE: HERO VIDEO BACKDROP, MODERN ANIMATIONS, AEO/GEO & LEGAL PAGES
   ========================================================================== */

/* Top Reading Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 110;
  background: linear-gradient(90deg, var(--sky-400) 0%, var(--sky-500) 45%, var(--gold-400) 100%);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

/* Hero Ambient Video Backdrop */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.03);
}

.hero-video-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(14, 165, 233, 0.24) 0%, rgba(8, 24, 54, 0) 58%),
    linear-gradient(112deg, rgba(8, 24, 54, 0.88) 0%, rgba(15, 41, 87, 0.76) 52%, rgba(8, 24, 54, 0.64) 100%);
}

.hero-video-toggle {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 24, 54, 0.62);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-video-toggle:hover {
  background: rgba(15, 41, 87, 0.9);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.hero-video-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--gold-400);
}

/* Modern Ambient Animations & Micro-Interactions */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes floatSlowAlt {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 194, 101, 0.65); }
  50% { box-shadow: 0 0 0 6px rgba(231, 194, 101, 0); }
}

@keyframes shimmerMove {
  0% { transform: translateX(-140%) skewX(-20deg); }
  100% { transform: translateX(240%) skewX(-20deg); }
}

.eyebrow-dot {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.floating-card--top {
  animation: floatSlow 5.5s ease-in-out infinite;
}

.floating-card--bottom {
  animation: floatSlowAlt 6.2s ease-in-out infinite;
}

.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-140%) skewX(-20deg);
  pointer-events: none;
}

.btn-gold:hover::after {
  animation: shimmerMove 0.85s var(--ease);
}

/* Cursor-Follow Spotlight on Service & Pricing Cards */
.service-card::after,
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 165, 233, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.service-card:hover::after,
.pricing-card:hover::after {
  opacity: 1;
}

.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

/* AEO / GEO Direct-Answer Summary & FAQ Accordion */
.aeo-summary-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.aeo-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.aeo-summary-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-900);
}

.aeo-pill {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid rgba(209, 161, 54, 0.45);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.aeo-summary-text {
  font-size: 0.98rem;
  color: var(--ink-body);
  line-height: 1.75;
  margin-bottom: 18px;
}

.aeo-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.aeo-fact {
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
}

.aeo-fact dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sky-600);
  margin-bottom: 3px;
}

.aeo-fact dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item.is-open {
  border-color: var(--sky-400);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.45;
}

.faq-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--sky-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(45deg);
  background: var(--navy-900);
  color: var(--gold-400);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.75;
}

/* Updated 2x2 Footer Partner Badges (Facebook, LINE, LinkedIn, YouTube) */
.partner-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.partner-pill--linkedin svg {
  color: #0a66c2;
  background: var(--white);
  border-radius: 6px;
  padding: 2px;
}

.partner-pill--youtube svg {
  color: #ff0000;
  background: var(--white);
  border-radius: 6px;
  padding: 3px;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.32);
}

/* Dedicated Privacy & Terms Legal Page Layout */
.legal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.legal-toc h2 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-400);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-body);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.legal-toc a:hover {
  background: var(--sky-50);
  color: var(--navy-900);
  font-weight: 600;
}

.legal-body {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-sm);
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.legal-section {
  scroll-margin-top: calc(var(--header-h) + 22px);
}

.legal-section + .legal-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.legal-section h2 {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 0.96rem;
  color: var(--ink-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 12px 0 14px;
  padding-left: 0;
}

.legal-section li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.72;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-500);
}

.legal-section a {
  color: var(--sky-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* Back-to-Top Floating Button */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 72px;
  z-index: 85;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  background: var(--navy-900);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(8, 24, 54, 0.28);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1023px) {
  .aeo-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .back-to-top {
    bottom: calc(82px + env(safe-area-inset-bottom));
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .hero-video-toggle {
    right: 16px;
    bottom: 14px;
  }
}

@media (max-width: 639px) {
  .aeo-summary-card {
    padding: 22px 18px;
  }

  .aeo-facts-grid,
  .partner-badges {
    grid-template-columns: 1fr;
  }

  .legal-body {
    padding: 26px 20px;
  }

  .faq-trigger {
    padding: 16px 18px;
    font-size: 0.96rem;
  }

  .faq-panel-inner p {
    padding: 0 18px 18px;
  }

  .floating-card--top,
  .floating-card--bottom {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card--top,
  .floating-card--bottom,
  .eyebrow-dot,
  .btn-gold::after,
  .logo-animated::before,
  .logo-animated,
  .page-hero-circuit-img {
    animation: none !important;
  }
}

/* ==========================================================================
   V4 UPGRADE: LOGO-ANIMATED, SLEEK LINE CTA, CIRCUIT BACKDROP & COOKIE UI
   ========================================================================== */

/* 1. Animated Brand Logo (logo-animated) */
@keyframes logoOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoBreathe {
  0%, 100% { box-shadow: 0 4px 14px rgba(15, 41, 87, 0.14), 0 0 0 0 rgba(209, 161, 54, 0.35); }
  50% { box-shadow: 0 6px 20px rgba(14, 165, 233, 0.24), 0 0 0 5px rgba(56, 189, 248, 0); }
}

.logo-animated {
  position: relative;
  border: none !important;
  padding: 2.5px !important;
  background: var(--white);
  animation: logoBreathe 3.8s ease-in-out infinite;
  transition: transform 0.35s var(--ease);
}

.logo-animated::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-400), var(--sky-400), var(--navy-800), var(--gold-500), var(--gold-400));
  z-index: 0;
  animation: logoOrbit 7s linear infinite;
}

.logo-animated::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--white);
  z-index: 1;
}

.logo-animated img {
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}

.brand:hover .logo-animated,
.logo-animated:hover {
  transform: scale(1.07);
}

.brand:hover .logo-animated img {
  transform: rotate(-4deg) scale(1.04);
}

.footer-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.footer-logo-wrap .footer-logo {
  width: 100%;
  height: 100%;
  border: none;
  padding: 2px;
  object-fit: contain;
}

/* 2. Refined Sleek LINE Contact Button (Compact Icon + Text) */
.btn-line-sleek {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #06c755 0%, #05a847 100%);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.24);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), filter 0.24s var(--ease);
  white-space: nowrap;
}

.btn-line-sleek svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-line-sleek:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.34);
  filter: brightness(1.04);
}

/* 3. Clickable Contact Action Chips Inside FAQ #5 */
.faq-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 22px;
}

.faq-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--surface-soft);
  color: var(--navy-900);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.faq-chip-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-chip-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.faq-chip-btn--line {
  background: #ecfdf3;
  border-color: rgba(6, 199, 85, 0.35);
  color: #047835;
}

.faq-chip-btn--line:hover {
  background: var(--line-green);
  border-color: var(--line-green);
  color: var(--white);
}

.faq-chip-btn--phone {
  background: var(--gold-100);
  border-color: rgba(209, 161, 54, 0.45);
  color: var(--navy-900);
}

.faq-chip-btn--phone:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-400);
}

.faq-chip-btn--email {
  background: var(--sky-50);
  border-color: var(--sky-100);
  color: var(--navy-800);
}

.faq-chip-btn--email:hover {
  background: var(--sky-600);
  border-color: var(--sky-600);
  color: var(--white);
}

/* 4. Tech Circuit Image Backdrop for Subpages (Our Work, Services, Contact) */
@keyframes circuitDrift {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.1) translate3d(-1.4%, -1%, 0); }
  100% { transform: scale(1.04) translate3d(0, 0, 0); }
}

.page-hero--circuit {
  background: var(--navy-950);
}

.page-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero-circuit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.46;
  animation: circuitDrift 22s ease-in-out infinite;
}

.page-hero-backdrop-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 45%, rgba(14, 165, 233, 0.16) 0%, rgba(8, 24, 54, 0) 55%),
    linear-gradient(105deg, rgba(8, 24, 54, 0.94) 0%, rgba(15, 41, 87, 0.82) 52%, rgba(8, 24, 54, 0.62) 100%);
}

/* Subtle Tech Circuit Banner Accent on Subpage Consultation CTA */
.services-cta-bar--circuit {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  border-color: rgba(231, 194, 101, 0.55);
  color: var(--white);
}

.services-cta-bar--circuit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../media/tech-circuit-bg.jpg') center right / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.services-cta-bar--circuit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 24, 54, 0.92) 0%, rgba(15, 41, 87, 0.78) 65%, rgba(8, 24, 54, 0.62) 100%);
  pointer-events: none;
}

.services-cta-bar--circuit > * {
  position: relative;
  z-index: 2;
}

.services-cta-bar--circuit .services-cta-copy h3 {
  color: var(--white);
}

.services-cta-bar--circuit .services-cta-copy p {
  color: rgba(255, 255, 255, 0.82);
}

/* 5. Compact Cookie Consent Floating Popup + Preferences Modal (Sanook Style) */
.cookie-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 108;
  width: min(410px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-light);
  border-top: 3px solid var(--gold-500);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 20px 52px rgba(8, 24, 54, 0.24);
  animation: cookieSlideUp 0.42s var(--ease);
}

.cookie-popup[hidden] {
  display: none;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-popup-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.cookie-popup-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cookie-popup-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.cookie-popup-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
}

.cookie-popup-brand {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sky-600);
}

.cookie-popup-text {
  font-size: 0.83rem;
  line-height: 1.62;
  color: var(--ink-body);
  margin-bottom: 14px;
}

.cookie-popup-text a {
  color: var(--navy-800);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-popup-text a:hover {
  color: var(--sky-600);
}

.cookie-popup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-btn {
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 15px;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.cookie-btn--settings {
  background: var(--surface-soft);
  color: var(--navy-900);
  border-color: var(--border-light);
}

.cookie-btn--settings:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
  background: var(--sky-50);
}

.cookie-btn--accept {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-color: var(--gold-400);
  box-shadow: 0 6px 16px rgba(15, 41, 87, 0.22);
}

.cookie-btn--accept:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

/* Cookie Preferences Modal (Sanook-style Center Dialog) */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 54, 0.72);
  backdrop-filter: blur(5px);
}

.cookie-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(580px, 100%);
  max-height: 88vh;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 72px rgba(8, 24, 54, 0.42);
  border: 1px solid var(--border-light);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
  border-bottom: 2px solid var(--gold-500);
}

.cookie-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-modal-brand h2,
.cookie-modal-brand h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

/* Visually hidden skip-to-content link for keyboard & agentic navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-500);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

.cookie-modal-brand small {
  display: block;
  font-size: 0.76rem;
  color: var(--gold-400);
}

.cookie-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cookie-modal-close:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

.cookie-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-modal-intro {
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.65;
}

.cookie-cat-card {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface-soft);
}

.cookie-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-cat-row strong {
  font-size: 0.92rem;
  color: var(--navy-900);
}

.cookie-cat-card p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

.cookie-always-on {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sky-600);
  background: var(--sky-100);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.25s var(--ease);
  cursor: pointer;
}

.cookie-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease);
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--navy-900);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(20px);
  background: var(--gold-400);
}

.cookie-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-cookie-trigger {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-cookie-trigger:hover {
  color: var(--sky-400);
}

@media (max-width: 1023px) {
  .cookie-popup {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(82px + env(safe-area-inset-bottom));
    padding: 15px 16px;
  }
}

@media (max-width: 639px) {
  .faq-contact-actions {
    padding: 0 18px 18px;
  }

  .cookie-popup-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .cookie-popup-actions .cookie-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
    text-align: center;
  }
}
