﻿/* ============================================================
   CEROMIX — Inspired by Schunk Group Design System
   Design Tokens & Global Styles
   ============================================================ */

:root {
  --navy: #042452;
  --navy-light: #0a3a7a;
  --navy-dark: #021a38;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --text: #042452;
  --font: "Titillium Web", "Source Sans 3", Arial, sans-serif;
  --wrap: 1.5rem;
  --header-h: 6rem;
  --max: 1440px;
  --radius: 0;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1020px) { :root { --wrap: 7rem; --header-h: 6.25rem; } }
@media (min-width: 1350px) { :root { --wrap: 10.25rem; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  scroll-behavior: smooth;
}

@media (min-width: 767px) { html { font-size: 14px; } }
@media (min-width: 1420px) { html { font-size: 16px; } }
@media (min-width: 1800px) { html { font-size: 20px; } }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-400) var(--white);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; border-style: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { font-weight: 400; line-height: 1.2; }
h1 { font-size: 3.6rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; }

.section-tag {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.4rem;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

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

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

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

.btn-arrow::after {
  content: "→";
  font-size: 1.6rem;
  transition: transform var(--transition);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 var(--wrap);
  transition: background var(--transition);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-logo svg {
  width: 3.2rem;
  height: 3.2rem;
}

.header-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

.header-logo-sub {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header-pill {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 400;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  transition: background var(--transition);
}
.header-pill:hover { background: rgba(255,255,255,0.22); }
.header-pill strong { font-weight: 700; }

.header-lang {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
}
.header-lang .active {
  color: var(--white);
  font-weight: 700;
}
.header-lang a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.header-lang a:hover { color: var(--white); }

.header-search {
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color var(--transition);
}
.header-search:hover { color: var(--white); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.8rem;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- FULLSCREEN NAV ---- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 4rem) var(--wrap) 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  overflow-y: auto;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.6rem;
}

.nav-col a {
  display: block;
  font-size: 1.6rem;
  color: var(--white);
  padding: 0.5rem 0;
  transition: opacity var(--transition);
}
.nav-col a:hover { opacity: 0.7; }

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) var(--wrap) 6rem;
  color: var(--white);
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1.15;
  max-width: 80rem;
  margin-bottom: 3rem;
}

.hero-title strong {
  font-weight: 700;
}

.hero-btns {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* ---- SECTIONS ---- */
.section {
  padding: 8rem var(--wrap);
}

.section-gray {
  background: var(--gray-50);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ---- KPI / STATS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stat-label {
  font-size: 1.3rem;
  color: var(--gray-500);
  font-weight: 300;
}

/* ---- INDUSTRY CARDS ---- */
.industry-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.industry-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border-right: 1px solid var(--white);
}
.industry-card:last-child { border-right: none; }

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,36,82,0.85) 0%, rgba(4,36,82,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.4rem;
  color: var(--white);
}

.industry-card-tag {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.industry-card-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.6rem;
}

.industry-card-link {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.industry-card:hover .industry-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ---- TWO COLUMN ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.two-col-image {
  width: 100%;
  height: 100%;
  min-height: 40rem;
  object-fit: cover;
}

.two-col-content {
  padding: 2rem 0;
}

.two-col-content .section-tag {
  margin-bottom: 1rem;
}

.two-col-content h2 {
  margin-bottom: 2rem;
}

.two-col-content p {
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 2.4rem;
  color: var(--gray-600);
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  overflow: hidden;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: 2.4rem 0;
}

.card-tag {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1.4rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-top: 1.2rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 1rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 5rem var(--wrap);
}

.cta-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.cta-banner p {
  font-size: 1.4rem;
  opacity: 0.7;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 6rem var(--wrap) 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .header-logo-text {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.footer-desc {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-top: 1.6rem;
  color: rgba(255,255,255,0.4);
}

.footer-contact {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1.6rem;
  color: rgba(255,255,255,0.4);
}
.footer-contact strong {
  display: block;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.6rem;
}

.footer-col a {
  display: block;
  font-size: 1.3rem;
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-top: 2.4rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.25);
}

.footer-legal {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255,255,255,0.25);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- PAGE HERO (Subpages) ---- */
.page-hero {
  position: relative;
  padding-top: var(--header-h);
  min-height: 40rem;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--wrap);
  color: var(--white);
}

.page-hero h1 {
  font-size: 3.6rem;
  font-weight: 300;
  max-width: 70rem;
}

.page-hero p {
  font-size: 1.6rem;
  margin-top: 1.6rem;
  opacity: 0.8;
  max-width: 55rem;
}

/* ---- CONTENT BLOCKS ---- */
.content-block {
  padding: 6rem var(--wrap);
}

.content-block-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.content-block h2 {
  margin-bottom: 1.6rem;
}

.content-block p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 70rem;
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1020px) {
  .nav-overlay-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .industry-slider { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.8rem; }
}

@media (max-width: 640px) {
  .header-actions .header-pill { display: none; }
  .nav-overlay-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }
  .industry-slider { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; }
  .page-hero h1 { font-size: 2.4rem; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .section { padding: 5rem var(--wrap); }
}

