/* =========================================
   OperationsEdge.co.uk — Main Stylesheet
   Brand: #1B609D | Clean, Professional
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #1B609D;
  --brand-dark:   #144d80;
  --brand-light:  #e8f1f9;
  --accent:       #f4a41b;
  --text:         #1a1a2e;
  --text-muted:   #5a6270;
  --border:       #e2e8f0;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --success:      #16a34a;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --max-w:        1200px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }

/* --- Header / Nav --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.5px;
  text-decoration: none;
}
.site-logo span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 2rem; list-style: none; }
.site-nav a {
  font-size: .925rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--brand); }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; text-decoration: none !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; transition: .3s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0f3d65 0%, var(--brand) 60%, #2980c9 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 2rem; }
.hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .3rem .85rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-primary:hover { background: #e09210; border-color: #e09210; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  margin-bottom: .5rem;
}

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .925rem; margin-bottom: 1.25rem; }

/* --- Category Icons --- */
.cat-icon {
  width: 48px; height: 48px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* --- Rating --- */
.rating { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: .95rem; }

/* --- Tag / Pill --- */
.tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
  margin-right: .35rem;
  margin-bottom: .35rem;
}
.tag-green { background: #dcfce7; color: var(--success); }
.tag-orange { background: #fff3cd; color: #92400e; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; margin: .75rem auto 0; }
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: .5rem;
}

/* --- Article Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.article-content h2 { margin: 2.25rem 0 .75rem; }
.article-content h3 { margin: 1.75rem 0 .5rem; }
.article-content ul, .article-content ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text);
}
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content strong { color: var(--text); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .875rem;
  margin: 1rem 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: .35rem; }

/* --- Sidebar --- */
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 { margin-bottom: 1rem; font-size: 1rem; }

.toc-list { list-style: none; }
.toc-list a {
  display: block;
  color: var(--text-muted);
  font-size: .875rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.toc-list a:hover { color: var(--brand); text-decoration: none; }
.toc-list li:last-child a { border-bottom: none; }

/* --- Pros/Cons Table --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros-cons-box { padding: 1.25rem; border-radius: var(--radius); }
.pros-box { background: #dcfce7; border: 1px solid #bbf7d0; }
.cons-box { background: #fee2e2; border: 1px solid #fecaca; }
.pros-cons-box h4 { margin-bottom: .75rem; font-size: .95rem; }
.pros-box h4 { color: #15803d; }
.cons-box h4 { color: #b91c1c; }
.pros-cons-box ul { margin-left: 1.25rem; }
.pros-cons-box li { font-size: .9rem; margin-bottom: .35rem; }

/* --- CTA Box --- */
.cta-box {
  background: linear-gradient(135deg, #0f3d65, var(--brand));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h3 { color: #fff; margin-bottom: .5rem; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* --- Affiliate Disclosure Banner --- */
.disclosure-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  font-size: .8rem;
  color: #78610a;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

/* --- Comparison Table --- */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .9rem; }
.comparison-table th {
  background: var(--brand);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:nth-child(even) td { background: var(--bg-alt); }
.comparison-table tr:hover td { background: var(--brand-light); }
.check { color: var(--success); font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--brand);
  color: #fff;
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; margin-bottom: .25rem; }
.stat-label { font-size: .875rem; color: rgba(255,255,255,.8); }

/* --- Newsletter --- */
.newsletter-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 440px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--brand); }

/* --- Footer --- */
.site-footer {
  background: #0f1a2e;
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: .875rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--border); }

/* --- Page Hero (interior) --- */
.page-hero {
  background: var(--brand-light);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-hero .eyebrow { margin-bottom: .35rem; }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }

/* --- Contact Form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--brand); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* --- Tool Score Card --- */
.score-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.score-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: .25rem;
}
.score-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.score-bars { text-align: left; margin-top: 1.25rem; }
.score-row { margin-bottom: .75rem; }
.score-row-label { font-size: .8rem; font-weight: 500; display: flex; justify-content: space-between; margin-bottom: .25rem; }
.score-bar-bg { background: var(--border); border-radius: 100px; height: 6px; }
.score-bar-fill { background: var(--brand); border-radius: 100px; height: 6px; }

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--border); }
  .site-nav li:last-child a { border-bottom: none; }
  .nav-cta { margin-top: .5rem; text-align: center; }

  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 0 3rem; }
}
