/* Gayathiri Computer Solutions — site styles
   Palette sampled from the GCS logo: blue #014878, grid grey #8f8f8f */

:root {
  --blue: #014878;
  --blue-700: #013a61;
  --blue-900: #00243d;
  --blue-500: #0b639f;
  --blue-100: #e6eef5;
  --blue-50: #f3f7fa;
  --grey: #8f8f8f;
  --grid: #d7dde3;
  --ink: #0e1a24;
  --ink-2: #3a4753;
  --ink-3: #62707c;
  --line: #e2e7ec;
  --bg: #ffffff;
  --surface: #f5f7f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 36, 61, .06), 0 8px 24px rgba(0, 36, 61, .08);
  --max: 1200px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface); }
.section--grid {
  background-color: var(--blue-50);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-3); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .95rem/1 var(--font);
  padding: 15px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-100); color: var(--blue-700); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 50px; height: 50px; }
.brand__name { font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: var(--blue); letter-spacing: -.01em; }
.brand__name small { display: block; font: 500 .68rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 6px;
  font-weight: 500; font-size: .96rem; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--blue); background: var(--blue-50); }
.nav__link.is-active { color: var(--blue); }
.nav__link svg { width: 14px; height: 14px; }
.nav__item { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: -12px;
  min-width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); font-size: .93rem; }
.nav__drop a:hover { background: var(--blue-50); color: var(--blue); }
.nav__drop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.nav__cta { margin-left: 12px; padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue-900);
  color: #c9d6e0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(100deg, #000 30%, transparent 85%);
  -webkit-mask-image: linear-gradient(100deg, #000 30%, transparent 85%);
}
.hero__arc {
  position: absolute; width: 900px; height: 900px; left: -380px; top: 40px;
  border: 26px solid rgba(11, 99, 159, .35); border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #7fb7e0; }
.hero .eyebrow { color: #8fc0e3; }
.hero__tagline { font-family: var(--mono); font-size: .92rem; color: #9fb3c3; letter-spacing: .02em; margin-bottom: 18px; }
.hero__lead { font-size: 1.15rem; max-width: 54ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 1px solid rgba(143, 192, 227, .35); border-radius: var(--radius);
}

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--blue-900); color: #c9d6e0; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 90%);
}
.page-hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .eyebrow { color: #8fc0e3; }
.page-hero p { font-size: 1.12rem; max-width: 64ch; margin: 0; }
.crumbs { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; margin-bottom: 20px; color: #8ea4b5; }
.crumbs a { color: #b9cddc; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .6; }

/* Stats strip */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 1.6rem; color: var(--blue); line-height: 1.1; margin-bottom: 4px; font-weight: 700; }
.stat span { font-size: .92rem; color: var(--ink-3); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card--hover:hover { border-color: #b8cadb; box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-box {
  width: 48px; height: 48px; border-radius: 8px; background: var(--blue-100); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon-box svg { width: 24px; height: 24px; }

.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.product-card:hover { color: inherit; border-color: #b8cadb; box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); position: relative; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__std {
  position: absolute; top: 12px; left: 12px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(0, 36, 61, .85); color: #fff; padding: 7px 10px; border-radius: 4px;
}
.product-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.12rem; }
.product-card__body p { font-size: .95rem; color: var(--ink-3); flex: 1; }
.product-card__body .link-arrow { margin-top: 4px; color: var(--blue); }

/* Challenges (Q&A) */
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.qa__item { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.qa__num { font: 500 .8rem/1 var(--mono); color: var(--grey); margin-bottom: 14px; display: block; }
.qa__item h3 { font-size: 1.08rem; }
.qa__item p { font-size: .96rem; color: var(--ink-3); margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* Standards chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 .85rem/1 var(--mono); padding: 10px 14px; border-radius: 6px;
  background: #fff; border: 1px solid var(--grid); color: var(--blue-700);
}

/* Clients */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.client:hover { border-color: #b8cadb; box-shadow: var(--shadow); }
.client img { max-height: 80px; width: auto; object-fit: contain; }
.clients-note { text-align: center; color: var(--ink-3); font-size: .9rem; margin-top: 20px; }

/* Quality band */
.quality { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.badge strong { display: block; color: var(--blue); font-size: 1.05rem; margin-bottom: 4px; }
.badge span { font-size: .9rem; color: var(--ink-3); }

/* CTA band */
.cta {
  position: relative; overflow: hidden;
  background: var(--blue); color: #d4e2ec; border-radius: 14px;
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(270deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; max-width: 58ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Services */
.service { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { font: 500 2.4rem/1 var(--mono); color: var(--grid); }
.service h2 { font-size: 1.6rem; }
.service p { max-width: 75ch; }

/* Product detail */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.detail__main > p { font-size: 1.06rem; }
.detail__aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.spec h3 { font-size: 1rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 500; margin-bottom: 16px; }
.spec dl { margin: 0; display: grid; gap: 12px; }
.spec dt { font-size: .82rem; color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); font-weight: 500; }
.spec .btn { width: 100%; justify-content: center; margin-top: 18px; }
.detail__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.detail__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.testlist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: t; }
.testlist li {
  counter-increment: t; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px 14px 56px; position: relative; color: var(--ink); font-weight: 500; font-size: .98rem;
}
.testlist li::before {
  content: counter(t, decimal-leading-zero); position: absolute; left: 16px; top: 14px;
  font: 500 .85rem/1.65 var(--mono); color: var(--blue);
}
.h-sub { font-size: 1.3rem; margin-top: 40px; }
.h-sub:first-child { margin-top: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gallery button { all: unset; cursor: zoom-in; display: block; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.gallery button:focus-visible { outline: 3px solid var(--blue-500); outline-offset: -3px; }
.gallery img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 16px 18px; font-size: .9rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.gallery figcaption strong { display: block; color: var(--ink); font-size: .96rem; margin-bottom: 4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 20, 34, .92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; background: #fff; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #c9d6e0; margin-top: 14px; font-size: .95rem; }
.lightbox__close { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close svg { width: 22px; height: 22px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-info .card { display: flex; gap: 16px; padding: 22px; }
.contact-info .icon-box { margin: 0; flex: none; }
.contact-info h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info p { margin: 0; font-size: .96rem; }
.contact-info a { display: block; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface); padding: 6px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 24px; }
.tab {
  font: 600 .95rem/1.2 var(--font); padding: 14px 12px; border-radius: 7px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-3); text-align: center;
}
.tab small { display: block; font-weight: 400; font-size: .78rem; margin-top: 3px; }
.tab[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0, 36, 61, .12); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-panel[hidden] { display: none; }
.form-panel > p { color: var(--ink-3); font-size: .96rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--ink); padding: 0; }
.field label .req { color: #b42318; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cdd5dc; border-radius: 6px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 72, 120, .15); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cdd5dc; border-radius: 6px; padding: 10px 14px; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.radios input { accent-color: var(--blue); width: auto; margin: 0; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: .84rem; color: var(--ink-3); margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: .92rem; }
.form__status[hidden] { display: none; }

/* Footer */
.footer { background: var(--blue-900); color: #9fb3c3; font-size: .95rem; margin-top: 0; }
.footer .container { padding-top: 64px; padding-bottom: 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer h4 { color: #fff; font-size: .8rem; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #c9d6e0; }
.footer a:hover { color: #fff; }
.footer__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer__brand img { width: 48px; height: 48px; background: #fff; border-radius: 6px; padding: 3px; }
.footer__brand span { color: #fff; font-weight: 600; line-height: 1.2; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact svg { flex: none; width: 16px; height: 16px; margin-top: 5px; color: #7fb7e0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .85rem; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .clients { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero .container, .split, .quality, .detail, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero .container { padding-top: 64px; padding-bottom: 72px; }
  .split--reverse .split__media { order: 0; }
  .detail__aside { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header .container { height: 68px; }
  .nav { inset: 68px 0 0 0; }
  .brand img { width: 42px; height: 42px; }
  .brand__name { font-size: .95rem; }
  .grid--2, .grid--3, .grid--4, .badges, .testlist, .form { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .service__num { font-size: 1.6rem; }
  .hero__media::before { display: none; }
  .cta { padding: 32px 22px; }
  .form-panel { padding: 22px; }
  .tabs { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .qa__item { padding: 24px; }
  .stat { padding: 20px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat strong { font-size: 1.2rem; }
  .stat span { font-size: .85rem; }
}

/* Skip link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* Footer contact: one number / address per line */
.footer__contact span a { display: block; }

/* Product grid: 4 across on wide screens, with a custom-system card */
.product-grid .product-card__body { padding: 20px; }
.product-grid .product-card__body h3 { font-size: 1.05rem; }
.product-card--custom { background: var(--blue); border-color: var(--blue); color: #d4e2ec; position: relative; overflow: hidden; }
.product-card--custom::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.product-card--custom:hover { color: #d4e2ec; border-color: var(--blue-700); }
.product-card--custom .product-card__body { position: relative; justify-content: center; padding: 28px 24px; }
.product-card--custom h3 { color: #fff; }
.product-card--custom p { color: #c3d4e1; }
.product-card--custom .icon-box { background: rgba(255, 255, 255, .12); color: #fff; }
.product-card--custom .link-arrow { color: #fff; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

/* Home: challenges as a heading + list */
.qa-split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.qa-split__head { position: sticky; top: 120px; }
.qa--list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qa--list .qa__item { display: grid; grid-template-columns: 44px 1fr; gap: 8px; border: 0; border-top: 1px solid var(--line); padding: 26px 28px; }
.qa--list .qa__item:first-child { border-top: 0; }
.qa--list .qa__num { margin: 4px 0 0; color: var(--blue); }
.qa--list h3 { margin-bottom: 6px; }

/* Home: compact product grid, first product featured */
.product-grid--home { grid-template-columns: repeat(4, 1fr); }
.product-grid--home .product-card:first-child { grid-row: span 2; }
.product-grid--home .product-card:first-child .product-card__img { aspect-ratio: auto; flex: 1; min-height: 240px; }
.product-grid--home .product-card:first-child h3 { font-size: 1.3rem; }
.product-grid--home .product-card:not(:first-child) .product-card__body h3 { flex: 1; }

/* About: expertise list */
.expertise { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.expertise li { display: flex; gap: 14px; align-items: flex-start; }
.expertise svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.expertise strong { display: block; color: var(--ink); font-weight: 600; }
.expertise span { font-size: .95rem; color: var(--ink-3); }

/* CTA band: phone as a quiet secondary line */
.cta__actions { align-items: center; }
.cta__phone { font-size: .95rem; color: #c3d4e1; }
.cta__phone a { color: #fff; font-weight: 600; }

@media (max-width: 1080px) {
  .product-grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .qa-split { grid-template-columns: 1fr; gap: 32px; }
  .qa-split__head { position: static; }
}
@media (max-width: 640px) {
  .product-grid--home { grid-template-columns: 1fr; }
  .product-grid--home .product-card:first-child { grid-row: auto; }
  .product-grid--home .product-card:first-child .product-card__img { aspect-ratio: 4 / 3; min-height: 0; }
  .qa--list .qa__item { grid-template-columns: 1fr; padding: 22px; }
}

[id] { scroll-margin-top: 90px; }

/* Form delivery */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status.is-error { background: #fef3f2; color: #b42318; }
.form__status.is-error a { color: #b42318; font-weight: 600; text-decoration: underline; }
.btn:disabled { opacity: .7; cursor: progress; }
.contact-info > .link-arrow { justify-self: start; }

/* Customer portal */
.portal-login { max-width: 460px; margin: 0 auto; }
.portal-login .form-panel { display: grid; gap: 18px; }
.portal-login h2 { font-size: 1.5rem; margin: 0; }
.portal-login .btn { justify-content: center; }
.portal-login .form__note { margin: 0; text-align: center; }
.portal-alert { margin: 0; padding: 12px 14px; border-radius: 6px; background: #fef3f2; color: #b42318; font-size: .94rem; }
.portal-note { margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: .94rem; }
.portal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.portal-count { font-family: var(--mono); font-size: .85rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.portal-empty { padding: 28px; border: 1px dashed var(--grid); border-radius: var(--radius); color: var(--ink-3); background: var(--surface); }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.portal-project { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.portal-project:hover { color: var(--ink); border-color: #b8cadb; box-shadow: var(--shadow); transform: translateY(-2px); }
.portal-project .icon-box { margin-bottom: 10px; }
.portal-project__name { font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.portal-project .link-arrow { color: var(--blue); margin-top: 6px; }
/* Menu labels stay on one line; below 1100px the menu folds into the ☰ button */
.nav__link, .nav__cta { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 24px 32px; overflow-y: auto; gap: 8px;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 8px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav__drop::before { display: none; }
  .nav__cta { margin: 12px 0 0; justify-content: center; }
}
@media (max-width: 640px) { .nav { inset: 68px 0 0 0; } }

/* Customer portal: admin lists and waiting screen */
.portal-h { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 40px 0 16px; }
.portal-h:first-of-type { margin-top: 8px; }
.portal-h span { font: 500 .8rem/1 var(--mono); background: var(--blue-100); color: var(--blue-700); padding: 5px 9px; border-radius: 999px; }
.portal-list { display: grid; gap: 12px; }
.portal-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.portal-row.is-highlight { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 72, 120, .12); }
.portal-row__main { display: grid; gap: 3px; min-width: 0; }
.portal-row__main strong { color: var(--ink); font-size: 1.05rem; }
.portal-row__main span { color: var(--ink-2); font-size: .95rem; }
.portal-row__main small { color: var(--ink-3); font-size: .84rem; }
.portal-row__actions { display: flex; gap: 8px; flex: none; }
.portal-row__actions form { margin: 0; }
.portal-row__actions .btn { padding: 10px 16px; }
.portal-wait { text-align: center; }
.portal-wait p { margin: 0; }
.portal-wait .btn { justify-self: center; }
.portal-spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--blue-100); border-top-color: var(--blue); animation: portal-spin 1s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .portal-spinner { animation-duration: 3s; } }
@media (max-width: 640px) {
  .portal-row { flex-direction: column; align-items: stretch; }
  .portal-row__actions .btn { flex: 1; justify-content: center; }
}

/* WordPress: generic pages and posts */
.entry { max-width: 820px; }
.entry img { border-radius: var(--radius); }
.entry article + article { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
