/* DigiPhyte consultancy site. Hand-built static, faithful to the live site. Brand tokens first. */

:root {
  --deep:        #0b2b2c;   /* page background, deep teal-black */
  --deep-2:      #0c3233;   /* alternate section */
  --panel:       #103e3f;   /* cards / raised surfaces */
  --teal:        #2da0a0;
  --teal-bright: #46c5c5;
  --lime:        #9ec031;
  --lime-bright: #b3d133;
  --lime-pale:   #e5f993;   /* highlight copy */
  --cyan-pale:   #bbf9f7;   /* section labels */
  --ink:         #06211f;   /* text on lime surfaces */
  --text:        #eaf3f1;
  --text-muted:  #cfe3e0;
  --white:       #fcffff;

  --border:        rgba(187, 249, 247, 0.14);
  --border-strong: rgba(158, 192, 49, 0.55);

  --radius:    16px;
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.7);

  --maxw: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sym: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols2", "Noto Sans Symbols", var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--deep);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-bright); text-decoration: none; }
a:hover { color: var(--lime-bright); }
h1, h2, h3 { line-height: 1.15; font-weight: 800; color: var(--white); }

:focus-visible { outline: 3px solid var(--lime-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--deep-2); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--lime-bright); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--ink); }

.arr { font-family: var(--sym); font-weight: 400; }

/* section label, e.g. "What we do ↦" */
.label {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600;
  margin-bottom: 1.1rem;
}
.label--cyan { color: var(--cyan-pale); }
.label--lime { color: var(--lime-pale); }

/* coloured-word statement under "What we do" */
.statement {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.01em; max-width: 16ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.c-white { color: var(--white); }
.c-lime  { color: var(--lime-pale); }
.c-cyan  { color: var(--cyan-pale); }

/* ---------- buttons (outline pills, matching the live site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary { background: transparent; color: var(--lime-pale); border-color: var(--lime); }
.btn--primary:hover { background: var(--lime-bright); color: var(--ink); border-color: var(--lime-bright); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); color: var(--lime-pale); border-color: var(--lime-bright); transform: translateY(-2px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-row--center { justify-content: center; }
.center-cta { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- header (logo only) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 43, 44, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { padding-block: 0.85rem; }
.brand { display: inline-flex; }
.brand img { height: 34px; width: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #061a1b url("/assets/hero/hero.webp") center bottom / cover no-repeat;
  background-attachment: fixed;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,26,27,0.6) 0%, rgba(6,26,27,0.2) 45%, rgba(6,26,27,0.55) 100%);
}
@media (max-width: 768px) { .hero { background-attachment: scroll; } }
.hero-inner {
  position: relative; z-index: 1;
  min-height: 88vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}
.hero-logo { width: clamp(170px, 22vw, 230px); height: auto; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem); color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 6px 30px rgba(0,0,0,0.65); margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.hero .cta-row { justify-content: center; }

/* ---------- what we do: 4 boxes ---------- */
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.box {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.box:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.box-ico { width: 64px; height: 64px; margin-bottom: 1.1rem; }
.box h3 { font-size: 1.3rem; color: var(--lime-pale); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.box p { color: var(--white); font-size: 1rem; }
.box p + p { margin-top: 0.7rem; }

/* ---------- how we work ---------- */
.hww { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hww-lead { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--white); font-weight: 400; margin-bottom: 0.6rem; }
.steps-list { list-style: none; padding: 0; }
.steps-list li {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.5;
  display: flex; align-items: baseline; gap: 0.5rem;
}
.steps-list .arr { color: var(--white); font-weight: 400; }

.hww-figs { position: relative; height: clamp(300px, 42vw, 420px); }
.hww-figs img {
  position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 100%;
  opacity: 0; animation: figcycle 35s infinite;
}
.hww-figs img:nth-child(1) { animation-delay: 0s; }
.hww-figs img:nth-child(2) { animation-delay: -7s; }
.hww-figs img:nth-child(3) { animation-delay: -14s; }
.hww-figs img:nth-child(4) { animation-delay: -21s; }
.hww-figs img:nth-child(5) { animation-delay: -28s; }
@keyframes figcycle {
  0% { opacity: 0; } 2% { opacity: 1; } 18% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hww-figs img { animation: none; opacity: 0; }
  .hww-figs img:first-child { opacity: 1; }
}

/* ---------- building blocks ---------- */
.bb-intro { color: var(--teal); font-size: 1.1rem; max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.block {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.block:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.block-img { aspect-ratio: 16 / 7; overflow: hidden; }
.block-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.block:hover .block-img img { transform: scale(1.05); }
.block-body { padding: clamp(1.3rem, 2.5vw, 1.8rem); }
.block-body h3 { font-size: 1.25rem; color: var(--lime-pale); margin-bottom: 0.55rem; }
.block-body p { color: var(--white); font-size: 1rem; }

/* ---------- our own products (ventures) ---------- */
.ventures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.venture {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.venture:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.venture-status {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1rem;
  border: 1px solid var(--border); color: var(--cyan-pale);
}
.venture-status--live { color: var(--ink); background: var(--lime-bright); border-color: var(--lime-bright); }
.venture h3 { font-size: 1.3rem; color: var(--lime-pale); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.venture p { color: var(--white); font-size: 1rem; }
.venture-link { margin-top: auto; padding-top: 1.1rem; font-weight: 700; color: var(--teal-bright); display: inline-flex; align-items: baseline; gap: 0.4rem; }
.venture-link:hover { color: var(--lime-bright); }
.venture-link .arr { font-weight: 400; }

/* ---------- clients ---------- */
.clients-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.clients-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; list-style: none; padding: 0; }
.clients-row li {
  background: #f3f5f4; border-radius: 12px; min-height: 84px;
  display: flex; align-items: center; justify-content: center; padding: 1.1rem 1rem;
}
.clients-row img {
  height: 34px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.85;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.clients-row li:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* ---------- contact ---------- */
.contact .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .label { justify-content: center; }
.contact-points { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; margin-top: 2rem; }
.contact-point { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; }
.contact-point .ico { width: 22px; height: 22px; color: var(--lime-pale); flex: none; }
.contact-point a { color: var(--white); font-weight: 600; }
.contact-point a:hover { color: var(--lime-pale); }

/* ---------- footer (logo only) ---------- */
.site-footer { background: #082021; border-top: 1px solid var(--border); padding-block: 2.4rem; }
.site-footer .wrap { display: flex; justify-content: center; }
.site-footer img { height: 46px; width: auto; opacity: 0.92; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hww { grid-template-columns: 1fr; }
  .hww-figs { order: -1; }
}
@media (max-width: 860px) {
  .ventures { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .boxes { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .clients-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .clients-row { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
}

/* ---------- header nav ---------- */
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.main-nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.main-nav a { color: var(--text-muted); font-weight: 600; font-size: 0.98rem; }
.main-nav a:hover { color: var(--lime-pale); }
@media (max-width: 640px) { .main-nav { display: none; } }

/* ---------- hero subline ---------- */
.hero-sub {
  color: var(--text); font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 46ch; margin: 0 auto clamp(1.8rem, 4vw, 2.4rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- proof ---------- */
.proof-card {
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); max-width: 760px;
}
.proof-card .venture-status { display: inline-block; }
.proof-card h3 { font-size: 1.5rem; color: var(--lime-pale); font-weight: 700; margin-bottom: 0.7rem; }
.proof-card p { color: var(--white); }
.proof-card .venture-link { margin-top: 1.1rem; }
.proof-clients-intro { color: var(--teal); font-size: 1rem; margin: clamp(2.4rem, 5vw, 3.4rem) 0 1.2rem; }

/* product status variants */
.venture-status--proof { color: var(--ink); background: var(--teal-bright); border-color: var(--teal-bright); }
.venture-status--free  { color: var(--ink); background: var(--lime-pale); border-color: var(--lime-pale); }

/* ---------- footer nav ---------- */
.site-footer-inner { flex-direction: column; gap: 1.1rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--lime-pale); }
