/* FilePulse 360 site styles. Page sections carry their own inline styles from the approved design;
   this file holds the shared shell, forms, blog and mobile rules. */
:root {
  --accent: #7EC247;
  --ink: #0c1a14;
  --panel: #13261d;
  --line: #2d4a3c;
  --muted: #a9bcb3;
  --text: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: #a6dc7a; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main { position: relative; z-index: 1; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Grid pattern and glow behind the top of every page */
.top-deco {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 85% 0%, rgba(126,194,71,0.16), transparent 45%),
    linear-gradient(rgba(126,194,71,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,194,71,0.08) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}

/* Header */
.site-header { position: relative; z-index: 5; }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header__logo img { display: block; height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { color: #c4d3cc; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #ffffff; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .site-nav__cta { background: var(--accent); color: var(--ink); font-weight: 600; padding: 12px 20px; border-radius: 999px; }
.site-nav .site-nav__cta:hover { color: var(--ink); background: #93d061; }
.menu-toggle { display: none; font: inherit; font-weight: 600; color: #ffffff; background: transparent; border: 1.5px solid #3d5c4d; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-content: start; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #ffffff; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink); color: #ffffff; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(126,194,71,0.25); }
.btn-submit {
  grid-column: 1 / -1; justify-self: start; display: inline-block; font: inherit; font-weight: 600; font-size: 16px;
  background: var(--accent); color: var(--ink); border: 0; padding: 16px 32px; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.btn-submit:hover { background: #93d061; color: var(--ink); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: #f2c14e; font-weight: 600; }

/* FAQ */
details summary { min-height: 44px; }
details[open] summary { color: var(--accent); }

/* Blog */
.page-hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 56px; display: flex; flex-direction: column; gap: 20px; }
.page-hero--center { align-items: center; text-align: center; padding-bottom: 120px; }
.page-hero h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 68px; line-height: 0.98; font-weight: 700; letter-spacing: -0.03em; }
.page-hero p { margin: 0; font-size: 20px; line-height: 1.5; color: #c4d3cc; max-width: 640px; }
.post-list { max-width: 1200px; margin: 0 auto; padding: 0 24px 104px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: #ffffff; min-height: 200px; }
.post-card:hover { border-color: var(--accent); color: #ffffff; }
.post-card__tag { font-size: 13px; font-weight: 600; color: var(--accent); }
.post-card__title { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; }
.post-card__summary { font-size: 15px; line-height: 1.5; color: var(--muted); }
.post-card__date { margin-top: auto; font-size: 13px; color: var(--muted); }
.empty { font-size: 18px; color: var(--muted); }

.post { max-width: 760px; margin: 0 auto; padding: 64px 24px 104px; }
.post__back { font-weight: 600; text-decoration: none; }
.post__meta { margin: 32px 0 12px; font-size: 14px; color: var(--muted); }
.post__title { margin: 0 0 20px; font-family: "Space Grotesk", sans-serif; font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.post__summary { margin: 0 0 32px; font-size: 20px; line-height: 1.5; color: #c4d3cc; }
.post__body { font-size: 18px; line-height: 1.75; color: #dbe6e1; }
.post__body h2 { font-family: "Space Grotesk", sans-serif; font-size: 30px; line-height: 1.2; color: #ffffff; margin: 48px 0 12px; }
.post__body h3 { font-size: 21px; color: #ffffff; margin: 32px 0 8px; }
.post__body img { border-radius: 14px; margin: 16px 0; }
.post__body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: #ffffff; }
.post__body code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

/* Tablet and phone */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid #1f3a2e; }
  .site-nav .site-nav__cta { text-align: center; margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 640px) {
  main h1 { font-size: 44px !important; }
  main h2 { font-size: 34px !important; }
  main section { padding-top: 64px !important; }
  #contact > div, .form-card { padding: 28px 20px !important; }
  .page-hero h1, .post__title { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
