/* ==========================================================================
   RHEALO GROUP — DESIGN SYSTEM
   Tokens derived from the brand mark: the radial burst of orange/blue/charcoal
   spokes around the ring is the visual DNA reused throughout (dividers,
   the ecosystem diagram, section markers, loading/hover states).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* Brand */
  --blue:        #00A4E5;
  --blue-deep:   #0B84BE;
  --blue-navy:   #08243A; /* derived deep tech backdrop, used sparingly */
  --orange:      #F06723;
  --orange-deep: #D2551B;
  --charcoal:    #323232;
  --white:       #FFFFFF;

  /* Neutral surface */
  --bg-0:        #FFFFFF;
  --bg-1:        #F7F9FB;
  --bg-2:        #F1F4F7;
  --bg-3:        #E9EEF2;
  --border:      #E3E8EC;
  --border-strong: #D3DBE2;

  /* Text */
  --text-1: var(--charcoal);
  --text-2: #5B6268;
  --text-3: #8A9199;
  --text-on-dark: #EAF3F8;
  --text-on-dark-dim: #93A8B7;

  /* Type */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Scale */
  --step-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --step-h1:   clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --step-h2:   clamp(1.6rem, 1.35rem + 1vw, 2.35rem);
  --step-h3:   clamp(1.15rem, 1.05rem + 0.4vw, 1.5rem);
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.125rem);
  --step-small: 0.875rem;
  --step-eyebrow: 0.78rem;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;

  /* Motion */
  --ease: cubic-bezier(.22,.88,.32,1);
  --dur-s: 180ms;
  --dur-m: 420ms;
  --dur-l: 900ms;

  /* Shadow */
  --shadow-s: 0 2px 10px rgba(11,25,38,.05);
  --shadow-m: 0 12px 32px rgba(11,25,38,.09);
  --shadow-lift: 0 20px 44px rgba(11,25,38,.14);
}

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

body{
  margin:0;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font-display);
  color: var(--text-1);
  background: var(--bg-0);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }

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

::selection{ background: var(--blue); color: #fff; }

:focus-visible{
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type helpers ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue-deep);
  display:inline-flex;
  align-items:center;
  gap: .6em;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1.5px;
  background: var(--orange);
  display:inline-block;
}
.eyebrow.on-dark{ color: #7FD4FA; }
.eyebrow.on-dark::before{ background: var(--orange); }

h1,.h1{ font-size: var(--step-h1); line-height:1.06; font-weight:800; letter-spacing:-0.02em; }
h2,.h2{ font-size: var(--step-h2); line-height:1.12; font-weight:800; letter-spacing:-0.015em; }
h3,.h3{ font-size: var(--step-h3); line-height:1.25; font-weight:700; }
.lede{ font-size: clamp(1.05rem, 1rem + 0.3vw, 1.3rem); color: var(--text-2); line-height:1.6; font-weight: 400; }
.body-2{ color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn{
  --btn-pad-y: .95rem;
  --btn-pad-x: 1.7rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-s);
  font-weight:600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn svg{ transition: transform var(--dur-s) var(--ease); width:16px; height:16px; flex:none; }
.btn:hover svg{ transform: translateX(3px); }

.btn-primary{ background: var(--blue); color:#fff; }
.btn-primary:hover{ background: var(--blue-navy); }

.btn-secondary{ background: transparent; color: var(--blue-deep); border-color: var(--blue); }
.btn-secondary:hover{ background: var(--blue); color:#fff; }

.btn-ghost-dark{ background: transparent; color:#fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-dark:hover{ background:#fff; color: var(--blue-navy); border-color:#fff; }

.btn-accent{ background: var(--orange); color:#fff; }
.btn-accent:hover{ background: var(--orange-deep); }

.btn-sm{ padding: .6rem 1.1rem; font-size:.85rem; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0;
  z-index: 500;
  padding-block: 1.2rem;
  transition: padding var(--dur-m) var(--ease), background var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  padding-block: .7rem;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-s);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap: clamp(1rem, 2vw, 2.25rem); flex-wrap: nowrap; }
.brand{ display:flex; align-items:center; flex:none; }
.brand img{ height: 48px; width:auto; transition: height var(--dur-m) var(--ease); }
.site-header.is-scrolled .brand img{ height: 40px; }

.nav-links{ display:flex; align-items:center; gap: clamp(1rem, 1.6vw, 1.9rem); flex-wrap: nowrap; flex: 1 1 auto; justify-content:center; }
.nav-links a{
  font-size: clamp(.82rem, .78rem + .2vw, .93rem); font-weight:600; color: var(--text-1);
  position:relative; padding-block: .3rem; white-space: nowrap;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background: var(--orange); transition: right var(--dur-m) var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-links a.active{ color: var(--blue-deep); }

.nav-right{ display:flex; align-items:center; gap:1.2rem; flex:none; }
.nav-right .btn{ white-space:nowrap; }

.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; border:1px solid var(--border-strong); border-radius: var(--radius-s);
  background:#fff; flex:none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hamburger span{ height:2px; background:var(--charcoal); border-radius:2px; transition: transform var(--dur-m) var(--ease), opacity var(--dur-s) var(--ease); }
.hamburger span:nth-child(1){ width:18px; margin-inline:auto; }
.hamburger span:nth-child(2){ width:22px; margin-inline:auto; }
.hamburger span:nth-child(3){ width:14px; margin-inline:auto; }
.hamburger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); width:22px; }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); width:22px; }

.mobile-menu{
  position: fixed; top:0; left:0; right:0; bottom:0; z-index:490;
  width:100%; height:100%;
  background: #fff;
  display:flex; flex-direction:column;
  overflow-y:auto;
  padding: 6.5rem var(--gutter) 2.5rem;
  transform: translateY(-8px);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), visibility 0s linear var(--dur-m);
}
.mobile-menu.is-open{ opacity:1; visibility:visible; pointer-events:auto; transform: translateY(0); transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease); }
.mobile-menu a{ font-size:1.5rem; font-weight:700; padding-block:.75rem; border-bottom:1px solid var(--border); }
.mobile-menu .btn{ margin-top:2rem; width:100%; }

/* ---------- Section rhythm ---------- */
.section{ padding-block: clamp(2.75rem, 5vw, 4.5rem); position:relative; }
.section-tight{ padding-block: clamp(2rem, 3.5vw, 3rem); }
.section-head{ max-width: 720px; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head.center{ margin-inline:auto; text-align:center; }
.bg-1{ background: var(--bg-1); }
.bg-2{ background: var(--bg-2); }
.bg-navy{ background: radial-gradient(120% 140% at 15% 0%, #0E3654 0%, var(--blue-navy) 55%, #06192A 100%); color: var(--text-on-dark); }
.bg-navy .body-2{ color: var(--text-on-dark-dim); }

.divider{ height:1px; background: var(--border); border:0; margin:0; }

/* fade-up on scroll */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity var(--dur-l) var(--ease), transform var(--dur-l) var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-1{ transition-delay: 60ms; }
.reveal-2{ transition-delay: 140ms; }
.reveal-3{ transition-delay: 220ms; }
.reveal-4{ transition-delay: 300ms; }

/* ---------- Hero ---------- */
.hero{
  padding-block-start: clamp(6.5rem, 11vw, 8.5rem);
  padding-block-end: clamp(2.5rem, 5vw, 4rem);
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(65% 75% at 100% 0%, rgba(0,164,229,.20) 0%, transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(0,164,229,.10) 0%, transparent 60%),
    linear-gradient(180deg, #F2F9FD 0%, var(--bg-1) 100%);
}
.hero::before{
  content:"";
  position:absolute; top:0; left:0; right:0; bottom:0;
  background-image:
    linear-gradient(rgba(0,101,148,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,101,148,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 30% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 30% 0%, #000 0%, transparent 72%);
  pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items:center; position:relative; z-index:1; }
.hero h1{ margin-bottom: 1.4rem; }
.hero h1 em{ font-style:normal; color: var(--blue-deep); }
.hero-cta-row{ display:flex; gap:1rem; margin-top:2.2rem; flex-wrap:wrap; }

.hero-visual{ position:relative; aspect-ratio: 1/1; max-width:560px; margin-inline:auto; }
.hero-visual::before{
  content:"";
  position:absolute; top:6%; left:6%; right:6%; bottom:6%;
  background: radial-gradient(circle at 40% 35%, rgba(0,164,229,.20), transparent 62%);
  border-radius:50%;
  filter: blur(2px);
}
.hero-rings{ position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; }
.hero-spoke{ transform-origin: 260px 260px; }
.hero-logo-center{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width:46%; max-width:230px; height:auto;
  z-index:1;
}

.hero-particles{ position:absolute; top:0; left:0; right:0; bottom:0; z-index:0; width:100%; height:100%; pointer-events:none; opacity:.6; }

@keyframes heroSpin{ to{ transform: rotate(360deg); } }
#spinGroup{ animation: heroSpin 60s linear infinite; }

/* ---------- Trust / stats ---------- */
.stat-row{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3rem; }
.stat-card{ padding: 1.6rem 1.4rem; border:1px solid var(--border); border-radius: var(--radius-m); background:#fff; }
.stat-card .stat-icon{ width:34px; height:34px; margin-bottom:1rem; color: var(--blue); }
.stat-card strong{ display:block; font-size:1.05rem; font-weight:700; margin-bottom:.25rem; }
.stat-card span{ color: var(--text-2); font-size:.9rem; }

/* ---------- Pillars (About) ---------- */
.pillars{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.pillar{
  padding: 2.1rem 1.9rem; border:1px solid var(--border); border-radius: var(--radius-m);
  background: #fff; transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}
.pillar:hover{ transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--border-strong); }
.pillar .num{ font-family: var(--font-mono); color: var(--orange); font-size:.85rem; letter-spacing:.08em; }
.pillar-icon{ width:40px; height:40px; color:var(--blue-deep); margin-block: 1rem; }
.pillar h3{ margin-bottom:.6rem; }

/* ---------- Company cards ---------- */
.company-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.company-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.company-card{
  position:relative; padding: 1.8rem 1.6rem 1.6rem; border:1px solid var(--border);
  border-radius: var(--radius-m); background:#fff; overflow:hidden;
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
  display:flex; flex-direction:column; min-height: 100%;
}
.company-card::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background: linear-gradient(90deg,var(--blue),var(--orange));
  transform: scaleX(0); transform-origin:left; transition: transform var(--dur-m) var(--ease);
}
.company-card:hover{ transform: translateY(-7px); box-shadow: var(--shadow-lift); border-color: transparent; }
.company-card:hover::before{ transform: scaleX(1); }
.company-mark{
  width:46px; height:46px; border-radius: var(--radius-s); background: var(--bg-2);
  display:flex; align-items:center; justify-content:center; color: var(--blue-deep); font-weight:800; margin-bottom:1.25rem;
  font-family: var(--font-mono); font-size:1rem;
}
.company-mark.has-logo{ background:#fff; border:1px solid var(--border); padding:6px; }
.company-mark.has-logo img{ width:100%; height:100%; object-fit:contain; display:block; }
.company-mark.full-logo{
  width:auto; height:38px; max-width:100%; background:none; border:none; padding:0;
  justify-content:flex-start; margin-bottom:1.4rem;
}
.company-mark.full-logo img{ width:auto; height:100%; max-width:100%; object-fit:contain; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.company-card h3{ font-size:1.08rem; margin-bottom:.35rem; }
.company-card .industry-tag{ font-size:.78rem; color: var(--orange-deep); font-weight:600; margin-bottom:.75rem; display:block; }
.company-card p{ color: var(--text-2); font-size:.92rem; flex:1; margin-bottom:1.4rem; }
.company-card .explore{ display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:.88rem; color:var(--text-1); }
.company-card .explore svg{ width:15px; height:15px; transition: transform var(--dur-s) var(--ease); }
.company-card:hover .explore svg{ transform: translateX(4px); }

/* ---------- Industries ---------- */
.industry-list{ border-top:1px solid var(--border); }
.industry-row{
  display:grid; grid-template-columns: 70px 1fr 2fr 90px; align-items:center; gap:1.5rem;
  padding: 1.35rem 0; border-bottom:1px solid var(--border);
  cursor:pointer; transition: background var(--dur-s) var(--ease);
}
.industry-row:hover{ background: var(--bg-1); }
.industry-row .idx{ font-family: var(--font-mono); color: var(--text-3); font-size:.85rem; }
.industry-row .icon{ width:26px; height:26px; color: var(--blue-deep); }
.industry-row h4{ font-size:1.05rem; font-weight:700; }
.industry-row p{ color: var(--text-2); font-size:.9rem; max-width: 520px; }
.industry-row .arrow{ justify-self:end; width:18px; height:18px; color: var(--orange); transition: transform var(--dur-s) var(--ease); }
.industry-row:hover .arrow{ transform: translateX(5px); }

/* ---------- Ecosystem diagram ---------- */
.ecosystem-wrap{ display:flex; justify-content:center; }
.ecosystem-svg{ width:100%; max-width:760px; height:auto; }
.eco-line{ stroke: rgba(127,212,250,.35); stroke-width:1.5; fill:none; stroke-dasharray: 4 6; animation: dash 26s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset: -400; } }
.eco-node{ transition: transform var(--dur-s) var(--ease); cursor:default; }
.eco-node:hover{ transform: scale(1.06); }
.eco-node rect, .eco-node circle{ transition: fill var(--dur-s) var(--ease), stroke var(--dur-s) var(--ease); }
.eco-node:hover rect{ fill: rgba(240,103,35,.14); stroke: var(--orange); }
.eco-center circle{ filter: drop-shadow(0 0 30px rgba(0,164,229,.45)); }

/* ---------- Approach timeline ---------- */
.approach-track{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; position:relative; }
.approach-track::before{
  content:""; position:absolute; top:26px; left:6%; right:6%; height:1px; background: var(--border-strong);
}
.approach-step{ position:relative; padding-top: 1rem; }
.approach-step .num{
  width:52px; height:52px; border-radius:50%; background:#fff; border:1.5px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-weight:700;
  color: var(--blue-deep); margin-bottom:1.4rem; position:relative; z-index:1;
}
.approach-step:nth-child(odd) .num{ border-color: var(--orange); color: var(--orange-deep); }
.approach-step h3{ margin-bottom:.5rem; }
.approach-step p{ color: var(--text-2); font-size:.94rem; }

/* ---------- Tech section ---------- */
.tech-chip-row{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.8rem; }
.tech-chip{
  padding:.5rem 1rem; border-radius:999px; border:1px solid var(--border-strong);
  font-size:.85rem; font-weight:600; color: var(--blue-deep);
  background: #fff;
}

/* ---------- Global visual (map) ---------- */
.globe-wrap{ display:flex; justify-content:center; padding-block:1rem; }

/* ---------- News ---------- */
.news-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:1.6rem; }
.news-card{ border:1px solid var(--border); border-radius: var(--radius-m); overflow:hidden; background:#fff; transition: box-shadow var(--dur-m) var(--ease), transform var(--dur-m) var(--ease); }
.news-card:hover{ box-shadow: var(--shadow-m); transform: translateY(-5px); }
.news-thumb{ aspect-ratio: 16/10; background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); position:relative; overflow:hidden; }
.news-thumb svg{ position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; }
.news-body{ padding: 1.4rem 1.5rem 1.6rem; }
.news-meta{ display:flex; gap:.9rem; align-items:center; font-size:.78rem; color: var(--text-3); margin-bottom:.8rem; font-family: var(--font-mono); }
.news-meta .cat{ color: var(--orange-deep); font-weight:600; }
.news-card h3{ font-size:1.05rem; margin-bottom:.6rem; }
.news-card p{ color: var(--text-2); font-size:.92rem; margin-bottom:1.1rem; }
.news-read{ font-weight:700; font-size:.86rem; display:inline-flex; align-items:center; gap:.4rem; color: var(--blue-deep); }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: var(--radius-l);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(120% 160% at 100% 0%, rgba(240,103,35,.20), transparent 55%), linear-gradient(135deg, var(--blue-deep), #06405C);
  color:#fff; text-align:center; position:relative; overflow:hidden;
}
.cta-band h2{ max-width:760px; margin-inline:auto 1.2rem; }
.cta-band p{ max-width:620px; margin:1.2rem auto 2rem; color: var(--text-on-dark-dim); }
.cta-band-actions{ display:flex; justify-content:center; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--bg-1); border-top:1px solid var(--border); padding-block: 3rem 1.75rem; }
.footer-top{ display:grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img{ height:56px; margin-bottom:1.2rem; }
.footer-brand p{ color: var(--text-2); font-size:.92rem; max-width:280px; margin-bottom:1.4rem; }
.footer-contact{ display:flex; flex-direction:column; gap:.6rem; }
.footer-contact a, .footer-contact span{ display:flex; align-items:flex-start; gap:.6rem; color: var(--text-1); font-size:.9rem; font-weight:500; }
.footer-contact svg{ width:16px; height:16px; flex:none; margin-top:.15rem; color: var(--blue-deep); }
.footer-contact a:hover{ color: var(--blue-deep); }
.footer-col h4{ font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; font-family: var(--font-mono); color: var(--text-3); margin-bottom:1.1rem; font-weight:600; }
.footer-col li{ margin-bottom:.7rem; }
.footer-col a{ color: var(--text-1); font-size:.92rem; font-weight:500; }
.footer-col a:hover{ color: var(--blue-deep); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:2rem; border-top:1px solid var(--border); flex-wrap:wrap; gap:1rem; }
.footer-bottom p{ color: var(--text-3); font-size:.85rem; }
.footer-legal{ display:flex; gap:1.5rem; }
.footer-legal a{ color:var(--text-3); font-size:.85rem; }
.footer-legal a:hover{ color: var(--blue-deep); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{ padding-block: clamp(6rem,10vw,7.5rem) clamp(2rem,4vw,3rem); background: var(--bg-1); }
.page-hero .eyebrow{ margin-bottom: 1rem; }
.page-hero .lede{ margin-top:1.2rem; max-width:680px; }
.breadcrumb{ display:flex; gap:.5rem; align-items:center; font-size:.85rem; color:var(--text-3); margin-bottom:1.5rem; font-family: var(--font-mono); }
.breadcrumb a{ color: var(--text-2); }
.breadcrumb a:hover{ color: var(--blue-deep); }

/* ---------- Contact form ---------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
.contact-card{ padding: 1.6rem 1.7rem; border:1px solid var(--border); border-radius: var(--radius-m); background:#fff; margin-bottom:1.1rem; }
.contact-card h4{ font-size:.95rem; margin-bottom:.35rem; }
.contact-card a{ color: var(--blue-deep); font-weight:600; font-size:.95rem; }
.contact-card p{ color: var(--text-2); font-size:.9rem; }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field{ display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.1rem; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.85rem; font-weight:600; color: var(--text-1); }
.field input, .field textarea, .field select{
  border:1.5px solid var(--border-strong); border-radius: var(--radius-s); padding:.85rem 1rem;
  font-family: inherit; font-size:.95rem; color: var(--text-1); background:#fff;
  transition: border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,164,229,.14);
}
.field textarea{ resize: vertical; min-height:130px; }
.form-note{ font-size:.8rem; color: var(--text-3); margin-top:.5rem; }
.form-success{ display:none; padding:1rem 1.2rem; border-radius: var(--radius-s); background:#EAF8EE; color:#1C7C3C; font-weight:600; font-size:.9rem; margin-bottom:1.2rem; border:1px solid #BFE7CB; }
.form-success.is-visible{ display:block; }

/* ---------- Careers ---------- */
.careers-split{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items:center; }
.value-list{ display:grid; grid-template-columns: 1fr 1fr; gap:1.2rem; margin-top:2rem; }
.value-item{ padding:1.1rem 1.2rem; border:1px solid var(--border); border-radius: var(--radius-s); background:#fff; }
.value-item h4{ font-size:.95rem; margin-bottom:.3rem; }
.value-item p{ font-size:.85rem; color: var(--text-2); }

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index:480;
  width:46px; height:46px; border-radius:50%;
  background: var(--blue-deep); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-m);
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), visibility 0s linear var(--dur-m), background var(--dur-s) var(--ease);
}
.back-to-top svg{ width:20px; height:20px; }
.back-to-top.is-visible{
  opacity:1; visibility:visible; transform: translateY(0);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), background var(--dur-s) var(--ease);
}
.back-to-top:hover{ background: var(--orange); }
@media (max-width: 680px){
  .back-to-top{ right:1rem; bottom:1rem; width:42px; height:42px; }
}
@media (max-width: 480px){
  /* On narrow phones this floating button sits directly on top of card
     text in 2-column grids (stat cards, focus cards, etc.) and visually
     covers the last line or two — remove it here rather than leave
     content unreadable underneath it. */
  .back-to-top{ display:none; }
}

/* ---------- Company detail page ---------- */
.company-hero{
  padding-block: clamp(6.5rem,11vw,8.5rem) clamp(2.5rem,5vw,4rem);
  background: var(--bg-1);
}
.company-hero-top{ display:flex; align-items:center; gap:1.2rem; margin-bottom:1.4rem; }
.company-hero-mark{
  width:56px; height:56px; border-radius: var(--radius-m); background:#fff; border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-weight:800;
  color: var(--blue-deep); font-size:1.2rem; flex:none;
}
.company-hero-mark.has-logo{ padding:8px; }
.company-hero-mark.has-logo img{ width:100%; height:100%; object-fit:contain; display:block; }
.company-hero-mark.full-logo{
  width:auto; height:60px; max-width:min(420px,70vw); background:none; border:none; padding:0;
}
.company-hero-mark.full-logo img{ width:auto; height:100%; max-width:100%; object-fit:contain; display:block; }
@media (max-width: 680px){
  .company-hero-mark.full-logo{ height:46px; }
}
.focus-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:1.5rem; }
.focus-card{ padding:1.7rem 1.6rem; border:1px solid var(--border); border-radius: var(--radius-m); background:#fff; }
.focus-card h3{ font-size:1.02rem; margin-bottom:.5rem; }
.focus-card p{ color: var(--text-2); font-size:.92rem; }

.license-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:1.5rem; }
.license-card{
  padding:1.7rem 1.6rem; border:1.5px solid var(--border); border-radius: var(--radius-m); background:#fff;
  display:flex; flex-direction:column; text-align:left; width:100%;
  font-family: inherit; cursor:pointer;
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}
.license-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--blue); }
.license-badge{
  display:inline-flex; align-items:center; gap:.5rem; margin-bottom:1rem;
}
.license-badge svg{ width:20px; height:20px; color: var(--blue-deep); flex:none; }
.license-authority{ font-size:.82rem; font-weight:700; color: var(--text-1); line-height:1.3; }
.license-subtitle{ font-size:.76rem; color: var(--text-3); margin-bottom:1rem; }
.license-title{ font-size:1.02rem; font-weight:700; margin-bottom:1rem; color: var(--blue-deep); }
.license-fields{ display:flex; flex-direction:column; gap:.55rem; margin-top:auto; padding-top:1rem; border-top:1px dashed var(--border); }
.license-field{ display:flex; justify-content:space-between; gap:1rem; font-size:.85rem; }
.license-field .label{ color: var(--text-3); }
.license-field .value{ font-weight:600; color: var(--text-1); text-align:right; }
.license-verified{
  display:inline-flex; align-items:center; gap:.4rem; font-size:.72rem; font-weight:700;
  color:#1C7C3C; background:#EAF8EE; border:1px solid #BFE7CB; border-radius:999px; padding:.3rem .7rem;
  margin-bottom:1rem; align-self:flex-start;
}
.license-verified svg{ width:12px; height:12px; }
.license-view{
  display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:.86rem; color: var(--text-1);
  margin-top:1.1rem; padding-top:1rem; border-top:1px solid var(--border);
}
.license-view svg{ width:15px; height:15px; color: var(--orange); transition: transform var(--dur-s) var(--ease); }
.license-card:hover .license-view svg{ transform: translateX(4px); }

/* ---------- Certificate lightbox ---------- */
.lightbox-overlay{
  position: fixed; top:0; left:0; right:0; bottom:0; z-index:600;
  width:100%; height:100%;
  background: rgba(8,16,24,.78);
  display:flex; align-items:center; justify-content:center;
  padding: 2rem;
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity var(--dur-m) var(--ease), visibility 0s linear var(--dur-m);
}
.lightbox-overlay.is-open{
  opacity:1; visibility:visible; pointer-events:auto;
  transition: opacity var(--dur-m) var(--ease);
}
.lightbox-inner{
  background:#fff; border-radius: var(--radius-m); max-width:900px; width:100%;
  max-height:90vh; display:flex; flex-direction:column; overflow:hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.lightbox-header{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding: 1rem 1.3rem; border-bottom:1px solid var(--border); flex:none;
}
.lightbox-title{ font-weight:700; font-size:.95rem; color: var(--text-1); }
.lightbox-close{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border-strong); background:#fff;
  display:flex; align-items:center; justify-content:center; flex:none; color: var(--text-1);
}
.lightbox-close svg{ width:16px; height:16px; }
.lightbox-close:hover{ background: var(--bg-2); }
.lightbox-body{ overflow:auto; padding:1rem; background: var(--bg-1); display:flex; justify-content:center; }
.lightbox-body img{ max-width:100%; height:auto; border-radius: var(--radius-s); box-shadow: var(--shadow-s); }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.flex-center{ display:flex; align-items:center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .company-grid, .company-grid.cols-3{ grid-template-columns: repeat(2,1fr); }
  .stat-row{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap:2.5rem; }
}

@media (max-width: 1180px){
  .nav-links{ display:none; }
  .nav-right .btn{ display:none; }
  .hamburger{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:380px; }
  .pillars{ grid-template-columns:1fr; }
  .approach-track{ grid-template-columns:1fr; gap:2.2rem; }
  .approach-track::before{ display:none; }
  .contact-grid{ grid-template-columns:1fr; }
  .careers-split{ grid-template-columns:1fr; }
  .news-grid{ grid-template-columns:1fr 1fr; }
  .focus-grid, .license-grid{ grid-template-columns:1fr; }
}

@media (max-width: 680px){
  .company-grid, .company-grid.cols-3{ grid-template-columns:1fr 1fr; }
  .news-grid{ grid-template-columns:1fr; }
  .industry-row{ grid-template-columns: 40px 1fr 26px; }
  .industry-row p{ display:none; }
  .form-grid{ grid-template-columns:1fr; }
  .value-list{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
}

@media (max-width: 460px){
  .company-grid, .company-grid.cols-3{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:1fr; }
  .hero-cta-row{ flex-direction:column; align-items:stretch; }
  .hero-cta-row .btn{ width:100%; }
}
