/* ============================================
   SwissMAT Sàrl — Main Stylesheet
   Design: Minimalist B&W + Orange accents
   ============================================ */

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

:root {
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --gray: #6b6b6b;
  --light-gray: #e8e8e8;
  --off-white: #f7f7f7;
  --white: #ffffff;
  --orange: #e8642c;
  --orange-dark: #d4551e;
  --orange-light: rgba(232, 100, 44, 0.08);
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-w: 1140px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.75;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title { margin-bottom: 16px; }

.section-line {
  width: 50px;
  height: 3px;
  background: var(--orange);
  border: none;
  margin-bottom: 32px;
}

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

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

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 1px 15px rgba(0,0,0,0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { height: 50px; width: auto; }
.navbar__logo .logo--dark { display: none; }

.navbar.is-scrolled .navbar__logo .logo--white { display: none; }
.navbar.is-scrolled .navbar__logo .logo--dark { display: block; }

/* Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links {
  display: flex;
  gap: 28px;
}

.navbar__links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--ease);
}

.navbar.is-scrolled .navbar__links a { color: var(--black); }
.navbar__links a:hover { color: var(--orange); }

/* Lang */
.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch button {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--ease);
}

.navbar.is-scrolled .lang-switch button {
  border-color: var(--light-gray);
  color: var(--gray);
}

.lang-switch button.active,
.lang-switch button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all var(--ease);
}

.navbar.is-scrolled .navbar__burger span { background: var(--black); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 550px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.60) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.12;
}

.hero__content h1 span { color: var(--orange); }

.hero__content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
}

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

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,100,44,0.35);
}

.btn svg { transition: transform var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
  margin: 8px auto 0;
  animation: scrollpulse 2.5s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; height: 36px; }
  50% { opacity: 0.8; height: 44px; }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}

.about__img {
  border-radius: 4px;
  overflow: hidden;
}

.about__img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.about__img:hover img { filter: grayscale(50%); }

.about__text p { margin-bottom: 16px; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--light-gray);
}

.about__stat h3 {
  color: var(--orange);
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.about__stat p {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 100px 0;
  background: var(--off-white);
}

.services__header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  position: relative;
  transition: all var(--ease);
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 6px 6px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.svc-card:hover {
  border-color: var(--light-gray);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.05);
}

.svc-card:hover::after { transform: scaleX(1); }

.svc-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.svc-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-card h4 { margin-bottom: 10px; }
.svc-card p { font-size: 0.88rem; color: var(--gray); }

/* ========================================
   STARMED
   ======================================== */
.starmed {
  padding: 100px 0;
  background: var(--white);
}

.starmed__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.starmed__brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.starmed__brand span { color: var(--orange); }

.starmed__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 5px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 20px;
}

.starmed__text p { margin-bottom: 14px; }

.starmed__img {
  border-radius: 4px;
  overflow: hidden;
}

.starmed__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(100%);
}

/* ========================================
   PARTNERSHIPS
   ======================================== */
.partnerships {
  padding: 100px 0;
  background: var(--off-white);
}

.partnerships__header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

.partnerships__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.part-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 6px;
  border-left: 4px solid var(--orange);
  transition: all var(--ease);
}

.part-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.05);
}

.part-card__type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.part-card h4 { margin-bottom: 10px; }
.part-card p { font-size: 0.88rem; color: var(--gray); }

.partnerships__nda {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
}

.hidden { display: none !important; }

/* ========================================
   TEAM
   ======================================== */
.team {
  padding: 100px 0;
  background: var(--white);
}

.team__header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

.team__intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.team__logo {
  text-align: center;
}

.team__logo img {
  width: 100px;
  height: auto;
  margin: 0 auto;
}

.team__desc p { font-size: 0.92rem; }

.team__members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.member {
  padding: 32px;
  background: var(--off-white);
  border-radius: 6px;
  text-align: center;
  transition: all var(--ease);
}

.member:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.member__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
}

.member h4 { margin-bottom: 2px; }

.member__role {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.member__contact {
  font-size: 0.82rem;
  color: var(--gray);
}

.member__contact a {
  display: block;
  margin-top: 3px;
  transition: color var(--ease);
}

.member__contact a:hover { color: var(--orange); }

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 100px 0;
  background: var(--off-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

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

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__item h4 { font-size: 0.9rem; margin-bottom: 1px; }
.contact__item p,
.contact__item a { font-size: 0.85rem; color: var(--gray); }
.contact__item a:hover { color: var(--orange); }

/* Form */
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

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

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,100,44,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}

.form-submit:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

.form-message {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.88rem;
  margin-top: 14px;
  display: none;
}

.form-message.success { display: block; background: #e8f5e9; color: #2e7d32; }
.form-message.error { display: block; background: #fbe9e7; color: #c62828; }

/* ========================================
   LEGAL
   ======================================== */
.legal {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
}

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

.legal__item h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.legal__item p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer__brand img { height: 50px; margin-bottom: 14px; }

.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  padding: 3px 0;
  transition: color var(--ease);
}

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

.footer__contact p,
.footer__contact a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer__contact a:hover { color: var(--orange); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .about__grid,
  .starmed__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__img { order: -1; }
  .about__img img { aspect-ratio: 16/9; }

  .services__grid,
  .partnerships__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .team__intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar__burger { display: flex; }

  .navbar__menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 40px 32px;
    transition: right var(--ease);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 1001;
  }

  .navbar__menu.is-open { right: 0; }

  .navbar__links {
    flex-direction: column;
    gap: 20px;
  }

  .navbar__links a {
    color: var(--black) !important;
    font-size: 0.95rem;
  }

  .lang-switch {
    margin-top: 20px;
  }

  .lang-switch button {
    color: var(--gray) !important;
    border-color: var(--light-gray) !important;
  }

  .services__grid,
  .partnerships__cards,
  .team__members {
    grid-template-columns: 1fr;
  }

  .contact__grid { gap: 40px; }

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

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

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

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

  .about__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about__stat h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 500px; }
  .hero__content h1 { font-size: 1.9rem; }
  .btn { padding: 12px 24px; font-size: 0.75rem; }
  .contact-form { padding: 24px 20px; }
  .about__stats { grid-template-columns: 1fr; text-align: center; }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
