/* ── subpage-common.css — TRAMZ Subpages ────────────── */
/* Shared styles for all subpages (extracted from index.html) */

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

:root {
  --bg:        #FFFFFF;
  --bg-warm:   #F7F6F3;
  --text:      #0A0A0A;
  --text-mid:  #3A3A3A;
  --text-light:#6B6B6B;
  --accent:    #FFC34B;
  --steel:     #99B9D6;
  --font:      'Schibsted Grotesk', sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); }
.reveal.visible { animation: fadeUp 0.8s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.2s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.4s; }
.reveal.d5 { animation-delay: 0.5s; }
.reveal.d6 { animation-delay: 0.6s; }

/* ── Navigation ──────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 4rem); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,10,10,0.06);
  transition: background 0.3s var(--ease);
}

.nav-logo { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; }
.nav-logo .logo-tramz { font-weight: 800; font-size: 1.75rem; letter-spacing: -0.01em; text-transform: uppercase; color: var(--accent); line-height: 1; }
.nav-logo .logo-sub { font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; color: var(--text); line-height: 1; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.4s var(--ease); }
.nav-links a:hover::after, .nav-links a:focus::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; z-index: 101; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── Nav Dropdown (Prestations) ──────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger::before { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-right: 0.4rem; vertical-align: middle; transition: transform 0.3s var(--ease); }
.nav-dropdown:hover .nav-dropdown-trigger::before { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: -1rem;
  min-width: 240px; background: var(--bg);
  border: 1px solid rgba(10,10,10,0.06);
  box-shadow: 0 8px 32px rgba(10,10,10,0.08);
  padding: 0.5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
  z-index: 200; list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown-menu li a {
  display: block; padding: 0.55rem 1.25rem;
  font-size: 0.8rem; font-weight: 500; color: var(--text-mid);
  transition: all 0.2s var(--ease);
}
.nav-dropdown-menu li a::after { display: none; }
.nav-dropdown-menu li a:hover { color: var(--accent); background: var(--bg-warm); }
.nav-dropdown-menu li a.current { color: var(--accent); font-weight: 700; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  padding: 0.9rem 1.75rem; border: none; cursor: pointer;
  transition: all 0.4s var(--ease); text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { background: #f0b230; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,195,75,0.35); }
.btn-steel { background: var(--steel); color: var(--bg); }
.btn-steel:hover { background: #7da8c8; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(153,185,214,0.4); }
.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--text); box-sizing: border-box; }
.btn-secondary:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Section Label ───────────────────────────────────── */
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1rem; }

/* ── Subpage Hero ────────────────────────────────────── */
.subpage-hero {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  padding-top: calc(72px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--bg-warm);
}
.subpage-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05; margin-bottom: 1.25rem;
  max-width: 800px;
}
.subpage-intro {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500; color: var(--text-mid);
  max-width: 650px; line-height: 1.7;
}

/* ── Subpage Hero Image ──────────────────────────────── */
.subpage-hero-img {
  width: 100%; max-height: 400px; object-fit: cover;
  display: block;
}

/* ── Subpage Content ─────────────────────────────────── */
.subpage-content {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  max-width: 900px;
}
.subpage-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem; margin-top: 2.5rem;
}
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.75rem; margin-top: 2rem;
}
.subpage-content p {
  font-size: 0.95rem; color: var(--text-mid);
  line-height: 1.75; margin-bottom: 1rem;
  max-width: 720px;
}
.subpage-content ul {
  list-style: none; padding: 0; margin-bottom: 1.5rem;
}
.subpage-content ul li {
  font-size: 0.95rem; color: var(--text-mid);
  line-height: 1.75; padding-left: 1.5rem; position: relative;
  margin-bottom: 0.5rem;
}
.subpage-content ul li::before {
  content: ''; position: absolute; left: 0; top: 0.65rem;
  width: 8px; height: 3px; background: var(--accent);
}
.subpage-content a {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.subpage-content a:hover { color: #f0b230; }

/* ── Photo in content ────────────────────────────────── */
.content-photo {
  width: 100%; height: auto; margin: 2rem 0;
  object-fit: cover; max-height: 420px;
}

/* ── Related Services ────────────────────────────────── */
.related-services {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  background: var(--bg-warm);
}
.related-services h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
  margin-left: clamp(2rem, 25vw, 24rem);
}
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; max-width: 1100px;
  margin-left: clamp(2rem, 25vw, 24rem);
}
.related-card {
  background: var(--bg); padding: clamp(1.25rem, 2vw, 2rem);
  border-left: 3px solid transparent;
  transition: all 0.5s var(--ease);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 140px;
}
.related-card:hover { border-left-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(10,10,10,0.06); }
.related-card-number { font-size: 2rem; font-weight: 800; color: rgba(10,10,10,0.06); line-height: 1; }
.related-card:hover .related-card-number { color: rgba(255,195,75,0.3); }
.related-card-title { font-size: 0.95rem; font-weight: 800; margin-top: 0.5rem; }
.related-card-arrow { font-size: 1rem; color: var(--accent); opacity: 0; transition: opacity 0.4s var(--ease); align-self: flex-end; }
.related-card:hover .related-card-arrow { opacity: 1; }

/* ── CTA Band ────────────────────────────────────────── */
.subpage-cta {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  background: var(--text); color: var(--bg); text-align: center;
}
.subpage-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--bg); margin-bottom: 1rem;
}
.subpage-cta p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.6); margin-bottom: 2rem;
  max-width: 520px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* ── FAQ Accordion ───────────────────────────────────── */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid rgba(10,10,10,0.06);
}
.faq-item summary {
  font-size: 1rem; font-weight: 700; color: var(--text);
  padding: 1.25rem 0; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.75;
  padding-bottom: 1.25rem; max-width: 720px;
}
.faq-answer a {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 4rem);
  background: var(--text);
  color: var(--bg);
}
.footer-top {
  display: flex; align-items: flex-start; flex-wrap: wrap;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 0;
}
.footer-tramz {
  font-size: 1.1rem; font-weight: 800; color: var(--bg);
  letter-spacing: -0.01em; text-transform: uppercase;
  padding-right: 1.5rem; line-height: 1.6;
}
.footer-links {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 0; flex: 1;
}
.footer-links-group {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem;
  list-style: none; padding: 0 1.25rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.footer-links-group a { font-size: 0.8rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.3s var(--ease); }
.footer-links-group a:hover { color: var(--accent); }

.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-slogan { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--bg); letter-spacing: -0.01em; line-height: 1.1; order: -1; margin-right: auto; }
.footer-meta { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-linkedin { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.55); position: relative; padding-bottom: 2px; }
.footer-linkedin::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.4s var(--ease); }
.footer-linkedin:hover::after { width: 100%; }
.lang-toggle { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.lang-toggle button {
  background: none; border: none; font-family: var(--font);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem; cursor: pointer; color: rgba(255,255,255,0.45);
  transition: all 0.3s var(--ease);
}
.lang-toggle button.active { background: var(--steel); color: var(--bg); }
.lang-toggle button:hover:not(.active) { background: rgba(255,255,255,0.08); }

/* ── Redesigned Subpage Layout (sp-) ─────────────────── */

/* Hero with geometric element */
.sp-hero {
  position: relative;
  padding: calc(72px + clamp(4rem, 8vw, 7rem)) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
  background: var(--bg-warm);
  overflow: hidden;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: clamp(2rem, 25vw, 24rem);
}

.sp-hero-content .section-label { margin-bottom: 1.25rem; }

.sp-hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.sp-hero-intro {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}

/* Image duo strip */
.sp-image-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.sp-image-strip img {
  width: 100%;
  height: clamp(200px, 28vw, 380px);
  object-fit: cover;
  display: block;
}
.sp-image-strip--single { grid-template-columns: 1fr; }

/* Content sections with amber left border */
.sp-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}
.sp-section--warm { background: var(--bg-warm); }
.sp-section--white { background: var(--bg); }

.sp-section-inner {
  max-width: 900px;
  margin-left: clamp(2rem, 25vw, 24rem);
  border-left: 3px solid var(--accent);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.sp-section-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.sp-section-inner h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.sp-section-inner p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 640px;
}

.sp-section-inner ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.sp-section-inner ul li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.sp-section-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 3px;
  background: var(--accent);
}

.sp-section-inner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.sp-section-inner a:hover { color: #f0b230; }

/* CTA Band — two buttons */
.sp-cta {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 4rem);
  background: var(--text);
  color: var(--bg);
  text-align: center;
}
.sp-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--bg);
  margin-bottom: 1rem;
}
.sp-cta p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.sp-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sp-cta-buttons .btn { min-width: 220px; justify-content: center; }

/* ── Image protection ────────────────────────────────── */
img {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; user-drag: none;
  pointer-events: none;
}
a img, button img { pointer-events: auto; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-services h2 { margin-left: 0; }
  .related-grid { margin-left: 0; }
  .sp-hero-content { margin-left: 0; }
  .sp-section-inner { margin-left: 0; }
  .sp-image-strip { grid-template-columns: 1fr; }
  .sp-image-strip img { height: clamp(200px, 40vw, 300px); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: var(--bg); flex-direction: column; justify-content: center;
    align-items: center; gap: 2rem; transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.25rem; }
  .nav-toggle { display: block; }
  .nav-logo .logo-tramz { font-size: 1.4rem; }
  .nav-logo .logo-sub { font-size: 1.2rem; }

  .nav-links {
    gap: 1.25rem;
  }
  .nav-links > li { text-align: center; }
  .nav-links > li > a { font-size: 1.25rem; }

  .nav-dropdown { text-align: center; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    min-width: auto; padding: 0.5rem 0 0;
    background: transparent;
  }
  .nav-dropdown-trigger::before { display: none; }
  .nav-dropdown-menu li a { font-size: 0.95rem; padding: 0.3rem 0; text-align: center; color: var(--text-light); }

  .related-grid { grid-template-columns: 1fr; }
  .subpage-hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .sp-hero { min-height: auto; padding-top: calc(72px + clamp(2rem, 6vw, 4rem)); }
  .sp-section-inner { border-left-width: 2px; padding-left: 1.25rem; }
  .sp-cta-buttons { flex-direction: column; align-items: center; }

  footer { text-align: center; }
  .footer-top { flex-direction: column; align-items: center; gap: 1rem; }
  .footer-tramz { padding-right: 0; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-slogan { order: -1; margin-right: 0; }
  .footer-meta { flex-direction: column; gap: 1rem; }
  .footer-links { justify-content: center; flex-direction: column; align-items: center; gap: 0.75rem; }
  .footer-links-group { padding: 0; justify-content: center; border-left: none; }
  .footer-tramz { text-align: center; }
}
