/*
Theme Name: Opetex IT Services
Description: One-page credibility site for Opetex IT Services (Kenya) Limited. Built to Opetex Website Visual Direction V1.5. Root-owned code, no plugins, self-hosted fonts.
Version: 1.0.0
Author: OpexIT.services Platform Engineering
Text Domain: opetex
*/

/* Fonts are self-hosted: the web user has a per-UID egress deny, and a page that
   phones a font CDN would also leak every visitor's address to it. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* V1.5: palette unchanged from V1.3. Green is rules, tabs, labels, links,
     focus, hover and exactly ONE field (the footer). */
  --ink: #17191c;
  --ink-2: #4a4d52;
  --paper: #f2f1ec;
  --paper-2: #e8e4dd;
  --green: #1f4b3f;
  --white: #fff;
  --teal: #0a4d69;      /* Aegis, per the v1.1 asset pack */
  --pink: #781e3c;      /* Pink Cow Partner dark pink */
  --dot-teal: #49bfb4;
  --dot-pink: #e0559a;
  --wrap: 1128px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Wordmark: OPETEX 700 -2%, IT SERVICES 500 -1% Ink 2. Tracking is never positive. ---- */
.wordmark { font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-decoration: none; white-space: nowrap; }
.wordmark .it { font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-header .wordmark { font-size: 14px; }
.site-header .contact-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-header .contact-link:hover { color: var(--green); }

/* ---- Hero ---- */
.hero { padding: 72px 0 88px; }
.hero .wordmark { display: block; font-size: min(8.3vw, 104px); margin-bottom: 40px; }
.hero .wordmark .it { display: inline; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 0 48px; align-items: start; }
.hero-grid .tab { display: block; width: 24px; height: 2px; background: var(--green); margin-bottom: 24px; }
.relationship { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hero-copy { margin: 0 0 32px; color: var(--ink-2); max-width: 56ch; font-size: 16px; }
.hero-right { padding-top: 36px; }  /* aligns the description to the line's first baseline */
.ctas { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.cta { display: block; }

/* Opetex buttons: 0 radius, 2px border, 56px */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 0; font: 600 15px/1 "Inter", sans-serif; letter-spacing: -0.01em; text-decoration: none; }
.btn::after { content: "↗"; font-weight: 500; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); border-color: var(--green); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.opens { margin: 8px 0 0; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.opens::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot-teal); }
.opens.zen::before { background: var(--dot-pink); }

/* ---- Sections: Opetex rule = 1px ink across the content width + 96x4 green tab ---- */
.section { padding-bottom: 88px; }
.rule { position: relative; border-top: 1px solid var(--ink); margin-bottom: 56px; }
.rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 96px; height: 4px; background: var(--green); }
.section-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 0 48px; }
.label { margin: 0; font: 600 15px/1.4 "Inter", sans-serif; letter-spacing: 0; }   /* sentence case, 0 tracking */
.label .num { color: var(--green); margin-right: 10px; }
h2, .statement { margin: 0 0 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(26px, 3vw, 38px); }
.lede { margin: 0 0 40px; color: var(--ink-2); max-width: 62ch; }

/* ---- Ecosystem panels: white inserts, Lato only in here, their own button spec (2px radius, 1px border) ---- */
.panel { background: var(--white); border: 1px solid #d9d6cf; padding: 40px; }
.panel .btn { border-width: 1px; border-radius: 2px; min-height: 48px; color: #fff; }
.aegis-word { margin: 0 0 16px; font: 900 28px/1 "Lato", sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); }
.panel h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.panel .strong { margin: 0 0 16px; font-weight: 700; }
.panel p { margin: 0 0 16px; color: var(--ink-2); }
.panel .strong { color: var(--ink); }
.panel hr { border: 0; border-top: 1px solid #e4e1da; margin: 24px 0; }
.panel .btn-teal { background: var(--teal); border-color: var(--teal); }
.panel .btn-pink { background: var(--pink); border-color: var(--pink); }
.panel .btn:hover { filter: brightness(1.12); }
.panel .opens { margin-top: 10px; }
.opexit-logo { height: 56px; width: auto; margin-bottom: 24px; }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partner .lockup { height: 52px; width: auto; max-width: 100%; }
.partner-action h3 { font-size: 18px; margin-bottom: 14px; }

/* ---- Team: 2px ink rule over the names ---- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 8px; }
.member { padding: 24px 24px 8px 0; }
.member + .member { padding-left: 24px; border-left: 1px solid #cfccc4; }
.member h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.member .role { margin: 4px 0 20px; color: var(--ink-2); font-size: 14px; }
.member a, .contact-points a { font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }
.member a:hover, .contact-points a:hover { color: var(--green); }

/* ---- Contact: Paper 2 band leading into the green footer ---- */
.contact { background: var(--paper-2); padding-bottom: 0; }
.contact .section-inner { padding-bottom: 88px; }
.contact h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.address { margin: 0; font-size: 19px; line-height: 1.6; font-style: normal; }
.company { margin: 0 0 12px; font-weight: 600; font-size: 19px; }
.contact-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #d3cfc7; }
.contact-points dt { color: var(--green); font-size: 13px; font-weight: 600; }
.contact-points dd { margin: 4px 0 0; }
.contact-points dd a { font-size: 19px; }

/* ---- Contact form: Opetex controls (0 radius, 2px ink border) ---- */
.form-block { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--ink); max-width: 620px; }
.form-block h3 { margin: 0 0 20px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.contact-form p { margin: 0 0 18px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink);
  font: 400 16px/1.5 "Inter", sans-serif; padding: 12px 14px; min-height: 48px; }
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form button { cursor: pointer; }
.form-notice { margin: 0 0 20px; padding: 14px 16px; border: 2px solid var(--green); background: var(--white); font-weight: 600; }
.form-notice.err { border-color: var(--ink); }

/* ---- The one green field ---- */
.site-footer { background: var(--green); color: var(--paper); padding: 56px 0 32px; }
.site-footer .wordmark { font-size: 24px; color: var(--paper); }
.site-footer .wordmark .it { color: rgba(242, 241, 236, 0.8); }
.site-footer .rel { margin: 10px 0 0; font-size: 14px; }
.footer-links { margin: 24px 0 0; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: #fff; }
.legal { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(242, 241, 236, 0.3); font-size: 12px; color: rgba(242, 241, 236, 0.85); }
.legal a { text-decoration: none; }

/* ---- Mobile (390px logic): stacked wordmark, 64px tab, 40/64 rhythm ---- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .hero { padding: 40px 0 56px; }
  .hero .wordmark { font-size: 56px; margin-bottom: 32px; }
  .hero .wordmark .it { display: block; font-size: 50%; margin-top: 8px; letter-spacing: -0.01em; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-right { padding-top: 24px; }
  .ctas { flex-direction: column; gap: 16px; }
  .btn { width: 100%; }
  .rule { margin-bottom: 40px; }
  .rule::before { width: 64px; }
  .section { padding-bottom: 64px; }
  .section-grid .label { margin-bottom: 20px; }
  .panel { padding: 24px; }
  .partner { align-items: flex-start; flex-direction: column; }
  .team { grid-template-columns: 1fr; }
  .member, .member + .member { padding: 20px 0; border-left: 0; }
  .member + .member { border-top: 1px solid #cfccc4; }
  .contact-points { grid-template-columns: 1fr; gap: 20px; }
  .contact .section-inner { padding-bottom: 64px; }
  .legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
