/* Tambena theme styles.
   Brand colors from tambena.svg: blue #004AAD / #0E54B2, gray #595959 */

:root {
  --ink: #0a1b33;
  --ink-2: #13294b;
  --blue: #004aad;
  --blue-2: #0e54b2;
  --sky: #7daaf0;
  --gray: #595959;
  --text: #2b3445;
  --muted: #5f6b7d;
  --line: #e2e8f0;
  --soft: #f4f7fb;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1180px;
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
body a { color: var(--blue); text-decoration: none; }
body a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #c9d4e5; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--flush { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: .76rem; font-weight: 700; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: rgba(0, 74, 173, .07);
  border: 1px solid rgba(0, 74, 173, .14);
  margin: 0 0 20px;
}
.section--dark .eyebrow, .hero .eyebrow {
  color: #d3e3fc; background: rgba(125, 170, 240, .16);
  border-color: rgba(125, 170, 240, .42);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.section--dark .lead { color: #aab8cd; }

/* Buttons (core Button block; variant class sits on the wrapper) */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.wp-block-button .wp-block-button__link,
.site-header .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.3;
  border: 2px solid transparent; transition: all .2s ease; text-decoration: none;
  background: var(--blue); color: var(--white);
}
.wp-block-button .wp-block-button__link:hover, .site-header .btn:hover { text-decoration: none; transform: translateY(-1px); }
.wp-block-button.btn--primary .wp-block-button__link:hover, .site-header .btn:hover { background: var(--blue-2); }
.wp-block-button.btn--ghost .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.wp-block-button.btn--ghost .wp-block-button__link:hover { border-color: var(--white); }
.wp-block-button.btn--outline .wp-block-button__link { background: transparent; border-color: var(--blue); color: var(--blue); }
.wp-block-button.btn--outline .wp-block-button__link:hover { background: var(--blue); color: var(--white); }
.wp-block-button.btn--light .wp-block-button__link { background: var(--white); color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.is-active { color: var(--blue); }
.nav .btn { padding: 10px 20px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* Hero (the ring mark comes from the logo) */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #143a7a 0%, transparent 60%), var(--ink);
  color: #c9d4e5; padding-block: 120px 110px;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; opacity: .10; pointer-events: none;
  background: url("tambena-mark-white.svg") center / contain no-repeat;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { color: #aab8cd; }
.hero--page { padding-block: 96px 80px; }
.hero--page h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 28px 24px 0 0; }
.stat .stat-num { margin: 0; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; line-height: 1.3; }
.stat .stat-label { margin: 0; font-size: .92rem; color: #93a3bb; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-2--top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 36px; } }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* Company cards */
.company {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; transition: box-shadow .25s ease, transform .25s ease;
}
.company:hover { box-shadow: 0 18px 50px -20px rgba(10,27,51,.28); transform: translateY(-3px); }
.company::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px; background: var(--blue); border-radius: 0 0 3px 3px; }
.company.beta::before { background: #d98a00; }
.company .sector { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.company h3 { font-size: 1.55rem; margin: 10px 0 12px; }
.company .desc { color: var(--muted); flex: 1; }
.company .visit { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.badge {
  display: inline-block; margin: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: #e8f0fc; color: var(--blue);
}
.company .badge { position: absolute; top: 28px; right: 26px; }
.badge--beta { background: #fff4e0; color: #9a5b00; }

/* Companies page rows */
.venture { display: grid; grid-template-columns: 280px 1fr; gap: 56px; padding-block: 56px; border-top: 1px solid var(--line); }
.venture:first-child { border-top: 0; padding-top: 0; }
.venture-id .num { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--blue); letter-spacing: .1em; }
.venture-id h2 { font-size: 2rem; margin: 8px 0 6px; }
.venture-id .sector { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.venture ul { padding-left: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 20px 0 28px; }
.venture li { position: relative; padding-left: 22px; }
.venture li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; }
.venture .btn-row { margin-top: 8px; }
@media (max-width: 800px) { .venture { grid-template-columns: 1fr; gap: 18px; } .venture ul { grid-template-columns: 1fr; } }

/* Pillars */
.pillar { padding: 32px 0 0; border-top: 2px solid var(--ink); }
.section--dark .pillar { border-top-color: rgba(255,255,255,.2); }
.pillar .num { margin: 0; font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: .9rem; letter-spacing: .1em; }
.section--dark .pillar .num { color: var(--sky); }
.pillar h3 { margin-top: 10px; }
.pillar p:not(.num) { color: var(--muted); }
.section--dark .pillar p:not(.num) { color: #aab8cd; }
.pillar .statement { font-size: 1.7rem; }

/* Hub diagram */
.hub { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.hub svg { width: 100%; height: 100%; }

/* Leadership */
.leader { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; padding-block: 48px; border-top: 1px solid var(--line); }
.leader:first-child { border-top: 0; padding-top: 0; }
.leader-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, var(--ink-2), var(--blue)); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line); margin: 0; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo.is-round img { transform: scale(1.1); } /* source image is already circle-cropped; hide its white edge */
.leader .role { font-family: var(--font-head); font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.leader h2 { margin-bottom: 4px; }
@media (max-width: 800px) { .leader { grid-template-columns: 1fr; gap: 24px; } .leader .leader-photo { max-width: 240px; } }

.leader-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.leader-card { display: flex; gap: 22px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.leader-card .leader-photo { width: 96px; flex: 0 0 96px; box-shadow: none; }
.leader-card h3 { margin: 0 0 2px; }
.leader-card h3 a { color: var(--ink); }
.leader-card .role { margin: 0; font-size: .95rem; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .leader-cards { grid-template-columns: 1fr; } }

/* Timeline (Our Story) */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 44px 56px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
.timeline-item .when { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.timeline-item h3 { margin: 6px 0 8px; }
.timeline-item p:not(.when) { color: var(--muted); margin: 0; max-width: 640px; }

/* Values */
.value { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin: 0; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--blue) 0%, #0a3a8a 100%); color: #dbe6f7; border-radius: 22px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; max-width: 560px; }
@media (max-width: 700px) { .cta { padding: 40px 28px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-item h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-item p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.form { background: var(--soft); border-radius: var(--radius); padding: 40px; }
@media (max-width: 600px) { .form { padding: 26px; } }

/* WPForms, matched to the design */
.form .wpforms-container {
  margin: 0 !important;
  --wpforms-field-border-radius: 10px;
  --wpforms-field-border-color: #cfd8e3;
  --wpforms-field-text-color: var(--ink);
  --wpforms-label-color: var(--ink);
  --wpforms-button-background-color: var(--blue);
  --wpforms-button-border-radius: 999px;
  --wpforms-button-text-color: #fff;
}
.form .wpforms-field { padding: 0 0 18px !important; }
.form .wpforms-field-label { font-family: var(--font-body); font-weight: 600 !important; font-size: .9rem !important; color: var(--ink); }
.form .wpforms-field input,
.form .wpforms-field select,
.form .wpforms-field textarea {
  width: 100% !important; max-width: 100% !important; height: auto;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid #cfd8e3; border-radius: 10px; background: var(--white);
}
.form .wpforms-field input:focus,
.form .wpforms-field select:focus,
.form .wpforms-field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; box-shadow: none; }
.form button.wpforms-submit {
  font-family: var(--font-head) !important; font-weight: 700 !important; font-size: .95rem !important;
  padding: 14px 26px !important; height: auto !important;
  background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
}
.form button.wpforms-submit:hover { background: var(--blue-2) !important; }
.form .wpforms-confirmation-container-full { background: #e7f6ec; color: #1d6b37; border: 0; border-radius: 10px; }

/* Ordinary pages and posts (Privacy Policy, etc.) */
.entry-content { max-width: 780px; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.entry-content img { border-radius: 10px; }
.entry-summary { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--ink); color: #93a3bb; padding-block: 72px 36px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 38px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c9d4e5; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .section { padding-block: 72px; } }
