/*
Theme Name: Abara
Theme URI: https://abara.uk
Author: Abara Ltd
Description: Custom WordPress theme for Abara Ltd.
Version: 1.1.0
Text Domain: abara
*/

:root {
  --ink: #102033;
  --ink-soft: #42526b;
  --muted: #66758a;
  --page: #f5f9ff;
  --surface: #ffffff;
  --surface-blue: #eef6ff;
  --surface-cyan: #ecfeff;
  --navy: #071a2f;
  --blue: #2563eb;
  --blue-2: #0078d4;
  --cyan: #38bdf8;
  --teal: #2dd4bf;
  --accent-green: #13a10e;
  --purple: #5b5fc7;
  --border: rgba(37, 99, 235, 0.16);
  --border-strong: rgba(0, 120, 212, 0.34);
  --radius: 0.95rem;
  --shadow: 0 24px 70px rgba(25, 62, 116, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.abara-insights-site {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      #f7fbff 0%,
      #eef6ff 46%,
      #f8fbff 100%
    );
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

body.abara-insights-site a {
  color: var(--blue-2);
}

.abara-content-wide {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.abara-content-article {
  width: min(790px, calc(100% - 40px));
  margin: 0 auto;
}

.abara-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.abara-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.abara-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy) !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.abara-brand img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 150px;
  object-fit: contain;
}

.abara-site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.abara-site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-soft) !important;
  text-decoration: none;
  font-weight: 650;
}

.abara-site-nav a:hover,
.abara-site-nav a:focus {
  background: var(--surface-blue);
  color: var(--blue-2) !important;
}

.abara-insights-hero {
  padding: 90px 0 72px;
  border-bottom: 1px solid var(--border);
}

.abara-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}

.abara-insights-hero h1,
.abara-article-header h1 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.abara-insights-hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.abara-insights-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.abara-post-grid-section {
  padding: 64px 0 96px;
}

.abara-post-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.abara-post-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.abara-post-card-meta,
.abara-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.abara-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-cyan);
  border: 1px solid rgba(3,131,135,.18);
  color: #026f72;
  font-weight: 750;
  font-size: .78rem;
}

.abara-post-card h2 {
  margin: 22px 0 14px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.abara-post-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.abara-post-card h2 a:hover {
  color: var(--blue-2);
}

.abara-post-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.abara-read-more {
  margin-top: auto;
  text-decoration: none;
  font-weight: 800;
}

.abara-empty-state {
  padding: 56px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.abara-empty-state h2 {
  margin-top: 0;
  color: var(--navy);
}

.abara-pagination {
  margin-top: 42px;
}

.abara-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.abara-pagination .page-numbers {
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
}

.abara-article-header {
  padding: 78px 0 54px;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(56,189,248,.18),
      transparent 34%
    );
  border-bottom: 1px solid var(--border);
}

.abara-back-link {
  display: inline-block;
  margin-bottom: 30px;
  text-decoration: none;
  font-weight: 750;
}

.abara-article-meta {
  margin-bottom: 18px;
}

.abara-article-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

.abara-article-intro {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1.65;
}

.abara-article-body {
  padding-top: 58px;
  padding-bottom: 90px;
  font-size: 1.075rem;
}

.abara-article-body h2 {
  margin: 2.2em 0 .7em;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.2;
}

.abara-article-body h3 {
  margin: 1.9em 0 .65em;
  color: var(--navy);
  font-size: 1.3rem;
}

.abara-article-body p,
.abara-article-body ul,
.abara-article-body ol {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.abara-article-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--surface-blue);
  border-left: 4px solid var(--blue-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.abara-article-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eaf1fa;
}

.abara-source-box {
  margin-top: 60px;
  padding: 28px;
  background: var(--surface-blue);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.abara-source-box h2 {
  margin-top: 0;
}

.abara-source-box ul {
  padding-left: 1.25rem;
}

.abara-source-box a {
  overflow-wrap: anywhere;
}

.abara-site-footer {
  padding: 54px 0 24px;
  background: var(--navy);
  color: rgba(255,255,255,.76);
}

.abara-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.abara-footer-inner strong {
  color: white;
  font-size: 1.05rem;
}

.abara-footer-inner p {
  max-width: 570px;
  margin: 8px 0 0;
}

.abara-footer-links {
  display: flex;
  gap: 18px;
}

.abara-footer-links a {
  color: white !important;
  text-decoration: none;
}

.abara-footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .9rem;
}

@media (max-width: 700px) {

  .abara-header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .abara-site-nav {
    width: 100%;
  }

  .abara-site-nav a {
    padding-left: 0;
    padding-right: 16px;
  }

  .abara-insights-hero {
    padding: 62px 0 50px;
  }

  .abara-post-grid-section {
    padding-top: 38px;
  }

  .abara-post-card {
    min-height: 0;
  }

  .abara-article-header {
    padding: 52px 0 40px;
  }

  .abara-article-body {
    padding-top: 38px;
  }

  .abara-footer-inner {
    flex-direction: column;
  }

  .abara-footer-links {
    flex-wrap: wrap;
  }
}

/* Featured images */

.abara-post-card {
  overflow: hidden;
  padding: 0;
}

.abara-post-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px;
}

.abara-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-blue);
}

.abara-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.abara-post-card:hover .abara-card-image img {
  transform: scale(1.015);
}

.abara-article-image {
  margin-top: 48px;
}

.abara-article-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .abara-article-image {
    margin-top: 30px;
  }
}
