
/* WebRebuilder Core Baseline Utilities */
img, svg, video { max-width: 100%; height: auto; }
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }
.bg-primary-foreground { background-color: hsl(var(--primary-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.text-secondary { color: hsl(var(--secondary)); }
.bg-secondary-foreground { background-color: hsl(var(--secondary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.bg-accent { background-color: hsl(var(--accent)); }
.text-accent { color: hsl(var(--accent)); }
.bg-card { background-color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.bg-muted { background-color: hsl(var(--muted)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.border-border { border-color: hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }
.btn-primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground, 0 0% 100%)); }
.btn-secondary { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground, 0 0% 100%)); }
.btn-outline { border: 2px solid currentColor; background-color: transparent; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; }
section[class*="from-primary"], [class*="from-primary"] {
  background-color: hsl(var(--primary));
  color: #ffffff;
}
footer { background-color: #111827; color: #f8fafc; }

/* --- css/style.css --- */
/* ==========================================================================
   C.L.I.M.B. Solutions — Main Stylesheet
   University Spin-Off — University of Western Macedonia
   Editorial, Research-Grounded Design System
   ========================================================================== */

:root {
  /* Editorial Palette */
  --navy-900: #101f38;
  --navy-800: #14284a;
  --navy-700: #1d3a67;
  --navy-600: #294c7f;
  
  --ember: #e2792e;
  --ember-light: #f2a35f;
  --ember-dark: #cc6a24;
  
  --moss: #3f8c5a;
  --moss-light: #7db98c;
  --moss-dark: #2e6b43;
  
  --paper: #f6f4ee;
  --paper-dim: #ece8de;
  --paper-card: #fbf9f4;
  
  --ink: #161c26;
  --ink-soft: #495364;
  --ink-muted: #6b778c;
  
  --line: #dcd7c8;
  --line-strong: #c8c2b0;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Geometry */
  --max: 1180px;
  --radius: 2px;
  --radius-pill: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* ---------- Header & Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--navy-800);
}

.brand-text span {
  color: var(--ember);
}

nav.links {
  display: flex;
  gap: 32px;
}

nav.links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

nav.links a:hover,
nav.links a.active {
  color: var(--navy-800);
}

nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ember);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-800);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ember-dark);
}

.btn-ghost {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: transparent;
}

.btn-light:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 88px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf9f4 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow-line .dot {
  width: 7px;
  height: 7px;
  background: var(--moss);
  border-radius: 50%;
}

.eyebrow-line span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.6vw, 3.4rem);
  color: var(--navy-900);
  letter-spacing: -0.015em;
  font-weight: 700;
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ember);
  margin-top: 14px;
  font-weight: 500;
}

.hero p.lead {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.pillar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
}

.pillar-row span {
  font-size: 0.88rem;
  color: var(--navy-700);
  font-weight: 500;
}

.pillar-row span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 50%;
  margin-left: 18px;
  vertical-align: middle;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  margin: 0 auto;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

.peak {
  transform-origin: bottom center;
}

.climber {
  animation: rise 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

@keyframes rise {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.peak-a { animation: growUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.peak-b { animation: growUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both; }
.peak-c { animation: growUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both; }

@keyframes growUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ---------- Section Headings ---------- */
.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-head .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head .kicker .bar {
  width: 24px;
  height: 3px;
  background: var(--ember);
}

.section-head .kicker span {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  color: var(--navy-900);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------- About Section ---------- */
.about {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

.about-copy p + p {
  margin-top: 16px;
}

.highlight-box {
  background: var(--navy-800);
  color: var(--white);
  padding: 42px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 31, 56, 0.12);
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  background: var(--ember);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.92;
}

.highlight-box h3 {
  font-size: 1.4rem;
  max-width: 22ch;
  color: var(--white);
  line-height: 1.25;
}

.highlight-box p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  max-width: 36ch;
  line-height: 1.6;
}

.highlight-box .years {
  margin-top: 32px;
  display: flex;
  gap: 40px;
}

.years .num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--moss-light);
  font-weight: 600;
  line-height: 1;
}

.years .lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Services Section ---------- */
.services {
  padding: 100px 0;
  background: var(--paper-dim);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 38px 32px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  background: var(--white);
}

.service-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Projects Section ---------- */
.projects {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  background: var(--paper);
  padding: 42px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  transition: background 0.2s ease;
}

.project-card:hover {
  background: var(--white);
}

.project-id {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-id .program {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--moss);
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: uppercase;
}

.project-id h3 {
  font-size: 1.35rem;
  color: var(--navy-900);
}

.project-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 66ch;
  line-height: 1.68;
}

.project-body p + p {
  margin-top: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-700);
  background: rgba(63, 140, 90, 0.1);
  border: 1px solid rgba(63, 140, 90, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Experience / Founder Section ---------- */
.founder {
  padding: 100px 0;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.founder .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.founder .section-head .kicker span {
  color: rgba(255, 255, 255, 0.7);
}

.founder .section-head h2 {
  color: var(--white);
}

.founder-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 30px;
  border-radius: var(--radius);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--moss));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.founder-card h3 {
  font-size: 1.3rem;
  color: var(--white);
}

.founder-card .role {
  font-size: 0.88rem;
  color: var(--ember-light);
  margin-top: 6px;
  font-weight: 500;
}

.founder-card .affiliation {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  line-height: 1.4;
}

.founder-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.72;
}

.founder-copy p + p {
  margin-top: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  background: var(--navy-900);
  padding: 28px 22px;
}

.stat .num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--ember-light);
  font-weight: 600;
  line-height: 1;
}

.stat .lbl {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
}

.expertise-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expertise-tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Why Section ---------- */
.why {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-card {
  border-top: 2px solid var(--navy-800);
  padding-top: 24px;
}

.why-card:nth-child(2) { border-top-color: var(--ember); }
.why-card:nth-child(3) { border-top-color: var(--moss); }
.why-card:nth-child(4) { border-top-color: var(--navy-700); }

.why-card .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: 110px 0;
  background: var(--navy-800);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact .wrap {
  position: relative;
  z-index: 2;
}

.contact h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  max-width: 18ch;
  margin: 0 auto;
  color: var(--white);
}

.contact p.sub {
  max-width: 54ch;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact .btn {
  margin-top: 36px;
}

.contact-info {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-info a {
  color: rgba(255, 255, 255, 0.88);
}

.contact-info a:hover {
  color: var(--ember-light);
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 44px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer-brand .txt {
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-brand .txt strong {
  color: var(--white);
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

footer .flinks {
  display: flex;
  gap: 24px;
  font-size: 0.86rem;
}

footer .flinks a:hover {
  color: var(--white);
}

/* ---------- Reveal on Scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .founder .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
  
  .nav-inner {
    padding: 16px 24px;
  }

  nav.links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  nav.links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    gap: 36px;
  }

  .hero-art {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 20px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
    gap: 14px;
  }

  footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}