/*
Theme Name: Akivero
Theme URI: https://akivero.com
Author: Akivero
Description: Connected-care marketing theme. Landing page + data-driven Service pages, fully editable via WordPress admin (ACF Pro required).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: akivero
*/

/* ── Design tokens ── */
:root {
  --navy:    #0D1B2A;
  --blue:    #1B5EAA;
  --sky:     #A6CBE0;
  --sage:    #8CC7A1;
  --sand:    #EAD8B2;
  --cloud:   #F2F5F9;
  --white:   #FFFFFF;
  --body:    #374151;
  --muted:   #6B7280;
  --border:  #E2E8F0;
  --faint:   #8899AA;
  --navy-l:  #1E3248;
  --font-base: Arial, sans-serif;
  --page-pad: clamp(20px, 5.5vw, 80px);
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   12px;
  --radius-pill: 20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--body); background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Nav ── */
.akv-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.akv-nav__logo { text-decoration: none; }
.akv-nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.akv-nav__links a {
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s;
}
.akv-nav__links a:hover { color: var(--blue); }

/* ── Logo ── */
.akv-logo { display: flex; align-items: center; gap: 10px; }
.akv-logo__text {}
.akv-logo__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--navy);
}
.akv-logo__name--dark { color: var(--white); }
.akv-logo__tagline {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.akv-logo__tagline--dark { color: var(--sky); }

/* ── Buttons ── */
.akv-btn {
  display: inline-block;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 11px 26px;
  border: 2px solid transparent;
  transition: filter 0.15s;
  cursor: pointer;
  line-height: 1;
}
.akv-btn:hover { filter: brightness(0.88); }
.akv-btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.akv-btn--secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  padding: 9px 24px;
}

/* ── Hero ── */
.akv-hero {
  background: var(--cloud);
  padding: clamp(40px, 5vw, 72px) var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.akv-hero h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.akv-hero__desc {
  font-size: 17px;
  color: var(--body);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
}
.akv-hero__img {
  width: 100%;
  aspect-ratio: 620 / 440;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: #B2C9DB;
}

/* ── Section headings ── */
.akv-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
}

/* ── Services grid (landing) ── */
.akv-services { background: var(--white); padding: 64px var(--page-pad); }
.akv-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── Service card ── */
.akv-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: var(--white);
}
.akv-card:hover {
  box-shadow: 0 4px 20px rgba(13,27,42,0.10);
  border-color: var(--sky);
}
.akv-card__img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.akv-card__img--placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.akv-card__body { padding: 24px; }
.akv-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.akv-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.akv-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  letter-spacing: 0.05em;
}
.akv-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.akv-card__tagline {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.akv-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Product page hero ── */
.akv-product-hero {
  background: var(--cloud);
  padding: clamp(40px, 4.5vw, 64px) var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.akv-product-hero__img {
  width: 100%;
  aspect-ratio: 600 / 420;
  border-radius: var(--radius-xl);
  object-fit: cover;
}
.akv-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 24px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.akv-breadcrumb:hover { opacity: 1; }
.akv-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.akv-product-hero h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 4px;
  text-wrap: pretty;
}
.akv-tagline {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.akv-product-hero__desc {
  font-size: 17px;
  color: var(--body);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
}

/* ── Features ── */
.akv-features { background: var(--white); padding: 56px var(--page-pad); }
.akv-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.akv-feat {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
}
.akv-feat__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.akv-feat__title {
  font-size: 16px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.akv-feat__desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── How it works ── */
.akv-how { background: var(--cloud); padding: 48px var(--page-pad); }
.akv-steps-wrap { position: relative; }
.akv-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.akv-steps__line {
  position: absolute;
  top: 22px;
  left: calc(16.6% + 22px);
  right: calc(16.6% + 22px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.akv-step { position: relative; z-index: 1; }
.akv-step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
}
.akv-step__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.akv-step__desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Who it's for ── */
.akv-audience { background: var(--white); padding: 48px var(--page-pad); }
.akv-audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.akv-aud {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.akv-aud__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.akv-aud__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.akv-aud__desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Footer ── */
.akv-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-l);
  padding: 28px var(--page-pad);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.akv-footer__copy { font-size: 13px; color: var(--faint); }
.akv-footer__links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.akv-footer__links a { font-size: 13px; color: var(--faint); text-decoration: none; }

/* ── Focus (WCAG 2.2) ── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .akv-hero,
  .akv-product-hero { grid-template-columns: 1fr; }
  .akv-hero__img,
  .akv-product-hero__img { order: -1; }
  .akv-nav__links { display: none; }
  .akv-steps__line { display: none; }
}
