/* ===================================================
   MINDLAYER SOLUTIONS — Swiss International Style
   =================================================== */

/* --- Google Fonts: Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --primary:            #1e293b;   /* deep slate blue  */
  --primary-foreground: #fafafa;
  --background:         #ffffff;
  --foreground:         #111111;
  --secondary:          #f5f5f5;
  --secondary-foreground: #1e293b;
  --muted:              #f5f5f5;
  --muted-foreground:   #888888;
  --border:             #d9d9d9;
  --input:              #d9d9d9;
  --ring:               #1e293b;
  --destructive:        #dc2626;
  --radius:             0px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ===================================================
   NAVIGATION
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo .dot { color: var(--primary); }

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .main-nav { display: flex; } }

.main-nav a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding-bottom: 2px;
}
.main-nav a:hover { color: var(--foreground); }
.main-nav a.active {
  color: var(--foreground);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: flex; align-items: center; } }

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1.5rem;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.active { color: var(--foreground); }
.mobile-nav a:last-child { border-bottom: none; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  height: 48px;
  padding: 0 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border-radius: var(--radius);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: #2d3f57; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-secondary {
  background: white;
  color: var(--primary);
}
.btn-secondary:hover { background: #f0f0f0; }

.btn-sm {
  height: 36px;
  padding: 0 1rem;
  font-size: 0.7rem;
}

.btn-full { width: 100%; }
@media (min-width: 640px) { .btn-full { width: auto; } }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--secondary);
  margin-top: auto;
}
.footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  max-width: 280px;
  line-height: 1.6;
  margin-top: 0.75rem;
}
.footer-col h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a, .footer-col ul li {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--foreground); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-bottom p {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===================================================
   PAGE HEADER SECTIONS
   =================================================== */
.page-hero {
  width: 100%;
  padding: 5rem 0;
  background: rgba(245,245,245,0.4);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.page-hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 640px;
}

/* ===================================================
   HOME — HERO SECTION
   =================================================== */
.hero-section {
  width: 100%;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) { .hero-section { padding: 8rem 0; } }
@media (min-width: 1024px) { .hero-section { padding: 10rem 0; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--primary); }

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 400px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }

.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.18);
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  margin-left: auto;
}
.hero-image-wrap img:hover { filter: grayscale(0%); }
.hero-deco-1 {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  width: 6rem; height: 6rem;
  background: rgba(30,41,59,0.08);
  z-index: -1;
}
.hero-deco-2 {
  position: absolute;
  top: -1.5rem; right: -1.5rem;
  width: 6rem; height: 6rem;
  border: 1px solid rgba(30,41,59,0.15);
  z-index: -1;
}

/* ===================================================
   HOME — OVERVIEW SECTION
   =================================================== */
.overview-section {
  width: 100%;
  padding: 6rem 0;
  background: rgba(245,245,245,0.4);
  border-bottom: 1px solid var(--border);
}
.overview-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .overview-grid { grid-template-columns: 1fr 2fr; } }

.section-label h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-label .underline-bar {
  width: 5rem;
  height: 3px;
  background: var(--primary);
}

.overview-body > p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.three-cols {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .three-cols { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
}
.pillar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.pillar p { font-size: 0.85rem; color: var(--muted-foreground); }

/* ===================================================
   HOME — WHY WE EXIST
   =================================================== */
.why-section {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-grid h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.why-grid > div:first-child > p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.problem-list { display: flex; flex-direction: column; gap: 1rem; }
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.problem-icon {
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(30,41,59,0.08);
  padding: 4px;
}
.problem-icon svg { width: 1rem; height: 1rem; color: var(--primary); }
.problem-item span { font-size: 0.9rem; font-weight: 500; }

.blockquote-box {
  background: var(--secondary);
  padding: 3rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.blockquote-box blockquote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ===================================================
   HOME — WHO WE SERVE
   =================================================== */
.serve-section {
  width: 100%;
  padding: 6rem 0;
  background: var(--primary);
  color: white;
}
.serve-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .serve-grid { grid-template-columns: 1fr 1fr; } }

.serve-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: white;
}

.serve-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.serve-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1rem;
  background: rgba(255,255,255,0.05);
}
.serve-card svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.serve-card span { font-weight: 500; font-size: 0.9rem; }

.serve-right { text-align: left; }
@media (min-width: 1024px) { .serve-right { text-align: right; } }
.serve-right p {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===================================================
   CONSULTING PAGE
   =================================================== */
.services-section {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr; } }

.service-item { margin-bottom: 2rem; }
.service-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}
.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.2s;
}
.service-item:hover .service-title { color: var(--primary); }
.service-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  transition: border-color 0.2s;
}
.service-item:hover .service-desc { border-color: var(--primary); }

.sticky-panel { position: sticky; top: 6rem; }
.sticky-panel img {
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  filter: grayscale(100%);
}
.philosophy-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--primary);
  color: white;
}
.philosophy-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.philosophy-box p { font-size: 0.9rem; opacity: 0.9; font-style: italic; }

/* ===================================================
   CTA SECTION (shared)
   =================================================== */
.cta-section {
  width: 100%;
  padding: 6rem 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cta-section p {
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ===================================================
   PRODUCTS PAGE
   =================================================== */
.platform-section {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.platform-section.alt { background: rgba(245,245,245,0.3); }
.platform-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .platform-grid { grid-template-columns: 1fr 1fr; } }

.platform-image img {
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.platform-image img:hover { filter: grayscale(0%); }

.platform-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-bottom: 1rem;
}
.platform-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.platform-block { margin-bottom: 2rem; }
.platform-block h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.platform-block p { color: var(--muted-foreground); font-size: 0.95rem; }
.platform-block p.intro { color: var(--foreground); font-size: 0.95rem; margin-bottom: 0.75rem; }

.feature-list { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.feature-item svg {
  width: 1rem; height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* How We Build */
.how-section {
  width: 100%;
  padding: 6rem 0;
  background: var(--primary);
  color: white;
  text-align: center;
}
.how-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: white;
}
.how-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.how-card h3 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.how-card p { font-size: 0.85rem; opacity: 0.8; }

/* ===================================================
   ABOUT PAGE
   =================================================== */
.principles-section {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.principles-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .principles-grid { grid-template-columns: 1fr 1fr; } }

.principles-list { display: flex; flex-direction: column; gap: 2rem; }
.principle {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  padding-top: 2px;
}
.principle h3 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.principle p { color: var(--muted-foreground); font-size: 0.95rem; }

.not-box {
  background: var(--secondary);
  padding: 2.5rem;
  border: 1px solid var(--border);
  height: fit-content;
}
.not-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.not-list { display: flex; flex-direction: column; gap: 1.5rem; }
.not-item span.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--destructive);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}
.not-item span.desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.not-quote {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.not-quote p {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-section {
  width: 100%;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form-col h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  background: white;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: var(--radius);
  appearance: none;
}
input:focus, textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(30,41,59,0.12);
}
textarea { min-height: 150px; resize: vertical; }

.contact-info-col { padding-left: 0; }
@media (min-width: 1024px) { .contact-info-col { padding-left: 3rem; } }

.contact-info-block { margin-bottom: 2rem; }
.contact-info-block h3 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.contact-info-block p { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.7; }
.contact-quote {
  padding: 1.5rem;
  border: 1px solid rgba(30,41,59,0.15);
  background: rgba(30,41,59,0.04);
  margin-top: 1rem;
}
.contact-quote p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--foreground);
}

/* ===================================================
   404 PAGE
   =================================================== */
.not-found-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found-inner {
  max-width: 500px;
}
.not-found-inner h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
}
.not-found-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.not-found-inner p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.section-heading {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.text-primary { color: var(--primary); }
.text-muted   { color: var(--muted-foreground); }
.mt-auto { margin-top: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* SVG icon helper */
.icon { display: inline-block; vertical-align: middle; }

/* ===================================================
   RESPONSIVE HELPERS
   =================================================== */
.order-first { order: -1; }
@media (min-width: 1024px) {
  .lg-order-last { order: 1; }
  .lg-order-first { order: -1; }
}

/* Form success / error message */
.form-message {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}
.form-message.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-message.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }
