/* =========================================================
   ikwa portfolio — styles
   POC: vanilla CSS, no framework
   ========================================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
html { scroll-behavior: smooth; }

/* --- Tokens --- */
:root {
  --c-primary: #0F2A5C;
  --c-primary-dark: #081A3D;
  --c-accent: #0BA5A4;
  --c-accent-dark: #099392;
  --c-text: #0F172A;
  --c-text-muted: #475569;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-border: #E2E8F0;
  --c-white: #FFFFFF;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --sh-sm: 0 1px 2px rgba(15,23,42,.06);
  --sh-md: 0 4px 14px rgba(15,23,42,.08);
  --sh-lg: 0 18px 40px rgba(15,23,42,.14);

  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Base --- */
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
section.alt { background: var(--c-bg-alt); }
section.tight { padding: 56px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--c-primary); letter-spacing: -0.5px; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(36px, 5.2vw, 56px); letter-spacing: -1.5px; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.8px; }
h3 { font-size: 20px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
p { color: var(--c-text); }
.lead { font-size: 18px; color: var(--c-text-muted); max-width: 720px; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(11,165,164,.10);
  color: var(--c-accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: var(--c-white); }
.btn-primary:hover { background: var(--c-accent-dark); box-shadow: var(--sh-md); }
.btn-secondary { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.btn-secondary:hover { border-color: var(--c-primary); }
.btn-light { background: var(--c-white); color: var(--c-primary); }
.btn-light:hover { box-shadow: var(--sh-md); }
.btn-large { padding: 16px 30px; font-size: 16px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.6px;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); display: inline-block; margin-right: 10px; }
.brand-tld { font-size: 13px; font-weight: 500; color: var(--c-text-muted); }

.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: 4px; }
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
}
.primary-nav a:hover { background: var(--c-bg-alt); color: var(--c-primary); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 11px; opacity: .6; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 260px;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s, visibility .15s, transform .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--r-sm);
}
.dropdown a small { display: block; font-size: 12px; color: var(--c-text-muted); font-weight: 400; margin-top: 2px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 880px) {
  .header-inner { gap: 12px; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--c-border);
    padding: 16px 24px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; gap: 4px; }
  .primary-nav a { padding: 12px 14px; }
  .has-dropdown > a::after { content: ''; }
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav-toggle { display: inline-flex; }
}

/* --- Hero --- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 85% 0%, rgba(11,165,164,.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(15,42,92,.06), transparent 45%);
}
.hero h1 { margin-bottom: 22px; max-width: 860px; }
.hero h1 .accent { color: var(--c-accent); }
.hero .lead { font-size: 19px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.product-hero { padding: 56px 0 32px; }
.product-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 16px; }
.breadcrumb { font-size: 13px; color: var(--c-text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--c-accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Product grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.product-card .tag {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-card h3 { font-size: 22px; }
.product-card p { color: var(--c-text-muted); font-size: 15px; flex: 1; }
.product-card .card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.product-card .link { font-weight: 600; font-size: 14px; color: var(--c-accent); }
.product-card .link:hover { text-decoration: underline; }

/* --- Feature grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
}
.feature.alt-bg { background: var(--c-bg-alt); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(11,165,164,.10);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--c-text-muted); }

/* --- Two-column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* --- Check list --- */
.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--c-text);
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(11,165,164,.12);
  color: var(--c-accent);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-list li strong { color: var(--c-primary); display: block; margin-bottom: 2px; font-weight: 700; }
.check-list li span { color: var(--c-text-muted); font-size: 14px; }

/* --- Stat --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: left;
}
.stat .number { font-size: 36px; font-weight: 800; color: var(--c-accent); line-height: 1; margin-bottom: 8px; }
.stat .label { font-size: 14px; color: var(--c-text-muted); }

/* --- Placeholder --- */
.placeholder {
  background: rgba(15,42,92,.04);
  border: 1px dashed #C4CCDB;
  border-radius: var(--r-md);
  padding: 22px 24px;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.placeholder strong { color: var(--c-primary); display: inline-block; margin-right: 6px; }
.placeholder.placeholder-lg { padding: 40px; text-align: center; }
.placeholder.placeholder-lg strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* --- Image placeholder --- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(15,42,92,.025) 0 12px,
      rgba(11,165,164,.04) 12px 24px);
  border: 1px dashed #C4CCDB;
  border-radius: var(--r-md);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(11,165,164,.25), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(11,165,164,.18), transparent 40%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--c-white); margin: 0 auto 14px; max-width: 720px; }
.cta-band p {
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 18px;
}

/* --- Contact card --- */
.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 32px;
}
.contact-item h4 { color: var(--c-text-muted); margin-bottom: 8px; }
.contact-item a { font-weight: 600; color: var(--c-primary); font-size: 16px; }
.contact-item a:hover { color: var(--c-accent); }

/* --- Footer --- */
.site-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,.78);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 { color: var(--c-white); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col a:hover { color: var(--c-white); }
.footer-brand .brand { color: var(--c-white); margin-bottom: 12px; }
.footer-brand .brand .brand-tld { color: rgba(255,255,255,.6); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; color: rgba(255,255,255,.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--c-white); }

/* --- Misc --- */
.divider { border: 0; border-top: 1px solid var(--c-border); margin: 40px 0; }
.text-muted { color: var(--c-text-muted); }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
