/* IONIX marketing — Riedel-style layout, Intercom CI colors */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
}

:root,
html[data-theme="dark"] {
  --brand: #3eb368;
  --brand-dark: #2d824c;
  --brand-deeper: #246b3e;
  --ink: #f2f4f3;
  --ink-soft: #c8ccca;
  --muted: #9aa0a2;
  --line: #3d4041;
  --line-soft: #2f3233;
  --paper: #2a2d2e;
  --fog: #222526;
  --bg: #1c1f20;
  --header-bg: #333333;
  --header-text: #ffffff;
  --footer-bg: #1f2223;
  --footer-text: #c8c8c8;
  --surface-deep: #1a1d1e;
  --radius-img: 22px;
  --radius-btn: 4px;
  --max: 1200px;
  --font: "Open Sans", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #2a2d2e;
  --ink-soft: #3d4041;
  --muted: #5c6366;
  --line: #d8dcdb;
  --line-soft: #e8ebe9;
  --paper: #ffffff;
  --fog: #f3f5f4;
  --bg: #fafbfa;
  --header-bg: #333333;
  --header-text: #ffffff;
  --footer-bg: #2a2d2e;
  --footer-text: #c8c8c8;
  --surface-deep: #eef1ef;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Header (brand bar like Riedel) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: var(--brand);
  border-bottom: none;
  color: var(--header-text);
}

.header-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.header-brand:hover {
  text-decoration: none;
}

.header-brand .brand-mark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 36px;
  flex-shrink: 0;
}

.header-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.header-brand .name {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  /* Nudge up so mid of "I" meets logo mid-bar (not baseline) */
  transform: translateY(-0.04em);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s;
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.header-nav a.contact {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.header-menu {
  display: none;
  position: relative;
}

.menu-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1200;
}

.menu-dropdown.open {
  display: block;
}

.menu-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}

.menu-dropdown a:hover,
.menu-dropdown a.active {
  background: rgba(62, 179, 104, 0.16);
  color: var(--ink);
}

/* —— Layout —— */
.site-main {
  flex: 1;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-fog {
  background: var(--fog);
}

.section-brand-slim {
  padding: clamp(28px, 4vw, 40px) 0;
}

.section-brand {
  background: var(--brand);
  color: #fff;
}

.label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-brand .label {
  color: rgba(255, 255, 255, 0.85);
}

h1,
.h1,
h2,
.h2,
h3 {
  text-transform: uppercase;
}

h1,
.h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

h2,
.h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

/* —— Hero (light — not brand green) —— */
.hero {
  background: var(--fog);
  color: var(--ink);
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero .label {
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 16ch;
  color: var(--ink);
}

.hero .tagline {
  margin: 0;
  max-width: 38ch;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Image mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 360px;
}

.mosaic figure {
  margin: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.mosaic figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mosaic .tall {
  grid-row: 1 / span 2;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-on-brand {
  background: #fff;
  color: var(--brand-deeper);
}

.btn-on-brand:hover {
  background: #f3faf6;
  color: var(--brand-deeper);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost-dark:hover {
  border-color: var(--brand);
  color: var(--ink);
  background: rgba(62, 179, 104, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* —— Mission split —— */
.mission {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.mission .body {
  color: var(--muted);
  font-size: 1.02rem;
}

.mission .body p {
  margin: 0 0 14px;
}

/* —— Stats —— */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Product portfolio —— */
.section-head {
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.product-card:hover {
  border-color: rgba(62, 179, 104, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
}

.product-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper);
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-deep);
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.product-card .more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

/* —— Page top (inner pages) —— */
.page-hero {
  background: var(--fog);
  color: var(--ink);
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}

.page-hero .label {
  color: var(--brand);
}

.page-hero .lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 42rem;
}

.page-hero h1 {
  color: var(--ink);
}

.page-content {
  padding: clamp(48px, 6vw, 72px) 0 80px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about-page-head {
  margin-bottom: 36px;
}

.about-page-head h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.about-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow);
}

.about-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s;
}

html[data-theme="light"] .social-link {
  color: #111;
}

.social-link:hover {
  opacity: 1;
  text-decoration: none;
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* LinkedIn mark fills the full viewBox; mail glyph is shorter — match heights */
.social-link--linkedin svg {
  width: 13px;
  height: 13px;
}

.about-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-body .intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 400;
}

.about-card-name {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.about-story h2,
.prose h2 {
  color: var(--ink);
}

.about-story {
  margin-bottom: 40px;
}

.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: none;
  max-width: 720px;
}

.about-layout {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
}

.about-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-body > :last-child {
  margin-bottom: 0;
}

.about-story h2 {
  margin: 36px 0 14px;
  font-size: 1.55rem;
  font-weight: 600;
}

.about-story h2:first-child {
  margin-top: 0;
}

.about-story p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 8px;
  border-left: 2px solid #cfe9d8;
  padding-left: 22px;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cfe9d8;
}

.timeline-item .when {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0;
  max-width: 40rem;
}

/* Product detail */
.back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--brand);
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.detail-head .product-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.detail-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fog);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot-frame {
  margin: 0 0 36px;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-deep);
}

.shot-frame img {
  width: 100%;
}

.prose {
  max-width: 720px;
  color: var(--muted);
}

.prose p {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.prose h2 {
  margin: 32px 0 12px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 8px;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
  max-width: 860px;
}

.cap {
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.cap h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Legal */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--paper);
}

.legal-nav a:hover,
.legal-nav a.active {
  border-color: var(--brand);
  color: #fff;
  background: rgba(62, 179, 104, 0.18);
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.35rem;
  font-weight: 600;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: var(--muted);
  font-style: normal;
}

.legal-content h2 + address {
  margin-top: 1.1em;
}

.notice-box {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(62, 179, 104, 0.1);
  border: 1px solid rgba(62, 179, 104, 0.35);
  border-radius: 10px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px clamp(20px, 4vw, 48px);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-copy {
  color: var(--footer-text);
  font-size: 13px;
  margin: 0;
}


/* Cookie */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 640px;
  margin: 0 auto;
  display: none;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.cookie-banner p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .header-menu {
    display: block;
  }

  .hero-grid,
  .mission,
  .product-cards,
  .stats,
  .cap-grid,
  .about-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .mosaic {
    min-height: 280px;
  }

  .hero h1 {
    max-width: none;
  }

  .about-grid,
  .about-layout {
    justify-items: center;
    text-align: center;
  }

  .about-body {
    min-height: 0;
    justify-content: flex-start;
  }

  .header-brand .brand-mark {
    height: 28px;
    gap: 8px;
  }

  .header-logo {
    width: 28px;
    height: 28px;
  }

  .header-brand .name {
    font-size: 24px;
    height: 28px;
  }
}
