/*
Theme Name: Radicle
Theme URI: https://radicle.biz
Author: Radicle
Author URI: https://radicle.biz
Description: Radicle WordPress block theme for secure AI document intelligence.
Version: 1.0.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: radicle
Tags: one-column, accessibility-ready, block-styles
*/

/* Base styles — Radicle (enterprise, restrained) ------------------------ */
:root{
  --radicle-bg: #ffffff;
  --radicle-foreground: #0f1720; /* charcoal */
  --radicle-teal: #1f7a6f;
  --radicle-blue: #2b6cb0;
  --radicle-amber: #d6a86a;
  --radicle-violet: #6b5bd6;
  --radicle-muted: #6b7280;
  --radicle-surface: #f7fafc;
  --radicle-slate-tint: #f1f5f9;
  --radicle-radius: 8px;
  --radicle-card-radius: 12px;
  --radicle-shadow-soft: 0 8px 24px rgba(11,20,30,0.06);
  --radicle-gradient-hero: linear-gradient(135deg, rgba(31,122,111,0.95), rgba(43,108,176,0.95));
  --radicle-gradient-cta: linear-gradient(90deg,#2b6cb0,#6b5bd6);
  --radicle-gradient-icon: linear-gradient(180deg, rgba(31,122,111,0.16), rgba(43,108,176,0.08));
}

html,body{height:100%;}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color:var(--radicle-foreground);
  background:var(--radicle-bg);
  -webkit-font-smoothing:antialiased;
}

/* Typography */
h1,h2,h3,h4{font-weight:700;line-height:1.12;margin:0 0 0.6rem}
h1{font-size:2.75rem}
h2{font-size:1.6rem}
h3{font-size:1.25rem}
p{margin:0 0 1rem;color:var(--radicle-muted)}

/* Header */
.site-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 2rem;border-bottom:1px solid var(--radicle-slate-tint)}
.site-header .wp-block-group{padding:0}
.site-title{font-weight:800;letter-spacing:0.2px}

/* Classic nav menu */
.site-nav{display:flex;align-items:center}
.site-nav-list{display:flex;gap:0.25rem;list-style:none;margin:0;padding:0}
.site-nav-list li a{display:block;padding:0.45rem 0.75rem;color:var(--radicle-muted);text-decoration:none;border-radius:var(--radicle-radius);transition:color .16s ease, background .16s ease}
.site-nav-list li a:hover{color:var(--radicle-foreground);background:var(--radicle-slate-tint);text-decoration:none}
.site-nav-list li.current-menu-item a,
.site-nav-list li.current_page_item a{color:var(--radicle-foreground);font-weight:600}
.site-nav-list .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--radicle-slate-tint);border-radius:var(--radicle-radius);padding:0.5rem 0;list-style:none;box-shadow:var(--radicle-shadow-soft);min-width:180px;z-index:100}
.site-nav-list li{position:relative}
.site-nav-list li:hover > .sub-menu{display:block}

/* Hero — subtle motif using inline SVG grid */
.hero{padding:4rem 1.25rem;text-align:center;background-image:var(--radicle-gradient-hero), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'><g fill='none' stroke='%230b141e' stroke-opacity='0.04' stroke-width='1'><path d='M0 24 H320'/><path d='M0 48 H320'/><path d='M0 72 H320'/><path d='M0 96 H320'/></g></svg>");background-repeat:repeat,repeat;background-size:cover,320px 160px;color:#fff}
.hero .wp-block-cover__inner-container{max-width:72rem;margin:0 auto;padding:0 1rem}
.hero h1{font-size:2rem;max-width:56rem;margin:0 auto;text-shadow:0 1px 0 rgba(0,0,0,0.18)}
.hero p{max-width:48rem;margin:0.75rem auto 1rem;color:rgba(255,255,255,0.9)}
.wp-block-buttons{display:flex;gap:0.75rem;justify-content:center;margin-top:1rem}

/* Buttons — primary filled, secondary outline, tertiary link */
.wp-block-button__link{padding:0.65rem 1.05rem;border-radius:var(--radicle-radius);display:inline-block;transition:all .16s ease}
.wp-block-button.is-primary .wp-block-button__link{background:var(--radicle-foreground);color:#fff;border:1px solid transparent;box-shadow:none}
.wp-block-button.is-primary .wp-block-button__link:hover{transform:translateY(-1px);box-shadow:var(--radicle-shadow-soft)}
.wp-block-button.is-secondary .wp-block-button__link{background:transparent;color:var(--radicle-foreground);border:1px solid rgba(15,23,32,0.08)}
.wp-block-button.is-secondary .wp-block-button__link:hover{background:var(--radicle-slate-tint)}
.wp-block-button.is-tertiary .wp-block-button__link{background:transparent;color:var(--radicle-blue);border:0;padding-left:0;padding-right:0}

/* Hero-specific button treatments for contrast on gradient */
.hero .wp-block-button.is-primary .wp-block-button__link{background:rgba(255,255,255,0.98);color:var(--radicle-foreground)}
.hero .wp-block-button.is-secondary .wp-block-button__link{background:transparent;color:rgba(255,255,255,0.9);border:1px solid rgba(255,255,255,0.12)}

a{color:var(--radicle-blue);text-decoration:none}
a:hover{text-decoration:underline}

/* CTA buttons — reusable across all pages */
.cta{display:inline-block;padding:0.75rem 1.5rem;border-radius:var(--radicle-radius);font-weight:600;font-size:1rem;text-decoration:none;letter-spacing:0.2px;transition:all .2s ease}
.cta:hover{text-decoration:none}
.cta.primary{background:#fff;color:var(--radicle-foreground);box-shadow:0 4px 20px rgba(0,0,0,0.25)}
.cta.primary:hover{background:#f0f4ff;box-shadow:0 8px 32px rgba(0,0,0,0.35);transform:translateY(-2px)}
.cta.ghost{border:2px solid rgba(255,255,255,0.5);color:#fff;background:rgba(255,255,255,0.08)}
.cta.ghost:hover{background:rgba(255,255,255,0.16);border-color:rgba(255,255,255,0.7);color:#fff}
.cta.large{padding:1rem 2rem;font-size:1.05rem}

/* Focus styles */
a:focus,button:focus,.wp-block-button__link:focus{outline:3px solid rgba(43,108,176,0.14);outline-offset:3px}

/* Sections and containers */
.section{padding:3rem 1.25rem;border-top:1px solid var(--radicle-slate-tint)}
.section .inner{max-width:72rem;margin:0 auto}
.container-wide{max-width:1200px;margin:0 auto}

/* Feature cards */
.feature-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:1rem}
@media(min-width:800px){.feature-grid{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--radicle-white, #fff);border-radius:var(--radicle-card-radius);padding:1.25rem;border:1px solid rgba(11,20,30,0.04);box-shadow:var(--radicle-shadow-soft)}
.feature-label{font-size:0.8rem;color:var(--radicle-muted);text-transform:uppercase;letter-spacing:0.8px}
.feature-title{font-weight:700;margin:0.5rem 0}
.feature-desc{color:var(--radicle-muted);margin:0}
.feature-icon{width:44px;height:44px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:var(--radicle-gradient-icon);color:#fff;font-weight:700}

/* Steps / How it works */
.how-steps{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:800px){.how-steps{grid-template-columns:repeat(4,1fr)}}
.step{background:transparent;padding:0.75rem}
.step-badge{width:36px;height:36px;border-radius:999px;background:var(--radicle-slate-tint);display:inline-flex;align-items:center;justify-content:center;font-weight:700;margin-bottom:0.5rem}

/* Security callout */
.callout--security{background:var(--radicle-foreground);color:#fff;border-radius:8px;padding:1.25rem;box-shadow:none;border-left:6px solid var(--radicle-teal)}
.callout--security p{color:rgba(255,255,255,0.9)}

/* Trust bar */
.trust-bar{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;color:var(--radicle-muted);font-size:0.9rem;padding-top:0.75rem}
.trust-dot{width:6px;height:6px;background:var(--radicle-muted);border-radius:999px;display:inline-block;margin:0 0.45rem}

/* Footer */
.site-footer{padding:2rem 1.25rem;border-top:1px solid var(--radicle-slate-tint);text-align:center;color:var(--radicle-muted)}

/* Inner pages — hero banner (compact) */
.page-hero{
  padding:0;
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background-image:var(--radicle-gradient-hero), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'><g fill='none' stroke='%230b141e' stroke-opacity='0.04' stroke-width='1'><path d='M0 24 H320'/><path d='M0 48 H320'/><path d='M0 72 H320'/><path d='M0 96 H320'/></g></svg>");
  background-repeat:repeat,repeat;
  background-size:cover,320px 160px;
  color:#fff;
  border-bottom-left-radius:var(--radicle-card-radius);
  border-bottom-right-radius:var(--radicle-card-radius);
  box-shadow:0 4px 24px rgba(11,20,30,0.10), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.page-hero .wp-block-cover__inner-container{max-width:72rem;margin:0 auto;padding:0 1rem}
.page-hero h1{font-size:1.6rem;margin:0;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.18);font-weight:700}

/* Inner pages — content frame */
.page-content{
  max-width:52rem;
  margin:2.5rem auto;
  padding:2.5rem 2rem;
  background:#fff;
  border:1px solid var(--radicle-slate-tint);
  border-radius:var(--radicle-card-radius);
  box-shadow:var(--radicle-shadow-soft);
}
.page-content .wp-block-group{padding:0}

/* Team grid */
.team-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;padding:0}
.team-card{
  background:#fff;
  border:1px solid var(--radicle-slate-tint);
  border-radius:var(--radicle-card-radius);
  box-shadow:var(--radicle-shadow-soft);
  padding:2rem 1.5rem;
  text-align:center;
  transition:transform .18s ease, box-shadow .18s ease;
}
.team-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(11,20,30,0.10)}
.team-card .team-photo{margin-bottom:1rem}
.team-card .team-photo img{
  width:120px;height:120px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--radicle-slate-tint);
}
.team-card h3{margin:0 0 0.15rem;font-size:1.1rem}
.team-card .team-role{
  font-size:0.8rem;
  color:var(--radicle-teal);
  text-transform:uppercase;
  letter-spacing:0.8px;
  font-weight:600;
  margin:0 0 0.75rem;
}
.team-card p:last-child{color:var(--radicle-muted);font-size:0.92rem;margin:0}

@media (min-width:800px){
  .hero{padding:6rem 1.5rem}
  .hero h1{font-size:3.25rem}
  .page-hero h1{font-size:1.8rem}
  .page-content{margin:3rem auto;padding:3rem 3rem}
  .team-grid{grid-template-columns:repeat(3,1fr)}
  .section{padding:4rem 1.5rem}
  .cta-final{background:var(--radicle-gradient-cta);color:#fff}
  .cta-final .wp-block-button.is-primary .wp-block-button__link{background:#fff;color:var(--radicle-foreground)}
}

