/* Fenstad A/S — Pizza base landing */

:root {
  --fenstad-red: #c41e3a;
  --fenstad-red-dark: #9a1830;
  --fenstad-cream: #fff8f0;
  --fenstad-charcoal: #1a1a1a;
  --fenstad-muted: #5c5c5c;
  --fenstad-white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(26, 26, 26, 0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fenstad-charcoal);
  background: var(--fenstad-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fenstad-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 30, 58, 0.12);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.logo-link:hover {
  text-decoration: none;
}
.logo-link img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.45s ease;
}
.logo-link:hover img {
  transform: scale(1.04);
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fenstad-charcoal);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover {
  background: rgba(196, 30, 58, 0.1);
  color: var(--fenstad-red);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--fenstad-white);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--fenstad-charcoal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-mobile a:hover {
  color: var(--fenstad-red);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
  animation: heroBgZoom 24s ease-in-out infinite;
}

/* Slow zoom in → zoom out on hero (Ken Burns–light) */
@keyframes heroBgZoom {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.07);
  }
  55% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(26, 26, 26, 0.55) 45%,
    rgba(196, 30, 58, 0.35) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both, badgeGlow 5s ease-in-out 1s infinite;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeUp 0.8s 0.2s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--fenstad-red);
  color: #fff;
  box-shadow: 0 4px 24px rgba(196, 30, 58, 0.45);
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-left: 0.75rem;
  animation: fadeUp 0.8s 0.35s ease both;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .btn-ghost {
    margin-left: 0;
    margin-top: 0.75rem;
  }
  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
  }
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 62ch;
  color: var(--fenstad-muted);
}

.bg-white {
  background: var(--fenstad-white);
}

.bg-cream {
  background: var(--fenstad-cream);
}

/* Value cards */
.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.value-card {
  padding: 1.75rem;
  background: var(--fenstad-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 30, 58, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.1);
}

.value-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--fenstad-red);
}

.value-card p {
  margin: 0;
  color: var(--fenstad-muted);
  font-size: 0.98rem;
}

/* Products */
.product-showcase {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 800px) {
  .product-showcase {
    grid-template-columns: 1fr;
  }
}

.product-showcase figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.product-showcase figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-showcase figure:hover img {
  transform: scale(1.05);
}

.product-specs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-specs li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.product-specs strong {
  color: var(--fenstad-red-dark);
}

.product-type {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(196, 30, 58, 0.15);
}

.product-type h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

/* Gallery strip */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-strip a,
.gallery-strip figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-strip figure:hover img {
  transform: scale(1.08);
}

/* Industries */
.industry-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.industry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover img {
  transform: scale(1.06);
}

.industry-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.industry-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.industry-card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-visual {
  display: grid;
  gap: 1rem;
}

.about-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.about-visual .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, #fff 0%, var(--fenstad-cream) 100%);
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  padding: 1.75rem;
  background: var(--fenstad-white);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 30, 58, 0.1);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(196, 30, 58, 0.15);
  font-family: Georgia, serif;
}

.testimonial-card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--fenstad-muted);
}

.testimonial-card footer {
  font-weight: 700;
  color: var(--fenstad-charcoal);
  font-size: 0.9rem;
}

.stars {
  color: #e6a800;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 2rem;
  background: var(--fenstad-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 30, 58, 0.1);
}

.contact-card h3 {
  margin: 0 0 1rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-list strong {
  min-width: 5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--fenstad-charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer .logo-link img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer .logo-text {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bg img {
    animation: none !important;
    will-change: auto;
  }
  .hero-badge {
    animation: fadeUp 0.8s ease both !important;
  }
  .logo-link img {
    transition: none;
  }
  .logo-link:hover img {
    transform: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .value-card:hover,
  .testimonial-card:hover,
  .industry-card:hover img,
  .product-showcase figure:hover img {
    transform: none !important;
  }
}
