/*
Theme Name: Sentinel Precision
Theme URI: https://sentinelprecision.com
Author: Sentinel Precision, Inc.
Description: Custom landing theme for Sentinel Precision — Supply. Access. Build.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: sentinel-precision
*/

/* ── Archivo (self-hosted) ─────────────────────────────────────────────── */
/* vietnamese */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Noto Sans Arabic (self-hosted, loads only for Arabic glyphs) ──────── */
@font-face {
  font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/noto-arabic-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/noto-arabic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --color-accent: #D3202E;
  --color-accent-600: #B81B27;
  --color-accent-700: #9E1722;
  --color-text: #23262B;
  --color-bg: #FFFFFF;
  --color-divider: #23262B;
  --ink-2: #41464D;
  --ink-3: #5A5E64;
  --hair: #E8E9EB;
  --pad: clamp(20px, 5vw, 72px);
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

body {
  margin: 0; background: #fff; -webkit-font-smoothing: antialiased;
  font-family: var(--font-body); color: var(--color-text);
  font-size: 16px; line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-700); text-decoration: underline; }
::selection { background: rgba(211,32,46,.22); }
input, textarea, select, button { font-family: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}

/* ── Components ────────────────────────────────────────────────────────── */
.spi-in {
  width: 100%; border: 1px solid #C9CACC; background: #fff; color: #23262B;
  font-size: 15px; padding: 11px 12px; border-radius: 0;
}
.spi-in:hover { border-color: var(--ink-3); }
.spi-in:focus { border-color: var(--color-accent); }
.spi-in::placeholder { color: #9BA0A6; }
.spi-navlink { color: #23262B; }
.spi-navlink:hover { color: var(--color-accent); text-decoration: none; }
.spi-fl:hover { color: #fff; text-decoration: none; }
.spi-cta:hover { background: var(--color-accent-700) !important; text-decoration: none; color: #fff; }
.spi-ghost:hover { background: rgba(35,38,43,.06); text-decoration: none; }

/* ── Responsive layout (replaces the design runtime's JS width checks) ── */
.spi-logo-img { height: 38px; width: auto; display: block; }
.spi-logo-word { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
@media (min-width: 720px) {
  .spi-logo-img { height: 48px; }
  .spi-logo-word { font-size: 17px; }
}

.spi-nav-desktop { display: none; }
.spi-nav-mobile { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1290px) {
  .spi-nav-desktop { display: flex; align-items: center; justify-content: flex-end; gap: 12px 26px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
  .spi-nav-mobile { display: none; }
}
.spi-mobile-menu { display: none; border-top: 1px solid var(--hair); padding: 8px var(--pad) 18px; flex-direction: column; }
.spi-mobile-menu.is-open { display: flex; }
@media (min-width: 1290px) { .spi-mobile-menu.is-open { display: none; } }

/* Hero: full-width headline, then paragraph + CTA block side by side. */
.spi-hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px,3vw,48px); margin-top: clamp(28px,3.5vw,44px); align-items: start; }
.spi-primer-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: #C9CACC; border: 2px solid var(--color-text); margin-top: clamp(32px,4vw,48px); }
.spi-form-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px,4vw,56px); padding: clamp(28px,3.5vw,44px) var(--pad) clamp(44px,6vw,80px); align-items: start; }
@media (min-width: 860px) { .spi-hero-grid { grid-template-columns: 1.15fr .85fr; } }
@media (min-width: 820px) { .spi-primer-grid { grid-template-columns: .8fr 1.2fr; } }
@media (min-width: 1000px) {
  .spi-form-grid { grid-template-columns: 1.35fr .65fr; }
}

/* ── Contact tabs ──────────────────────────────────────────────────────── */
.spi-tab {
  cursor: pointer; border: 0; border-bottom: 4px solid transparent; background: transparent;
  color: #5A5E64; font-family: var(--font-heading); font-weight: 800; font-size: 12.5px;
  letter-spacing: .07em; text-transform: uppercase; padding: 14px 18px 12px;
  margin-bottom: -2px; white-space: nowrap;
}
.spi-tab.is-active { border-bottom-color: #D3202E; color: #23262B; }

/* ── Contact Form 7 integration ────────────────────────────────────────── */
.wpcf7-form { display: flex; flex-direction: column; gap: 18px; }
.wpcf7-form .spi-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; }
.wpcf7-form label { display: block; }
.wpcf7-form .spi-label {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 7px; font-weight: 700;
}
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form textarea.spi-in { resize: vertical; }
.wpcf7-form .spi-ack { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); cursor: pointer; }
.wpcf7-form .spi-ack .wpcf7-form-control-wrap { display: inline; }
.wpcf7-form .spi-ack input[type="checkbox"] { width: 17px; height: 17px; margin: 3px 0 0; accent-color: #D3202E; flex: none; }
.wpcf7-form .spi-ack .wpcf7-list-item { margin: 0; }
.wpcf7-form .spi-ack .wpcf7-list-item-label { display: none; }
.wpcf7-form .spi-submit {
  background: var(--color-accent); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  letter-spacing: .05em; padding: 16px 26px;
}
.wpcf7-form .spi-submit:hover { background: var(--color-accent-700); }
.wpcf7-spinner { margin: 0 0 0 12px; }

/* Cloudflare Turnstile — CF7 injects the widget as the first child of the form,
   which puts a verification box above the name fields. The form is a flex
   column, so re-order it to sit directly above the submit button where users
   expect it. Falls back harmlessly to CF7's order if :has() is unsupported. */
.wpcf7-form > * { order: 0; }
.wpcf7-form .wpcf7-turnstile { order: 1; margin-top: 2px; }
/* Descendant, not direct child: wpautop wraps the submit in a <p> inside the div. */
.wpcf7-form > div:has(.spi-submit) { order: 2; }
.wpcf7-form .wpcf7-response-output { order: 3; }
.wpcf7 .wpcf7-response-output {
  margin: 0; border: 2px solid var(--color-accent); background: #FFF4F4;
  padding: 16px 18px; font-size: 14.5px;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--color-accent); background: #FFF4F4; font-weight: 700; }
.wpcf7-not-valid-tip { color: var(--color-accent); font-size: 12.5px; margin-top: 5px; }
/* Honeypot field — never visible to humans; bots fill it and get rejected. */
.spi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Prose pages (privacy, terms, export policy) ───────────────────────── */
.spi-prose { max-width: 82ch; }
.spi-prose > *:first-child { margin-top: 0; }
.spi-prose h2 {
  font-size: clamp(19px, 2.1vw, 24px); letter-spacing: -.01em; line-height: 1.2;
  margin: clamp(34px, 4vw, 48px) 0 12px; padding-top: 20px;
  border-top: 2px solid var(--color-text);
}
.spi-prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.spi-prose h3 {
  font-size: 16px; letter-spacing: .01em; margin: 26px 0 8px; color: var(--color-text);
}
.spi-prose p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.68; color: var(--ink-2); }
.spi-prose ul, .spi-prose ol { margin: 0 0 16px; padding-left: 20px; }
.spi-prose li { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); margin-bottom: 7px; }
.spi-prose li::marker { color: var(--color-accent); }
.spi-prose strong { color: var(--color-text); font-weight: 700; }
.spi-prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.spi-prose code {
  font-family: ui-monospace, monospace; font-size: 13.5px;
  background: #F3F4F5; padding: 2px 5px; border: 1px solid var(--hair);
}
/* Callout — for the export-control notices that must not be skimmed past. */
.spi-prose blockquote {
  margin: 22px 0; padding: 18px 20px;
  border: 0; border-left: 4px solid var(--color-accent); background: #FBF3F4;
}
.spi-prose blockquote p { margin: 0; font-size: 15px; color: var(--color-text); }
.spi-prose blockquote p + p { margin-top: 10px; }
