/* ==========================================================================
   REPAIR TEAM — V2 design layer (concept: rounded navy/white cards, giant
   titles, glass, spring motion). Loaded after style.css on every page and
   scoped to body.v2: removing the <link> restores the previous design.
   Hidden "before" states only apply under html.v2-motion (set by the inline
   head gate, never with reduced motion; undone if js/v2.js never runs).
   ========================================================================== */

:root {
  --v2-navy: #101B2D;
  --v2-navy-2: #172A43;
  --v2-teal: #19A7A1;
  --v2-teal-hover: #148782;
  --v2-teal-dark: #0F6F6B;
  --v2-surface: #F1F5F9;
  --v2-hairline: #E2E8F0;
  --v2-ink-soft: #64748B;
  --v2-ghost: #DCE3EB;
  --v2-r-card: 1.5rem;
  --v2-r-lg: 2rem;
  --v2-inset: 0.5rem;
  --v2-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --v2-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --v2-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --v2-grid: rgba(255, 255, 255, 0.045);
}

@media (min-width: 640px) {
  :root { --v2-inset: 0.75rem; }
}

/* Lenis smooth scrolling needs native smooth scrolling off */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Page frame ---------- */
body.v2 {
  padding: 0 var(--v2-inset) var(--v2-inset);
  background-color: #FFFFFF;
}

body.v2 h1,
body.v2 h2,
body.v2 h3 {
  font-family: var(--font-heading);
}

/* ---------- Header: rounded glass bar ---------- */
body.v2 .site-header {
  top: var(--v2-inset);
  margin-top: var(--v2-inset);
  border: 1px solid var(--v2-hairline);
  border-radius: 1.25rem;
  background-color: transparent;
  transition: top 0.35s ease, box-shadow 0.25s ease;
}

/* Blur sits on ::before so the fixed mobile menu inside the header is not trapped */
body.v2 .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  pointer-events: none;
}

body.v2 .site-header.scrolled {
  box-shadow: 0 10px 30px rgba(16, 27, 45, 0.08);
}

body.v2 .site-header.is-collapsed {
  top: calc(-1 * var(--header-height) - 1.5rem);
}

body.v2 .site-header .container.header-inner {
  padding-left: 22px;
  padding-right: 14px;
}

body.v2 .nav-link {
  border-radius: 999px;
}

body.v2 .btn-header-call {
  border-radius: 999px;
}

body.v2 .mobile-nav {
  top: calc(var(--header-height) + var(--v2-inset) + 6px);
  left: var(--v2-inset);
  right: var(--v2-inset);
  bottom: var(--v2-inset);
  border: 1px solid var(--v2-hairline);
  border-radius: var(--v2-r-card);
  box-shadow: 0 20px 50px rgba(16, 27, 45, 0.15);
}

body.v2 .mobile-nav.is-side {
  top: var(--v2-inset);
  left: var(--v2-inset);
  bottom: var(--v2-inset);
  border-radius: var(--v2-r-card);
}

/* ---------- Buttons: pills ---------- */
body.v2 .btn {
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.v2 .btn svg {
  transition: transform 0.35s var(--v2-spring);
}

@media (hover: hover) and (min-width: 769px) {
  body.v2 .btn:hover svg {
    transform: translateX(5px);
  }
}

/* ---------- Inner hero: rounded navy card with grid ---------- */
body.v2 .inner-hero,
body.v2 .wh-hero {
  margin-top: var(--v2-inset);
  border-radius: var(--v2-r-lg);
  border: 0;
  overflow: hidden;
  background-color: var(--v2-navy);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(25, 167, 161, 0.16) 0%, transparent 45%),
    linear-gradient(var(--v2-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
  padding: 88px 0 80px;
}

body.v2 .wh-hero {
  background-image:
    linear-gradient(90deg, rgba(16, 27, 45, 0.94) 0%, rgba(16, 27, 45, 0.78) 45%, rgba(16, 27, 45, 0.3) 100%),
    url('../images/warhouse/warehouse-hero.jpg');
  background-size: cover;
}

body.v2 .inner-hero-title {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 1100px;
}

body.v2 .inner-hero-desc {
  font-size: 1.08rem;
  max-width: 680px;
}

body.v2 .inner-hero-tag {
  border-radius: 999px;
  padding: 5px 14px;
}

/* ---------- Section header: eyebrow + big stacked title ---------- */
body.v2 .section-label,
body.v2 .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v2-ink-soft);
}

body.v2 .section-label::before,
body.v2 .section-eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background-color: var(--v2-teal);
  flex-shrink: 0;
}

body.v2 .section-label.label-light {
  color: rgba(255, 255, 255, 0.7);
}

body.v2 .section-title {
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-top: 12px;
  margin-bottom: 18px;
}

body.v2 .section-header {
  max-width: 820px;
  margin-bottom: 56px;
}

body.v2 .section-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--v2-ink-soft);
}

/* ---------- Section rhythm: subtle sections become rounded cards ---------- */
body.v2 .section {
  padding: 104px 0;
}

body.v2 .section-subtle,
body.v2 .cold-room-section {
  border: 0;
  border-radius: var(--v2-r-lg);
  margin-top: var(--v2-inset);
  margin-bottom: var(--v2-inset);
}

@media (max-width: 768px) {
  body.v2 .section {
    padding: 72px 0;
  }
  body.v2 .inner-hero,
  body.v2 .wh-hero {
    padding: 56px 0 52px;
  }
}

/* ---------- Cards (shared shape) ---------- */
body.v2 .cold-spec-card,
body.v2 .process-step-box,
body.v2 .equipment-card,
body.v2 .partner-card,
body.v2 .ref-card,
body.v2 .pricing-card,
body.v2 .factor-box,
body.v2 .contact-quick-card,
body.v2 .service-zone-box,
body.v2 .service-card,
body.v2 .industry-card,
body.v2 .wh-benefit,
body.v2 .metric-card,
body.v2 .why-feature-box,
body.v2 .project-item-card {
  border-radius: var(--v2-r-card);
  transition: transform 0.45s var(--v2-spring), box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.7s var(--v2-quart);
}

body.v2 .cold-arch-media,
body.v2 .wh-gallery figure,
body.v2 .wh-drawing,
body.v2 .project-item-img-wrap {
  border-radius: var(--v2-r-card);
}

@media (hover: hover) and (min-width: 769px) {
  body.v2 .cold-spec-card:hover,
  body.v2 .process-step-box:hover,
  body.v2 .equipment-card:hover,
  body.v2 .partner-card:hover,
  body.v2 .ref-card:hover,
  body.v2 .pricing-card:hover,
  body.v2 .factor-box:hover,
  body.v2 .contact-quick-card:hover,
  body.v2 .service-card:hover,
  body.v2 .industry-card:hover,
  body.v2 .wh-benefit:hover,
  body.v2 .project-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 27, 45, 0.1);
  }
}

/* ---------- CTA band: rounded navy card with a giant title ---------- */
body.v2 .section-cta {
  padding: var(--v2-inset) 0 0;
  background: none;
}

body.v2 .section-cta > .container {
  max-width: none;
  padding: 0;
}

body.v2 .cta-banner {
  max-width: none;
  border-radius: var(--v2-r-lg);
  padding: 110px 28px;
  background-color: var(--v2-navy);
  background-image:
    radial-gradient(circle at 80% 10%, rgba(25, 167, 161, 0.18) 0%, transparent 45%),
    linear-gradient(var(--v2-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

body.v2 .cta-title {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

body.v2 .cta-desc {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  body.v2 .cta-banner {
    padding: 72px 20px;
  }
}

/* ---------- Footer: rounded navy card ---------- */
body.v2 .site-footer {
  margin-top: var(--v2-inset);
  border-radius: var(--v2-r-lg);
  border: 0;
  padding: 80px 0 32px;
}

/* ==========================================================================
   Page polish
   ========================================================================== */

/* Services + Pricing: the top section header becomes the navy hero card */
body.v2.page-services main.section,
body.v2.page-pricing main.section {
  padding-top: var(--v2-inset);
}

body.v2.page-services main > .container,
body.v2.page-pricing main > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.v2.page-services main > .container > :not(.section-header),
body.v2.page-pricing main > .container > :not(.section-header) {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

body.v2.page-services main > .container > .section-header,
body.v2.page-pricing main > .container > .section-header {
  max-width: none;
  margin: 0 0 72px;
  padding: 88px max(28px, calc((100% - var(--container-max)) / 2 + 28px)) 80px;
  border-radius: var(--v2-r-lg);
  background-color: var(--v2-navy);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(25, 167, 161, 0.16) 0%, transparent 45%),
    linear-gradient(var(--v2-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
  color: #FFFFFF;
  text-align: left;
}

body.v2.page-services main > .container > .section-header .section-title,
body.v2.page-pricing main > .container > .section-header .section-title {
  color: #FFFFFF;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  max-width: 1100px;
}

body.v2.page-services main > .container > .section-header .section-desc,
body.v2.page-pricing main > .container > .section-header .section-desc {
  color: #CBD5E1;
  max-width: 680px;
  margin-left: 0;
}

body.v2.page-services main > .container > .section-header .section-eyebrow,
body.v2.page-pricing main > .container > .section-header .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  body.v2.page-services main > .container > .section-header,
  body.v2.page-pricing main > .container > .section-header {
    padding: 56px 20px 52px;
    margin-bottom: 48px;
  }
  body.v2.page-services main > .container > :not(.section-header),
  body.v2.page-pricing main > .container > :not(.section-header) {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Services: filter pills + equipment cards */
body.v2 .filter-btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.v2 .filter-btn.active {
  background-color: var(--v2-navy);
  border-color: var(--v2-navy);
  color: #FFFFFF;
}

body.v2 .equipment-card {
  overflow: hidden;
  border-color: var(--v2-hairline);
}

body.v2 .equipment-thumb {
  border-radius: 1rem;
  margin: 10px 10px 0;
  overflow: hidden;
  background-color: var(--v2-surface);
}

body.v2 .equipment-category-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

/* Pricing: spec-sheet cards, featured card in navy */
body.v2 .pricing-card {
  border-color: var(--v2-hairline);
  padding: 36px 30px;
}

body.v2 .pricing-card .pricing-type {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

body.v2 .pricing-feature-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--v2-hairline);
}

body.v2 .pricing-feature-item:last-child {
  border-bottom: 0;
}

body.v2 .pricing-card.featured {
  background-color: var(--v2-navy);
  border-color: var(--v2-navy);
  color: #CBD5E1;
}

body.v2 .pricing-card.featured .pricing-title {
  color: #FFFFFF;
}

body.v2 .pricing-card.featured .pricing-desc,
body.v2 .pricing-card.featured .pricing-feature-item {
  color: #CBD5E1;
  border-color: rgba(255, 255, 255, 0.12);
}

body.v2 .pricing-card.featured .pricing-type {
  color: var(--v2-teal);
}

body.v2 .pricing-badge {
  border-radius: 999px;
}

body.v2 .factor-box {
  background-color: var(--v2-surface);
  border-color: transparent;
}

/* Partners: clean logo wall + letter cards */
body.v2 .partner-card {
  background-color: var(--v2-surface);
  border-color: transparent;
}

body.v2 .partner-logo-wrap {
  border-radius: 1rem;
  background-color: #FFFFFF;
}

body.v2 .ref-card {
  border-color: var(--v2-hairline);
}

/* Contact: rounded fields, quick cards and service zone */
body.v2 .form-input,
body.v2 .form-select,
body.v2 .form-textarea {
  border-radius: 0.75rem;
  border-color: var(--v2-hairline);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.v2 .form-input:focus,
body.v2 .form-select:focus,
body.v2 .form-textarea:focus {
  border-color: var(--v2-teal);
  box-shadow: 0 0 0 3px rgba(25, 167, 161, 0.18);
}

body.v2 .form-channel-selector,
body.v2 .channel-tab-btn {
  border-radius: 999px;
}

body.v2 .contact-quick-card {
  border-color: var(--v2-hairline);
}

body.v2 .zone-chip {
  border-radius: 999px;
}

/* Warehouses: keep the drawing, match the card language */
body.v2 .wh-drawing {
  border-radius: var(--v2-r-card);
}

/* Cookie settings: round, icon-only button in the bottom-left corner (the button keeps its aria-label) */
body.v2 .floating-cookie-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

body.v2 .floating-cookie-btn span {
  display: none;
}

/* Burger: no box, just the three lines */
body.v2 .mobile-toggle {
  background-color: transparent;
  border: 0;
}

/* ---------- Title word masks (built by js/v2.js) ---------- */
body.v2 .v2-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

body.v2 .v2-w > span {
  display: inline-block;
}

/* style.css colours every <span> in a title turquoise; masks must take the
   colour of the text they wrap (white/ink, or turquoise inside a highlight). */
body.v2 .v2-w,
body.v2 .v2-w > span {
  color: inherit;
}

html.v2-motion body.v2 .v2-w > span {
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--v2-expo) var(--d, 0ms), opacity 1s var(--v2-expo) var(--d, 0ms);
}

html.v2-motion body.v2 .is-in .v2-w > span {
  transform: none;
  opacity: 1;
}

/* ---------- Reveal on scroll (set by js/v2.js) ---------- */
html.v2-motion body.v2 .v2-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

html.v2-motion body.v2 .v2-reveal {
  transition: opacity 0.8s var(--v2-quart) var(--d, 0ms), transform 1s var(--v2-spring) var(--d, 0ms), box-shadow 0.3s ease, border-color 0.3s ease;
}

html.v2-motion body.v2 .v2-reveal.is-done {
  transition: opacity 0.8s var(--v2-quart), transform 0.45s var(--v2-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
  html.v2-motion body.v2 .v2-reveal:not(.is-in) {
    transform: translateY(14px);
  }
}

/* ---------- First-visit loader ---------- */
html.v2-loading body.v2::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 199;
  background-color: var(--v2-navy);
}

body.v2 .v2-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background-color: var(--v2-navy);
  color: #FFFFFF;
  transition: transform 850ms cubic-bezier(0.65, 0, 0.35, 1);
}

body.v2 .v2-loader.exit {
  transform: translateY(-105%);
}

body.v2 .v2-loader-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: v2-rise 0.9s var(--v2-spring) both;
}

body.v2 .v2-loader-mark img {
  width: 2.25rem;
  height: 2.25rem;
}

body.v2 .v2-loader-track {
  width: 10rem;
  height: 1px;
  overflow: hidden;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
}

body.v2 .v2-loader-fill {
  height: 100%;
  background-color: #FFFFFF;
  transform: scaleX(0);
  transform-origin: left;
  animation: v2-fill 1280ms cubic-bezier(0.65, 0, 0.35, 1) 120ms forwards;
}

@keyframes v2-fill { to { transform: scaleX(1); } }
@keyframes v2-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Reduced motion: final states, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  body.v2 .v2-reveal,
  body.v2 .v2-w > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.v2 .v2-loader,
  html.v2-loading body.v2::before {
    display: none !important;
  }
}

/* While the phone menu is open, the floating buttons step aside (they covered the language links) */
body.v2:has(.mobile-nav.is-open) .floating-whatsapp,
body.v2:has(.mobile-nav.is-open) .floating-cookie-btn { opacity: 0; visibility: hidden; pointer-events: none; }

/* Two phone numbers stacked (footer contact list, contact page card) */
.phone-pair { display: inline-flex; flex-direction: column; gap: 0.3rem; }
