﻿/* Precision Film Systems -- Shared Theme (Option A)
   Source-of-truth idea:
   - Keep this file (or its token section) in ONE place and include it in both:
     app.precisionfilmsystems.com and precisionfilmsystems.com
   - When you tweak the app look, update this file and BOTH stay in sync.

   NOTE: Generated from your app's frontend/base.css (:root tokens) + a small set
   of common primitives for buttons/cards/typography.
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
/* Brand / semantic */
  --primary:#1f5ea8;
  --primary-dark:#1b4f8c;
  --secondary:#b45309;
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;

  /* Surfaces / text */
  --bg:#fdfbf7;
  --text:#1f2937;
  --muted:#6f655c;

  --surface:#ffffff;     /* cards, header, footer, modals */
  --surface-2:#f7f2ea;   /* soft panels */
  --surface-3:#efe7dc;   /* hover/alt soft panels */

  /* Lines + shadows */
  --radius:16px;
  --shadow-sm:0 6px 16px -10px rgba(15,23,42,.35);

  --border:rgba(120,110,100,.22);
  --shadow:0 14px 30px -20px rgba(15,23,42,.45);
  --shadow-lg:0 22px 50px -28px rgba(15,23,42,.50);

  /* Inputs */
  --input-bg:var(--surface);
  --input-text:var(--text);
  --input-border:rgba(148,163,184,.35);
  --input-border-focus:rgba(59,130,246,.60);
  --focus-ring:0 0 0 3px rgba(59,130,246,.10);

  /* Tables */
  --row-bg:var(--surface);
  --row-bg-hover:var(--surface-2);

  /* Special blocks */
  --notice-bg:linear-gradient(135deg, #dbeafe, #e0e7ff);
  --notice-left:var(--primary);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.5;
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(1200px 600px at 8% -12%, rgba(180, 132, 84, .10), transparent 60%),
    radial-gradient(900px 500px at 95% -18%, rgba(31, 94, 168, .10), transparent 60%),
    var(--bg);
}

a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .12s ease; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
@media (hover: hover){
  .card:hover{
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--text) 12%, var(--border));
  }
}

.card.pad { padding: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { box-shadow: var(--shadow); filter: brightness(0.99); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--primary) 92%, white) 0%,
    var(--primary) 100%);
  border-color: color-mix(in oklab, var(--primary) 80%, black);
  color: white;
}
.btn.demo {
  background: var(--surface-2);
  border-color: color-mix(in oklab, var(--primary) 25%, var(--border));
  color: var(--primary-dark);
}
.btn.demo:hover{
  background: var(--surface-3);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}
.btn.ghost {
  background: transparent;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -18px rgba(15,23,42,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text);
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.6px;
  margin: 0;
  font-weight: 800;
}

.h2 {
  font-size: 26px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.section {
  padding: 64px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}


/* Mobile nav (admin-controlled, no user theme toggle)
   - Adds a hamburger button that reveals nav links on small screens.
*/
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor:pointer;
}
.nav-toggle:hover{ background: var(--surface-2); }
.nav-toggle:active{ transform: translateY(1px); }
.nav-toggle svg{ width:18px; height:18px; }

@media (max-width: 860px){
  .nav-inner{
    position: relative;
  }
  .nav-toggle{ display:inline-flex; }

  /* Collapse nav into a dropdown panel */
  .nav-links{
    display:none;
    position:absolute;
    top: calc(100% + 10px);
    left:0;
    right:0;
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links .btn{
    width: 100%;
    justify-content: center;
  }
  .navbar.menu-open .nav-links{
    display:flex;
  }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .container { width: min(1120px, calc(100% - 28px)); }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  background: var(--surface);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}


