/* ===== Design tokens ===== */
:root {
  --brand-red: oklch(0.594 0.234 27.7);
  --background: oklch(0.945 0 0);
  --foreground: oklch(0.305 0.022 248);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.305 0.022 248);
  --primary: oklch(0.594 0.234 27.7);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.305 0.022 248);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.93 0 0);
  --muted-foreground: oklch(0.5 0.01 247);
  --border: oklch(0.88 0 0);
  --input: oklch(0.88 0 0);
  --ring: oklch(0.594 0.234 27.7);
  --radius: 0.625rem;
  --font-heading: "Orbitron", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --brand-red: oklch(0.637 0.237 27.7);
  --background: oklch(0.17 0.01 248);
  --foreground: oklch(0.96 0 0);
  --card: oklch(0.225 0.013 248);
  --card-foreground: oklch(0.96 0 0);
  --primary: oklch(0.637 0.237 27.7);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.28 0.018 248);
  --secondary-foreground: oklch(0.96 0 0);
  --muted: oklch(0.26 0.012 248);
  --muted-foreground: oklch(0.72 0.01 248);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.637 0.237 27.7);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 4rem;
  background-color: var(--background);
}

.section-charcoal {
  background-color: var(--secondary);
}

.section-muted {
  background-color: var(--muted);
}

@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}

/* ===== Headings & prose ===== */
.heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.875rem, 4vw, 3rem);
  text-wrap: balance;
}

.heading-red {
  color: var(--primary);
}

.heading-white {
  color: var(--primary-foreground);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 48rem;
  margin-top: 1.5rem;
  color: var(--foreground);
}

.prose p + p {
  margin-top: 1rem;
}

.prose-dark {
  color: color-mix(in oklch, var(--foreground) 90%, transparent);
}

.prose-light {
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
}

/* ===== Buttons ===== */
.btn-pill {
  display: inline-block;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: opacity 0.2s;
}

.btn-pill:hover {
  opacity: 0.9;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: var(--muted);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.logo {
  height: 2rem;
  width: auto;
}

@media (min-width: 768px) {
  .logo {
    height: 2.5rem;
  }
}

.logo-white {
  display: none;
}

[data-theme="dark"] .logo-color {
  display: none;
}

[data-theme="dark"] .logo-white {
  display: block;
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  transition: color 0.2s;
}

.primary-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-desktop {
  display: none;
}

.icon-sun,
.icon-close {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

.menu-btn.is-open .icon-menu {
  display: none;
}

.menu-btn.is-open .icon-close {
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem;
}

.mobile-nav a:not(.btn-pill) {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 500;
  color: color-mix(in oklch, var(--foreground) 85%, transparent);
  transition: background-color 0.2s, color 0.2s;
}

.mobile-nav a:not(.btn-pill):hover {
  background-color: var(--muted);
  color: var(--primary);
}

.mobile-cta {
  padding: 0.75rem;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: block;
  }
  .menu-btn {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
}

@media (min-width: 640px) {
  .cta-desktop {
    display: inline-block;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--background);
}

.hero-shape {
  position: absolute;
}

.hero-charcoal {
  left: 0;
  top: 0;
  height: 55%;
  width: 42%;
  background-color: color-mix(in oklch, var(--secondary) 80%, transparent);
  clip-path: polygon(0 0, 78% 0, 30% 100%, 0 100%);
}

.hero-red-left {
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background-color: var(--primary);
  clip-path: polygon(0 0, 62% 0, 24% 100%, 0 100%);
}

.hero-red-bottom {
  bottom: 0;
  right: 0;
  height: 48%;
  width: 46%;
  background-color: var(--primary);
  clip-path: polygon(40% 100%, 100% 35%, 100% 100%);
}

.hero-inner {
  position: relative;
  padding-block: 2.5rem;
}

.hero-logo {
  display: flex;
  justify-content: flex-end;
}

.hero-logo img {
  height: 4rem;
  width: auto;
}

.hero-circle {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.hero-circle > * {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 28rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid var(--secondary);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  margin-top: 3rem;
}

.hero-title h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

[data-theme="dark"] .hero-title h1 {
  color: var(--foreground);
}

.hero-title h1 span {
  display: block;
  font-size: clamp(3rem, 9vw, 4.5rem);
}

.hero-year {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-year-bar {
  height: 0.25rem;
  width: 4rem;
  border-radius: 0.25rem;
  background-color: var(--primary);
}

.hero-year-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 768px) {
  .hero-inner {
    padding-block: 3.5rem;
  }
  .hero-logo img {
    height: 6rem;
  }
  .hero-circle {
    margin-top: 3.5rem;
  }
  .hero-title {
    margin-top: 5rem;
  }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-bar {
  display: none;
  position: absolute;
  left: -0.75rem;
  top: 1.5rem;
  height: 80%;
  width: 0.375rem;
  background-color: var(--primary);
}

.rounded-img {
  overflow: hidden;
  border-radius: var(--radius);
}

.rounded-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shadow {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .about-bar {
    display: block;
  }
}

/* ===== Core values ===== */
.values-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.value-card {
  background-color: var(--card);
  border: 1px solid color-mix(in oklch, var(--primary-foreground) 10%, transparent);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.value-card h3 {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
}

[data-theme="dark"] .value-card h3 {
  color: var(--card-foreground);
}

.value-card p {
  margin-top: 0.5rem;
  color: color-mix(in oklch, var(--card-foreground) 80%, transparent);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  flex-shrink: 0;
}

.icon-badge-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.75rem;
  background-color: color-mix(in oklch, var(--primary-foreground) 15%, transparent);
  color: var(--primary-foreground);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Services ===== */
.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.services-red-panel {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1.5rem;
  padding: 2rem;
}

.services-red-panel ul {
  display: grid;
  gap: 2rem;
}

.services-light-col {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-head h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.services-red-panel .service-head h3 {
  color: var(--primary-foreground);
}

.service-card .service-head h3 {
  color: var(--primary);
}

.services-red-panel p {
  margin-top: 0.75rem;
  color: color-mix(in oklch, var(--primary-foreground) 85%, transparent);
}

.service-card p {
  margin-top: 0.75rem;
  color: color-mix(in oklch, var(--card-foreground) 80%, transparent);
}

.services-figures {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.figure-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.figure-img {
  position: relative;
}

.figure-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-16-10 {
  aspect-ratio: 16 / 10;
}

.ratio-16-7 {
  aspect-ratio: 16 / 10;
}

.figure-card figcaption {
  background-color: var(--card);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-red-panel {
    padding: 2.5rem;
  }
  .services-figures {
    grid-template-columns: 1fr 1fr;
  }
  .ratio-16-7 {
    aspect-ratio: 16 / 7;
  }
}

/* ===== Products ===== */
.products-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.12);
}

.product-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--card);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}

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

.product-meta {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.product-meta h3 {
  margin-top: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
}

[data-theme="dark"] .product-meta h3 {
  color: var(--card-foreground);
}

.figure-wide {
  margin-top: 3rem;
  border-radius: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .product-meta h3 {
    font-size: 1rem;
  }
}

/* ===== Locations ===== */
.locations-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.locations-intro {
  max-width: 28rem;
}

.region-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.region-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.region-list li span:last-child {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
}

[data-theme="dark"] .region-list li span:last-child {
  color: var(--foreground);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  flex-shrink: 0;
}

.map-wrap {
  display: flex;
  justify-content: center;
}

.map-wrap img {
  height: auto;
  width: 12rem;
}

.facilities-card {
  margin-top: 3.5rem;
  background-color: var(--secondary);
  border-radius: 1.5rem;
  padding: 2rem;
  color: var(--primary-foreground);
}

.facilities-heading {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

@media (min-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .map-wrap img {
    width: 16rem;
  }
  .facilities-card {
    padding: 3rem;
  }
}

/* ===== Clients ===== */
.clients-head {
  text-align: center;
}

.clients-intro {
  margin-inline: auto;
  max-width: 36rem;
}

.clients-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.client-card span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--secondary);
}

[data-theme="dark"] .client-card span {
  color: var(--card-foreground);
}

.partnerships {
  margin-top: 4rem;
}

.partner-pills {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.partner-pill {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Contact ===== */
.contact-form {
  margin-top: 3rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
}

[data-theme="dark"] .contact-form h3 {
  color: var(--card-foreground);
}

.form-sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.form-fields {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.field .muted {
  color: var(--muted-foreground);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 1px;
  border-color: var(--ring);
}

.contact-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-card-head h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
}

[data-theme="dark"] .contact-card-head h3 {
  color: var(--card-foreground);
}

.contact-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.contact-list a,
.contact-list li > span:last-child {
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--secondary);
  color: var(--primary-foreground);
}

.footer-red-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16rem;
  background-color: var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
}

.footer-inner {
  position: relative;
  padding-block: 3.5rem;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 4rem;
  width: auto;
}

.footer-offices {
  margin-top: 6rem;
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.footer-offices p {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
}

.footer-offices span {
  font-family: var(--font-sans);
  font-weight: 400;
  color: color-mix(in oklch, var(--primary-foreground) 85%, transparent);
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 15%, transparent);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--primary-foreground) 60%, transparent);
}

@media (min-width: 768px) {
  .footer-logo {
    justify-content: flex-end;
  }
  .footer-logo img {
    height: 5rem;
  }
  .footer-offices {
    margin-top: 7rem;
    text-align: left;
  }
}
