/* ============================================
   VERSO CNC - Global Stylesheet
   Design inspired by Zünd, colors by VERSO CNC
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --red: #D81019;
  --red-dark: #A7120F;
  --red-deep: #8A1002;
  --black: #000000;
  --dark: #1a1a1a;
  --dark-section: #141414;
  --gray-dark: #333333;
  --gray: #717275;
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  --white: #ffffff;

  --font: 'IBM Plex Sans', sans-serif;
  --max-width: 1300px;
  --text-max: 600px;
  --section-padding: 100px;
  --header-height: 70px;
}

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

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

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-dark);
}

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
}

.accent-line {
  width: 45px;
  height: 3px;
  background: var(--red);
  margin: 20px 0 24px;
}

.accent-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

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

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

.section--dark p {
  color: rgba(255,255,255,0.75);
}

.text-center {
  text-align: center;
}

/* --- Top Bar --- */
.topbar {
  background: var(--dark-section);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  height: 36px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.topbar__slogan {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.topbar__langs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__langs a {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 5px;
  transition: color 0.2s;
}

.topbar__langs a:hover {
  color: rgba(255,255,255,0.8);
}

.topbar__langs a.active {
  color: var(--white);
}

.topbar__langs span {
  color: rgba(255,255,255,0.2);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow 0.3s ease, top 0.3s ease;
}

.header.scrolled {
  top: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  flex-shrink: 0;
  margin-right: 40px;
}

.header__logo img,
.header__logo svg {
  height: 48px;
  width: auto;
}

/* Desktop Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.header__nav a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-dark);
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Header Right (Download CTA) */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 40px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: none;
  border-radius: 0;
  transition: background 0.25s;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--red-dark);
}

.header__cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Language Switcher (hidden on desktop, in topbar instead) */
.lang-switcher {
  display: none;
}

/* Hamburger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: var(--red);
  border: none;
  padding: 10px;
  border-radius: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: calc(var(--header-height) + 40px) 24px 40px;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.mobile-nav__langs {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
}

.mobile-nav__langs a {
  font-size: 1rem;
  border: none;
  padding: 8px 12px;
}

.mobile-nav__langs a.active {
  color: var(--red);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-section);
  margin-top: calc(var(--header-height) + 36px);
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero__logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: inline-block;
}

@media (max-width: 768px) {
  .hero__logo {
    max-width: 300px;
  }
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

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

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

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn--link {
  background: none;
  border: none;
  color: var(--red);
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn--link::after {
  content: '\2192';
  margin-left: 8px;
  transition: transform 0.2s;
}

.btn--link:hover::after {
  transform: translateX(4px);
}

/* --- Text-Media Block (Zünd style alternating) --- */
.text-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.text-media--reverse .text-media__image {
  order: 2;
}

.text-media--reverse .text-media__content {
  order: 1;
}

.text-media__image {
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
}

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

.text-media__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.text-media__content h2 {
  margin-bottom: 16px;
}

.text-media__content p {
  margin-bottom: 24px;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--red);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* --- Materials Section --- */
.materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.material-col {
  padding: 48px 36px;
  color: var(--white);
}

.material-col:nth-child(1) {
  background: var(--red);
}

.material-col:nth-child(2) {
  background: var(--red-dark);
}

.material-col:nth-child(3) {
  background: var(--red-deep);
}

.material-col h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.material-col ul li {
  padding: 6px 0;
  font-size: 0.95rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.material-col ul li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 850px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  color: var(--black);
}

.faq-item__question:hover {
  color: var(--red);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__icon::before {
  width: 14px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.3s;
}

.faq-item.open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item__answer p {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--dark-section);
  padding: 80px 24px;
  text-align: center;
}

.cta-section h2,
.cta-section p,
.cta-section .btn {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 24px 30px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  align-items: start;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer__brand-name span {
  color: var(--red);
}

.footer__address {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer__links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  transition: color 0.2s;
}

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

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.footer__social a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Social icons on light backgrounds (contact sidebar) */
.contact-info-card .footer__social a {
  border-color: rgba(0,0,0,0.2);
  color: rgba(0,0,0,0.6);
}
.contact-info-card .footer__social a:hover {
  border-color: var(--red);
  color: var(--red);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

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

/* --- Floating Contact Button --- */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 20px rgba(216, 16, 25, 0.35);
  transition: all 0.25s;
}

.floating-cta a:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(216, 16, 25, 0.45);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Video Embed --- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Intro Section --- */
.intro-text {
  max-width: var(--text-max);
  margin: 0 auto;
}


/* --- Page Hero (interior pages) --- */
.page-hero {
  position: relative;
  margin-top: calc(var(--header-height) + 36px);
  padding: 80px 24px 60px;
  background: var(--dark-section);
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.page-hero h1 {
  color: var(--white);
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 2;
  max-width: 550px;
  margin: 0 auto;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.contact-form {
  width: 100%;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-group--full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.contact-form label .required {
  color: var(--red);
  margin-left: 2px;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form input[type='tel'],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 16, 25, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .antispam {
  background: var(--gray-light);
  padding: 20px;
  border-left: 3px solid var(--red);
  margin-bottom: 24px;
}

.contact-form .antispam__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.contact-form .antispam input {
  max-width: 120px;
}

.contact-form .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 48px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--red);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s;
}

.contact-form .btn-submit:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.contact-form .btn-submit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Honeypot - invisible to humans */
.form-honey {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Contact sidebar */
.contact-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.contact-info-card {
  background: var(--gray-light);
  padding: 40px 32px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--red);
  margin-top: 2px;
}

.contact-info-item__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

.contact-info-item__text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 2px;
}

.contact-map {
  width: 100%;
  height: 200px;
  border: none;
  filter: grayscale(0.3);
}

/* Form validation messages */
.form-alert {
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.form-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #dc2626;
}

.form-alert--success {
  background: #f0fdf4;
  color: #166534;
  border-left: 3px solid #16a34a;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 70px;
  }

  .topbar {
    display: none;
  }

  .header {
    top: 0;
  }

  .hero {
    margin-top: var(--header-height);
  }

  .header__nav {
    display: none;
  }

  .header__right {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .text-media {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .text-media--reverse .text-media__image,
  .text-media--reverse .text-media__content {
    order: unset;
  }

  .text-media__image {
    height: 350px;
  }

  .text-media__content {
    padding: 48px 24px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .page-hero {
    margin-top: var(--header-height);
    padding: 60px 24px 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
    --header-height: 60px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* =========================================
   ACCESSORIES GRID - Page vue d'ensemble
   ========================================= */

.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.acc-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-border);
  text-decoration: none;
  color: var(--dark);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.acc-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.acc-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.acc-card__info {
  padding: 20px 24px 24px;
}

.acc-card__ref {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.acc-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.acc-card__desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Select de quantité (style commun) --- */
.acc-card__qty,
.acc-detail__qty,
.cart-table__qty {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

/* --- Ajout rapide depuis le catalogue --- */
.acc-card__cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 14px;
  border-top: 1px solid #eee;
}
.acc-card__qty { width: 68px; }
.acc-card__add {
  flex: 1;
  padding: 6px 10px;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.acc-card__add:hover { background: #b30d14; }
.acc-card__add--done { background: #16a34a; pointer-events: none; }

/* --- Select quantité sur fiche produit --- */
.acc-detail__qty {
  width: 80px;
  margin-right: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

/* --- Select quantité dans le panier --- */
.cart-table__qty { width: 80px; }

.acc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  font-size: 1rem;
}

.acc-grid:not(:empty) + .acc-empty {
  display: none;
}

/* Hide empty message when grid has cards */
.acc-grid:has(.acc-card) + .acc-empty {
  display: none;
}

/* =========================================
   ACCESSORY DETAIL PAGE - Fiche produit
   ========================================= */

.acc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.acc-detail__visual {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.acc-detail__visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.acc-detail__visual model-viewer {
  width: 100%;
  height: 100%;
}

.acc-detail__content {
  padding-top: 20px;
}

.acc-detail__ref {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.acc-detail__name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.acc-detail__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-dark);
  margin-bottom: 32px;
}

.acc-detail__meta {
  border-top: 1px solid var(--gray-border);
  padding-top: 24px;
  margin-bottom: 32px;
}

.acc-detail__meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.92rem;
}

.acc-detail__meta-label {
  font-weight: 600;
  color: var(--dark);
}

.acc-detail__meta-value {
  color: var(--gray);
}

.acc-detail__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.acc-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.acc-detail__back:hover {
  color: var(--red);
}

.acc-detail__back::before {
  content: "\2190";
  font-size: 1.1em;
}

/* 3D viewer toolbar on detail page */
.acc-viewer-toolbar {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.acc-viewer-toolbar button {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font);
}

.acc-viewer-toolbar button:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

@media (max-width: 1024px) {
  .acc-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .acc-detail__visual {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  .acc-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .acc-card__info {
    padding: 16px 18px 20px;
  }
}

/* ============================================================
   PANIER & DEMANDE DE DEVIS
   ============================================================ */

/* --- Icône panier dans le header --- */
.header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 16px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--gray-dark);
}

.header__cart svg {
  width: 22px;
  height: 22px;
  transition: color 0.2s;
}

.header__cart:hover {
  color: var(--red);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
}

.cart-badge--visible {
  display: flex;
}

@keyframes badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-badge--pulse {
  animation: badge-pulse 0.3s ease;
}

/* --- Feedback bouton ajout panier --- */
.btn--added {
  background: #16a34a !important;
  border-color: #16a34a !important;
  pointer-events: none;
  transition: background 0.3s, border-color 0.3s;
}

/* --- Page panier : tableau --- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
}

.cart-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  padding: 12px 16px;
  border-bottom: 2px solid var(--gray-border);
}

.cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.95rem;
  vertical-align: middle;
}

.cart-table__ref {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--gray);
}

.cart-table__name a {
  color: var(--black);
  font-weight: 500;
  text-decoration: none;
}

.cart-table__name a:hover {
  color: var(--red);
}

.cart-table__qty {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  text-align: center;
}

.cart-table__qty:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 16, 25, 0.08);
}

.cart-table__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font-size: 1.4rem;
  padding: 8px;
  transition: color 0.2s;
  line-height: 1;
}

.cart-table__remove:hover {
  color: var(--red);
}

/* --- Page panier : état vide --- */
.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty h2 {
  margin-bottom: 12px;
}

.cart-empty p {
  margin-bottom: 32px;
  color: var(--gray);
}

/* --- Formulaire devis (réutilise les styles contact-form) --- */
.devis-form {
  max-width: 800px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--gray-border);
}

.devis-form h2 {
  margin-bottom: 32px;
}

.devis-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.devis-form .form-group {
  margin-bottom: 0;
}

.devis-form .form-group--full {
  margin-bottom: 24px;
}

.devis-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.devis-form input[type='text'],
.devis-form input[type='email'],
.devis-form input[type='tel'],
.devis-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.devis-form input:focus,
.devis-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 16, 25, 0.08);
}

.devis-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.devis-form .checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.devis-form .checkbox-group label {
  text-transform: none;
  font-weight: 400;
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --- Lien panier mobile nav --- */
.mobile-nav__cart {
  font-weight: 600;
  color: var(--red);
}

/* --- Responsive panier --- */
@media (max-width: 1024px) {
  .header__cart {
    margin-left: auto;
    margin-right: 12px;
  }

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

@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-border);
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: var(--section-padding) 24px;
  background: var(--gray-light);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials__header .label {
  display: block;
  margin-bottom: 8px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  padding: 48px 40px 40px;
  position: relative;
  border-top: 4px solid var(--red);
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-card__quote::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--red);
  font-style: normal;
  line-height: 0;
  position: absolute;
  top: 48px;
  left: 40px;
  opacity: 0.15;
  font-family: Georgia, serif;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--gray-border);
  padding-top: 24px;
}

.testimonial-card__logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.testimonial-card__info {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--black);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-card {
    padding: 36px 28px 28px;
  }

  .testimonial-card__quote::before {
    left: 28px;
    top: 36px;
  }

  .testimonial-card__logo {
    width: 90px;
  }
}
