/* ============================================================
   ARCPRO AB — Shared Stylesheet
   Design: Clean, architectural, Scandinavian minimal
   ============================================================ */

@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/dm-serif-display-v17-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --white:       #FFFFFF;
  --off-white:   #F7F7F5;
  --light-gray:  #EFEFED;
  --mid-gray:    #D0CFC9;
  --text-muted:  #888882;
  --text:        #1C1C1A;
  --navy:        #1D2B3A;
  --accent:      #CC2229;
  --accent-light:#FAEAEB;
  --border:      #E2E1DC;
  --radius:      4px;
  --max-w:       1160px;
  --section-gap: 96px;
  --font-body:   'Inter', sans-serif;
  --font-display:'DM Serif Display', Georgia, serif;
  --transition:  0.2s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
p  { max-width: 68ch; color: var(--text); }
.lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.75; }

/* ── Layout Helpers ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-gap) 0; }
.section--gray { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header { margin-bottom: 56px; }
.section-header p { margin-top: 16px; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* Loading spinner state */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}
.btn-outline.btn--loading::after {
  border-color: rgba(29,43,58,0.2);
  border-top-color: var(--navy);
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__logo-mark img {
  width: 36px;
  height: 36px;
  display: block;
}
.nav__logo-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover, .nav__links a.active {
  color: var(--navy);
  background: var(--light-gray);
}
.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero__tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; display: block;
}
.hero__title { margin-bottom: 24px; }
.hero__subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 52ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__image {
  position: relative;
  height: 480px;
  background: var(--light-gray);
  overflow: hidden;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--mid-gray) 100%);
  color: var(--text-muted); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero__accent-line {
  position: absolute;
  left: -1px; top: 20%; bottom: 20%;
  width: 3px; background: var(--accent);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p  { color: var(--text-muted); font-size: 0.9rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.card__link:hover { gap: 10px; }
.card__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Product image card variant */
.card--product { padding-top: 0; }
.card__product-image {
  margin: 0 -32px 28px -32px;
  height: 220px;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.card__product-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 20px;
  transition: transform 0.4s ease;
}
.card--product:hover .card__product-image img { transform: scale(1.04); }

/* ── Page Banner ── */
.page-banner {
  padding: 72px 0 64px;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { color: var(--white); }
.page-banner p  { color: rgba(255,255,255,0.65); margin-top: 16px; font-size: 1.05rem; }

/* ── Stat Strip ── */
.stat-strip { padding: 48px 0; background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-strip__inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; }
.stat { text-align: center; }
.stat__value { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); display: block; }
.stat__label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ── Feature Row ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row__image { background: var(--light-gray); min-height: 400px; overflow: hidden; }
.feature-row__image img { width: 100%; height: 100%; object-fit: cover; }
.feature-row__image-placeholder {
  width: 100%; height: 100%; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--mid-gray) 100%);
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.feature-row__content { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.feature-row__content h3 { margin-bottom: 16px; }
.feature-row__content p { color: var(--text-muted); }
.feature-row__content ul { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.feature-row__content ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
}
.feature-row__content ul li::before { content: '—'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.feature-row--reverse .feature-row__image { order: 2; }
.feature-row--reverse .feature-row__content { order: 1; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; cursor: pointer;
  font-weight: 500; font-size: 1rem; color: var(--navy);
  list-style: none; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 300;
  color: var(--accent); flex-shrink: 0; line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 22px; color: var(--text-muted); font-size: 0.95rem; max-width: 72ch; }

/* ── Downloads ── */
.download-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.download-item:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.download-item__icon {
  width: 44px; height: 44px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.download-item__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.download-item__info { flex: 1; }
.download-item__name { font-weight: 500; font-size: 0.95rem; color: var(--navy); }
.download-item__meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.download-item__action { flex-shrink: 0; }
.download-list { display: flex; flex-direction: column; gap: 12px; }

/* ── Contact / Forms ── */
.forms-section {
  background: var(--navy);
  padding: 80px 0;
}
.forms-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.form-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: 40px; }
.form-box h3 { color: var(--white); margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; }
.form-box p  { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.6); margin-bottom: 6px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy); }
.cf-turnstile { margin: 16px 0; }
.form-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-success { display: none; color: #6ee7b7; font-size: 0.875rem; margin-top: 12px; text-align: center; }

/* ── Page Cards (Home) ── */
.page-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none; color: inherit;
}
.page-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-3px); }
.page-card__image { height: 200px; background: var(--light-gray); overflow: hidden; }
.page-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.page-card:hover .page-card__image img { transform: scale(1.04); }
.page-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--mid-gray) 100%);
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.page-card__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.page-card__body h3 { margin-bottom: 10px; }
.page-card__body p  { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.page-card__body .card__link { margin-top: 20px; }

/* ── Colour Swatches ── */
.swatch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.swatch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.swatch-colour {
  height: 64px;
  width: 100%;
}
.swatch-name {
  padding: 8px 8px 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.swatch-code {
  padding: 0 8px 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .nav__logo-text { color: var(--white); }
.footer__brand .nav__logo-mark { opacity: 0.9; }
.footer__brand p { margin-top: 16px; font-size: 0.875rem; line-height: 1.7; max-width: 30ch; color: rgba(255,255,255,0.45); }
.footer__col h5 { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--white); }
.footer__col address { font-style: normal; font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.45); }
.footer__col address a { transition: color var(--transition); }
.footer__col address a:hover { color: var(--white); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-12 { gap: 12px; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── Tag pills ── */
.tag { display: inline-block; font-size: 0.75rem; font-weight: 500; padding: 4px 12px; background: var(--accent-light); color: var(--accent); border-radius: 2px; }
.tag--white { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

/* ── Mobile Nav ── */
.nav__mobile { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { height: 300px; order: -1; }
  .hero__accent-line { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__image { order: 0; }
  .feature-row--reverse .feature-row__content { order: 0; }
  .feature-row__content { padding: 40px 28px; }
  .forms-section__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .stat-strip__inner { justify-content: flex-start; }

  /* Mobile nav */
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: block; }
  .nav__mobile {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex-direction: column; gap: 4px;
  }
  .nav__mobile.is-open { display: flex; }
  .nav__mobile a {
    padding: 12px 0; font-size: 1rem; font-weight: 500;
    color: var(--text); border-bottom: 1px solid var(--border);
  }
  .nav__mobile a:last-child { border-bottom: none; }
  .nav__mobile .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .nav__mobile .btn-primary { color: var(--white); }
  .nav__mobile .btn-outline { color: var(--navy); }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .forms-section { padding: 56px 0; }
  .form-box { padding: 28px 20px; }
}
