/* ============================================================
   IDV — Integral Data Vision · Corporate Site
   Palette: Navy #0F2A4A · Teal #1BC0B9 · Celeste #5DE2E7 · Grey #CCCCCC
   Supports both light and dark themes through semantic tokens.
   ============================================================ */

:root {
  /* Brand palette (constant across themes) */
  --navy: #0F2A4A;
  --navy-2: #173A63;
  --navy-3: #1F4A7F;
  --teal: #1BC0B9;
  --teal-dark: #149A95;
  --celeste: #5DE2E7;
  --grey: #CCCCCC;

  /* Semantic tokens — light theme defaults */
  --bg: #FFFFFF;
  --bg-alt: #F6F9FC;
  --surface: #FFFFFF;
  --surface-strong: #FFFFFF;
  --border: #DCE3EB;
  --text: #4A5A72;
  --heading: #0F2A4A;
  --accent: #1BC0B9;          /* primary action */
  --accent-hover: #149A95;
  --accent-soft: rgba(27, 192, 185, 0.10);
  --link: #149A95;
  --link-hover: #1BC0B9;
  --input-bg: #FFFFFF;
  --shadow-card: 0 2px 8px rgba(15, 42, 74, 0.06);
  --shadow-card-hover: 0 10px 30px rgba(15, 42, 74, 0.10);
  --shadow-elevated: 0 20px 60px rgba(15, 42, 74, 0.18);

  /* Header / nav */
  --header-bg-solid: rgba(255, 255, 255, 0.96);
  --header-border: #DCE3EB;
  --nav-text-over-hero: #FFFFFF;
  --nav-text-solid: #0F2A4A;

  /* Highlight (AI) card — light theme: identical to the regular card. */
  --highlight-bg: var(--surface);
  --highlight-text: var(--heading);
  --highlight-text-soft: var(--text);
  --highlight-icon-bg: var(--accent-soft);
  --highlight-icon: var(--accent-hover);
  --highlight-border: var(--border);
  --highlight-shadow: none;

  /* About card */
  --about-bg: linear-gradient(160deg, #0F2A4A 0%, #1F4A7F 100%);
  --about-text: #FFFFFF;
  --about-text-soft: rgba(255, 255, 255, 0.92);
  --about-eyebrow: #5DE2E7;
  --about-rule: rgba(255, 255, 255, 0.14);

  /* Fonts */
  --ff-title: 'Montserrat', Arial, sans-serif;
  --ff-body:  'Inter', 'Segoe UI', Calibri, sans-serif;
  --ff-mono:  'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============ DARK THEME ============ */
[data-theme="dark"] {
  --bg: #0F2A4A;
  --bg-alt: #0B2240;
  --surface: #173A63;
  --surface-strong: #1F4A7F;
  --border: rgba(204, 204, 204, 0.18);
  --text: rgba(255, 255, 255, 0.80);
  --heading: #FFFFFF;
  --accent: #5DE2E7;           /* celeste leads in dark */
  --accent-hover: #1BC0B9;
  --accent-soft: rgba(93, 226, 231, 0.14);
  --link: #5DE2E7;
  --link-hover: #1BC0B9;
  --input-bg: #173A63;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.45);

  --header-bg-solid: rgba(15, 42, 74, 0.92);
  --header-border: rgba(204, 204, 204, 0.14);
  --nav-text-solid: #FFFFFF;

  --highlight-bg: linear-gradient(160deg, #1F4A7F 0%, #0F2A4A 100%);
  --highlight-text: #FFFFFF;
  --highlight-text-soft: rgba(255, 255, 255, 0.85);
  --highlight-icon-bg: rgba(93, 226, 231, 0.18);
  --highlight-icon: #5DE2E7;
  --highlight-border: rgba(93, 226, 231, 0.35);
  --highlight-shadow: 0 12px 40px rgba(93, 226, 231, 0.12);

  --about-bg: linear-gradient(160deg, #1F4A7F 0%, #0F2A4A 100%);
}

/* ============ BASE ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-family: var(--ff-title);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-title);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { font-size: 16px; padding: 14px 28px; }

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
[data-theme="light"] .btn-primary { color: #fff; }
:root:not([data-theme="dark"]) .btn-primary { color: #fff; }

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Outline accent button — used for the Client Area access. Theme-aware via vars. */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}
:root:not([data-theme="dark"]) .btn-outline:hover { color: #fff; }

.btn-block { width: 100%; }
.nav-client-ic { width: 17px; height: 17px; flex: none; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg-solid);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--header-border);
  box-shadow: var(--shadow-card);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

/* Logo swap rules — over hero (not scrolled) we always need the dark-mode
   logo (celeste/teal on dark) because the hero overlay is navy.
   When scrolled and in light theme, show the light logo; in dark theme, keep dark. */
.brand-logo-dark  { display: none; }
.site-header:not(.is-scrolled) .brand-logo-light { display: none; }
.site-header:not(.is-scrolled) .brand-logo-dark  { display: block; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark  { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 26px;
}
.nav-list a {
  color: var(--nav-text-over-hero);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.nav-list a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-list a:hover::after { width: 100%; }

.site-header.is-scrolled .nav-list a { color: var(--nav-text-solid); }
.site-header.is-scrolled .nav-list a:hover { color: var(--accent-hover); }

.nav-cta, .nav-client { padding: 10px 20px; font-size: 14px; }

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}
.theme-toggle svg { width: 18px; height: 18px; }

.site-header.is-scrolled .theme-toggle {
  border-color: var(--border);
  background: transparent;
  color: var(--heading);
}
.site-header.is-scrolled .theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Show only the icon that toggles to the *other* theme */
.theme-toggle .ic-sun  { display: none; }
.theme-toggle .ic-moon { display: block; }
[data-theme="dark"] .theme-toggle .ic-sun  { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* ============ LANGUAGE SWITCHER ============ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  gap: 2px;
}
.lang-switch button {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
  line-height: 1;
}
.lang-switch button:hover { background: rgba(255, 255, 255, 0.18); }
.lang-switch button.is-active {
  background: var(--accent);
  color: var(--navy);
}

.site-header.is-scrolled .lang-switch {
  border-color: var(--border);
  background: transparent;
}
.site-header.is-scrolled .lang-switch button { color: var(--heading); }
.site-header.is-scrolled .lang-switch button:hover { background: var(--accent-soft); }
.site-header.is-scrolled .lang-switch button.is-active {
  background: var(--accent);
  color: var(--navy);
}
[data-theme="dark"] .site-header.is-scrolled .lang-switch button.is-active {
  background: var(--accent);
  color: var(--navy);
}

.lang-switch-mobile {
  border-color: var(--border);
  background: transparent;
  margin: 6px 4px;
}
.lang-switch-mobile button { color: var(--heading); padding: 8px 14px; font-size: 13px; }
.lang-switch-mobile button:hover { background: var(--accent-soft); }
.lang-switch-mobile button.is-active { background: var(--accent); color: var(--navy); }

.theme-toggle-mobile {
  width: auto;
  height: auto;
  padding: 10px 14px;
  gap: 10px;
  border-radius: 10px;
  border-color: var(--border);
  background: transparent;
  color: var(--heading);
  font-family: var(--ff-title);
  font-weight: 600;
  font-size: 15px;
}
.theme-toggle-mobile svg { width: 18px; height: 18px; }

/* ============ MOBILE NAV ============ */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--heading); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
  padding: 16px 24px 22px;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--heading);
  font-weight: 600;
  font-family: var(--ff-title);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.btn { margin-top: 10px; text-align: center; border-bottom: 0; }
/* Primary CTA: white text on accent in light, navy text on accent in dark. */
.mobile-nav a.btn-primary { color: #fff; }
[data-theme="dark"] .mobile-nav a.btn-primary { color: var(--navy); }
/* Client Area outline: accent text/border, visible in both themes. */
.mobile-nav a.btn-outline { color: var(--accent); }
.mobile-nav a.btn-outline:hover { color: #fff; }
[data-theme="dark"] .mobile-nav a.btn-outline:hover { color: var(--navy); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding-top: var(--header-h);
  background: var(--navy);
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease), transform 8s linear;
  transform: scale(1.05);
}
.hero-slide.is-active { opacity: 1; transform: scale(1.12); }

.hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-orbits span {
  position: absolute;
  top: 50%; left: 70%;
  width: 600px; height: 600px;
  border: 1px solid rgba(93, 226, 231, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-orbits span:nth-child(2) { width: 900px;  height: 900px;  border-color: rgba(27, 192, 185, 0.18); }
.hero-orbits span:nth-child(3) { width: 1200px; height: 1200px; border-color: rgba(93, 226, 231, 0.10); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--celeste);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--ff-title);
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--teal), var(--celeste));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-pager { display: flex; gap: 10px; }
.hero-pager button {
  width: 36px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: background .25s var(--ease), width .25s var(--ease);
  padding: 0;
}
.hero-pager button.is-active { background: var(--teal); width: 56px; }

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--bg-alt);
  color: var(--text);
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 24px;
  align-items: center;
}
.trust-grid > div { display: flex; flex-direction: column; gap: 2px; }
.trust-grid strong {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
}
.trust-grid span { color: var(--text); font-size: 14px; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section.services { background: var(--bg); }
.section.about    { background: var(--bg); }
.section.contact  { background: var(--bg-alt); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}
.section-head .lead {
  font-size: 17px;
  color: var(--text);
}

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 10px;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }

/* ============ SERVICE CARDS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 8px;
}
.card p { font-size: 15px; margin: 0; color: var(--text); }

.card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 12px;
  margin-bottom: 16px;
}
[data-theme="dark"] .card-icon { color: var(--accent); }
.card-icon svg { width: 24px; height: 24px; }
/* Branded IDV icon set (assets/img/icons): teal variant on light theme,
   celeste on dark — swapped the same way as the brand logo. */
.card-icon .svc-ic { width: 28px; height: 28px; }
.svc-ic-dark { display: none; }
[data-theme="dark"] .svc-ic-light { display: none; }
[data-theme="dark"] .svc-ic-dark  { display: block; }

.card-highlight {
  background: var(--highlight-bg);
  border-color: var(--highlight-border);
  box-shadow: var(--highlight-shadow);
  color: var(--highlight-text);
}
.card-highlight h3 { color: var(--highlight-text); }
.card-highlight p  { color: var(--highlight-text-soft); }
.card-highlight .card-icon {
  background: var(--highlight-icon-bg);
  color: var(--highlight-icon);
}
.card-badge {
  display: none;
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--celeste);
  color: var(--navy);
  font-weight: 600;
}
[data-theme="dark"] .card-badge { display: inline-block; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}
.about-copy p { font-size: 16px; color: var(--text); }
.about-copy strong { color: var(--heading); }

.values-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.values-list li span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-family: var(--ff-title);
  font-weight: 600;
  font-size: 13px;
}
[data-theme="dark"] .values-list li span { color: var(--accent); }

.about-card {
  background: var(--about-bg);
  color: var(--about-text);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--highlight-border);
}
.about-card h3 {
  color: var(--about-eyebrow);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-family: var(--ff-mono);
}
.about-card p {
  color: var(--about-text-soft);
  font-size: 16px;
  margin: 0 0 22px;
}
.about-card hr {
  border: 0;
  border-top: 1px solid var(--about-rule);
  margin: 22px 0;
}
.lang-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-row span {
  font-family: var(--ff-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(93, 226, 231, 0.15);
  color: var(--celeste);
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}
.contact-info {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--heading);
}
.contact-info li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-info strong { color: var(--heading); font-weight: 700; }
.contact-info a { color: var(--heading); font-weight: 600; }
.contact-info a:hover { color: var(--accent); }
.ci-sub {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.ci-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 10px;
  flex: 0 0 40px;
}
[data-theme="dark"] .ci-icon { color: var(--accent); }
.ci-icon svg { width: 20px; height: 20px; }
.ci-icon .svc-ic { width: 20px; height: 20px; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-family: var(--ff-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--heading);
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--heading);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

[data-theme="dark"] .field select {
  /* select needs an explicit caret color override since the native arrow keeps light styling */
  color-scheme: dark;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.field-check label { font-family: var(--ff-body); font-weight: 400; font-size: 14px; color: var(--text); }

.form-feedback {
  margin: 0;
  font-size: 14px;
  min-height: 1.2em;
}
.form-feedback.is-success { color: var(--accent); font-weight: 600; }
.form-feedback.is-error   { color: #ff7a7a; font-weight: 600; }

/* Honeypot — visually and pointer-hidden, but not display:none (bots skip
   display:none fields). Real users never see it; bots blindly tick it. */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg);
  color: var(--text);
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
/* Footer brand column — flex column, items horizontally centered,
   logo at the top, slogan vertically centered in the remaining space.
   We override .brand's height:100% (which was meant for the header).
   We do NOT set display rules on `.brand-footer img` — that would
   collide with the light/dark swap logic on `.brand-logo-light` /
   `.brand-logo-dark` and make both logos appear in light mode. */
.footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-footer { height: auto; }
.brand-footer img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.footer-slogan {
  margin: auto 0;
  text-align: center;
  font-style: italic;
  font-family: var(--ff-body);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.site-footer h4 {
  font-family: var(--ff-title);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul li, .site-footer ul a { color: var(--text); font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 13px;
  color: var(--text);
  opacity: 0.85;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-build {
  font-family: var(--ff-mono);
  color: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
  .hero-content { padding: 60px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
  .contact-form { padding: 24px; }
  .trust-grid { padding: 22px 24px; }
  .trust-grid strong { font-size: 19px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-footer img { width: 140px; height: 140px; }
  /* Mobile column has no excess height, so we replace the auto-centering
     margins with a fixed 30 px gap below the logo. */
  .footer-slogan { margin: 30px 0 0; font-size: 15px; }
}

@media (max-width: 480px) {
  .trust-grid   { grid-template-columns: 1fr; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ============ A11Y ============ */
:focus-visible {
  outline: 3px solid var(--celeste);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
