/* ============================================
   Lindgren Marketing — Stylesheet
   Minimalistic B2B marketing consultant site
   ============================================ */

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

:root {
  --color-bg: #f5f4f0;
  --color-bg-alt: #eae8e3;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #1a1a1a;
  --color-white: #ffffff;
  --color-border: #d4d2cd;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: clamp(80px, 12vh, 160px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background-color: rgba(245, 244, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.nav-desktop a:hover {
  color: var(--color-text);
}

.nav-desktop a.nav-cta {
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 99;
  padding: 120px 40px 40px;
  flex-direction: column;
  gap: 24px;
}

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

.nav-mobile a {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--section-padding);
  padding-top: 120px;
}

.hero-content {
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  max-width: 600px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Section Layout --- */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 60px;
}

.section-number {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

h2.section-title {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin-bottom: 60px;
}

/* --- How I Support You --- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.support-grid h2 {
  max-width: 500px;
}

.support-text p {
  margin-bottom: 20px;
}

.support-text p:last-child {
  margin-bottom: 0;
}

/* --- Services Section --- */
.services-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.services-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--color-text);
}

/* --- Image Section --- */
.image-section {
  padding: 0;
  position: relative;
}

.image-full {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

/* --- How We Work Together --- */
.work-together-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.work-card {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.work-card-number {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.work-card h3 {
  margin-bottom: 16px;
  color: var(--color-text);
}

.work-card p {
  font-size: 0.95rem;
}

.work-card-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.work-card-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.work-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
}

/* --- About / Background Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 32px;
}

.about-content p {
  margin-bottom: 20px;
}

.companies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.companies-list span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.about-skills-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.about-skills-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.about-skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
}

.about-expand {
  margin-top: 12px;
}

.about-expand .example-trigger {
  white-space: normal;
  text-align: left;
}

/* --- Image Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0;
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  will-change: transform, opacity;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Initial hidden states — each slides in from a different direction */
.gallery-item:nth-child(1) img {
  transform: translateX(-60px);
  opacity: 0;
}

.gallery-item:nth-child(2) img {
  transform: translateY(60px);
  opacity: 0;
}

.gallery-item:nth-child(3) img {
  transform: translateX(60px);
  opacity: 0;
}

/* Visible state */
.gallery-item.in-view img {
  transform: translate(0, 0);
  opacity: 1;
}

/* Scroll-out state — slide back out in opposite directions */
.gallery-item.out-of-view:nth-child(1) img {
  transform: translateX(-60px);
  opacity: 0;
}

.gallery-item.out-of-view:nth-child(2) img {
  transform: translateY(-60px);
  opacity: 0;
}

.gallery-item.out-of-view:nth-child(3) img {
  transform: translateX(60px);
  opacity: 0;
}

/* Stagger the transitions */
.gallery-item:nth-child(2) img {
  transition-delay: 0.1s;
}

.gallery-item:nth-child(3) img {
  transition-delay: 0.2s;
}

/* --- FAQ Section --- */
.faq-list {
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--color-text);
  text-align: left;
  line-height: 1.4;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 28px;
}

.faq-answer-inner p {
  font-size: 0.95rem;
}

.faq-answer-inner ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.faq-answer-inner ul li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.faq-answer-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--section-padding) 0;
}

.contact-section .section-number,
.contact-section .section-title {
  color: rgba(255, 255, 255, 0.5);
}

.contact-section .section-divider {
  background-color: rgba(255, 255, 255, 0.15);
}

.contact-centered {
  max-width: 600px;
}

.contact-centered h2 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.contact-intro {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
}

.contact-info {
  margin-bottom: 32px;
}

.contact-link {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--color-white);
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.7;
}

.contact-languages {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-address,
.footer-cvr {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-right a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--color-white);
}

.back-to-top {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.back-to-top:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Example Toggle (on work cards) --- */
.example-toggle {
  margin-top: 20px;
}

.example-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  letter-spacing: 0.02em;
}

.example-trigger:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.example-icon {
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  line-height: 1;
}

.example-toggle.open .example-icon {
  transform: rotate(45deg);
}

.example-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.example-content-inner {
  padding-top: 24px;
}

.example-content-inner h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: 0;
}

.example-content-inner p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.example-content-inner p strong {
  color: var(--color-text);
  font-weight: 500;
}

.example-content-inner ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.example-content-inner ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.example-content-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
}

/* --- Floating CTA Banner --- */
.floating-cta {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 600px;
  width: calc(100% - 48px);
}

.floating-cta.visible {
  bottom: 32px;
}

.floating-cta.dismissed {
  bottom: -100%;
}

.floating-cta-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.floating-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.floating-cta-label {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.floating-cta-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.floating-cta-btn {
  flex-shrink: 0;
  background: var(--color-white);
  color: var(--color-accent);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.floating-cta-btn:hover {
  opacity: 0.85;
}

.floating-cta-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-cta-close:hover {
  background: var(--color-bg-alt);
}

@media (max-width: 520px) {
  .floating-cta {
    padding: 16px 20px;
    border-radius: 12px;
  }

  .floating-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .floating-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

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

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  opacity: 0.8;
}

.cookie-btn-accept {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
}

.cookie-btn-decline {
  background: none;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .support-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .work-together-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 85vh;
    padding-top: 100px;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-right {
    gap: 16px;
  }

  .footer-bottom {
    text-align: center;
  }
}
