/* Prygenix shared site styles.
   Mirrors the home page (React build) design language:
   black canvas, gold accent, gold->blue divider bars, pill badges,
   gradient cards with gold borders and gold check-mark lists. */

:root {
  --ink: #ffffff;
  --text: #d1d5db;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.2);
  --gold-mid: rgba(212, 175, 55, 0.5);
  --blue: #2d8cff;
  --black: #000000;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --card-bg: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
  --section-alt: linear-gradient(180deg, #000 0%, #111827 50%, #000 100%);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--black);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #000; }

a { color: inherit; text-decoration: none; }

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

img { max-width: 100%; }

.shell {
  width: 100%;
  max-width: 85%;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header (matches home) ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-soft);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 16px;
  color: var(--text);
}

.links a:hover { color: var(--gold); }

.nav-item {
  position: relative;
  padding: 28px 0;
}

.nav-item > a {
  position: relative;
  color: var(--text);
  transition: color 0.3s;
}

.nav-item > a.active { color: var(--gold); }

.nav-item > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  min-width: 240px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown a {
  color: var(--text);
  white-space: nowrap;
}

.dropdown a:hover { color: var(--gold); }

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-cta {
  display: flex;
  justify-content: flex-end;
}

.nav-cta .button,
.menu-panel .button {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-toggle {
  position: relative;
  display: none;
}

.menu-toggle summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.menu-toggle summary::-webkit-details-marker { display: none; }

.menu-toggle summary span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--gold);
  border-radius: 999px;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.menu-panel a { color: var(--text); }
.menu-panel a:hover { color: var(--gold); }
.menu-panel .button { color: #000; margin-top: 4px; }

/* ---------- Buttons (match home "Request Consultation" / "Explore Services") ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.button:hover {
  background: rgba(212, 175, 55, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.2);
}

.button .arrow { transition: transform 0.3s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }

.button.secondary {
  background: transparent;
  border-color: var(--gold-mid);
  color: var(--gold);
}

.button.secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--gold);
  font-weight: 500;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}

.text-link:hover::after { transform: translateX(4px); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 900px;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.12;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; font-weight: 500; }

.accent { color: var(--gold); }

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow::before,
.badge::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--gold);
  -webkit-mask: var(--bolt) center / contain no-repeat;
  mask: var(--bolt) center / contain no-repeat;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.meta,
.product-status {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 96px;
  background:
    radial-gradient(circle at 82% 20%, rgba(45, 140, 255, 0.14), transparent 32%),
    radial-gradient(circle at 12% 12%, rgba(212, 175, 55, 0.12), transparent 28%),
    #000;
  border-bottom: 1px solid var(--gold-soft);
}

/* faint engineering grid, fades out toward the bottom */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 8%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(45, 140, 255, 0.35);
  filter: blur(80px);
  opacity: 0.35;
  animation: floatGlow 8s ease-in-out infinite;
}

.page-hero .shell {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* ---------- Stats strip (same as home hero) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 720px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Sections ---------- */

.content,
.section {
  position: relative;
  padding: 96px 0;
  background: #000;
}

main > section:nth-of-type(odd):not(.page-hero):not(.cta-band) {
  background: var(--section-alt);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.section-head p {
  margin: 24px auto 0;
  font-size: 18px;
}

.content article > h2,
.content-grid article h2 {
  margin: 56px 0 20px;
  font-size: clamp(24px, 2.4vw, 30px);
}

.content article > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.content article > h2:first-child { margin-top: 0; }

.content article > p {
  max-width: 820px;
  font-size: 17px;
}

/* gold check-circle lists, like the home services cards */
.content ul,
.card ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.content li,
.card li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  line-height: 1.6;
}

.content li::before,
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

/* ---------- Cards (one look for every card on the site) ---------- */

.card,
.feature,
.service-row,
.product-card,
.contact-item,
.form-card {
  position: relative;
  border: 1px solid var(--gold-soft);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.feature:hover,
.service-row:hover,
.product-card:hover,
.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-mid);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.14);
}

.card h3 { margin-bottom: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}

.feature { padding-top: 88px; }

.feature::before,
.feature::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.feature::before {
  border: 1px solid var(--gold-soft);
  background: rgba(212, 175, 55, 0.1);
}

.feature::after {
  background: var(--gold);
  -webkit-mask: var(--check) center / 24px no-repeat;
  mask: var(--check) center / 24px no-repeat;
}

/* services overview */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-row {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  align-items: start;
}

.service-row h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
}

.service-row .button {
  width: fit-content;
}

/* products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card { min-height: 100%; }

.product-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
}

.product-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.product-logo-panel img {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 76px;
  object-fit: contain;
}

.product-logo-panel.togal-logo img { max-width: 420px; max-height: 86px; }
.product-logo-panel.arch-logo img { max-width: 220px; max-height: 88px; }
.product-logo-panel.combined-logo img { max-width: 520px; max-height: 120px; }

/* ---------- Pictures ---------- */

.topic-picture,
.detail-picture,
.contact-picture {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--gray-900);
}

.topic-picture img,
.detail-picture img,
.contact-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.topic-picture:hover img,
.detail-picture:hover img,
.service-row:hover .topic-picture img {
  transform: scale(1.05);
}

.topic-picture::after,
.detail-picture::after,
.contact-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
}

.topic-picture { aspect-ratio: 16 / 10; }

.image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 8px;
}

.detail-picture {
  aspect-ratio: 16 / 9;
  margin: 28px 0 8px;
}

.contact-picture {
  aspect-ratio: 16 / 10;
  margin: 0 0 24px;
}

/* ---------- Detail pages ---------- */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

.content-grid-wide { grid-template-columns: 1fr; }

.side {
  position: sticky;
  top: 112px;
  align-self: start;
}

.side p { margin-bottom: 20px; }
.side .button { width: 100%; }

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.side-nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
}

.side-nav a::after { content: "\2192"; color: var(--gold); }
.side-nav a:hover { background: rgba(212, 175, 55, 0.08); color: var(--gold); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.contact-grid .section-head {
  margin: 0 0 32px;
  text-align: left;
}

.contact-grid .section-head h2::after { margin-left: 0; }
.contact-grid .section-head p { margin-left: 0; }

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item { padding: 22px 24px; }

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item p,
.contact-item a { color: var(--ink); font-size: 17px; }
.contact-item a:hover { color: var(--gold); }

.form-card {
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.form-card h3 { margin-bottom: 24px; font-size: 24px; }

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #374151;
  background: var(--gray-900);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-card .button { width: 100%; }

/* ---------- CTA band (same closing block on every page) ---------- */

.cta-band {
  padding: 0 0 96px;
  background: #000;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 64px 48px;
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.16), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(45, 140, 255, 0.16), transparent 45%),
    var(--gray-900);
}

.cta-box h2 { max-width: 720px; margin: 0 auto; }

.cta-box p {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 18px;
}

.cta-box .hero-actions { justify-content: center; }

/* ---------- Footer (matches home) ---------- */

.footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--gold-soft);
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.75fr) minmax(110px, 0.7fr) minmax(80px, 0.55fr) minmax(240px, 1.15fr);
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand { text-align: left; }

.footer-logo {
  height: 22px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 0 10px;
}

.tagline {
  margin-top: 10px;
  color: var(--gold);
  font-weight: 500;
  font-size: 14px;
}

.footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.footer p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.footer a {
  color: var(--muted);
  transition: color 0.3s;
}

.footer a:hover { color: var(--gold); }

.footer-brand p {
  margin-bottom: 16px;
  max-width: 430px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: 999px;
  transition: background-color 0.3s, transform 0.3s var(--ease);
}

.social-icon:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(70%) sepia(61%) saturate(479%) hue-rotate(7deg) brightness(91%) contrast(88%);
  transition: filter 0.3s;
}

.social-icon:hover img {
  filter: brightness(0) saturate(100%) invert(4%) sepia(7%) saturate(1517%) hue-rotate(169deg) brightness(91%) contrast(96%);
}

.copyright {
  padding-top: 22px;
  border-top: 1px solid var(--gray-800);
  color: #808999;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-policy {
  display: flex;
  gap: 24px;
  color: #aab2c0;
  font-size: 13px;
}

/* ---------- Motion ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 18px) scale(1.08); }
}

/* scroll reveal: only active once site.js adds .js to <html> */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (min-width: 1024px) {
  .shell { padding: 0 32px; }
}

@media (max-width: 1023px) {
  .shell { max-width: 92%; }
  .content-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .shell { max-width: 100%; padding: 0 16px; }

  .nav { height: 72px; }
  .links, .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .page-hero { padding: 128px 0 64px; }
  .content, .section { padding: 64px 0; }
  .cta-band { padding-bottom: 64px; }
  .cta-box { padding: 44px 22px; }
  .section-head { margin-bottom: 40px; }

  .grid,
  .feature-grid,
  .image-band,
  .service-list,
  .contact-grid,
  .product-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats { gap: 16px; }
  .hero-actions .button { flex: 1 1 100%; }
  .form-card { padding: 24px; }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =====================================================================
   Premium interaction layer (driven by site.js; everything degrades
   gracefully without JS and respects prefers-reduced-motion).
   ===================================================================== */

h1, h2, h3, .button, .eyebrow, .badge, .stats strong {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

h1 { letter-spacing: -0.015em; }
h2 { letter-spacing: -0.012em; }

/* gold words get a slow light sweep */
.accent {
  background: linear-gradient(100deg, #d4af37 0%, #d4af37 40%, #fff3c4 50%, #d4af37 60%, #d4af37 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 20% { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* header tightens once the page scrolls */
.topbar { transition: background-color 0.3s, box-shadow 0.3s; }
.topbar .nav { transition: height 0.3s var(--ease); }
.topbar.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.topbar.scrolled .nav { height: 68px; }

/* hero: the engineering grid lights up around the cursor */
.page-hero {
  --hx: 70%;
  --hy: 30%;
}

.page-hero::before {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(520px circle at var(--hx) var(--hy), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  mask-image: radial-gradient(520px circle at var(--hx) var(--hy), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}

.hero-orbit {
  position: absolute;
  top: 50%;
  right: 6%;
  width: 380px;
  height: 380px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.hero-orbit span:nth-child(2) {
  inset: 60px;
  border-color: rgba(45, 140, 255, 0.28);
  animation-duration: 28s;
  animation-direction: reverse;
}

.hero-orbit span:nth-child(3) {
  inset: 130px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  animation-duration: 18s;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.15), inset 0 0 40px rgba(212, 175, 55, 0.08);
}

.hero-orbit span::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.hero-orbit span:nth-child(2)::before {
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue);
}

.hero-orbit span:nth-child(3)::before { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* cards: gold spotlight follows the cursor */
.card,
.feature,
.service-row,
.product-card,
.contact-item,
.form-card {
  --mx: 50%;
  --my: -200px;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 175, 55, 0.1), transparent 45%),
    var(--card-bg);
}

.card:hover,
.feature:hover,
.service-row:hover,
.product-card:hover,
.contact-item:hover {
  border-color: var(--gold-mid);
}

/* pictures tilt slightly toward the cursor */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  will-change: transform;
}

.tilt:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3); }

/* primary buttons: light sweep on hover */
.button:not(.secondary) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button:not(.secondary)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.button:not(.secondary):hover::before { transform: translateX(120%); }

/* keyboard focus that matches the brand */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* technology marquee */
.tech-strip {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee 38s linear infinite;
}

.tech-strip:hover .tech-track { animation-play-state: paused; }

.tech-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  color: #6b7280;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.3s;
}

.tech-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

.tech-track span:hover { color: var(--gold); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* back to top (same gold circle as the home page) */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { transform: translateY(-3px); }

@media (max-width: 1023px) {
  .hero-orbit { display: none; }
}

@media (hover: none) {
  .tilt { transform: none; }
}

@media (min-width: 1024px) {
  .page-hero h1 { max-width: 760px; }
}

/* =====================================================================
   Photography: hero backdrops, mosaic galleries, lightbox
   ===================================================================== */

.hero-bg {
  position: absolute;
  inset: -40px 0 0;
  width: 100%;
  height: calc(100% + 40px);
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.85) contrast(1.05);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 30%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 30%, #000 70%);
  will-change: transform;
}

.page-hero .hero-orbit { z-index: 1; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery.inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 210px;
  margin: 28px 0 8px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--gray-900);
  cursor: zoom-in;
  transition: border-color 0.3s, box-shadow 0.4s;
}

.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery.inline .gallery-item.wide { grid-row: span 1; }

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: saturate(0.9);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85));
  transition: opacity 0.4s;
}

.gallery-item figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}

.gallery-item figcaption small {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.05); }
.gallery-item:hover figcaption { transform: none; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px 72px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox figure {
  margin: 0;
  max-width: min(1200px, 100%);
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.lightbox.open figure { transform: none; }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  margin: 0 auto;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
  margin-top: 16px;
  color: var(--text);
  font-size: 15px;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-mid);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.8);
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.lightbox button:hover { background: var(--gold); color: #000; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* product photos */
.product-card .topic-picture { margin-bottom: 24px; }

@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}

@media (max-width: 767px) {
  .gallery,
  .gallery.inline { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.big,
  .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .gallery-item figcaption { transform: none; }
  .lightbox { padding: 64px 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
  .hero-bg { opacity: 0.22; }
}

/* =====================================================================
   Expertise explorer: image tiles that open a detail panel
   ===================================================================== */

.detail-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--gold-mid);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.detail-hint b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.4s var(--ease);
}

.gallery-item[data-detail] { cursor: pointer; }
.gallery-item[data-detail]:hover .detail-hint { background: var(--gold); color: #000; }
.gallery-item[data-detail]:hover .detail-hint b { background: #000; color: var(--gold); transform: rotate(90deg); }

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.detail-modal.open { opacity: 1; pointer-events: auto; }

.detail-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  background: var(--gray-900);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.45s var(--ease);
}

.detail-modal.open .detail-panel { transform: none; }

.detail-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--gray-900)), linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
}

.detail-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px 44px 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-mid) transparent;
}

.detail-body h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.detail-body > p { font-size: 16px; color: var(--text); }

.detail-body h4 {
  margin: 28px 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.detail-body li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  line-height: 1.55;
}

.detail-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  background: var(--gold);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.detail-body .outcomes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-body .outcomes li {
  padding: 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.06);
  font-size: 14px;
}

.detail-body .outcomes li::before { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 6px 12px;
  border: 1px solid rgba(45, 140, 255, 0.35);
  border-radius: 999px;
  background: rgba(45, 140, 255, 0.08);
  color: #cfe3ff;
  font-size: 13px;
}

.detail-body .hero-actions { margin-top: 32px; }

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-nav button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
}

.detail-nav button:hover { color: var(--gold); }

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-mid);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.detail-close:hover { background: var(--gold); color: #000; transform: rotate(90deg); }

@media (max-width: 860px) {
  .detail-modal { padding: 0; align-items: end; }
  .detail-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 200px minmax(0, 1fr);
    height: 92vh;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .detail-media::after { background: linear-gradient(180deg, transparent 50%, var(--gray-900)); }
  .detail-body { padding: 24px 20px 28px; }
  .detail-body .outcomes { grid-template-columns: 1fr; }
}

/* =====================================================================
   Enquiry form (contact page): layout, validation and send states
   ===================================================================== */

.form-note {
  margin: -12px 0 24px;
  font-size: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.optional { color: var(--muted); font-weight: 400; }

.field textarea::placeholder { color: #6b7280; }

.field.invalid input,
.field.invalid textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.field-error {
  color: #fca5a5;
  font-size: 13px;
}

/* spam trap: off-screen for people, still in the page for bots */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-form .button[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.button .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form-status:empty { display: none; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.form-status.error {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.form-status.error a { color: var(--gold); text-decoration: underline; }

.form-status.success {
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
}

.form-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 12px;
  text-align: center;
}

.form-success .tick {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-mid);
}

.form-success .tick::before {
  content: "";
  width: 32px;
  height: 32px;
  background: var(--gold);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.form-success h3 { margin: 0; }
.form-success p { max-width: 380px; }

@media (max-width: 767px) {
  .field-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Contact page layout: info cards + form side by side, then "Why choose"
   ===================================================================== */

.contact-section .contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* Left column fills the form's height so both columns end on one line. */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info .section-head { margin-bottom: 28px; }
.contact-info .section-head p { font-size: 17px; }

.contact-cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 14px;
}

.contact-cards .contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  min-width: 0;
}

.contact-cards .contact-item > div { min-width: 0; }

.contact-cards .contact-item strong { margin-bottom: 4px; }

/* small gold dot between two values on one line */
.contact-cards .sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  vertical-align: middle;
}

.contact-cards .contact-item p,
.contact-cards .contact-item a {
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-cards .contact-item p + p { margin-top: 2px; }

.contact-cards .social-icons { gap: 8px; margin-top: 4px; }
.contact-cards .social-icon { width: 34px; height: 34px; }
.contact-cards .social-icon img { width: 17px; height: 17px; }

.ci-icon {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
}

.ci-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  -webkit-mask: var(--ci) center / 20px no-repeat;
  mask: var(--ci) center / 20px no-repeat;
}

.ci-mail  { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.ci-phone { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.ci-pin   { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ci-share { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.59 13.51 6.83 3.98M15.41 6.51l-6.82 3.98'/%3E%3C/svg%3E"); }

.contact-section .form-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

/* The message box absorbs any extra height so the button sits at the bottom. */
.contact-section .form-card .field:has(textarea) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-section .form-card .field:has(textarea) textarea { flex: 1; }
.contact-section .form-card .button { align-self: stretch; }

/* "Why choose Prygenix?": four equal tiles in one row */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.why-grid .feature strong { font-size: 17px; line-height: 1.35; }
.why-grid .feature p { font-size: 15px; }

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .contact-section .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-auto-rows: auto; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .contact-cards .contact-item { align-items: flex-start; }
}

/* Never split a phone number across lines. */
.contact-cards a[href^="tel:"] { white-space: nowrap; }

/* Prygenix Products: full-width card on the products page */
.product-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.product-card-wide .topic-picture { margin-bottom: 0; }
.product-logo-panel.prygenix-products-logo img { max-width: 380px; max-height: 96px; }
@media (max-width: 900px) {
  .product-card-wide { grid-template-columns: 1fr; gap: 0; }
  .product-card-wide .topic-picture { margin-bottom: 24px; }
}
