/* =========================================================
   BRAND TOKENS — Rudéns Produktlösningar AB
   Palette: Lapis + Gold

   RULES:
   - Gold (#D4A017) = interactive elements only (buttons, links, hover states)
   - Lapis (#2B4F8A) = containers/backgrounds (navbar, hero, footer, card accents)
   - Never use gold for small body text (fails WCAG AA at <18px)
   - White text on lapis = great (~7:1 contrast)
   - Gold on lapis = only for large bold text (≥18px bold)
   - Accent font (Futura PT) = uppercase, wide spacing, buttons/CTAs only
   ========================================================= */

/* ── Font faces ── */
@font-face {
  font-family: 'Cascadia Code';
  src: url('../fonts/CascadiaCode.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/RobotoRegular-3m4L.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/RobotoMedium-Owv4.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/RobotoBold-Xdoj.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Jost loaded via Google Fonts link in HTML */

:root {
  /* ── Core palette ── */
  --brand-bg:       #E5DCC7;  /* Earthy cream — page background */
  --brand-muted:    #A8B5A0;  /* Sage grey — borders, dividers, secondary */
  --brand-surface:  #588038;  /* Fern green — containers, hero, navbar */
  --brand-text:     #1E2118;  /* Off-black — body text */
  --brand-accent:   #F2D940;  /* Golden yellow — card backgrounds only */
  --brand-btn:      #C84432;  /* Deep coral — buttons (WCAG AA with white text) */
  --brand-card:     #124A30;  /* Dark green — card dark background */
  --brand-interactive: #F25C54; /* Coral — links, hover highlights */

  /* ── Semantic aliases (use these in components) ── */

  /* Backgrounds */
  --bg-page:        var(--brand-bg);
  --bg-navbar:      var(--brand-surface);
  --bg-hero:        var(--brand-surface);
  --bg-footer:      var(--brand-surface);
  --bg-card:        var(--brand-bg);

  /* Text */
  --text-body:      var(--brand-text);
  --text-heading:   var(--brand-text);
  --text-on-surface: #FFFFFF;
  --text-muted:     var(--brand-muted);

  /* Interactive */
  --btn-primary-bg:      var(--brand-btn);
  --btn-primary-text:    #FFFFFF;
  --btn-secondary-bg:    transparent;
  --btn-secondary-border: var(--brand-surface);
  --btn-secondary-text:  var(--brand-surface);
  --link-color:          var(--brand-interactive);
  --link-hover:          #D44A42;
  --nav-link:            #FFFFFF;
  --nav-link-hover:      var(--brand-interactive);

  /* Borders & dividers */
  --border-default:  var(--brand-muted);
  --border-hover:    var(--brand-surface);
  --border-accent:   var(--brand-accent);

  /* ── Typography ── */
  --font-heading:   'Cascadia Code', monospace;
  --font-body:      'Roboto', sans-serif;
  --font-accent:    'Jost', sans-serif;

  /* Heading style */
  --heading-weight:   700;
  --heading-spacing:  0.5px;

  /* Body style */
  --body-weight:      600;
  --body-spacing:     0;
  --body-line-height: 1.5;

  /* Accent style (buttons, CTAs) */
  --accent-weight:    700;
  --accent-spacing:   4px;
  --accent-transform: uppercase;
  --accent-size:      110%;

  /* ── Spacing & layout ── */
  --max-width:      1100px;
  --radius-sm:      4px;
  --radius-md:      20px;
  --radius-lg:      12px;
}

/* ─── View Transitions (cross-page navigation) ─── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 0.35s cubic-bezier(0.4, 0, 0.2, 1) both vt-out;
}

::view-transition-new(root) {
    animation: 0.35s cubic-bezier(0.4, 0, 0.2, 1) both vt-in;
}

::view-transition-old(navbar),
::view-transition-new(navbar),
::view-transition-old(site-footer),
::view-transition-new(site-footer) {
    animation: none;
}

@keyframes vt-out {
    to { opacity: 0; transform: scale(0.98); }
}

@keyframes vt-in {
    from { opacity: 0; transform: scale(1.02); }
}

/* ─── Skip-to-content (accessibility) ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand-accent);
    color: var(--brand-text);
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 200;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
    color: var(--brand-text);
}

/* ─── Focus-visible (keyboard navigation) ─── */
:focus-visible {
    outline: 3px solid var(--brand-interactive);
    outline-offset: 2px;
}

/* ─── Scroll animations ─── */
@media (prefers-reduced-motion: no-preference) {
    .animate {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .animate-delay-1 { transition-delay: 0.1s; }
    .animate-delay-2 { transition-delay: 0.2s; }
    .animate-delay-3 { transition-delay: 0.3s; }
}

/* ─── Placeholders (dev only — replace with real assets) ─── */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        -45deg,
        var(--brand-muted),
        var(--brand-muted) 10px,
        transparent 10px,
        transparent 20px
    );
    background-color: #e8e4dc;
    border: 2px dashed var(--brand-muted);
    border-radius: var(--radius-md);
    color: var(--brand-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    min-height: 200px;
}

.placeholder--photo {
    aspect-ratio: 1;
}

.placeholder--wide {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.placeholder--icon {
    width: 64px;
    height: 64px;
    min-height: 0;
    border-radius: 50%;
    padding: 0;
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.placeholder--hero {
    aspect-ratio: 21 / 9;
    min-height: 0;
    font-size: 1rem;
}

.placeholder--illustration {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

/* =========================================================
   LAYOUT & COMPONENTS
   ========================================================= */

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

html {
    /* Fluid root font-size: scales linearly with viewport width.
       Equivalent to browser zoom — everything in rem units scales together,
       so the site looks the same at any window size, just bigger/smaller.
       Design target = 1920px wide → 16px root. At 960px → 8px root (50% zoom equivalent).
       Floor at 8px so quarter-screen still works; ceiling at 16px so 4K monitors
       don't render giant text. */
    font-size: clamp(8px, calc(100vw / 120), 16px);
}

body {
    font-family: var(--font-body);
    font-weight: var(--body-weight);
    letter-spacing: var(--body-spacing);
    line-height: var(--body-line-height);
    background: var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-spacing);
    word-spacing: -0.2em;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

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

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

/* ─── Navbar ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-navbar);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    view-transition-name: navbar;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 201;
}

.logo img {
    height: 50px;
    width: auto;
    filter: invert(1);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 252, 242, 0.4);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0;
    transition: border-color 0.3s;
    position: relative;
    z-index: 201;
}

.menu-toggle:hover {
    border-color: var(--text-on-surface);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-on-surface);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Full-screen nav overlay ─── */
.nav-links {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--brand-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    clip-path: circle(0% at calc(100% - 3rem) 2rem);
    visibility: hidden;
    transition: clip-path 0.6s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.6s;
}

.nav-links.open {
    clip-path: circle(150% at calc(100% - 3rem) 2rem);
    visibility: visible;
}

.nav-links a {
    color: var(--text-on-surface);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s;
}

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

@media (prefers-reduced-motion: no-preference) {
    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.open li:nth-child(1) { transition-delay: 0.15s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.22s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.29s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.36s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.43s; }
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 2px solid var(--btn-primary-bg);
    border-radius: var(--radius-sm);
    font-family: var(--font-accent);
    font-size: var(--accent-size);
    font-weight: var(--accent-weight);
    letter-spacing: var(--accent-spacing);
    text-transform: var(--accent-transform);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn:hover {
    background: transparent;
    color: var(--btn-primary-bg);
}

.btn-outline {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border-color: var(--btn-secondary-border);
}

.btn-outline:hover {
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

/* ─── Section utilities ─── */
.section-intro {
    color: var(--text-body);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ─── Hero (full-screen, Enerblock-inspired) ─── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 4rem 2rem 3rem;
    background: var(--bg-hero);
    color: var(--text-on-surface);
    gap: 2rem;
}


.hero-logo {
    width: 17.5rem;  /* 280px at root 16px; scales with root font-size */
    height: auto;
    aspect-ratio: 1;
}

.hero-logo path {
    stroke-dasharray: var(--path-len);
    stroke-dashoffset: var(--path-len);
}


.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 900px;
    color: var(--text-on-surface);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-on-surface);
    max-width: 700px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.scroll-indicator svg {
    color: var(--brand-interactive);
}

/* Hero load animations */
@media (prefers-reduced-motion: no-preference) {
    .scroll-indicator { animation: heroIn 1s ease-out 0.8s both; }

    .scroll-indicator svg {
        animation: scrollPulse 2s ease-in-out infinite;
    }
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(-4px); }
    50%      { opacity: 1;   transform: translateY(4px); }
}

/* ─── Showcase flip card ─── */
.showcase {
    height: 500vh;
    background: var(--bg-page);
}

.showcase-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    perspective: 1200px;
    /* Clip any overflow so children can't bleed into the hero section above
       on short viewports (illustration + card sometimes sum > 100vh). */
    overflow: hidden;
}

.showcase-illustration {
    width: 100%;
    /* Shrink to fit available space alongside the card.
       Was hardcoded 50vh which overflowed on short viewports. */
    flex: 1 1 auto;
    min-height: 0;
    max-height: 50vh;
    object-fit: contain;
}

.showcase-card {
    /* rem-based so it scales with the fluid root font-size.
       300px/16=18.75rem, 500px/16=31.25rem. */
    width: clamp(18.75rem, 85vw, 31.25rem);
    aspect-ratio: 7 / 5;
}

.showcase-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.showcase-card-front,
.showcase-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.showcase-card-front {
    background: var(--brand-card);
    color: #FFFFFF;
}

.showcase-card-front h2,
.showcase-card-front p {
    color: #FFFFFF;
}

.showcase-card-back {
    background: var(--brand-text);
    color: #FFFFFF;
    transform: rotateY(180deg);
}

.showcase-card-back h2,
.showcase-card-back p {
    color: #FFFFFF;
}

.showcase-card-front h2,
.showcase-card-back h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    margin-bottom: 0.75rem;
}

.showcase-card-front p,
.showcase-card-back p {
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    line-height: 1.7;
}

/* ─── About hero (om page) ─── */
.about-hero {
    padding: 4rem 2rem;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-hero-image img {
    border-radius: 8px;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.about-hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-hero-text p {
    color: var(--text-body);
    line-height: 1.8;
}

/* ─── Stats ─── */
.stats {
    background: var(--brand-surface);
    padding: 4rem 2rem;
    text-align: center;
}

.stats h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat {
    flex: 1;
    background: var(--bg-page);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-interactive);
    margin-bottom: 0.5rem;
}

.stat h3 {
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-body);
    font-size: 0.9rem;
}

/* ─── Process ─── */
.process {
    padding: 4rem 2rem;
    text-align: center;
}

.process h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.step {
    flex: 1;
    background: var(--brand-surface);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-on-surface);
    font-size: 0.95rem;
}

/* ─── Services overview ─── */
.services-scroll {
    height: 600vh;
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.services-sticky h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

.services-sticky .section-intro {
    color: var(--text-on-surface);
}

.services-grid {
    display: grid;
    /* rem-based so it scales with the fluid root font-size */
    width: clamp(18.75rem, 80vw, 26.25rem);
    margin: 2rem auto 0;
}

.services-grid .service-card {
    grid-row: 1;
    grid-column: 1;
    aspect-ratio: 5 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-grid .service-card:nth-child(1) {
    background: var(--brand-card);
    color: #FFFFFF;
}

.services-grid .service-card:nth-child(1) h3,
.services-grid .service-card:nth-child(1) p {
    color: #FFFFFF;
}

.services-grid .service-card:nth-child(2) {
    background: var(--brand-accent);
    color: var(--brand-text);
}

.services-grid .service-card:nth-child(2) h3,
.services-grid .service-card:nth-child(2) p {
    color: var(--brand-text);
}

.services-grid .service-card:nth-child(3) {
    background: var(--brand-text);
    color: #FFFFFF;
    border-color: var(--brand-text);
}

.services-grid .service-card:nth-child(3) h3,
.services-grid .service-card:nth-child(3) p {
    color: #FFFFFF;
}

.service-card {
    background: var(--brand-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: left;
    border: 1px solid var(--brand-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--brand-card);
}

.service-card p {
    color: var(--text-body);
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    line-height: 1.7;
}

/* ─── Page header ─── */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-header-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    object-fit: cover;
    max-height: 500px;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ─── Page hero (subpages — full-screen) ─── */
.page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    padding: 4rem 2rem 3rem;
    background: var(--bg-hero);
    color: var(--text-on-surface);
    gap: 2rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 900px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-on-surface);
    max-width: 700px;
    line-height: 1.8;
}

@media (prefers-reduced-motion: no-preference) {
    .page-hero h1            { animation: heroIn 2s ease-out 0.3s both; }
    .page-hero p             { animation: heroIn 1.5s ease-out 0.8s both; }
    .page-hero .btn          { animation: heroIn 1s ease-out 1.2s both; }
    .page-hero .scroll-indicator { animation: heroIn 1s ease-out 1.6s both; }

    .page-hero .scroll-indicator svg {
        animation: scrollPulse 2s ease-in-out infinite;
    }
}

/* ─── Lösningar page ─── */
.solutions-intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 3rem 0 1.5rem;
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.solutions-intro-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.solutions-intro-image {
    width: 100%;
}

.solutions-intro-image img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
}

.solutions-intro-text {
    text-align: center;
    flex-shrink: 0;
    padding: 1.5rem 2rem 0;
}

.solutions-intro-text h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.solutions-intro-text p {
    color: var(--text-on-surface);
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

.solutions-intro-text p + p {
    margin-top: 1rem;
}

.solutions-services {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: var(--bg-page);
}

.solutions-services-inner {
    max-width: var(--max-width);
    width: 100%;
    text-align: center;
}

.solutions-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.solutions-card {
    background: var(--brand-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.solutions-card .service-block-icon {
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.solutions-card h3 {
    color: var(--brand-interactive);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.solutions-card p {
    color: var(--text-on-surface);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ─── Process horizontal scroll ─── */
.process-scroll {
    height: 600vh;
    background: var(--bg-page);
    color: var(--text-body);
}

.process-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.process-sticky h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

.process-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 0;
}

.process-grid {
    display: flex;
    gap: 2rem;
    margin-left: calc(50% - clamp(150px, 40vw, 210px));
}

.process-card {
    width: clamp(300px, 80vw, 420px);
    flex-shrink: 0;
    aspect-ratio: 5 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: left;
}

.process-card:nth-child(1) {
    background: var(--brand-card);
    color: var(--text-on-surface);
}

.process-card:nth-child(2) {
    background: var(--brand-accent);
    color: var(--brand-text);
}

.process-card:nth-child(3) {
    background: var(--brand-text);
    color: var(--brand-bg);
}

.process-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-card h3 {
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    margin-bottom: 0.75rem;
}

.process-card p {
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    opacity: 0.85;
}

.solutions-faq {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.solutions-faq h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-bottom: 2rem;
}

.faq-cards {
    display: grid;
    grid-template-columns: repeat(2, clamp(150px, 38vw, 252px));
    grid-auto-rows: 1fr;
    justify-content: center;
    gap: 1.5rem;
}

.faq-card {
    background: var(--bg-page);
    color: var(--text-body);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    aspect-ratio: 5 / 6.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-width 0.3s ease, opacity 0.4s ease;
}

.faq-card:hover:not(.active) {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-width: 2px;
}

.faq-card::after {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 2px;
    transition: transform 0.3s ease;
}

.faq-card:nth-child(1)::after { background: var(--brand-accent); }
.faq-card:nth-child(2)::after { background: var(--brand-text); }
.faq-card:nth-child(3)::after { background: var(--brand-accent); }
.faq-card:nth-child(4)::after { background: var(--brand-card); }

.faq-card:hover:not(.active)::after {
    transform: translateX(-50%) scaleX(1);
}

.faq-card.dimmed {
    opacity: 0.3;
    pointer-events: none;
}

.faq-card.active {
    transform: scale(1.6);
    z-index: 10;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.faq-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.2s ease;
}

.faq-card.active .faq-close {
    opacity: 1;
    pointer-events: auto;
}

.faq-close:hover {
    color: var(--brand-interactive);
}

.faq-card .faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(43, 79, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-interactive);
    flex-shrink: 0;
    transition: opacity 0.3s ease, margin 0.3s ease, max-height 0.3s ease;
    max-height: 40px;
    overflow: hidden;
}

.faq-card.active .faq-icon {
    opacity: 0;
    max-height: 0;
    margin: 0;
}

.faq-card:nth-child(1) {
    background: var(--brand-card);
    color: #FFFFFF;
}
.faq-card:nth-child(1) h3,
.faq-card:nth-child(1) p { color: #FFFFFF; }

.faq-card:nth-child(2) {
    background: var(--brand-accent);
    color: var(--brand-text);
}
.faq-card:nth-child(2) h3,
.faq-card:nth-child(2) p { color: var(--brand-text); }

.faq-card:nth-child(3) {
    background: var(--brand-text);
    color: #FFFFFF;
}
.faq-card:nth-child(3) h3,
.faq-card:nth-child(3) p { color: #FFFFFF; }

.faq-card:nth-child(4) {
    background: var(--brand-bg);
    color: var(--brand-text);
}
.faq-card:nth-child(4) h3,
.faq-card:nth-child(4) p { color: var(--brand-text); }

.faq-card h3 {
    font-size: clamp(0.95rem, 3vw, 1.3rem);
    line-height: 1.4;
}

.faq-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.1s, margin 0.3s ease;
    margin: 0;
}

.faq-card.active p {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.losningar .cta-block {
    background: var(--bg-page);
    color: var(--text-body);
}

.losningar .cta-block h2 {
    color: var(--text-heading);
}

.losningar .cta-block p {
    color: var(--text-body);
}

/* ─── Om (About) page ─── */
.about-intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.about-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.about-intro-text {
    text-align: center;
    flex-shrink: 0;
    padding: 6rem 2rem 1.5rem;
}

.about-intro-text h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 0.5rem;
    color: var(--text-on-surface);
}

.about-intro-text p {
    color: var(--text-on-surface);
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
}

.about-intro-image {
    width: 80%;
}

.about-intro-image img {
    width: 100%;
    max-height: 45vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.about-team {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: var(--bg-page);
    color: var(--text-body);
    text-align: center;
}

.about-team h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-bottom: 2rem;
}

.about-team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.about-team-card {
    width: clamp(280px, 80vw, 300px);
    background: var(--brand-card);
    color: var(--text-on-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--brand-text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-team-card .placeholder--photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.about-team-card h3 {
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    margin-bottom: 0.25rem;
}

.about-team-card .role {
    color: #FFFFFF;
    font-size: 0.95rem;
}

.om .cta-block {
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.om .cta-block h2 {
    color: var(--text-on-surface);
}

.om .cta-block p {
    color: var(--text-on-surface);
}

/* ─── Kontakt page ─── */
.kontakt-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 3rem;
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.kontakt-hero-inner {
    max-width: var(--max-width);
    width: 100%;
}

.kontakt-hero-text {
    text-align: center;
    margin-bottom: 3rem;
}

.kontakt-hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.kontakt-hero-text p {
    color: var(--text-on-surface);
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt-form .form-group label {
    color: var(--text-on-surface);
}

.kontakt-form .form-group input,
.kontakt-form .form-group textarea,
.kontakt-form .form-group select {
    background: rgba(255, 252, 242, 0.1);
    border: 1px solid rgba(255, 252, 242, 0.25);
    color: var(--text-on-surface);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.kontakt-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FFFCF2' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.kontakt-form .form-group select option {
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.kontakt-form .form-group input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.kontakt-form .form-group input[type="file"]::file-selector-button {
    background: rgba(255, 252, 242, 0.15);
    border: 1px solid rgba(255, 252, 242, 0.3);
    color: var(--text-on-surface);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 0.75rem;
    transition: background 0.2s;
}

.kontakt-form .form-group input[type="file"]::file-selector-button:hover {
    background: rgba(255, 252, 242, 0.25);
}

.form-hint {
    color: rgba(255, 252, 242, 0.45);
    font-size: 0.8rem;
}

.file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.file-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 252, 242, 0.25);
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-preview:hover {
    border-color: var(--brand-interactive);
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-label {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 252, 242, 0.08);
    padding: 0.25rem;
    text-align: center;
}

.file-preview-ext {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-interactive);
    text-transform: uppercase;
}

.file-preview-name {
    font-size: 0.55rem;
    color: rgba(255, 252, 242, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-top: 0.2rem;
}

.file-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.file-preview:hover .file-preview-remove {
    opacity: 1;
}

.file-preview-remove:hover {
    background: #ff6b6b;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
}

.form-success.visible {
    display: block;
}

.kontakt-form .form-group input:focus,
.kontakt-form .form-group textarea:focus,
.kontakt-form .form-group select:focus {
    border-color: var(--brand-interactive);
}

.kontakt-form .form-group input::placeholder,
.kontakt-form .form-group textarea::placeholder {
    color: rgba(255, 252, 242, 0.4);
}

.kontakt-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.kontakt-info p {
    color: var(--text-on-surface);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.kontakt-info h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.kontakt-info a {
    color: var(--brand-interactive);
}

/* ─── Team ─── */
.team {
    padding: 4rem 2rem;
    text-align: center;
}

.team h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
}

.team-card {
    background: var(--brand-card);
    padding: 2rem;
    border-radius: 8px;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.role {
    color: var(--brand-interactive);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.team-card > p:last-child {
    color: var(--text-on-surface);
    font-size: 0.9rem;
}

/* ─── Services detail ─── */
.services-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-block {
    background: var(--brand-surface);
    padding: 2rem;
    border-radius: 8px;
}

.service-block-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.service-block h2 {
    color: var(--brand-interactive);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.service-block p {
    color: var(--text-on-surface);
    line-height: 1.8;
}

.service-block p + p {
    margin-top: 1rem;
}

/* ─── FAQ ─── */
.faq-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-list {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--brand-surface);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::before {
    content: '+';
    margin-right: 0.75rem;
    color: var(--brand-interactive);
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: '\2212';
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-on-surface);
}

/* ─── FAQ extra sections ─── */
.faq-about,
.faq-services {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.faq-about h2,
.faq-services h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.faq-about p {
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── CTA ─── */
.cta {
    text-align: center;
    padding: 4rem 2rem;
}

.cta h2 {
    margin-bottom: 0.5rem;
}

.cta p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

/* ─── CTA block (homepage, lapis background) ─── */
.cta-block {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    color: var(--text-body);
    text-align: center;
    padding: 6rem 2rem;
}

.cta-block h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: var(--text-body);
}

.cta-block p {
    color: var(--text-body);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-bottom: 2rem;
}

/* ─── Contact ─── */
.contact-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background: var(--brand-surface);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--brand-interactive);
    outline-offset: 1px;
    border-color: var(--brand-interactive);
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ─── 404 error page ─── */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
    gap: 1rem;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--brand-interactive);
    line-height: 1;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 1rem;
}

/* ─── Footer ─── */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-default);
    padding: 2rem;
    background: var(--brand-surface);
    color: var(--text-on-surface);
    position: relative;
    z-index: 10;
    view-transition-name: site-footer;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto 1rem;
}

.footer-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #FFFFFF;
    font-size: 0.9rem;
}

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

/* Override interactive coral inside footer — fails contrast on green background */
footer a {
    color: #FFFFFF;
}

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

.copyright {
    text-align: center;
    color: #FFFFFF;
    font-size: 0.8rem;
}

/* ─── Main push footer ─── */
main {
    flex: 1;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        min-height: 90vh;
        padding: 4rem 1.5rem 3rem;
        gap: 1.5rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    /* Sticky sections — reduce padding */
    .showcase-sticky,
    .services-sticky,
    .process-sticky {
        padding: 4rem 1.5rem 2rem;
    }

    /* FAQ */
    .faq-card.active {
        transform: scale(1.3);
    }

    .solutions-faq {
        padding: 4rem 1.5rem;
    }

    /* Om page */
    .about-intro-text {
        padding: 4rem 1.5rem 1rem;
    }

    .about-intro-image {
        width: 90%;
    }

    .about-team {
        padding: 4rem 1.5rem;
    }

    .about-team-grid {
        flex-direction: column;
        align-items: center;
    }

    /* Kontakt page */
    .kontakt-hero {
        padding: 5rem 1.5rem 2rem;
    }

    .kontakt-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* CTA */
    .cta-block {
        padding: 4rem 1.5rem;
    }

    /* Lösningar intro */
    .solutions-intro-text {
        padding: 1.5rem 1.5rem 0;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Old layouts (fallback) */
    .about-preview-content,
    .about-hero-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 400px;
    }

    .process-steps {
        flex-direction: column;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        max-width: 100%;
    }
}

/* ─── Touch devices ─── */
@media (hover: none) {
    /* Disable hover-only effects — use :active instead */
    .service-card:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .stat:hover {
        transform: none;
        box-shadow: none;
    }

    .faq-card:hover:not(.active) {
        transform: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        border-width: 1px;
    }

    .faq-card:active:not(.active) {
        transform: scale(0.97);
    }

    .btn:hover {
        background: var(--btn-primary-bg);
        color: var(--btn-primary-text);
    }

    .btn:active {
        transform: scale(0.96);
        opacity: 0.85;
    }

    /* File preview remove always visible on touch */
    .file-preview-remove {
        opacity: 1;
    }
}

/* ─── Coarse pointer — bigger touch targets ─── */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 0.85rem 2rem;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
    }

    .footer-nav a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .file-preview-remove {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .faq-close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .kontakt-form .form-group input,
    .kontakt-form .form-group textarea,
    .kontakt-form .form-group select {
        min-height: 48px;
        font-size: 16px;
    }
}

/* ─── Safe areas (notch, rounded corners) ─── */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }

    .kontakt-form .btn {
        margin-bottom: env(safe-area-inset-bottom);
    }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .showcase-card-inner,
    .service-card,
    .process-card,
    .faq-card,
    .btn,
    .menu-toggle .bar,
    .nav-links {
        transition: none !important;
    }

    .showcase-card-inner {
        animation: none !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.01s;
    }
}

/* ─── Landscape phones ─── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero,
    .showcase-sticky,
    .about-intro,
    .about-team,
    .cta-block,
    .solutions-faq,
    .kontakt-hero {
        height: auto;
        min-height: 100vh;
    }

    .hero {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .services-sticky,
    .process-sticky {
        padding: 2rem 1.5rem;
    }
}

/* ─── Policy page ─── */
.policy-hero {
    padding: 6rem 2rem 3rem;
    text-align: center;
    background: var(--brand-surface);
    color: var(--text-on-surface);
}

.policy-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.policy-hero p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--brand-surface);
}

.policy-section p {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.policy-section li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.policy-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--brand-interactive);
}

.policy-section a {
    color: var(--brand-interactive);
}

.policy-section a:hover {
    text-decoration: underline;
}

/* ─── Cookie consent banner ─── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--brand-surface);
    border-top: 1px solid var(--border-default);
    padding: 1rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner p {
    color: var(--text-on-surface);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner a {
    color: #FFFFFF;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--brand-accent);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--brand-accent);
    color: var(--brand-text);
    font-weight: 700;
}

.cookie-btn-accept:hover {
    opacity: 0.9;
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-on-surface);
    border: 1px solid var(--border-default);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}
