/*
Theme Name: AgenticFort
Theme URI: https://agenticfort.ai/
Author: AgenticFort AI, LLC
Author URI: https://agenticfort.ai/
Description: Custom WordPress theme for AgenticFort — secure AI for regulated industries. Built for the Gutenberg block editor with a clean, exec-buyer-focused design. Brand palette pulled from AgenticFort Colors.xlsx. Includes header, footer, and page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agenticfort
Tags: business, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ============================================
   AgenticFort — site styles
   Brand palette (from AgenticFort Colors.xlsx)
   ============================================ */

:root {
  --orange-dark:    #CC6600;
  --orange:         #FF6600;
  --orange-light:   #FF9900;
  --blue-dark:      #0066FF;
  --blue:           #0099FF;
  --ink:            #0B1E33;   /* deep navy text */
  --ink-soft:       #3B4A5E;
  --ink-inverse:    #97A9BE;
  --paper:          #FFFFFF;
  --paper-soft:     #F6F8FB;
  --line:           #E3E8EF;
  --shadow:         0 1px 3px rgba(11,30,51,.06), 0 8px 24px rgba(11,30,51,.06);
  --radius:         12px;
  --maxw:           1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo span {
  font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; color: var(--ink);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--orange-dark); }

@media (max-width: 800px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(0,153,255,.10), transparent 60%),
    radial-gradient(900px 400px at -100px 100%, rgba(255,102,0,.10), transparent 60%),
    var(--paper);
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 18px;
}
.hero h1 { max-width: 880px; }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-top: 16px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary a {
  background: var(--orange);
  color: white !important;
}
.btn-primary a:hover { background: var(--orange-dark); }
.btn-secondary a {
  background: white;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-secondary a:hover { border-color: var(--ink); }

/* trust strip */
.trust-strip {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  align-items: center;
  font-size: 0.92rem; color: var(--ink-soft);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
}

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 14px;
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(255,102,0,.4);
}
.card .card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white; border-radius: 10px;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 18px;
}
.card .card-icon.blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; margin-bottom: 0; }
.card .plain {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  border-left: 3px solid var(--orange-light);
  padding-left: 14px;
  margin: 12px 0 16px;
}

/* ---------- Two-column blocks ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse > :first-child { order: 0; }
}
.two-col h2 { margin-top: 0; }
.fact-box {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 24px;
}
.fact-box h4 { margin: 0 0 6px; color: var(--blue-dark); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.fact-box p { margin: 0; color: var(--ink); font-size: 1rem; }

/* ---------- Quotes / testimonial ---------- */
.quote {
  background: var(--ink);
  color: white;
  padding: 56px;
  border-radius: var(--radius);
  position: relative;
}
.quote .mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
  position: absolute;
  top: 16px; left: 32px;
  font-family: Georgia, serif;
}
.quote blockquote {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  padding-left: 64px;
}
.quote cite {
  display: block;
  padding-left: 64px;
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.7;
}
blockquote p {
  color: var(--ink-inverse);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 28px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  position: relative;
}
.step-num {
  position: absolute;
  top: -18px; left: -18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}

/* ---------- Pricing table ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.tier {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
}
.tier.feature { border-color: var(--orange); border-width: 2px; position: relative; }
.tier.feature::before {
  content: "Most popular";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px;
}
.tier h3 { margin-bottom: 4px; }
.tier .price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 12px 0 4px; }
.tier .price small { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.tier ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.tier li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 0.96rem; color: var(--ink-soft); }
.tier li:first-child { border-top: 0; }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.team-card .name { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.team-card .role { font-size: 0.92rem; color: var(--orange-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.team-card p { font-size: 0.96rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #102a47 100%);
  color: white;
  padding: 72px 48px;
  border-radius: var(--radius);
  text-align: center;
}
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,.78); max-width: 620px; margin: 16px auto 32px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 56px 0 32px;
  font-size: 0.92rem;
}
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--orange-light); }
.footer p { color: var(--ink-inverse); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: white; font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 32px; }
.footer-logo span { color: white; font-weight: 800; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  background: var(--paper-soft);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 760px; }
.page-head p { font-size: 1.1rem; max-width: 720px; }

/* ---------- Case study ---------- */
.case {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
}
.case .case-meta {
  display:block;
  color: var(--blue-dark); 
  font-weight:600;
  font-size:.82rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:10px;
  background: rgba(0,153,255,.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.case h3 { font-size: 1.5rem; }
.case .stage {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dark);
  margin: 24px 0 6px;
}

/* ---------- Misc ---------- */
.kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--ink-soft); }

/* utility: prevent ugly fade if loaded last */
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================
   WordPress integration overrides
   ============================================ */

/* WP admin bar offset on logged-in pages */
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

/* WP wraps page content in <main>; make sure it doesn't constrain our sections */
.site-main { display: block; width: 100%; }

/* Custom HTML block content full-bleed */
.entry-content > .wp-block-html { margin: 0; padding: 0; }

/* Hide default page title (we use our own page-head section) */
.entry-header { display: none; }

/* Alignwide / alignfull (Gutenberg) */
.alignwide { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }

/* WP nav menu styling — applies if user creates a Primary menu */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.menu li { margin: 0; padding: 0; }
.menu li a { color: var(--ink); font-weight: 500; font-size: 0.96rem; text-decoration: none; }
.menu li a:hover { color: var(--orange); }
.menu li.menu-cta a {
  background: var(--orange);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.menu li.menu-cta a:hover { background: var(--orange-dark); color: white; }
