/* =========================================================
   TWINNETS ENGINEERING & TRADING — CORE STYLESHEET
   Design language: precision engineering / spec-sheet corporate.
   Palette + type derived from the company's own business card.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Colors — from brand card (brand constants, do not change per-theme) */
  --navy-deep: #081a35;
  --navy: #0b2347;
  --navy-mid: #123d70;
  --blue-line: #1d5aa6;
  --red: #c91824;
  --red-dark: #a11119;
  --green: #1c9a5b;
  --green-dark: #157a48;
  --amber: #d97706;
  --amber-dark: #b45f04;
  --white: #ffffff;
  --light: #f5f7fa;
  --grey-100: #eef1f5;
  --grey-300: #cdd5e0;
  --grey-500: #7c8aa0;
  --grey-700: #435068;
  --dark: #101820;

  /* Type */
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1240px;
  --gutter: clamp(16px, 5vw, 64px);
  --radius: 6px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 180ms;
  --speed: 320ms;
  --speed-slow: 600ms;

  /* ---------- Theme tokens (default = light) ----------
     Controlled at runtime via document.documentElement.dataset.theme
     i.e. <html data-theme="light"> / <html data-theme="dark"> */
  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--light);
  --card-bg: var(--white);
  --card-border: var(--grey-100);
  --text: var(--dark);
  --text-secondary: var(--grey-700);
  --text-muted: var(--grey-500);
  --border-color: var(--grey-100);
  --border-color-strong: var(--grey-300);
  --input-bg: var(--white);
  --input-border: var(--grey-300);
  --input-text: var(--dark);
  --shadow-color: rgba(11, 35, 71, 0.18);
}

/* Explicit light theme (same values as the default :root above,
   declared explicitly so JS can set data-theme="light" safely) */
:root[data-theme="light"] {
  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--light);
  --card-bg: var(--white);
  --card-border: var(--grey-100);
  --text: var(--dark);
  --text-secondary: var(--grey-700);
  --text-muted: var(--grey-500);
  --border-color: var(--grey-100);
  --border-color-strong: var(--grey-300);
  --input-bg: var(--white);
  --input-border: var(--grey-300);
  --input-text: var(--dark);
  --shadow-color: rgba(11, 35, 71, 0.18);
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --bg: var(--navy-deep);
  --surface: var(--navy);
  --surface-alt: #0e2647;
  --card-bg: #0f2a4d;
  --card-border: rgba(255, 255, 255, 0.1);
  --text: var(--white);
  --text-secondary: var(--grey-300);
  --text-muted: var(--grey-500);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-color-strong: rgba(255, 255, 255, 0.28);
  --input-bg: #0c2140;
  --input-border: rgba(255, 255, 255, 0.28);
  --input-text: var(--white);
  --shadow-color: rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

/* ---------- Justified body copy ----------
   Keeps paragraph text flush on both edges for a tidier, more
   uniform layout. Short labels (breadcrumb/eyebrow tags) are
   excluded since justify has no visible effect on single lines
   but hyphenation could otherwise break a short tag awkwardly. */
p:not(.breadcrumb):not(.eyebrow) {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}

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

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

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 100%;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
}

.section {
  padding: clamp(56px, 9vw, 120px) 0;
  position: relative;
  background: var(--bg);
  transition: background var(--speed) var(--ease);
  overflow: hidden;
}
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--navy { background: var(--navy-deep); color: var(--grey-300); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--light { background: var(--surface-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 6vw, 56px);
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }
.section--navy .section-head p { color: var(--grey-300); }

.blueprint-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.dot-grid {
  position: absolute;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(var(--grey-300) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  min-height: 48px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(201,24,36,0.55);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 12px 24px -8px rgba(201,24,36,0.6); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-color-strong);
}
[data-theme="dark"] .btn-ghost { color: var(--white); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--speed-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding var(--speed) var(--ease), background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}
.navbar.is-scrolled {
  padding: 12px 0;
  background: rgba(8, 26, 53, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.4);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-mark-img { height: 64px; width: auto; max-width: 220px; flex-shrink: 0; object-fit: contain; transition: height var(--speed) var(--ease); }
.navbar.is-scrolled .brand-mark-img { height: 52px; }
.brand-text { font-family: var(--font-display); line-height: 1.05; min-width: 0; }
.brand-text .name { display: block; font-weight: 800; font-size: 1.02rem; color: var(--white); letter-spacing: 0.01em; overflow-wrap: break-word; white-space: nowrap; }
.brand-text .sub { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.nav-links {
  /* --nav-scale is set at runtime by checkNavFit()/scheduleNavFitCheck()
     in script.js. It measures the actual rendered width the links
     need vs the width available between the brand and the CTA/
     controls, and shrinks font-size + padding just enough so every
     link stays on ONE line and fully visible — never hidden, never
     wrapped. Default 1 = full desktop size (matches original EN look
     exactly when everything already fits). */
  --nav-scale: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: calc(2px * var(--nav-scale));
}
.nav-links a {
  position: relative;
  padding: calc(10px * var(--nav-scale)) calc(14px * var(--nav-scale));
  font-size: calc(clamp(0.82rem, 1vw, 0.92rem) * var(--nav-scale));
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  transition: color var(--speed-fast) var(--ease), font-size var(--speed-fast) var(--ease), padding var(--speed-fast) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed-fast) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; flex-wrap: nowrap; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { display: none; white-space: nowrap; }
@media (min-width: 1180px) { .nav-cta .btn { display: inline-flex; } }

/* Language switcher (navbar + mobile) */
.nav-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  flex-shrink: 0;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-btn {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  transition: color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--white); background: rgba(255,255,255,0.14); }
.lang-sep { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* Theme toggle (navbar + mobile) */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.theme-toggle:hover { background: rgba(255,255,255,0.18); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform var(--speed-fast) var(--ease), opacity var(--speed-fast) var(--ease);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1180px) { .hamburger { display: none; } }
@media (max-width: 1179px) { .nav-links { display: none; } }

/* On narrower phones, the inline navbar language/theme controls move
   into the full-screen mobile menu (see .mobile-menu-section below)
   so the top bar never gets cramped. They remain fully available in
   the open mobile menu — no functionality is lost. */
@media (max-width: 640px) {
  .navbar .nav-cta > .nav-controls { display: none; }
}

/* ---------- Adaptive nav fit ----------
   See the --nav-scale rules on .nav-links above. Some languages
   (e.g. Bahasa Malaysia) produce longer nav-link labels than
   English, which could otherwise make .nav-links wrap onto a
   second line even above the 1180px hamburger breakpoint. Instead
   of hiding the links, script.js measures the actual rendered
   width needed vs the space available and shrinks --nav-scale just
   enough to keep every link visible on one tidy line. Links are
   never removed or swapped for a hamburger above this breakpoint. */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-deep);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(29,90,166,0.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 240px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  min-height: 100dvh;
  padding: 108px var(--gutter) max(32px, env(safe-area-inset-bottom, 32px));
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--speed-slow) var(--ease), opacity var(--speed-slow) var(--ease);
  pointer-events: none;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 5vw, 1.5rem);
  font-weight: 800;
  color: var(--white);
  min-height: 56px;
  padding: 16px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(14px);
  overflow-wrap: break-word;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), padding-left var(--speed-fast) var(--ease);
}
.mobile-menu a::after {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(-45deg);
  transition: transform var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--red);
  background: rgba(255,255,255,0.04);
  padding-left: 14px;
}
.mobile-menu a:hover::after,
.mobile-menu a:focus-visible::after {
  border-color: var(--red);
  transform: translateX(3px) rotate(-45deg);
}
.mobile-menu a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.mobile-menu a.active { color: var(--red); }
.mobile-menu a.active::after { border-color: var(--red); }

.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:nth-child(1) { transition-delay: 60ms; }
.mobile-menu a:nth-child(2) { transition-delay: 100ms; }
.mobile-menu a:nth-child(3) { transition-delay: 140ms; }
.mobile-menu a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu a:nth-child(5) { transition-delay: 220ms; }

/* Mobile menu: language + theme sections */
.mobile-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 10px 0;
  flex-shrink: 0;
}
.mobile-menu-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 6px;
}
.mobile-menu-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
  white-space: nowrap;
}
.mobile-menu-section .language-switcher { font-size: 0.85rem; flex-wrap: wrap; }
.mobile-menu-section .lang-btn { padding: 8px 14px; font-size: 0.82rem; }
.mobile-menu-section .theme-toggle { width: 44px; height: 44px; }

.mobile-menu .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 56px;
  margin-top: 28px;
  align-self: stretch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--speed) var(--ease) 260ms, transform var(--speed) var(--ease) 260ms;
}
.mobile-menu.is-open .btn { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 64px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  overflow: hidden;
  color: var(--white);
}
.hero-rings {
  position: absolute;
  z-index: 0;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(56vw, 680px);
  opacity: 0.9;
  pointer-events: none;
}
.hero-lines { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 700px; min-width: 0; width: 100%; }
.hero-content .eyebrow { color: #ff8a90; }
.hero-content .eyebrow::before { background: #ff8a90; }
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5.6vw, 4.1rem);
  margin-bottom: 22px;
  overflow-wrap: break-word;
}
.hero h1 span.accent { color: var(--red); }
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-actions .btn { flex: 0 1 auto; }

.hero-meta {
  display: flex;
  gap: clamp(18px, 4vw, 36px);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 26px;
}
.hero-meta div { min-width: 0; flex: 1 1 140px; }
.hero-meta div span { display: block; overflow-wrap: anywhere; }
.hero-meta .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-300); margin-bottom: 4px; }
.hero-meta .v { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--white); }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: var(--gutter);
  right: var(--gutter);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  z-index: 2;
  white-space: nowrap;
}
.scroll-cue .line { width: 34px; height: 1px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; flex-shrink: 0; }
.scroll-cue .line::after {
  content: "";
  position: absolute; left: -100%; top: 0; bottom: 0; width: 100%;
  background: var(--red);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0% { left: -100%; } 50% { left: 0; } 100% { left: 100%; } }

@media (max-height: 700px) {
  .hero { padding-top: 96px; padding-bottom: 90px; }
  .scroll-cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 168px 0 76px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4.4vw, 3.1rem); overflow-wrap: break-word; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin-top: 14px; font-size: 1.05rem; }

/* ---------- Business hours badge ---------- */
.biz-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  white-space: normal;
}
.biz-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grey-500);
}
.biz-status-badge.is-open .biz-status-dot {
  background: var(--green);
  box-shadow: 0 0 0 rgba(28, 154, 91, 0.5);
  animation: bizpulse 2.2s ease-out infinite;
}
.biz-status-badge.is-lunch .biz-status-dot { background: var(--amber); }
.biz-status-badge.is-closed .biz-status-dot { background: var(--red); }
@keyframes bizpulse {
  0% { box-shadow: 0 0 0 0 rgba(28, 154, 91, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(28, 154, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 154, 91, 0); }
}
/* Light-surface context (e.g. inside a white contact-info-card) */
.contact-info-card .biz-status-badge,
.biz-status-badge--surface {
  background: var(--surface-alt);
  border-color: var(--border-color-strong);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- Service area ---------- */
.service-area-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.service-area-card h2 { color: var(--text); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.service-area-card > p { color: var(--text-secondary); margin-top: 10px; max-width: 640px; }
.service-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.service-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border-color-strong);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.service-area-chip svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.service-area-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.service-area-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--white);
  white-space: nowrap;
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.service-area-note a:hover { background: var(--red); transform: translateY(-1px); }
:root[data-theme="dark"] .service-area-note a { color: var(--white); }

/* ---------- Mobile refinements: business hours badge & service area ---------- */
@media (max-width: 768px) {
  .service-area-card { padding: 24px 20px; }
  .service-area-chips { gap: 8px; margin-top: 20px; }
  .service-area-chip { padding: 8px 13px; font-size: 0.82rem; }
}
@media (max-width: 640px) {
  .biz-status-badge {
    font-size: 0.72rem;
    padding: 6px 12px 6px 10px;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .biz-status-dot { margin-top: 1px; }
  .page-hero { padding: 128px 0 56px; }
  .service-area-card { padding: 22px 18px; }
  .service-area-card h2 { font-size: 1.24rem; }
  .service-area-card > p { font-size: 0.92rem; margin-top: 8px; }
  .service-area-chips { gap: 8px; margin-top: 18px; }
  .service-area-chip { padding: 7px 12px; font-size: 0.8rem; gap: 6px; }
  .service-area-chip svg { width: 12px; height: 12px; }
  .service-area-note {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    font-size: 0.88rem;
    text-align: center;
  }
  .service-area-note a { justify-content: center; width: 100%; padding: 12px 18px; font-size: 0.88rem; }
  .contact-info-card .biz-status-badge { width: 100%; justify-content: flex-start; }
}
@media (max-width: 430px) {
  .service-area-chips { flex-direction: column; align-items: stretch; }
  .service-area-chip { justify-content: flex-start; }
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb .sep { color: var(--red); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-deep);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.about-visual--portrait { aspect-ratio: 2/3; max-width: 420px; margin-inline: auto; }
.about-visual .frame-corner {
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--red);
}
.about-visual .frame-corner.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.about-visual .frame-corner.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; font-size: 1.02rem; overflow-wrap: break-word; }
.about-copy p:last-of-type { margin-bottom: 30px; }

/* ---------- Registration Credential (SSM certificate) ---------- */
.credential-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
.credential-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 44px -24px var(--shadow-color);
}
.credential-visual a { display: block; line-height: 0; }
.credential-visual img { width: 100%; height: auto; display: block; transition: transform var(--speed) var(--ease); }
.credential-visual:hover img { transform: scale(1.02); }
.credential-visual .frame-corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid var(--red);
  pointer-events: none;
}
.credential-visual .frame-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.credential-visual .frame-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.credential-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 16px -6px rgba(0,0,0,0.4);
}
.credential-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.credential-copy p { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 24px; }
.credential-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.credential-meta > div { min-width: 0; }
.credential-meta dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.credential-meta dd { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--text); overflow-wrap: break-word; }
@media (max-width: 640px) {
  .credential-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .credential-meta { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Leadership (General Manager) ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}
.leader-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-deep);
  box-shadow: 0 20px 44px -24px var(--shadow-color);
}
.leader-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-visual .frame-corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid var(--red);
  pointer-events: none;
}
.leader-visual .frame-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.leader-visual .frame-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.leader-name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--text); margin-bottom: 6px; letter-spacing: -0.01em; }
.leader-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.leader-role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.leader-copy p { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 22px; }
@media (max-width: 640px) {
  .leader-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .leader-visual { max-width: 280px; margin: 0 auto; }
}

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px var(--shadow-color); }
.pillar .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 10px; overflow-wrap: break-word; }
.pillar p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
/* When the grid has an odd number of cards (e.g. 5 services), the
   trailing card would otherwise sit alone on the left with an empty
   gap beside it. Span it full width instead so the last row still
   looks intentional and balanced. */
.services-grid .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.services-grid .service-card:last-child:nth-child(odd) p {
  max-width: 640px;
}
.service-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--speed) var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -24px var(--shadow-color); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.service-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--grey-300); flex-shrink: 0; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
[data-theme="dark"] .service-icon { color: var(--white); }
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--navy); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.32rem; margin-bottom: 12px; overflow-wrap: break-word; }
.service-card p { color: var(--text-secondary); margin-bottom: 22px; font-size: 0.97rem; overflow-wrap: break-word; }
.service-link {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--navy);
}
[data-theme="dark"] .service-link { color: var(--white); }
.service-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--speed-fast) var(--ease); }
.service-card:hover .service-link { color: var(--red); }
.service-card:hover .service-link svg { transform: translateX(4px); }

.service-detail {
  display: grid;
  grid-template-columns: minmax(70px, 100px) minmax(0, 1fr);
  gap: 32px;
  padding: 44px 0;
  border-top: 1px solid var(--card-border);
}
.service-detail:first-of-type { border-top: none; }
.service-detail .num { font-family: var(--font-mono); font-size: 1.1rem; color: var(--red); padding-top: 4px; }
.service-detail h3 { font-size: 1.5rem; margin-bottom: 12px; overflow-wrap: break-word; }
.service-detail p { color: var(--text-secondary); margin-bottom: 16px; }
.service-detail ul { display: flex; flex-direction: column; gap: 8px; }
.service-detail li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 0.95rem; overflow-wrap: break-word; }
.service-detail li svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* ---------- Projects ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--speed-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
[data-theme="dark"] .filter-btn:hover { color: var(--white); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), opacity var(--speed) var(--ease), background var(--speed) var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -24px var(--shadow-color); }
.project-card.hidden { display: none; }
.project-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-deep); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed-slow) var(--ease); }
.project-card:hover .project-media img { transform: scale(1.08); }
.project-cat {
  position: absolute; top: 14px; left: 14px;
  max-width: calc(100% - 28px);
  background: rgba(8,26,53,0.85);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  overflow-wrap: break-word;
}
.project-body { padding: 24px 22px; }
.project-body h3 { font-size: 1.12rem; margin-bottom: 8px; overflow-wrap: break-word; }
.project-body p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 16px; overflow-wrap: break-word; }
.project-view { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--navy); }
[data-theme="dark"] .project-view { color: var(--white); }
.project-view svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--speed-fast) var(--ease); }
.project-card:hover .project-view svg { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.why-card {
  padding: 30px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,0.55);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.why-card .why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--red);
  margin-bottom: 18px;
}
.why-card .why-icon svg { width: 100%; height: 100%; display: block; }
.why-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; overflow-wrap: break-word; }
.why-card p { color: var(--grey-300); font-size: 0.9rem; overflow-wrap: break-word; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 50px;
}
.trust-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--grey-300);
  white-space: nowrap;
  transition: border-color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
a.trust-chip:hover,
a.trust-chip:focus-visible {
  border-color: var(--red);
  background: rgba(201,24,36,0.12);
  transform: translateY(-2px);
  color: var(--white);
}
.trust-chip svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 26px; overflow-wrap: break-word; }
.contact-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-row:first-of-type { border-top: none; }
.contact-row .icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--red); }
.contact-row .icon svg { width: 18px; height: 18px; }
.contact-row > div { min-width: 0; }
.contact-row .label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-300); margin-bottom: 4px; }
.contact-row .val { display: block; font-weight: 600; color: var(--white); font-size: 0.98rem; line-height: 1.5; overflow-wrap: anywhere; }
.contact-row a.val:hover { color: var(--red); }

.quick-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.quick-actions .btn { width: 100%; }

.map-card {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
  padding: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.map-card .pin { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-card .pin svg { width: 22px; height: 22px; }
.map-card > div { min-width: 0; flex: 1 1 200px; }
.map-card h4 { font-size: 1rem; margin-bottom: 4px; color: var(--text); overflow-wrap: break-word; }
.map-card p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 8px; overflow-wrap: break-word; }
.map-card a { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
[data-theme="dark"] .map-card a { color: var(--white); }

.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 60px -34px var(--shadow-color);
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { margin-bottom: 22px; position: relative; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-size: 0.96rem;
  color: var(--input-text);
  transition: border-color var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11,35,71,0.08);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  border-color: var(--blue-line);
  box-shadow: 0 0 0 4px rgba(29,90,166,0.22);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { display: none; color: var(--red); font-size: 0.8rem; margin-top: 6px; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .error-msg { display: block; }

.form-success {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #eaf6ee;
  border: 1px solid #bfe3c9;
  color: #1c6b34;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.93rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.form-error {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #fbe9ea;
  border: 1px solid #f0c1c4;
  color: var(--red-dark);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.93rem;
}
.form-error.is-visible { display: flex; }
.form-error svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-error a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }

.btn[disabled] { opacity: 0.7; pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band > div:first-child { min-width: 0; flex: 1 1 280px; }
.cta-band h3 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 2.1rem); max-width: 480px; overflow-wrap: break-word; }
.cta-band p { color: rgba(255,255,255,0.7); margin-top: 10px; max-width: 460px; overflow-wrap: break-word; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--grey-300); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 320px; color: var(--grey-300); overflow-wrap: break-word; }
.footer-brand .footer-regno { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em; color: var(--grey-500); }
.footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 20px; overflow-wrap: break-word; }
.footer ul li { margin-bottom: 12px; overflow-wrap: anywhere; }
.footer ul a { font-size: 0.93rem; color: var(--grey-300); transition: color var(--speed-fast) var(--ease); }
.footer ul a:hover { color: var(--white); }
.footer ul li span { font-size: 0.88rem; color: var(--grey-300); line-height: 1.6; }
.footer ul li .footer-label { color: var(--white); font-weight: 600; }
@media (max-width: 640px) {
  .footer ul li { margin-bottom: 14px; }
  .footer ul li span { font-size: 0.85rem; line-height: 1.55; }
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; color: var(--grey-500); flex-wrap: wrap; gap: 12px; }
.footer-bottom span { overflow-wrap: break-word; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), background var(--speed-fast) var(--ease);
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--red); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--speed-slow) var(--ease), transform var(--speed-slow) var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* =========================================================
   RESPONSIVE
   Desktop-first cascade: each max-width block below overrides
   the previous, wider one. Breakpoints cover the full requested
   range — 320 / 360 / 375 / 390 / 414 / 430 / 480 / 576 / 768 /
   820 / 992 / 1024 / 1200 / 1280 / 1440 / 1920 — using a mix of
   fluid clamp()/vw sizing (so intermediate widths scale smoothly)
   and a small number of structural breakpoints where the layout
   itself needs to change (grid columns, stacking, nav controls).
   ========================================================= */

/* ~1920 / 1440 / 1280: default desktop styles above already scale
   fluidly via clamp() and the 1240px max-width container — no
   overrides needed at these sizes. */

/* ---- 1200 / 1024 : large tablet / small laptop ---- */
@media (max-width: 1100px) {
  /* .services-grid intentionally stays 2 columns here — tablets have
     plenty of width for two cards side by side; it only drops to one
     column much narrower, at the 600px breakpoint below. */
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---- 992 / 820 : tablet ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-visual { order: -1; aspect-ratio: 16/10; }
  .about-visual--portrait { aspect-ratio: 2/3; max-width: 320px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 40px; }
}

/* ---- 768 / 576 : large phone / small tablet ---- */
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .service-detail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .contact-form-wrap { padding: 26px; }
  .contact-info-card { padding: 30px 24px; }
  .cta-band { flex-direction: column; align-items: stretch; padding: 32px; gap: 24px; }
  .cta-band > div:first-child { flex: 0 1 auto; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---- 640 / 480 : phones — this is where the navbar controls fold
   into the mobile menu (see the .nav-controls rule above) and the
   hero starts tightening up for one-handed use. ---- */
@media (max-width: 640px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .navbar { padding: 16px 0; }
  .navbar.is-scrolled { padding: 10px 0; }
  .nav-cta { gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark-img { height: 48px; }
  .navbar.is-scrolled .brand-mark-img { height: 42px; }
  .brand-text .name { font-size: 0.92rem; }
  .brand-text .sub { font-size: 0.58rem; letter-spacing: 0.12em; }
  .hamburger { width: 40px; height: 40px; }

  .hero { padding-top: 96px; padding-bottom: 48px; }
  .hero-content { padding-right: 0; }
  .hero-content .eyebrow { font-size: 0.72rem; line-height: 1.5; }
  .hero h1 { margin-bottom: 16px; }
  .hero p.lead { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 40px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 18px 24px; padding-top: 20px; }
  .hero-meta div { flex: 1 1 45%; }
  .hero-rings { width: min(72vw, 460px); opacity: 0.55; right: -18%; }
  .scroll-cue { font-size: 0.64rem; gap: 8px; }
  .scroll-cue .line { width: 22px; }

  .nav-controls { gap: 8px; }
}

/* ---- 430 / 414 / 390 / 375 / 360 / 320 : small phones ---- */
@media (max-width: 430px) {
  .hero-meta div { flex: 1 1 100%; }
  .brand-text .sub { display: none; }
  .mobile-menu-section { padding: 12px 4px; }
  .mobile-menu-label { font-size: 0.66rem; }
  .mobile-menu-section .lang-btn { padding: 7px 12px; font-size: 0.78rem; }
  .mobile-menu-section .theme-toggle { width: 40px; height: 40px; }
}

@media (max-width: 430px) {
  .brand-mark-img { height: 44px; }
  .navbar.is-scrolled .brand-mark-img { height: 38px; }
}

@media (max-width: 340px) {
  .hero-rings { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark-img { height: 38px; }
  .navbar.is-scrolled .brand-mark-img { height: 34px; }
}

/* =========================================================
   UTILITY CLASSES
   Added during security hardening to replace inline style=""
   attributes so the site can run under a strict CSP with no
   'unsafe-inline' in style-src.
   ========================================================= */
.stagger-0 { --i: 0; }
.stagger-1 { --i: 1; }
.stagger-2 { --i: 2; }
.stagger-3 { --i: 3; }
.stagger-4 { --i: 4; }
.stagger-5 { --i: 5; }

.icon-sm { width: 14px; height: 14px; }

.btn-block { width: 100%; }

/* Honeypot field for spam bots: visually and functionally hidden
   from real users, left in the DOM/tab order-excluded for bots
   that ignore CSS. */
.hp-field { display: none; }

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.48), 0 2px 8px rgba(0, 0, 0, 0.3);
  outline: none;
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.whatsapp-float svg { width: 30px; height: 30px; flex-shrink: 0; }

.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: whatsapp-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__ring { animation: none; display: none; }
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float:focus-visible .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-float__tooltip { display: none; }
}

/* ---------- Google Maps Embed ---------- */
.map-embed {
  margin-top: 22px;
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--surface-alt);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .map-embed { padding-bottom: 78%; }
}
.map-embed-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
[data-theme="dark"] .map-embed-link { color: var(--white); }
.map-embed-link:hover { color: var(--red); }