/* GNR Global Technologies - shared light-theme styles. */

:root {
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bg: #F5F9FD;
  --bg-2: #EAF2F9;
  --surface: #FFFFFF;
  --ink: #021B4A;
  --ink-2: #43597C;
  --line: #D3E1EE;
  --primary: #0C61A5;
  --link: #0A5693;
  --cyan: #00C9CC;
  --accent-text: #006D7B;
  --btn-bg: var(--accent-text);
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #00545F;
  --band-bg: #021B4A;
  --band-fg: #FFFFFF;
  --band-fg2: #B9D0EA;
  --band-btn: #19D9DB;
  --band-btn-fg: #021B4A;
  --glow: rgba(0, 201, 204, 0.16);
  --danger: #B3261E;
  --header-bg: rgba(245, 249, 253, 0.9);
  --chip-bg: #E3EEF8;
  --globe-1: #0C61A5;
  --globe-2: #021B4A;
  --ring: #5B9BD0;
  --shadow: 0 10px 30px rgba(2, 27, 74, 0.18);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.028em; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card h2, .ind-item h2, .contact-grid aside h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, 1160px); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 140px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.nav { order: 5; flex-basis: 100%; display: none; flex-direction: column; gap: 2px; padding-bottom: 10px; }
.nav[data-open="true"] { display: flex; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--accent-text); background: transparent; }
.nav a[aria-current="page"] { color: var(--accent-text); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.head-cta { display: none; }
/* Desktop header: logo left, menu centred, theme toggle and quote button right */
@media (min-width: 1000px) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
  .brand { justify-self: start; }
  .nav { order: 0; display: flex; flex-direction: row; justify-content: center; justify-self: center; padding-bottom: 0; gap: 4px; }
  .actions { margin-left: 0; justify-self: end; }
  #menuBtn { display: none; }
}
@media (min-width: 560px) { .head-cta { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: 700 0.95rem/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }
.btn-band { background: var(--band-btn); color: var(--band-btn-fg); }
.btn-band:hover { filter: brightness(1.08); }
.btn-outline-band { background: transparent; color: var(--band-fg); border-color: rgba(185, 208, 234, 0.45); }
.btn-outline-band:hover { border-color: var(--band-fg); }

/* Page structure */
.page { padding-block: 56px 72px; }
.page-head { display: grid; gap: 14px; margin-bottom: 40px; }
.page-head p { max-width: 62ch; }
.page-head-centered {  margin-inline: auto; text-align: center; }
.page-head-centered p { margin-inline: auto; }
.section { padding-block: 56px; }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 64ch; }
.section-head-centered { margin-inline: auto; text-align: center; justify-items: center; }
.mt-lg { margin-top: 72px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 48px 64px; background: radial-gradient(60% 70% at 85% 30%, var(--glow), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.orbit { width: min(100%, 460px); margin-inline: auto; display: block; }
.orbit text { font-family: var(--font-display); font-weight: 800; }
.spin-a { transform-origin: 200px 200px; animation: spin 120s linear infinite; }
.spin-b { transform-origin: 200px 200px; animation: spin 80s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spin-a, .spin-b { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card, body { transition: none; }
}

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s, transform .15s; scroll-margin-top: 96px; }
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--chip-bg); color: var(--accent-text); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.ticks li { position: relative; padding-left: 20px; min-width: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.tags { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-2); line-height: 1.7; }
.card .more { margin-top: auto; font-weight: 700; font-size: 0.92rem; text-decoration: none; padding-top: 4px; }
.card .more:hover { text-decoration: underline; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters-centered { justify-content: center; }
.services-more { margin-top: 24px; text-align: center; }
.chip-btn { font: 600 0.88rem/1 var(--font-body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--primary); }
.chip-btn[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); margin-bottom: 16px; }
.portfolio-filters { margin-bottom: 40px; }
.project-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.project-card { display: grid; align-content: start; gap: 14px; min-width: 0; }
.project-image { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; }
.project-body { display: grid; gap: 12px; }
.project-title { font-size: 1.35rem; }
.project-body p { color: var(--ink-2); font-size: 0.95rem; }
.project-body .more { margin-top: 4px; font-weight: 700; text-decoration: none; }
.project-body .more:hover { text-decoration: underline; }

/* Process */
.steps { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { position: relative; border-top: 2px solid var(--line); padding-top: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.step::before { content: ""; position: absolute; left: 0; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--bg); }
.section-alt .step::before { box-shadow: 0 0 0 4px var(--bg-2); }
.step .eyebrow { font-size: 0.72rem; }
.step p { color: var(--ink-2); font-size: 0.95rem; }
/* Stack chips */
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-family: var(--font-mono); font-size: 0.82rem; padding: 7px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--ink); border: 1px solid var(--line); }

/* Industries */
.ind { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ind-item { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ind-item .eyebrow { font-size: 0.7rem; }
.ind-item p { color: var(--ink-2); font-size: 0.93rem; }
.models { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.model { padding: 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.model p { color: var(--ink-2); font-size: 0.95rem; }

/* About */
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.prose { display: grid; gap: 14px; max-width: 62ch; }
.prose p { color: var(--ink-2); }
.about-image { overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 3; min-height: 240px; }
.about-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.value { display: grid; gap: 8px; align-content: start; padding: 20px 0 0; border-top: 2px solid var(--line); }
.value p { color: var(--ink-2); font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 18px; min-width: 0; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.err { color: var(--danger); font-size: 0.85rem; font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); }
.field .consent input { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; flex: none; accent-color: var(--primary); }
.field .consent { font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.details { display: grid; gap: 16px; }
.detail { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.detail-icon { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail > div { display: grid; gap: 2px; min-width: 0; }
.detail .eyebrow { font-size: 0.7rem; }
.detail span:last-child, .detail a { font-weight: 600; overflow-wrap: anywhere; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-2); font-size: 0.95rem; }
.next .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--chip-bg); color: var(--accent-text); font: 500 0.8rem var(--font-mono); }
.form-status { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-text); min-height: 1.2em; }
.form-status.is-error { color: var(--danger); }
.form-submit { width: 100%; }

/* Legal pages */
.legal-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .legal-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } .toc { position: sticky; top: 96px; } }
.toc { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 18px 20px; }
.toc h2 { font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; font-size: 0.9rem; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.legal { max-width: 74ch; min-width: 0; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; scroll-margin-top: 96px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 6px; margin: 12px 0 0; }
.updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.notice { border: 1px solid var(--line); background: var(--chip-bg); border-radius: 10px; padding: 14px 16px; font-size: 0.9rem; color: var(--ink); margin-bottom: 28px; max-width: 74ch; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); background: var(--bg-2); }
td code { font-family: var(--font-code); font-size: 0.85rem; }

/* 404 */
.nf { display: grid; gap: 18px; justify-items: start; padding-block: 40px; }
.nf .big { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--cyan); }

/* Band, footer, cookie bar */
.band { background: var(--band-bg); color: var(--band-fg); border-radius: 14px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(25, 217, 219, 0.35); box-shadow: 0 0 0 36px rgba(25, 217, 219, 0.06); pointer-events: none; }
.band > * { position: relative; z-index: 1; }
.band h2 { color: var(--band-fg); max-width: 22ch; }
.band p { color: var(--band-fg2); max-width: 56ch; }
.band .eyebrow { color: var(--band-btn); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; background: var(--bg); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-grid h2 { margin: 0 0 10px; font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid svg { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-grid .contact-list { gap: 12px; }
.foot-grid .contact-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.foot-grid .contact-list svg { margin-top: 2px; color: var(--accent-text); }
.foot-grid .contact-address { color: var(--ink); font-size: 0.93rem; font-style: normal; font-weight: 600; overflow-wrap: anywhere; }
.foot-grid a, .linklike { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.foot-grid a:hover, .linklike:hover { color: var(--accent-text); text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-body); }
.foot-brand p { color: var(--ink-2); font-size: 0.93rem; margin-top: 12px; max-width: 34ch; }
.foot-grid .social { margin-top: 22px; display: grid; gap: 10px; }
.foot-grid .social h2 { margin: 0; }
.foot-grid .social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-grid .social-list a { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; transition: background-color .15s, color .15s, border-color .15s; }
.foot-grid .social-list a:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); text-decoration: none; }
.foot-grid .social-list svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legal-row { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); }
.legal-row nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-row a { color: var(--ink-2); text-decoration: none; }
.legal-row a:hover { color: var(--accent-text); text-decoration: underline; }
.scroll-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--btn-bg); border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow); cursor: pointer; }
.scroll-top:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.scroll-top svg { width: 22px; height: 22px; }
.whatsapp-float { position: fixed; right: 24px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; min-height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid #075E54; border-radius: 999px; background: #075E54; color: #FFFFFF; box-shadow: var(--shadow); font-weight: 700; text-decoration: none; }
.whatsapp-float:hover { background: #064C44; border-color: #064C44; color: #FFFFFF; }
.whatsapp-float svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.cookie-inner { max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; box-shadow: var(--shadow); }
.cookie-inner p { flex: 1 1 320px; font-size: 0.92rem; color: var(--ink); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; }
