/* ==========================================================================
   Tamma Technologies — site styles
   Dependency-free. System font stack (zero network requests = fast).
   Palette: deep navy + cyan. Modern, clean, credible.
   ========================================================================== */

:root {
  --navy:        #0E2A47;
  --navy-700:    #0A1F36;
  --navy-900:    #071424;
  --cyan:        #06B6D4;
  --cyan-600:    #0891B2;
  --ink:         #0B1622;
  --body:        #36475a;
  --muted:       #6b7c8f;
  --surface:     #f4f8fb;
  --surface-2:   #eaf1f7;
  --line:        #e2e9f0;
  --white:       #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(14, 42, 71, .18);
  --shadow-lg: 0 24px 60px -20px rgba(14, 42, 71, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

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

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #cfdcea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-600); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--cyan); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.measure { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.btn-primary { background: var(--cyan); color: #042634; }
.btn-primary:hover { background: var(--cyan-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(6,182,212,.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-600); transform: translateY(-2px); }
.section--navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--navy .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 20, 36, .82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.nav__logo img { height: 72px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { color: #d4e0ed; font-weight: 600; font-size: .97rem; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: #fff;
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #cfdcea;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(6,182,212,.20), transparent 60%),
    radial-gradient(800px 420px at 8% 110%, rgba(6,182,212,.10), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 60% at 70% 0%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--cyan); }
.hero p { font-size: 1.22rem; color: #c4d3e3; max-width: 660px; }
.hero .btn-row { margin-top: 30px; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats .stat { background: var(--white); padding: 26px 22px; text-align: center; }
.stats .stat b { display: block; font-size: 1.5rem; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.stats .stat span { font-size: .92rem; color: var(--muted); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cfe7ef; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--body); margin-bottom: 0; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(14,42,71,.08));
  color: var(--cyan-600);
}
.card .icon svg { width: 26px; height: 26px; }
.card .tag { font-size: .8rem; font-weight: 700; color: var(--cyan-600); letter-spacing: .04em; }

/* service detail block */
.svc { border-top: 1px solid var(--line); padding: 48px 0; }
.svc:first-of-type { border-top: 0; }
.svc__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.svc__num { font-size: .9rem; font-weight: 800; color: var(--cyan-600); }
.svc .promise { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.chiplist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.chiplist li {
  font-size: .88rem; color: var(--navy); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  background: var(--cyan); color: #042634; font-weight: 800;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .96rem; margin-bottom: 0; }

/* feature list with ticks */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(6,182,212,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230891B2' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.15rem; color: #c4d3e3; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-aside .card { box-shadow: none; }
.contact-aside dt { font-weight: 700; color: var(--ink); margin-top: 16px; font-size: .9rem; }
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 2px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb1c4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer img { height: 64px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #9fb1c4; font-weight: 500; }
.site-footer a:hover { color: var(--cyan); }
.footer-blurb { max-width: 320px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px;
                 display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* ---------- helpers ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.note { font-size: .85rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav__links {
    position: fixed; inset: 100px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy-900); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-130%); transition: transform .25s ease; align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { border-top: 1px solid rgba(255,255,255,.07); }
  .nav__links a { display: block; padding: 14px 24px; }
  .nav__cta { margin: 12px 24px; }
  .nav__toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}



/* ===== FAQ accordion ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
               margin-bottom: 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--ink);
               display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan-600); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0; padding: 0 24px 22px; color: var(--body); }

/* ===== insights / posts ===== */
.post-card { display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: .4em; }
.post-card .post-meta { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.post-card.soon { opacity: .65; }
article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin-top: 1.7em; font-size: 1.5rem; }
article.post p { font-size: 1.06rem; }
.post-meta-top { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.backlink { display: inline-block; margin-bottom: 20px; font-weight: 600; }

/* ===== testimonials ===== */
.testi-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.testi-grid .quote-card { flex: 1 1 320px; max-width: 360px; }

.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote-author { margin: 0 0 18px; }
.quote-author b { display: block; color: var(--ink); font-size: 1.05rem; }
.quote-author span { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; line-height: 1.4; }
.quote-card blockquote { margin: 0; font-size: 1.06rem; color: var(--ink); line-height: 1.6; }
.quote-card blockquote::before { content: "\201C"; color: var(--cyan); font-size: 2.4rem;
  line-height: 0; vertical-align: -0.45em; margin-right: 4px; font-weight: 800; }

/* ===== article byline + body lists ===== */
.post-byline { color: var(--muted); font-size: .95rem; margin: -4px 0 26px; }
article.post ul { margin: 0 0 1.2em; padding-left: 1.25em; list-style: disc; }
article.post ul li { margin-bottom: .45em; }
article.post h3 { margin-top: 1.5em; font-size: 1.15rem; }

/* ===== article hero image ===== */
article.post .post-hero { width: 100%; height: auto; display: block; margin: 4px 0 38px;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }


/* ===== cookie consent banner ===== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--body); flex: 1 1 320px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner .btn { padding: 11px 20px; font-size: .9rem; }
@media (max-width: 520px){ .cookie-banner .cookie-actions { width: 100%; } .cookie-banner .btn { flex: 1; } }


/* ===== founder block (About) ===== */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.founder__photo img { width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.founder__title { color: var(--cyan-600); font-weight: 700; margin: -6px 0 18px; }
.founder__bio .btn { margin-top: 12px; }
@media (max-width: 720px){ .founder { grid-template-columns: 1fr; gap: 28px; } .founder__photo { max-width: 260px; } }



/* ===== homepage founder intro ===== */
.founder-intro { display: flex; align-items: center; gap: 24px; max-width: 760px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.founder-intro img { width: 88px; height: 88px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); }
.founder-intro p { margin: 0; color: var(--body); }
.founder-intro .who { font-weight: 800; color: var(--ink); }
@media (max-width: 560px){ .founder-intro { flex-direction: column; text-align: center; } }

/* ===== insights category filter ===== */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar button { cursor: pointer; font: inherit; font-weight: 700; font-size: .9rem; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; transition: all .15s ease; }
.filter-bar button:hover { border-color: var(--cyan); }
.filter-bar button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== email signup (newsletter / lead capture) ===== */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; margin: 22px auto 0; }
.signup input[type=email]{ flex: 1 1 240px; font: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.signup input[type=email]:focus{ outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.signup .btn { flex: 0 0 auto; }
.signup-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ===== checklist (lead magnet deliverable) ===== */
.checklist { list-style: none; padding: 0; margin: 0 0 1.8em; }
.checklist li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--body); }
.checklist input { margin-top: 4px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--cyan-600); }
@media print { .site-header, .site-footer, .no-print { display: none !important; } article.post { max-width: 100%; } }

/* ===== reference architecture diagram ===== */
.ref-arch { width: 100%; max-width: 1100px; height: auto; margin: 0 auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== related reading list ===== */
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related-list a { font-weight: 700; }

/* ===== case studies ===== */
.case { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); padding: 32px; margin-bottom: 28px; }
.case__tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan-600); margin-bottom: 8px; }
.case h2 { margin: 0 0 20px; font-size: 1.4rem; }
.case__body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; }
.case__body h4 { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.case__body p { margin: 0; color: var(--body); }
.case__body ul { margin: 0; padding-left: 1.15em; color: var(--body); }
.case__body ul li { margin-bottom: 5px; }
.case__metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.case__metrics span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; color: var(--navy); font-size: .9rem; }
@media (max-width: 680px){ .case__body { grid-template-columns: 1fr; } }

/* ===== about: hobbies image ===== */
.hobbies-img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }

/* ===== CV / resume page ===== */
.cv-job { margin-top: 1.6em; }
.cv-job h3 { margin-bottom: 2px; }
.cv-job .cv-meta { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.cv-contact { color: var(--muted); font-size: .95rem; margin-top: 4px; }
