/* =============================================================
   SREPRIMER — Shared Stylesheet
   /assets/css/styles.css
   Used by: index.html, ai-security.html,
            ai-observability.html, ai-governance.html
   ============================================================= */

/* ── Reset ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    :root {
      --ink:        #111110;
      --ink-2:      #4a4a48;
      --ink-3:      #555553;
      --paper:      #f7f6f2;
      --paper-2:    #efede8;
      --border:     rgba(17,17,16,0.10);
      --accent:     #111110;
      --blue:       #185fa5;
      --green:      #3b6d11;
      --amber:      #854f0b;
      --r:          6px;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--paper);
      color: var(--ink);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
    }

    /* ── PAGE SHELL ── */
    .shell {
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr auto;
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 2.5rem;
    }

    /* ── NAV ── */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 2rem 0;
      border-bottom: 0.5px solid var(--border);
    }
    .logo {
      font-family: 'DM Mono', monospace;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 2rem;
    }
    .nav-links a {
      font-size: 12px;
      color: var(--ink-2);
      text-decoration: none;
      letter-spacing: 0.03em;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--ink); }
    .nav-cta {
      font-size: 12px;
      font-weight: 500;
      color: var(--paper) !important;
      background: var(--ink);
      padding: 7px 16px;
      border-radius: var(--r);
      letter-spacing: 0.03em;
      transition: opacity 0.2s;
    }
    .nav-cta:hover { opacity: 0.75; }

    /* ── MAIN ── */
    main {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 6rem 0 4rem;
    }

    /* ── EYEBROW ── */
    .eyebrow {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 2.5rem;
      opacity: 0;
      animation: up 0.7s ease 0.1s forwards;
    }
    .eyebrow-line {
      width: 28px;
      height: 1px;
      background: var(--ink-3);
    }
    .eyebrow span {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ink-3);
    }

    /* ── HERO HEADLINE ── */
    .headline {
      opacity: 0;
      animation: up 0.7s ease 0.2s forwards;
      margin-bottom: 2.5rem;
      max-width: 780px;
    }
    .headline h1 {
      font-family: 'Instrument Serif', serif;
      font-weight: 400;
      font-size: clamp(2rem, 4vw, 3.2rem);
      line-height: 1.1;
      letter-spacing: -0.01em;
      color: var(--ink);
    }
    .headline h1 em {
      font-style: italic;
      color: var(--ink-2);
    }

    /* ── SERVICES STRIP ── */
    .services {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border: 0.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 5rem;
      opacity: 0;
      animation: up 0.7s ease 0.35s forwards;
    }
    .svc {
      padding: 1.75rem 1.75rem 2rem;
      background: var(--paper);
      position: relative;
      transition: background 0.2s;
      text-decoration: none;
      display: block;
    }
    .svc:not(:last-child) {
      border-right: 0.5px solid var(--border);
    }
    .svc:hover { background: var(--paper-2); }
    .svc-num {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.1em;
      color: var(--ink-3);
      display: block;
      margin-bottom: 1.25rem;
    }
    .svc-name {
      font-family: 'Instrument Serif', serif;
      font-size: 1.25rem;
      font-weight: 200;
      color: var(--ink);
      display: block;
      margin-bottom: 0.6rem;
      line-height: 1.1;
    }
    .svc-desc {
      font-size: 12.5px;
      color: var(--ink-2);
      line-height: 1.65;
      font-weight: 300;
      display: block;
      margin-bottom: 1.25rem;
    }
    .svc-status {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 4px;
      display: inline-block;
    }
    .status-live  { color: var(--green); background: #eaf3de; border: 0.5px solid #c0dd97; }
    .status-wip   { color: var(--amber); background: #faeeda; border: 0.5px solid #fac775; }
    .svc-arrow {
      position: absolute;
      top: 1.75rem;
      right: 1.75rem;
      font-size: 14px;
      color: var(--ink-3);
      transition: color 0.2s, transform 0.2s;
    }
    .svc:hover .svc-arrow { color: var(--ink); transform: translate(2px, -2px); }

    /* ── FRAMEWORK LINE ── */
    .fw-line {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 5rem;
      flex-wrap: wrap;
      opacity: 0;
      animation: up 0.7s ease 0.45s forwards;
    }
    .fw-label {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--ink-3);
      flex-shrink: 0;
    }
    .fw-sep { width: 1px; height: 14px; background: var(--border); flex-shrink: 0; }
    .fw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .fw-tag {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      color: var(--ink-3);
      border: 0.5px solid var(--border);
      padding: 3px 9px;
      border-radius: 20px;
      letter-spacing: 0.03em;
    }

    /* ── CONTACT FORM ── */
    .contact {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: start;
      padding: 4rem 0;
      border-top: 0.5px solid var(--border);
      opacity: 0;
      animation: up 0.7s ease 0.5s forwards;
    }
    .contact-left h2 {
      font-family: 'Instrument Serif', serif;
      font-size: clamp(1.3rem, 2.2vw, 1.6rem);
      font-weight: 400;
      line-height: 1.2;
      margin-bottom: 0.75rem;
      letter-spacing: -0.01em;
    }
    .contact-left p {
      font-size: 13px;
      color: var(--ink-2);
      line-height: 1.75;
      margin-bottom: 1.75rem;
      font-weight: 300;
      max-width: 320px;
    }
    .contact-email {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      color: var(--blue);
      text-decoration: none;
      letter-spacing: 0.02em;
      display: block;
      margin-bottom: 4px;
    }
    .contact-email:hover { text-decoration: underline; }
    .contact-loc {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      color: var(--ink-3);
      letter-spacing: 0.05em;
    }

    /* Form */
    .form { display: flex; flex-direction: column; gap: 1rem; }
    .field { display: flex; flex-direction: column; gap: 5px; }
    .field label {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--ink-3);
    }
    .field input,
    .field textarea {
      background: var(--paper-2);
      border: 0.5px solid var(--border);
      border-radius: var(--r);
      color: var(--ink);
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 300;
      padding: 10px 12px;
      width: 100%;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
      -webkit-appearance: none;
    }
    .field input::placeholder,
    .field textarea::placeholder { color: var(--ink-3); }
    .field input:focus,
    .field textarea:focus {
      border-color: rgba(17,17,16,0.35);
      background: #fff;
    }
    .field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
    .form-btn {
      background: var(--ink);
      color: var(--paper);
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      font-weight: 500;
      padding: 11px 24px;
      border-radius: var(--r);
      border: none;
      cursor: pointer;
      transition: opacity 0.2s;
      width: 100%;
      margin-top: 0.25rem;
      letter-spacing: 0.02em;
    }
    .form-btn:hover { opacity: 0.75; }
    .form-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .form-msg {
      font-size: 12px;
      padding: 10px 12px;
      border-radius: var(--r);
      display: none;
      line-height: 1.5;
    }
    .form-msg.ok  { display:block !important; background:#eaf3de; border:0.5px solid #c0dd97; color: var(--green); }
    .form-msg.err { display:block !important; background:#fdecea; border:0.5px solid #fca5a5; color: #b91c1c; }

    /* ── FOOTER ── */
    footer {
      border-top: 0.5px solid var(--border);
      padding: 1.5rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
    .footer-links a {
      font-size: 11px;
      color: var(--ink-3);
      text-decoration: none;
      letter-spacing: 0.03em;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--ink); }
    .footer-copy { font-size: 11px; color: var(--ink-3); letter-spacing: 0.03em; }

    /* ── ANIMATION ── */
    @keyframes up {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 680px) {
      .shell { padding: 0 1.25rem; }
      .headline h1 { font-size: 2.2rem; }
      .services { grid-template-columns: 1fr; }
      .svc:not(:last-child) { border-right: none; border-bottom: 0.5px solid var(--border); }
      .contact { grid-template-columns: 1fr; gap: 2.5rem; }
      .nav-links .hide { display: none; }
      .fw-sep { display: none; }
      main { padding: 3.5rem 0 2.5rem; }
    }