/* WinterMute Consulting — refreshed shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-900: #030812;
  --navy-800: #070f1f;
  --navy-700: #0d1c35;
  --cyan: #54d8ff;
  --cyan-soft: rgba(84,216,255,0.15);
  --mint: #8ef5ff;
  --sand-50: #fdf8f0;
  --sand-100: #f6efe4;
  --sand-300: #e2d6c3;
  --sand-500: #c8a84b;
  --charcoal: #1f2a3d;
  --ink: #101828;
  --text-light: #f4fbff;
  --text-muted: #8ea6c4;
  --text-warm: #4f3c23;
  --text-warm-muted: #7a6a53;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-dark: 0 30px 90px rgba(4,12,32,0.55);
  --shadow-day: 0 24px 60px rgba(30,24,14,0.25);
}

html { font-size: 16px; }
body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  background: #060b16;
  color: var(--text-light);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout wrappers ── */
.page-night { background: radial-gradient(circle at top, #0e1c34, #040811); color: var(--text-light); min-height: 100vh; }
.page-day { background: var(--sand-50); color: var(--ink); min-height: 100vh; }
.container { width: min(1200px, 92vw); margin: 0 auto; padding: 72px 0; }
@media (max-width: 900px) { .container { padding: 56px 0; } }
@media (max-width: 600px) { .container { padding: 48px 0; } }

/* ── Hero banners ── */
.hero {
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 96px clamp(24px,4vw,64px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35), transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 50%);
}
.hero__content { flex: 1; position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 600;
}
.hero__title { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.1; margin-bottom: 18px; font-weight: 600; }
.hero__role { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.hero__lede { font-size: 1.05rem; max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { flex: 0 0 280px; position: relative; z-index: 1; }
.hero__photo-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 32px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow-dark);
}
.hero__photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.hero--night {
  background: linear-gradient(135deg, #051026, #0f1e3b 45%, #102747 80%);
  color: var(--text-light);
  box-shadow: var(--shadow-dark);
}
.hero--night .hero__eyebrow { color: var(--cyan); }
.hero--night .hero__role { color: var(--mint); }
.hero--night .hero__lede { color: #c5def7; }

.hero--day {
  background: linear-gradient(135deg, #f9f1e8, #f4e4cc 60%, #ecd1ad 100%);
  color: var(--ink);
  box-shadow: var(--shadow-day);
}
.hero--day .hero__eyebrow { color: var(--sand-500); }
.hero--day .hero__role { color: var(--sand-500); }
.hero--day .hero__lede { color: var(--text-warm-muted); }
.hero--day .hero__photo-wrapper { border-color: rgba(32,22,8,0.2); box-shadow: 0 30px 70px rgba(122,100,70,0.35); }

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; gap: 36px; }
  .hero__content { order: 2; }
  .hero__media { order: 1; }
  .hero__cta { justify-content: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
}

/* ── Buttons ── */
.button {
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--night-primary { background: var(--cyan); color: var(--navy-900); box-shadow: 0 12px 30px rgba(84,216,255,0.35); }
.button--night-outline { border-color: rgba(255,255,255,0.35); color: #dbeeff; }
.button--day-primary { background: var(--charcoal); color: white; box-shadow: 0 12px 30px rgba(15,18,25,0.35); }
.button--day-outline { border-color: rgba(31,42,61,0.4); color: var(--charcoal); }

/* ── Section headers ── */
.section-heading {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.section-heading--night { color: var(--cyan); }
.section-heading--day { color: var(--sand-500); }
.section-title { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 24px; }
.section-body { font-size: 1rem; margin-bottom: 36px; color: var(--text-muted); }
.section-body--day { color: var(--text-warm-muted); }

/* ── Grids & cards ── */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card-night {
  background: rgba(10,18,36,0.85);
  border: 1px solid rgba(143,196,255,0.2);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(2,8,24,0.6);
}
.card-day {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(31,42,61,0.08);
  box-shadow: 0 14px 40px rgba(27,24,17,0.12);
}
.card-night h3, .card-day h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card-night p { color: var(--text-muted); font-size: 0.95rem; }
.card-day p { color: var(--text-warm-muted); font-size: 0.95rem; }

/* ── Stat tiles ── */
.stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
}

/* ── Product rail ── */
.product-rail-section {
  background: linear-gradient(145deg, #050a16, #0f2142);
  padding: 72px 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.product-rail-shell { position: relative; }
.rail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.rail-button {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.4);
  color: var(--blue);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.rail-button:hover { background: rgba(0,212,255,0.18); transform: translateY(-1px); }
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 999px; }
.rail-card {
  flex: 0 0 260px;
  background: rgba(14,24,46,0.85);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 24px;
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.rail-card__icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  text-align: center;
}
.rail-card__icon span {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: white;
}
.rail-card__icon--dynamics { background: linear-gradient(135deg, #00b5f1, #004a8f); }
.rail-card__icon--powerbi { background: linear-gradient(135deg, #f4d03f, #c48f08); }
.rail-card__icon--teams { background: linear-gradient(135deg, #5d68ff, #2c3794); }
.rail-card__icon--sharepoint { background: linear-gradient(135deg, #30ae8b, #116e80); }
.rail-card__icon--azure { background: linear-gradient(135deg, #28a1ff, #0057b7); }
.rail-card__icon--copilot { background: linear-gradient(135deg, #5be1ff, #4867d6); }
.rail-card__icon--m365 { background: linear-gradient(135deg, #ff8f57, #d43a15); }
.rail-card__icon--powerapps { background: linear-gradient(135deg, #b356d2, #6b1a87); }
.rail-card__icon--automate { background: linear-gradient(135deg, #5cc0ff, #156595); }
.rail-card__icon--fabric { background: linear-gradient(135deg, #f9c8ff, #a164f5); font-weight: 700; font-size: 1rem; letter-spacing: 0.2em; color: white; }
.rail-card__text h4 { color: var(--blue); margin-bottom: 6px; }
.rail-card__text p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Map section ── */
.map-section {
  background: linear-gradient(145deg, #faf6ed, #f0e0c9);
  padding: 72px 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.map-shell {
  background: white;
  border-radius: 28px;
  border: 1px solid rgba(26,43,74,0.08);
  box-shadow: 0 30px 80px rgba(26,43,74,0.15);
  padding: 32px;
}
.map-canvas {
  position: relative;
  width: 100%;
  padding-top: 55%;
  background-image: url('/assets/world-map.svg');
  background-size: cover;
  background-position: center;
  filter: hue-rotate(-10deg) saturate(0.6) contrast(1.05);
  border-radius: 22px;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cd-gold);
  border: 3px solid white;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.map-pin[data-color="teal"] { background: #4bb7af; }
.map-pin[data-color="rose"] { background: #e06c88; }
.map-pin:focus-visible { outline: 2px solid var(--cd-navy); outline-offset: 3px; }
.map-details {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-warm-muted);
  min-height: 60px;
}
.map-details strong { color: var(--cd-navy); }
.stat-tile {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(7,14,30,0.7);
}
.stat-tile h4 { font-size: 2rem; margin-bottom: 6px; }
.stat-tile p { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); }
.stat-tile--day { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
.stat-tile--day p { color: var(--text-warm-muted); }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 24px; }
.timeline-entry {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,14,30,0.8);
}
.timeline-entry h4 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-entry .meta { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; color: var(--cyan); }
.timeline-entry p { color: var(--text-muted); font-size: 0.95rem; }
.timeline-entry--day { background: white; border-color: rgba(31,42,61,0.1); }
.timeline-entry--day .meta { color: var(--sand-500); }
.timeline-entry--day p { color: var(--text-warm-muted); }

/* ── Tags ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--night { background: rgba(84,216,255,0.15); color: var(--mint); border: 1px solid rgba(84,216,255,0.4); }
.tag--day { background: rgba(200,168,75,0.18); color: #6a4d12; border: 1px solid rgba(200,168,75,0.5); }

/* ── Home split layout ── */
.home-panels { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); min-height: 100vh; }
@media (max-width: 900px) { .home-panels { grid-template-columns: 1fr; } }
.home-panel { padding: clamp(48px, 6vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.home-panel-night { background: linear-gradient(140deg, #050b16, #122449 60%, #0b2042 100%); color: var(--text-light); }
.home-panel-day { background: linear-gradient(140deg, #fcf5eb, #f1e0c9 60%, #e4c9a2 100%); color: var(--ink); }
.home-panel img { width: 120px; height: 120px; border-radius: 22px; border: 3px solid rgba(255,255,255,0.25); object-fit: cover; box-shadow: var(--shadow-dark); }
.home-panel-day img { border-color: rgba(0,0,0,0.08); box-shadow: 0 20px 50px rgba(58,36,8,0.35); }

/* ── π easter egg ── */
.pi-egg { display: block; text-align: center; padding: 18px; font-size: 11px; opacity: 0.15; color: inherit; text-decoration: none; }
.pi-egg:hover { opacity: 0.4; }

/* ── Home cards adjustments ── */
.home-card { border-radius: var(--radius-md); padding: 18px 22px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.15); }
.home-panel-day .home-card { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.05); }
.home-card h3 { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px; }
.home-card p { font-size: 0.95rem; color: inherit; opacity: 0.85; }

/* ── Responsiveness for grids inside cards ── */
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}

/* ── Logo text treatments ── */
.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 3px 6px rgba(1,7,18,0.45);
}
.logo-text--winter {
  color: #f4fbff;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 26px rgba(2,6,20,0.55);
}
.logo-text--winter .logo-accent { color: #54d8ff; font-weight: 500; letter-spacing: 0.22em; }

/* ── Misc ── */
.section-divider { height: 1px; width: 100%; border: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); margin: 0; }
.section-divider--day { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent); }
