/* ============================================================
   Scandic Link Oy — Main Stylesheet
   Scandinavian minimalist design system
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  /* Palette */
  --color-bg:        #f7f6f3;
  --color-bg-alt:    #efeee9;
  --color-surface:   #ffffff;
  --color-text:      #2c2c2c;
  --color-text-muted:#6b6b6b;
  --color-accent:    #4a6151;
  --color-accent-hover:#3b5042;
  --color-border:    #d9d7d0;

  /* Typography */
  --font-heading: 'Raleway', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --nav-height:   72px;
  --section-pad:  100px;
  --container:    1120px;
  --radius:       6px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);

  /* Hero — variable-driven (JS-switchable) */
  --hero-image:    url("../assets/images/hero.webp");
  --hero-pos:      center center;
  --hero-overlay:  rgba(34,40,36,.55);
  --hero-panel:    transparent;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color .2s var(--ease);
}

a:hover { color: var(--color-accent-hover); }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.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;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(247,246,243,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s var(--ease);
}

.site-nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: .06em;
  text-transform: lowercase;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-brand-sub {
  display: block;
  font-size: .75rem;
  font-weight: 200;
  letter-spacing: .12em;
}

.nav-brand:hover { color: var(--color-accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: .02em;
  transition: color .2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width .25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  /* Use longhands so CSS-variable substitution is reliable */
  background-image:    var(--hero-image), linear-gradient(160deg, #d5d0c4 0%, #b8c5bd 50%, #a3b0a8 100%);
  background-position: var(--hero-pos), center;
  background-size:     cover, cover;
  background-repeat:   no-repeat, no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
  transition: background-position .6s var(--ease), opacity .375s var(--ease);
}

/* Crossfade state: brief opacity dip during image swap */
.hero--fading {
  opacity: .82;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
  transition: background .4s var(--ease);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--hero-panel);
  transition: transform .35s var(--ease), background .4s var(--ease);
}

.hero-content:hover {
  transform: translateY(-2px);
}

/* ---- Slideshow controls ---- */
.hero-slideshow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
  padding: 0;
  font-size: 0;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.6);
}

.hero-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hero-dots {
  display: flex;
  gap: 10px;
  list-style: none;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}

.hero-dot:hover {
  border-color: rgba(255,255,255,.8);
  transform: scale(1.15);
}

.hero-dot.active {
  background: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.9);
}

.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Debug info (dev only — remove for production) */
.hero-debug {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.8);
  font-family: monospace;
  font-size: .65rem;
  line-height: 1.4;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.hero-title {
  font-family: 'Raleway', 'Inter', -apple-system, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: .06em;
  text-transform: lowercase;
}

.hero-title-sub {
  display: block;
  font-family: 'Raleway', 'Inter', -apple-system, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 200;
  letter-spacing: .12em;
  margin-top: 4px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: .9;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: .95rem;
  line-height: 1.6;
  opacity: .82;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 36px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,97,81,.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

/* ============================================================
   Sections — shared
   ============================================================ */
section {
  padding: var(--section-pad) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  font-size: .95rem;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border: none;
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: var(--color-bg);
}

.about-body {
  max-width: 760px;
  margin-inline: auto;
}

.about-body p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

.about-body p:last-child { margin-bottom: 0; }

/* Trust signals */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
}

.trust-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
  color: var(--color-accent);
}

.trust-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.trust-item p {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   Partners
   ============================================================ */
.partners {
  background: var(--color-bg-alt);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin-inline: auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease),
              border-color .25s var(--ease);
}

.partner-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.partner-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Logo container — fixed height so mixed aspect ratios align */
.partner-logo {
  height: 72px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 4px 0;
}

.partner-logo img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 10px;
  color: var(--color-text);
  transition: color .2s var(--ease);
}

.partner-card:hover .partner-name {
  color: var(--color-accent);
}

.partner-desc {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}

.partner-note {
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 36px;
  max-width: 560px;
  margin-inline: auto;
}

/* ---- Partners & References: sub-headings ---- */
.partners-subheading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--color-text);
  text-align: center;
  margin-top: 56px;
  margin-bottom: 32px;
}

/* First sub-heading needs no extra top margin (sits just below section header) */
.partners-subheading:first-of-type {
  margin-top: 0;
}

/* ---- Reference Cases grid ---- */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin-inline: auto;
}

/* Reference card — clickable link */
.reference-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease),
              border-color .25s var(--ease);
}

.reference-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.reference-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Hero image — 4:3 aspect ratio, covers the space */
.reference-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.reference-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnail strip for multi-image cases */
.reference-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
  justify-items: center;
}

.reference-thumbs img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.reference-thumbs img:only-child {
  grid-column: 1 / -1;
  max-width: 50%;
}

.reference-thumbs img:nth-child(n+3) {
  display: none;
}

/* Card text area */
.reference-card-body {
  padding: 18px 20px 20px;
  flex: 1;
}

.reference-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.reference-card-body p {
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================================
   Case pages (references/*.html)
   ============================================================ */

/* Hero */
.case-hero {
  background: var(--color-bg);
  padding: calc(var(--nav-height) + 56px) 24px 56px;
  border-bottom: 1px solid var(--color-border);
}

.case-hero .container {
  max-width: 760px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 28px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}

.case-back:hover {
  gap: 10px;
  color: var(--color-accent-hover);
}

.case-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: .04em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.case-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Gallery */
.case-gallery {
  background: var(--color-bg-alt);
  padding: var(--section-pad) 0;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

/* First image spans full width (hero image) */
.case-gallery-grid .case-gallery-item:first-child {
  grid-column: 1 / -1;
}

.case-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  transition: opacity .2s var(--ease);
}

.case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease);
}

.case-gallery-item:hover img {
  transform: scale(1.03);
}

.case-gallery-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* CSS-only lightbox via :target */
.case-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.case-lightbox:target {
  display: flex;
}

.case-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.case-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(255,255,255,.85);
  font-size: 2.2rem;
  line-height: 1;
  text-decoration: none;
  transition: color .2s var(--ease);
  font-weight: 300;
}

.case-lightbox-close:hover {
  color: #fff;
}

.case-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Project summary */
.case-summary {
  background: var(--color-bg);
  padding: var(--section-pad) 0;
}

.case-summary .container {
  max-width: 760px;
}

.case-summary h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.case-summary p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.case-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
}

.case-details li {
  font-size: .95rem;
  color: var(--color-text);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.case-details li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* CTA on case pages */
.case-cta {
  background: var(--color-bg-alt);
  padding: var(--section-pad) 0;
}

.case-cta .container {
  max-width: 640px;
}

.case-cta .cta-box {
  text-align: center;
}

.case-cta .contact-methods {
  margin-bottom: 28px;
}

/* ============================================================
   Design section
   ============================================================ */
.design-section {
  background: var(--color-bg);
}

.design-body {
  max-width: 660px;
  margin-inline: auto;
}

.design-body p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.design-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-list li {
  font-size: .95rem;
  color: var(--color-text);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.design-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================================
   Projects
   ============================================================ */
.projects {
  background: var(--color-bg-alt);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-3px);
}

.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.project-card-body {
  padding: 28px 24px;
}

.project-card-region {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.project-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: .02em;
}

.project-card-body p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-link:hover { gap: 8px; }

.project-link::after { content: '→'; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--color-bg-alt);
}

.contact-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

.contact-methods a,
.contact-methods span {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-methods .label {
  font-weight: 600;
  color: var(--color-text);
}

/* CTA box */
.cta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: .04em;
}

.cta-box p {
  font-size: .95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-box .btn {
  margin-inline: auto;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #2c2c2c;
  color: rgba(255,255,255,.65);
  padding: 40px 0;
  text-align: center;
  font-size: .85rem;
}

.site-footer a {
  color: rgba(255,255,255,.8);
}

.site-footer a:hover { color: #fff; }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Why Scandic Link — footer block */
.footer-why {
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}

.footer-why h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}

.footer-why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-why-list li {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

.footer-why-list li::before {
  content: '— ';
  color: var(--color-accent);
}

.footer-tagline {
  font-size: .92rem;
  font-style: italic;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero,
  .hero::before,
  .hero-content {
    transition: none;
  }

  .hero--fading {
    opacity: 1;
  }

  .hero-content:hover {
    transform: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(247,246,243,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-links a {
    padding: 12px 0;
  }

  .nav-links a::after { display: none; }

  .nav-toggle { display: block; }

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

  /* Case pages */
  .case-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-gallery-grid .case-gallery-item:first-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

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

  .btn { width: 100%; justify-content: center; }

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

  /* Reference cases: single column on mobile */
  .reference-grid {
    grid-template-columns: 1fr;
  }

  /* Case pages */
  .case-gallery-grid {
    grid-template-columns: 1fr;
  }

  .case-gallery-grid .case-gallery-item:first-child {
    grid-column: unset;
  }

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

  .hero-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-arrow svg {
    width: 15px;
    height: 15px;
  }

  .hero-slideshow {
    gap: 12px;
    bottom: 20px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }
}
