/* ============================================================
   CONSULTING SITE — CORE STYLES
   Warm light theme aligned with MUTAKEON Labs brand
   ============================================================ */

/* --- CSS Custom Properties --------------------------------- */
:root {
  --bg-primary:    #faf8f5;   /* warm off-white */
  --bg-secondary:  #f2eeea;   /* warm light sand */
  --bg-card:       #ffffff;
  --bg-card-hover: #fdfcfa;
  --bg-accent:     #f0ebe5;

  --text-primary:   #1a2332;   /* deep navy */
  --text-secondary: #4a5568;   /* warm slate */
  --text-muted:     #7a8599;

  --accent:         #1e6b5a;   /* deep teal — echoes logo's teal */
  --accent-light:   #238071;
  --accent-glow:    rgba(30,107,90,.08);
  --accent-border:  rgba(30,107,90,.20);

  --teal:           #c4502a;   /* warm terracotta — echoes logo's red-orange */
  --teal-glow:      rgba(196,80,42,.07);

  --border:         rgba(26,35,50,.08);
  --border-light:   rgba(26,35,50,.12);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 4px 24px rgba(26,35,50,.08);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1200px;
  --section-py: clamp(80px, 10vw, 140px);
}

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color .2s; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* Light-mode link defaults */
a { color: var(--accent); }
a:hover { color: var(--teal); }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { max-width: 680px; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 620px;
}

/* --- Layout Utilities -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-secondary);
}

.text-center { text-align: center; }

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(30,107,90,.25);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,107,90,.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.nav.scrolled {
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  padding: 10px 24px;
  font-size: .85rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta.desktop-only { display: none; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(250,248,245,.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .25;
}

.hero__gradient--1 {
  top: -200px; right: -100px;
  background: var(--accent);
  opacity: .08;
}

.hero__gradient--2 {
  bottom: -300px; left: -200px;
  background: var(--teal);
  opacity: .06;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,35,50,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,35,50,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero__stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .hero__stats { gap: 28px; flex-wrap: wrap; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text p {
  margin-bottom: 20px;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__highlight {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .3s, transform .3s;
}

.about__highlight:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

.about__highlight-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.about__highlight h4 {
  font-size: .95rem;
  margin-bottom: 4px;
}

.about__highlight p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #d4a04a);
  opacity: 0;
  transition: opacity .35s;
}

.cap-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cap-card:hover::before { opacity: 1; }

.cap-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.cap-card h3 { margin-bottom: 12px; }

.cap-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cap-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cap-card__tag {
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--bg-accent);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all .3s;
}

.industry-item:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.industry-item__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.industry-item h4 {
  font-size: .9rem;
  font-weight: 600;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .3s;
}

.service-item:hover {
  border-color: var(--accent-border);
}

.service-item__marker {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.service-item h4 {
  font-size: .95rem;
  margin-bottom: 6px;
}

.service-item p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-category {
  margin-bottom: 32px;
}

.tech-category__label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--accent-glow);
  border-radius: 50px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 500;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all .25s;
}

.tech-pill:hover {
  border-color: var(--accent-border);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* ============================================================
   DELIVERY PRINCIPLES
   ============================================================ */
.principle-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .3s;
}

.principle-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.principle-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.principle-card h4 {
  font-size: .95rem;
  margin-bottom: 6px;
}

.principle-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .35s;
}

.case-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.case-card__industry {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--teal-glow);
  border-radius: 50px;
}

.case-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.case-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.case-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-card__tech span {
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--bg-accent);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  text-align: center;
}

.contact-card {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #d4a04a);
}

.contact-card p {
  margin: 0 auto 32px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: border-color .25s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: center;
  margin-top: 8px;
}

.contact-email {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-muted);
}

.footer__logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text-primary); }

/* ============================================================
   ANIMATIONS (scroll-reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .40s; }
.stagger > .reveal:nth-child(7) { transition-delay: .48s; }
.stagger > .reveal:nth-child(8) { transition-delay: .56s; }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Divider ornament */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #d4a04a);
  border-radius: 2px;
  margin: 24px 0 0;
}

.text-center .divider { margin-left: auto; margin-right: auto; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
