/* PrimeFlowOps — Clean Corporate Starter
   Author: ChatGPT
   Notes: No frameworks; fast, accessible, responsive.
*/

:root{
  --bg: #0b1220;
  --surface: #0f1b33;
  --card: #101f3d;
  --text: #e8edf8;
  --muted: rgba(232,237,248,.75);
  --line: rgba(232,237,248,.16);

  --paper: #ffffff;
  --ink: #0c1630;
  --ink-muted: rgba(12,22,48,.72);
  --paper-line: rgba(12,22,48,.12);

  --brand: #1a2a4e; /* navy from logo */
  --brand-accent: #c9a961; /* gold from logo */
  --brand-2: #2bd4a4; /* subtle accent for highlights */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.18);
  --shadow-soft: 0 8px 20px rgba(0,0,0,.08);

  --max: 1120px;
  --pad: 20px;

  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: var(--font);
  line-height: 1.5;
  color: var(--ink);
  background: #f6f8fc;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Typography - Serif headers for institutional tone */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
h1{ font-weight: 300; }
h2{ font-weight: 400; }
h3{ font-weight: 600; }

/* Layout */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px; width:auto; height:auto; padding:10px 12px;
  background: var(--paper); border: 1px solid var(--paper-line); border-radius: 10px;
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246,248,252,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #174ea6);
  display:grid;
  place-items:center;
  color: white;
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}

.logo-img{
  height: 56px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  padding: 6px 8px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.footer-logo-img{
  height: 44px;
  width: auto;
  display: block;
  padding: 5px 7px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.brand small{
  display:block;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: .2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 8px;
}
.nav a{
  padding: 10px 9px;
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  text-decoration:none;
}
.nav a:hover{
  background: rgba(31,111,235,.08);
  text-decoration:none;
}
.nav a.active{
  background: rgba(31,111,235,.12);
  color: #0b3d91;
}

.nav-cta{
  display:flex;
  gap: 10px;
  align-items:center;
}

.btn{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(12,22,48,.06);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }
.btn.primary, .btn-primary{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(26,42,78,.35);
  background: linear-gradient(135deg, var(--brand), #0f1b33);
  color: white;
  box-shadow: 0 6px 16px rgba(12,22,48,.06);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover{ text-decoration:none; transform: translateY(-1px); }
.btn-secondary{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(12,22,48,.06);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover{ text-decoration:none; transform: translateY(-1px); }
.btn.ghost{
  background: transparent;
  box-shadow: none;
}
.btn.small{
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.mobile-toggle{
  display:none;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(12,22,48,.06);
  cursor:pointer;
}

/* Hero */
.hero{
  padding: 46px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
}
.hero-card{
  border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(31,111,235,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(43,212,164,.16), transparent 55%),
              linear-gradient(180deg, #ffffff, #f7f9fe);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-soft);
  padding: 34px;
  position:relative;
  overflow:hidden;
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,111,235,.25);
  background: rgba(31,111,235,.06);
  color: #0b3d91;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 13px;
}
.kicker .dot{
  width:9px; height:9px; border-radius: 99px;
  background: var(--brand);
}
.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.6px;
  line-height: 1.1;
}
.hero p{
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 16.5px;
  max-width: 62ch;
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hero-meta{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 13px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.badge svg{ width: 16px; height: 16px; color: #0b3d91; }

.side-card{
  border-radius: calc(var(--radius) + 8px);
  background: #ffffff;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.side-card h3{
  margin: 0;
  font-size: 16px;
  letter-spacing: -.2px;
}
.side-card p{
  margin: 0;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 14px;
}
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 14px;
}
.list li{ margin: 8px 0; }

/* Sections */
.section{
  padding: 22px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section h2{
  margin: 0;
  letter-spacing: -.4px;
  font-size: 22px;
}
.section .sub{
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-weight: 650;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card{
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 16px rgba(12,22,48,.05);
}
.card h3{
  margin: 0 0 6px;
  letter-spacing: -.2px;
  font-size: 16px;
}
.card p{
  margin: 0;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 14px;
}
.icon{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(31,111,235,.10);
  border: 1px solid rgba(31,111,235,.16);
  display:grid;
  place-items:center;
  margin-bottom: 10px;
  color: #0b3d91;
}
.icon svg{ width: 18px; height: 18px; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step{
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 16px rgba(12,22,48,.05);
  position:relative;
  overflow:hidden;
}
.step .num{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--brand), #0f1b33);
  box-shadow: 0 10px 24px rgba(26,42,78,.18);
  margin-bottom: 10px;
}
.step h3{ margin:0 0 6px; font-size: 16px; letter-spacing: -.2px; }
.step p{ margin:0; color: var(--ink-muted); font-weight: 600; font-size: 14px; }

/* CTA band */
.cta-band{
  margin: 22px 0 0;
  background: linear-gradient(135deg, #0b1220, #0f1b33);
  color: var(--text);
  border-radius: calc(var(--radius) + 10px);
  padding: 22px;
  border: 1px solid rgba(232,237,248,.14);
  box-shadow: var(--shadow);
}
.cta-band .row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-band h3{
  margin: 0;
  letter-spacing: -.2px;
  font-size: 18px;
}
.cta-band p{
  margin: 4px 0 0;
  color: rgba(232,237,248,.75);
  font-weight: 600;
  font-size: 14px;
  max-width: 70ch;
}
.cta-band .btn{
  white-space: nowrap;
  border-color: rgba(232,237,248,.22);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: none;
}
.cta-band .btn.primary{
  background: linear-gradient(135deg, var(--brand), #174ea6);
  border-color: rgba(31,111,235,.35);
}

/* Footer */
.site-footer{
  margin-top: 30px;
  border-top: 1px solid var(--paper-line);
  background: #ffffff;
}
.footer-inner{
  padding: 22px 0;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner p{
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 13px;
}
.footer-links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links a{
  color: var(--ink-muted);
  font-weight: 800;
  font-size: 13px;
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
}
.footer-links a:hover{
  background: rgba(31,111,235,.08);
  color: #0b3d91;
  text-decoration:none;
}

/* Page header */
.page-hero{
  padding: 34px 0 10px;
}
.page-hero .wrap{
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: calc(var(--radius) + 10px);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.page-hero h1{
  margin: 0;
  font-size: 30px;
  letter-spacing: -.5px;
}
.page-hero p{
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-weight: 650;
  max-width: 70ch;
}

/* Forms */
form{
  display:grid;
  gap: 12px;
}
label{
  font-weight: 800;
  font-size: 13px;
}
input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--paper-line);
  background: #ffffff;
  font: inherit;
}
textarea{ min-height: 120px; resize: vertical; }
.helper{
  color: var(--ink-muted);
  font-weight: 650;
  font-size: 13px;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.pills{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  background: #ffffff;
  font-weight: 800;
  color: var(--ink-muted);
  font-size: 13px;
}
.pill strong{ color: var(--ink); }

/* Responsive */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .logo-img{
    height: 46px;
    padding: 5px 6px;
  }
  .footer-logo-img{
    height: 38px;
    padding: 4px 6px;
  }
  .brand small{ font-size: 11px; }

  .mobile-toggle{ display:inline-flex; }
  .nav{ 
    display:none;
    position:absolute;
    left: 0; right: 0;
    top: 62px;
    padding: 12px var(--pad) 16px;
    background: rgba(246,248,252,.98);
    border-bottom: 1px solid var(--paper-line);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav.open{ display:flex; }
  .nav a{ padding: 12px 12px; }
  .nav-cta{ flex-direction: column; align-items: stretch; }
  .btn{ width: 100%; }
  .form-row{ grid-template-columns: 1fr; }
}

/* Team page */
.team-card{display:flex;flex-direction:column;gap:6px}
.team-photo{width:100%;aspect-ratio:1/1;object-fit:contain;object-position:center;border-radius:14px;border:1px solid var(--paper-line);margin-bottom:10px;background:var(--paper)}

/* Blog */
.blog-filter-menu{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--paper-line);
}

.filter-btn{
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover{
  background: var(--paper-mute);
  border-color: var(--brand);
  color: var(--ink);
}

.filter-btn.active{
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.blog-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 0;
}

.blog-card{
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}

.blog-card:hover{
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.blog-meta{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

.blog-meta time{
  font-weight: 600;
}

.blog-category{
  padding: 4px 10px;
  background: rgba(31, 111, 235, 0.1);
  color: var(--brand);
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h2{
  font-size: 22px;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.blog-card h2 a{
  color: var(--ink);
}

.blog-card h2 a:hover{
  color: var(--brand);
  text-decoration: none;
}

.blog-card p{
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}

.blog-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

.blog-link:hover{
  text-decoration: none;
  gap: 10px;
}

/* Blog post page */
.blog-post{
  padding: 32px 0 48px;
}

.breadcrumb{
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.breadcrumb a{
  color: var(--brand);
}

.breadcrumb span{
  color: var(--ink-muted);
}

.post-header{
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.post-header h1{
  font-size: 36px;
  line-height: 1.2;
  margin: 12px 0 16px;
}

.post-meta{
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-muted);
}

.post-content{
  max-width: 740px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.post-content h2{
  font-size: 28px;
  margin: 36px 0 16px;
  line-height: 1.3;
}

.post-content h3{
  font-size: 22px;
  margin: 28px 0 12px;
  line-height: 1.4;
}

.post-content p{
  margin: 0 0 20px;
}

.post-content ul,
.post-content ol{
  margin: 0 0 20px;
  padding-left: 28px;
}

.post-content li{
  margin-bottom: 8px;
}

.post-content a{
  color: var(--brand);
  font-weight: 600;
}

.post-content blockquote{
  border-left: 4px solid var(--brand);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink-muted);
}

.post-content img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

.post-content code{
  background: rgba(31, 111, 235, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
}

.post-content pre{
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-content pre code{
  background: none;
  padding: 0;
}

.post-footer{
  margin-top: 48px;
}

@media (max-width: 860px){
  .blog-filter-menu{
    gap: 8px;
  }

  .filter-btn{
    padding: 8px 14px;
    font-size: 13px;
  }

  .blog-grid{
    grid-template-columns: 1fr;
  }

  .post-header h1{
    font-size: 28px;
  }

  .post-content{
    font-size: 16px;
  }

  .post-content h2{
    font-size: 24px;
  }

  .post-content h3{
    font-size: 20px;
  }
}
