/* ============================================================
   RecAccess — "Field Systems"
   Support styles that complement Tailwind: fonts, the duotone icon
   system, header transparent/solid behavior, and decorative helpers
   (gradients, blueprint grid, framed plates) that rely on pseudo-
   elements or are reused too often to inline.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --amber: #F07814;
  --forest: #1B4633;
  --forest2: #31684D;
  --line: #E1DBD0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: var(--amber); color: #fff; }
html { scroll-behavior: smooth; }

/* ------------------------------------------------------------
   Gradients & decorative overlays
   ------------------------------------------------------------ */
.grad-pine   { background: linear-gradient(165deg, #112a1c, #0a1a11); }
.grad-forest { background: linear-gradient(150deg, var(--forest), var(--forest2)); }
.grad-amber  { background: linear-gradient(135deg, var(--amber), #ECA94B); }

.overlay-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,29,18,0.94) 0%, rgba(13,30,20,0.78) 45%, rgba(18,40,28,0.45) 100%);
}
.overlay-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(11,29,18,0.93), rgba(120,70,28,0.6));
}

/* Blueprint grid texture (masked so it fades at the edges) */
.blueprint {
  background-image:
    linear-gradient(rgba(28,71,51,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,71,51,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000, transparent 75%);
}
.blueprint--dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  -webkit-mask-image: none; mask-image: none;
}

/* ------------------------------------------------------------
   Engineering eyebrow label
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--center { justify-content: center; }
.eyebrow--ghost { color: #ECA94B; }

/* ------------------------------------------------------------
   Custom duotone icon system
   ------------------------------------------------------------ */
.ic { width: 26px; height: 26px; }
.ic .stroke { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .accent { fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .accent-fill { fill: var(--amber); stroke: none; }
.ic .dim { opacity: 0.45; }
/* when an icon sits on an amber fill, flip its accent to white */
.on-amber .ic .accent { stroke: #fff; }
.on-amber .ic .accent-fill { fill: #fff; }

/* Framed icon plate with blueprint corner ticks */
.plate {
  position: relative; flex-shrink: 0;
  width: 3.1rem; height: 3.1rem;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--forest);
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(150deg, var(--forest), var(--forest2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(20,40,28,0.06), 0 2px 8px rgba(20,40,28,0.05);
  transition: transform 0.3s var(--ease);
}
.plate::before, .plate::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--amber); opacity: 0.55; }
.plate::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.plate::after  { bottom: 5px; right: 5px; border-left: none; border-top: none; }
.plate--lg { width: 3.5rem; height: 3.5rem; }
.plate--lg .ic { width: 30px; height: 30px; }
.plate--sm { width: 2.9rem; height: 2.9rem; }
/* dark tile for the full-color branding icons (cream/green/orange art) */
.plate--dark { width: 3.4rem; height: 3.4rem; background: #15241D; border-color: rgba(232,223,203,0.18); box-shadow: var(--sh-sm); }
.plate--dark::before, .plate--dark::after { border-color: rgba(242,107,31,0.7); }
/* dark-section variant (transparent, amber icon) */
.plate--ghost {
  color: #ECA94B;
  background: rgba(255,255,255,0.06);
  border-color: transparent; box-shadow: none;
}
.plate--ghost::before, .plate--ghost::after { border-color: rgba(255,255,255,0.4); }

/* Corner brackets for framed media */
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--amber); z-index: 2;
}
.brackets::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.brackets::after  { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* ------------------------------------------------------------
   Header (transparent over hero → solid on scroll)
   ------------------------------------------------------------ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.header--transparent { background: transparent; }
.header--solid {
  background: rgba(251,248,242,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header--solid .header__logo img { filter: brightness(0) saturate(100%) invert(20%) sepia(20%) saturate(1400%) hue-rotate(110deg); }

/* Header "View Demo" button adapts with the header state */
.header--transparent .btn-demo {
  color: #fff;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.header--transparent .btn-demo:hover { background: rgba(255,255,255,0.2); }
.header--solid .btn-demo { color: var(--forest); box-shadow: inset 0 0 0 1.5px #C1CDC6; }
.header--solid .btn-demo:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }

.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--amber); transition: width 0.25s var(--ease); }
.nav-link:hover::after { width: 100%; }
.header--transparent .nav-link { color: rgba(255,255,255,0.82); }
.header--transparent .nav-link:hover { color: #fff; }
.header--solid .nav-link { color: #4C6357; }
.header--solid .nav-link:hover { color: var(--forest); }
/* Burger as a self-contained chip. The inline <svg> inside uses
   stroke:currentColor, so the lines follow `color` below.
   No `display` here — that's left to the `lg:hidden` utility. */
.header__burger {
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.header__burger svg { stroke: currentColor; }
/* transparent hero: dark chip + white lines = always readable */
.header--transparent .header__burger {
  color: #fff;
  background: rgba(12,29,21,0.42);
  border-color: rgba(255,255,255,0.32);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.header--transparent .header__burger:hover { background: rgba(12,29,21,0.58); }
/* solid header: light chip + forest lines */
.header--solid .header__burger {
  color: var(--forest);
  background: rgba(27,71,51,0.06);
  border-color: var(--line);
}

/* Mobile slide-down panel (built by main.js) */
.mobile-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #FBF8F2; border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(20,40,28,0.08);
  padding: 1.2rem 1.5rem 1.6rem;
}
.mobile-panel.is-open { display: block; animation: rise 0.3s var(--ease) both; }
.mobile-panel ul { display: flex; flex-direction: column; gap: 0.1rem; list-style: none; margin: 0 0 1.1rem; padding: 0; }
.mobile-panel .nav-link { color: var(--ink, #13251D); font-size: 1.05rem; padding: 0.55rem 0; display: flex; align-items: center; gap: 0.4rem; }
.mobile-panel .nav-link::after { display: none; }
.mobile-panel .header__cta { display: flex; flex-direction: column; gap: 0.7rem; }
.mobile-panel .header__cta a { width: 100%; }
/* normalize header CTAs to a consistent look inside the light panel */
.mobile-panel .header__cta a:first-child { background: transparent !important; color: var(--forest) !important; box-shadow: inset 0 0 0 1.5px #C1CDC6 !important; }
.mobile-panel .header__cta a:last-child  { background: var(--amber) !important; color: #fff !important; box-shadow: none !important; }
.header--menu-open { background: rgba(251,248,242,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header--menu-open .header__burger { color: var(--forest); background: rgba(27,71,51,0.06); border-color: var(--line); }

/* ------------------------------------------------------------
   Animations
   ------------------------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Brief attention pulse on the Name field when "Contact Sales" is clicked */
@keyframes fieldAttn {
  0%   { box-shadow: 0 0 0 0 rgba(240,120,20,0); }
  18%  { box-shadow: 0 0 0 5px rgba(240,120,20,0.30); }
  100% { box-shadow: 0 0 0 0 rgba(240,120,20,0); }
}
.field-attn { border-color: var(--amber) !important; animation: fieldAttn 1.1s var(--ease) 2; }

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