/* ==========================================================================
   MAN NETWORK & ELECTRICAL — ARCHITECTURAL BLUEPRINT DESIGN SYSTEM (ROUND 2)
   Brand Palette: Navy #0C184C, Signal Red #D5000F, Blueprint Surfaces
   ========================================================================== */
:root {
  --navy: #0C184C;
  --navy-deep: #071033;
  --navy-mid: #142466;
  --navy-soft: #EEF1F8;
  --red: #D5000F;
  --red-hover: #B1000C;
  --red-soft: #FDECEE;
  --red-on-dark: #FF5C67;

  --paper: #FFFFFF;
  --drafting: #F6F8FC;
  --ink: #10162B;
  --ink-muted: #4A5470;
  --line: #DCE2EE;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Anuphan', 'Noto Sans Thai', 'Sukhumvit Set', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif;
  --font-body: 'Noto Sans Thai', 'Sukhumvit Set', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1220px;
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

section[id], footer[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.nowrap {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--navy);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline-color: var(--red);
}

/* Blueprint Grid Surfaces */
.bg-blueprint-dark {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 82% 24%, rgba(213, 0, 15, 0.14) 0%, transparent 46%),
    radial-gradient(circle at 12% 85%, rgba(44, 78, 189, 0.22) 0%, transparent 48%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  color: #FFFFFF;
}

.bg-drafting {
  background-color: var(--drafting);
  background-image:
    linear-gradient(rgba(12, 24, 76, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 24, 76, 0.032) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Section Headers */
.sec-pad {
  padding-block: 92px;
}

.sec-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
  max-width: 740px;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.sec-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.bg-blueprint-dark .sec-eyebrow {
  color: var(--red-on-dark);
}

.sec-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  text-wrap: balance;
}

.bg-blueprint-dark .sec-title {
  color: #FFFFFF;
}

.sec-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.72;
}

.bg-blueprint-dark .sec-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.3;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex-shrink: 0;
}

.btn-red {
  background-color: var(--red);
  color: #FFFFFF;
  border: 1.5px solid var(--red);
}

.btn-red:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-navy {
  background-color: var(--navy);
  color: #FFFFFF;
  border: 1.5px solid var(--navy);
}

.btn-navy:hover {
  background-color: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn-ghost-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-dashed-light {
  background-color: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
}

.btn-dashed-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-outline-navy {
  background-color: #FFFFFF;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

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

/* TODO Pills */
.todo-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: rgba(255, 92, 103, 0.22);
  color: #FFD1D5;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.todo-pill-light {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

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

.brand-name-en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--navy);
  white-space: nowrap;
}

.brand-name-th {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.91rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy);
  background-color: var(--navy-soft);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2.5px;
  background-color: var(--red);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-call {
  min-height: 44px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  color: var(--navy);
}

.menu-toggle:hover {
  background-color: var(--navy-soft);
}

.mobile-drawer {
  display: none;
  background-color: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 16px 20px 24px;
}

.mobile-drawer.is-open {
  display: block;
}

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

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}

.mobile-nav-list a:hover {
  background-color: var(--navy-soft);
}

.mobile-drawer-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mobile-drawer-phones a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--drafting);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}

/* Language switcher: native <details> dropdown (desktop) + link row (mobile drawer). */
.lang-switch {
  position: relative;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy);
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-switch-toggle::-webkit-details-marker {
  display: none;
}

.lang-switch-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.lang-switch[open] .lang-switch-toggle::after {
  transform: translateY(1px) rotate(-135deg);
}

.lang-switch-toggle:hover,
.lang-switch[open] .lang-switch-toggle {
  background-color: var(--navy-soft);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 95;
  min-width: 132px;
  padding: 6px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(12, 24, 76, 0.14);
}

.lang-switch-menu a,
.lang-switch-row a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.lang-switch-menu a:hover,
.lang-switch-row a:hover {
  background-color: var(--navy-soft);
}

.lang-switch-menu a[aria-current="true"],
.lang-switch-row a[aria-current="true"] {
  color: var(--red);
  background-color: var(--red-soft);
}

.mobile-drawer-langs {
  padding-top: 14px;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
}

.lang-switch-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.lang-switch-row a {
  justify-content: center;
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  background-color: var(--drafting);
}

/* Per-locale font stacks. Noto Sans SC / Noto Sans Lao are requested only on /zh and /lo. */
html:lang(zh) {
  --font-display: 'Anuphan', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Noto Sans Thai', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', ui-monospace, monospace;
}

html:lang(lo) {
  --font-display: 'Anuphan', 'Noto Sans Lao', 'Phetsarath OT', 'Lao Sangam MN', 'Lao UI', system-ui, sans-serif;
  --font-body: 'Noto Sans Thai', 'Noto Sans Lao', 'Phetsarath OT', 'Lao Sangam MN', 'Lao UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans Lao', 'Phetsarath OT', 'Lao Sangam MN', ui-monospace, monospace;
}

/* Lao (like Thai) has no spaces between words and not every browser has a Lao
   line-break dictionary: allow long runs to break rather than overflow. */
html:lang(lo) h1,
html:lang(lo) h2,
html:lang(lo) h3,
html:lang(lo) h4,
html:lang(lo) p,
html:lang(lo) li,
html:lang(lo) .btn {
  overflow-wrap: anywhere;
}

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3 {
  line-break: strict;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 60px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
  line-height: 1.4;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red-on-dark);
  box-shadow: 0 0 0 4px rgba(255, 92, 103, 0.22);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.22;
  color: #FFFFFF;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero-title-accent {
  color: var(--red-on-dark);
}

.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 600px;
}

.hero-pillars-inline {
  display: inline-block;
  color: #FFFFFF;
  font-weight: 600;
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
}

.hero-heritage {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.hero-heritage strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* Interactive Blueprint Panel */
.blueprint-frame {
  position: relative;
  background-color: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blueprint-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 12px 18px;
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.blueprint-canvas {
  padding: 18px 18px 10px;
  position: relative;
}

.blueprint-svg {
  width: 100%;
  height: auto;
}

.bp-wire {
  fill: none;
  stroke: rgba(140, 165, 232, 0.32);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.bp-wire.is-active {
  stroke: var(--red-on-dark);
  stroke-width: 3;
  stroke-dasharray: 8 5;
  animation: flowPulse 1.6s linear infinite;
}

.bp-node {
  transition: opacity 0.25s ease;
}

.bp-node.is-dim {
  opacity: 0.42;
}

@keyframes flowPulse {
  from { stroke-dashoffset: 26; }
  to { stroke-dashoffset: 0; }
}

.blueprint-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.025);
}

.bp-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.bp-tab:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.bp-tab.is-active {
  background-color: rgba(213, 0, 15, 0.2);
  border-color: var(--red-on-dark);
  color: #FFFFFF;
}

.bp-tab-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red-on-dark);
  font-weight: 600;
}

.bp-tab-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.blueprint-readout {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(12, 24, 76, 0.55);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
}

.blueprint-readout-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 2px;
}

.blueprint-readout-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

/* Hero Bottom Fact Bar */
.hero-factbar {
  background-color: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

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

.factbar-item {
  padding: 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.factbar-item:first-child {
  padding-left: 0;
}

.factbar-item:last-child {
  border-right: none;
  padding-right: 0;
}

.factbar-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-on-dark);
  padding-top: 3px;
  flex-shrink: 0;
}

.factbar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.factbar-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.services-top .sec-header {
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.is-active {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.srv-card {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.srv-card:hover {
  border-color: var(--navy);
}

.srv-card.is-hidden {
  display: none;
}

.srv-solar {
  grid-column: span 7;
  grid-row: span 2;
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
  padding: 34px;
  justify-content: space-between;
  overflow: hidden;
}

.srv-solar:hover {
  border-color: var(--navy-mid);
}

.srv-solar-bg {
  position: absolute;
  right: -12px;
  top: -12px;
  width: 220px;
  height: 220px;
  opacity: 0.12;
  pointer-events: none;
}

.srv-medium {
  grid-column: span 5;
}

.srv-small {
  grid-column: span 3;
}

.srv-wide-strip {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
}

.srv-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.srv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srv-solar .srv-icon {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.srv-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--drafting);
  border: 1px solid var(--line);
}

.srv-solar .srv-index {
  background-color: rgba(255, 92, 103, 0.16);
  border-color: rgba(255, 92, 103, 0.35);
  color: #FFC6CA;
}

.srv-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.03em;
}

.srv-solar .srv-sub {
  color: var(--red-on-dark);
}

.srv-title {
  font-size: 1.22rem;
  color: var(--navy);
}

.srv-solar .srv-title {
  font-size: 1.72rem;
  color: #FFFFFF;
}

.srv-desc {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.srv-solar .srv-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.srv-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.srv-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.92);
}

.srv-bullets svg {
  color: var(--red-on-dark);
  margin-top: 4px;
  flex-shrink: 0;
}

.srv-solar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.link-inline-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #FFFFFF;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}

.link-inline-light:hover {
  border-color: var(--red-on-dark);
  color: #FFD1D5;
}

/* Equipment Ecosystem Strip */
.ecosystem-strip {
  margin-top: 28px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
  gap: 20px 32px;
  align-items: center;
}

.ecosystem-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ecosystem-sub {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.ecosystem-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: var(--drafting);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
}

.brand-tag-cat {
  font-size: 0.66rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 24px;
  margin-bottom: 24px;
}

.project-card {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-photo-slot {
  position: relative;
  background-color: var(--navy-soft);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.project-photo-slot.ratio-4-3 {
  aspect-ratio: 16 / 10;
}

.project-photo-slot svg {
  width: 100%;
  height: 100%;
  max-height: 220px;
}

.photo-todo-badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px dashed var(--navy);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--navy);
}

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.project-type {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--navy-soft);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.project-loc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.project-title {
  font-size: 1.32rem;
  color: var(--navy);
}

.project-desc {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Project Timeline Log (Thunder Charger) */
.project-timeline {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--drafting);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pt-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pt-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
}

.pt-text {
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.45;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--drafting);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

/* Clinic Case Study */
.project-clinic {
  background-color: var(--drafting);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.bill-panel {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bill-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.bill-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bill-label {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.bill-before {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--navy);
}

.bill-after {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.bill-source {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.photo-placeholder-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px dashed var(--navy);
  font-size: 0.8rem;
  color: var(--navy);
}

/* Archive 2x2 Grid (4 verified projects) */
.projects-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects-archive .project-title {
  font-size: 1.16rem;
}

/* Showreel */
.showreel {
  padding: 72px 0;
  background-color: var(--navy-deep);
}

.showreel-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.showreel-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showreel-chips {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showreel-chips li {
  padding: 5px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
  background-color: rgba(255, 255, 255, 0.05);
}

.showreel-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background-color: rgba(7, 16, 51, 0.72);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.showreel-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 80% 0%, rgba(213, 0, 15, 0.35), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(44, 78, 189, 0.45), transparent 70%);
  filter: blur(28px);
}

.showreel-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.showreel-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showreel-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red-on-dark);
  opacity: 0.45;
}

.showreel-frame.is-playing .showreel-rec i {
  opacity: 1;
  animation: showreel-blink 1.2s steps(2, jump-none) infinite;
}

@keyframes showreel-blink {
  50% { opacity: 0.25; }
}

.showreel-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
}

.showreel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showreel-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.showreel-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.showreel-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.showreel-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.showreel-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.showreel-frame.has-sound .showreel-corner {
  opacity: 0;
}

.showreel-play {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 20px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background-color: rgba(7, 16, 51, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.showreel-play:hover {
  background-color: rgba(7, 16, 51, 0.92);
  transform: translateX(-50%) translateY(-2px);
}

.showreel-play:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.showreel-play-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--red);
}

.showreel-play-icon svg {
  margin-left: 2px;
}

.showreel-progress {
  height: 3px;
  margin: 12px 8px 4px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.showreel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--red-on-dark);
  transform: scaleX(0);
  transform-origin: left;
}

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

  .showreel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .showreel-frame {
    padding: 6px;
    border-radius: var(--radius-md);
  }

  .showreel-screen {
    border-radius: 10px;
  }

  .showreel-play {
    bottom: 14px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showreel-frame.is-playing .showreel-rec i {
    animation: none;
  }
}

/* Field work cases: one 4:3 lead photo + two square thumbs per card.
   Desktop: 3 columns, first card spans 2 (lead and thumbs side by side),
   so 5 cards fill 2 full rows. Tablet: 2 columns, feature spans the row.
   Mobile: 1 column. */
.projects-work {
  margin-top: 40px;
}

.projects-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper);
  overflow: hidden;
}

.work-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 6px 0;
}

.work-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: var(--drafting);
}

.work-lead {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.work-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.work-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px 18px;
}

.work-title {
  font-size: 1.08rem;
  line-height: 1.45;
}

.work-desc {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Feature card: lead on the left (8fr), thumbs stacked on the right (3fr).
   The fixed box ratio keeps the lead close to 4:3 and the thumbs near-square. */
.work-card--feature {
  grid-column: span 2;
}

.work-card--feature .work-media {
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 11 / 6;
}

.work-card--feature .work-media img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.work-card--feature .work-lead {
  grid-column: 1;
  grid-row: 1 / -1;
}

.work-card--feature .work-title {
  font-size: 1.24rem;
}

@media (max-width: 1024px) {
  .projects-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .work-card--feature {
    grid-column: auto;
  }

  .work-card--feature .work-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    aspect-ratio: auto;
  }

  .work-card--feature .work-media img {
    height: auto;
  }

  .work-card--feature .work-lead {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .work-card--feature .work-thumb {
    aspect-ratio: 1 / 1;
  }

  .work-card--feature .work-title {
    font-size: 1.08rem;
  }

  .work-body {
    padding: 12px 14px 16px;
  }
}

.projects-gallery {
  margin-top: 40px;
}

.projects-gallery-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.projects-gallery-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.projects-gallery-lead {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.projects-gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--paper);
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--drafting);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px 14px;
}

.gallery-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background-color: var(--navy-soft);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
}

.gallery-caption {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

@media (max-width: 1024px) {
  .projects-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-gallery-grid {
    gap: 10px;
  }

  .projects-gallery-title {
    font-size: 1.3rem;
  }

  .gallery-item figcaption {
    padding: 10px 10px 12px;
  }

  .gallery-caption {
    font-size: 0.8rem;
  }
}

.projects-footer-bar {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background-color: var(--drafting);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   NEW IN R2: DIGITAL FIELD OPERATIONS & SERVICE REPORT (DARK BLUEPRINT)
   ========================================================================== */
.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}

.ops-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ops-pillar {
  background-color: rgba(7, 16, 51, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.ops-pillar:hover {
  border-color: rgba(255, 92, 103, 0.55);
}

.ops-code {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background-color: rgba(213, 0, 15, 0.2);
  border: 1px solid rgba(255, 92, 103, 0.45);
  color: #FFD1D5;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 2px;
}

.ops-pillar-title {
  font-size: 1.06rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ops-pillar-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

/* Interactive Field Console / Service Report Preview */
.ops-console {
  background-color: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ops-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ops-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ops-tab {
  padding: 7px 13px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.16s ease;
}

.ops-tab:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.ops-tab.is-active {
  background-color: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.ops-pane {
  padding: 22px;
}

.ops-pane[hidden] {
  display: none;
}

/* Mockup 1: Service Report PDF Sheet (based on service_report.blade.php structure) */
.sr-sheet {
  background-color: #FFFFFF;
  color: var(--ink);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.84rem;
}

.sr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.sr-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.sr-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.sr-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background-color: var(--drafting);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.sr-meta-label {
  color: var(--ink-muted);
  display: block;
  font-size: 0.7rem;
}

.sr-meta-val {
  font-weight: 600;
  color: var(--navy);
}

.sr-photos-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sr-photo-box {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background-color: var(--navy-soft);
  border: 1px dashed var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--navy);
}

.sr-sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.sr-sign-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.sr-sign-line {
  height: 20px;
  border-bottom: 1px dashed var(--ink-muted);
  margin-bottom: 6px;
}

/* Mockup 2: Technician App Flow */
.app-flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-flow-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-flow-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-flow-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.app-flow-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.ops-caption {
  padding: 12px 22px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
}

.step-arrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--red);
  font-weight: 600;
}

.step-title {
  font-size: 1.14rem;
  color: var(--navy);
}

.step-desc {
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.68;
}

.warranty-banner {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ==========================================================================
   WHY US + TAX SECTION
   ========================================================================== */
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: 44px;
  align-items: start;
}

.why-sticky {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-sticky .sec-header {
  margin-bottom: 0;
}

.company-facts-card {
  background-color: var(--drafting);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-facts-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
}

.company-facts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.91rem;
  color: var(--ink);
}

.company-facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.company-facts-list svg {
  color: var(--navy);
  margin-top: 4px;
  flex-shrink: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  background-color: var(--drafting);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.why-title {
  font-size: 1.06rem;
  color: var(--navy);
}

.why-desc {
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.68;
}

/* Tax Advisory */
.tax-section {
  padding-block: 60px;
  background-color: var(--drafting);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tax-box {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}

.tax-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tax-item {
  background-color: var(--drafting);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tax-chip {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--navy-soft);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}

.tax-figure {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.tax-text {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.tax-disclaimer {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   NEW IN R2: KNOWLEDGE ("ช่างแมนมาเล่า") & LOCAL COMMUNITY
   ========================================================================== */
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.knowledge-card {
  background-color: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.phase-switcher {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phase-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.phase-btn.is-active {
  background-color: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.phase-diagram {
  background-color: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phase-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-pill {
  padding: 6px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
}

.phase-pill.is-live {
  border-color: var(--red-on-dark);
  background-color: rgba(213, 0, 15, 0.22);
  color: #FFD1D5;
}

.safety-quote {
  padding: 14px 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--red-on-dark);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.local-card {
  background-color: var(--drafting);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.local-events {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.local-event {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.local-event-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
}

.local-event-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
}

.local-event-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT & SERVICE AREA SECTION
   ========================================================================== */
.contact-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.contact-primary {
  background-color: var(--red);
  color: #FFFFFF;
  padding: 42px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
}

.contact-headline {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  color: #FFFFFF;
  line-height: 1.18;
}

.contact-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.7;
}

.phone-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-card {
  background-color: #FFFFFF;
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.16s ease, transform 0.14s ease;
}

.phone-card:hover {
  background-color: var(--navy-soft);
  transform: translateY(-1px);
}

.phone-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-role {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.phone-number {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
}

.contact-secondary {
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

a.channel-item:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.channel-item.is-placeholder {
  border-style: dashed;
  background-color: rgba(255, 255, 255, 0.03);
}

.channel-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.68);
}

.channel-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.hq-box {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hq-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--red-on-dark);
  letter-spacing: 0.06em;
}

.hq-address {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.hq-todo-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.03);
}

.area-schematic {
  background-color: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area-nodes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}

.area-node {
  padding: 4px 10px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

.area-node.is-hq {
  background-color: var(--red);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}

.footer-logo-plate {
  display: inline-block;
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
}

.footer-logo-plate img {
  width: 210px;
  height: auto;
}

.footer-company-th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.footer-company-en {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.footer-legal-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MOBILE STICKY ACTION DOCK
   ========================================================================== */
.mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background-color: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
}

.mobile-dock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 8px;
}

.dock-btn {
  min-height: 46px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  min-width: 0;
}

.dock-btn-call {
  background-color: var(--red);
  color: #FFFFFF;
}

.dock-btn-fb {
  background-color: var(--navy);
  color: #FFFFFF;
}

.dock-btn-line {
  background-color: var(--drafting);
  color: var(--navy);
  border: 1.5px dashed var(--navy);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .ops-layout,
  .community-grid,
  .ecosystem-strip {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .factbar-item {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .factbar-item:nth-child(2n) {
    border-right: none;
  }

  .factbar-item:first-child {
    padding-left: 16px;
  }

  .srv-solar {
    grid-column: span 12;
    grid-row: auto;
  }

  .srv-medium,
  .srv-small {
    grid-column: span 6;
  }

  .projects-featured {
    grid-template-columns: 1fr;
  }

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

  .why-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-sticky {
    position: static;
  }

  .tax-box,
  .contact-shell {
    grid-template-columns: 1fr;
  }

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

/* Keep brand + nav + language menu + phone on one row between 981px and 1240px. */
@media (min-width: 981px) and (max-width: 1240px) {
  .header-inner {
    gap: 12px;
  }

  .brand-text {
    display: none;
  }

  .nav-link {
    padding-inline: 9px;
    font-size: 0.88rem;
  }

  .header-call {
    padding-inline: 12px;
  }
}

@media (max-width: 980px) {
  .nav-desktop,
  .header-call,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-dock {
    display: block;
  }

  .site-footer {
    padding-bottom: 76px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding-inline: 18px;
  }

  .sec-pad {
    padding-block: 64px;
  }

  .sec-header {
    margin-bottom: 30px;
  }

  .brand-mark {
    height: 28px;
  }

  .brand-name-en {
    font-size: 0.88rem;
  }

  .brand-name-th {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-grid {
    padding-bottom: 38px;
  }

  .hero-badge {
    font-size: 0.66rem;
    padding: 5px 11px;
    letter-spacing: 0.03em;
  }

  .hero-title {
    font-size: 1.88rem;
  }

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

  .hero-cta-group .btn,
  .srv-solar-actions .btn {
    width: 100%;
  }

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

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

  .factbar-item {
    padding: 16px 0;
    border-right: none;
  }

  .factbar-item:first-child {
    padding-left: 0;
  }

  .srv-medium,
  .srv-small,
  .srv-wide-strip {
    grid-column: span 12;
  }

  .srv-solar {
    padding: 24px;
  }

  .srv-card {
    padding: 22px;
  }

  .srv-wide-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .project-timeline,
  .projects-archive,
  .process-grid,
  .why-grid,
  .tax-cards,
  .sr-meta-grid,
  .sr-photos-row,
  .sr-sign-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-body,
  .project-clinic,
  .knowledge-card,
  .local-card {
    padding: 22px;
  }

  .ops-pane {
    padding: 16px;
  }

  .sr-sheet {
    padding: 16px;
  }

  .tax-box {
    padding: 24px 20px;
  }

  .contact-primary,
  .contact-secondary {
    padding: 28px 20px;
  }

  .phone-number {
    font-size: 1.15rem;
  }

  .footer-logo-plate img {
    width: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bp-wire.is-active {
    animation: none;
  }
}

/* ==========================================================================
   LARAVEL INTEGRATION ADDITIONS
   Variants for values that come from config/landing.php.
   ========================================================================== */

/* Dock without a LINE button (contact.line_url not set). */
.mobile-dock-grid--two {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

/* LINE button once a real URL is configured. */
.dock-btn-line.is-live {
  border-style: solid;
}

/* Real project photos replacing the line drawings (projects.*.photo). */
.project-photo-slot.has-photo {
  padding: 0;
}

.project-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-clinic-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Line drawing shown in the clinic card until a real photo is configured. */
.project-clinic-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background-color: var(--navy-soft);
  border: 1px solid var(--line);
}

.project-clinic-figure svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* Keep the Service Report photo boxes side by side on phones (stacked they
   make the mock-up sheet several screens tall). */
@media (max-width: 640px) {
  .sr-photos-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sr-photo-box {
    aspect-ratio: 1 / 1;
    padding: 6px 4px;
    font-size: 0.6rem;
    line-height: 1.35;
  }
}

/* ==========================================================================
   COOKIE-CONSENT BAR (Google Consent Mode v2, Thai PDPA)
   Revealed by landing.js; only rendered when analytics.google_tag_id is set.
   ========================================================================== */
.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -8px 24px rgba(7, 16, 51, 0.18);
  padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
  animation: consent-in 0.24s ease-out;
}

.consent-bar[hidden] {
  display: none;
}

.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.consent-btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

.footer-consent-btn {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-consent-btn:hover {
  color: #FFFFFF;
}

.footer-consent-btn[hidden] {
  display: none;
}

@keyframes consent-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* The mobile contact dock is fixed at the bottom below 981px: stack the bar above it
   (dock height = 46px button + 2 x 10px padding + 1px border + safe area). */
@media (max-width: 980px) {
  .consent-bar {
    bottom: calc(67px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .consent-text {
    flex-basis: 100%;
    font-size: 0.84rem;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-bar {
    animation: none;
  }
}
