/* =========================================================
   Østergaard Byg — Hoved CSS (forside + delte styles)
   ========================================================= */

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

:root {
  --navy: #0a1628;
  --blue: #1a3a6b;
  --accent: #2a7fd4;
  --light-blue: #ddeeff;
  --white: #ffffff;
  --off: #f4f6f9;
  --text: #1c2333;
  --muted: #6b7a99;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: 2px;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: rgba(10,22,40,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600 !important;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background-color: #0a1628; /* navy fallback hvis billedet ikke loader */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before { display: none; }
.hero-stripe { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 8% 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42,127,212,0.15);
  border: 1px solid rgba(42,127,212,0.3);
  color: #7ab8f5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
  display: block;
}
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.75);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@keyframes vibrate {
  0%, 85%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-10deg); }
  88% { transform: rotate(10deg); }
  90% { transform: rotate(-8deg); }
  92% { transform: rotate(8deg); }
  94% { transform: rotate(-5deg); }
  96% { transform: rotate(5deg); }
  98% { transform: rotate(-2deg); }
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  animation: vibrate 3s ease-in-out infinite;
}
.btn-primary:hover { background: #1a6ab8; transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.07); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 0.2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}

/* ── Hero testimonial rotator ─────────────────────── */
.hero-testimonial { margin-top: 2rem !important; max-width: 460px !important; }
.ht-stars { color: #f5c518 !important; font-size: 0.95rem !important; letter-spacing: 3px !important; margin-bottom: 0.85rem !important; }
.ht-quote { color: #fff !important; font-size: 0.98rem !important; line-height: 1.68 !important; font-style: italic !important; margin: 0 0 0.3rem !important; transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease !important; text-shadow: 0 1px 10px rgba(0,0,0,0.8) !important; }
.ht-quote.ht-out { opacity: 0 !important; filter: blur(4px) !important; transform: translateY(-4px) !important; }
.ht-author-line { color: #2a7fd4 !important; font-size: 0.72rem !important; font-weight: 700 !important; letter-spacing: 0.14em !important; text-transform: uppercase !important; margin: 0 0 1.1rem !important; transition: opacity 0.25s ease, transform 0.25s ease !important; text-shadow: 0 1px 8px rgba(0,0,0,0.8) !important; }
.ht-author-line.ht-out { opacity: 0 !important; transform: translateY(4px) !important; }
.ht-pills { display: flex !important; gap: 0.4rem !important; flex-wrap: wrap !important; align-items: center !important; }
.ht-pill { display: inline-flex !important; align-items: center !important; gap: 6px !important; background: rgba(255,255,255,0.08) !important; border: 1px solid rgba(255,255,255,0.13) !important; color: rgba(255,255,255,0.6) !important; font-size: 0.76rem !important; font-weight: 500 !important; padding: 4px 12px 4px 4px !important; border-radius: 100px !important; cursor: pointer !important; transition: all 0.25s ease !important; line-height: 1 !important; }
.ht-pill.active { background: #2a7fd4 !important; border-color: #2a7fd4 !important; color: #fff !important; font-weight: 600 !important; box-shadow: 0 2px 12px rgba(42,127,212,0.45) !important; }
.ht-pill:hover:not(.active) { background: rgba(255,255,255,0.14) !important; color: #fff !important; }
.ht-avatar { width: 28px !important; height: 28px !important; min-width: 28px !important; border-radius: 50% !important; object-fit: cover !important; display: block !important; border: 2px solid rgba(255,255,255,0.25) !important; }

/* ---- SERVICES ---- */
.services {
  padding: 7rem 8%;
  background: var(--off);
}
.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 3.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.2rem;
  border: 1px solid #e4eaf5;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(26,58,107,0.12); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- WORK ---- */
.work { padding: 7rem 8%; background: var(--white); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.work-item { border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; }
.work-item img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.5s; filter: brightness(0.9); }
.work-item:first-child { grid-column: 1 / 3; }
.work-item:first-child img { height: 380px; }
.work-item:hover img { transform: scale(1.04); }
.work-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,0.8));
  padding: 1.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-item:hover .work-overlay { opacity: 1; }

/* ---- WHY ---- */
.why { padding: 7rem 8%; background: var(--navy); position: relative; overflow: hidden; }
.why::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(42,127,212,0.08);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.why-content .section-title { color: var(--white); }
.why-content .section-sub { color: rgba(255,255,255,0.55); }
.why-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.why-point { display: flex; gap: 1.2rem; align-items: flex-start; }
.why-point-icon {
  width: 40px; height: 40px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  color: #22c55e;
  font-weight: 700;
}
.why-point h4 { color: var(--white); font-weight: 600; margin-bottom: 0.3rem; }
.why-point p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.6; }
.why-visual { display: flex; align-items: center; justify-content: center; }
.why-visual img { width: 100%; max-width: 480px; height: auto; border-radius: 12px; display: block; }

/* ---- AREAS ---- */
.areas { padding: 5rem 8%; background: var(--off); text-align: center; }
.areas-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.area-tag {
  background: var(--white);
  border: 1px solid #d0dcee;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
}

/* ---- CTA ---- */
.cta {
  padding: 7rem 8%;
  background: var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before { display: none; }
.cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
}
.cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 2.5rem; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-white {
  background: var(--white);
  color: var(--accent);
  padding: 1rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s;
  display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 1rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-outline-white:hover { border-color: white; }

/* ---- SOCIALE MEDIER ---- */
.social-section {
  padding: 6rem 8%;
  background: var(--white);
  overflow: hidden;
}
.social-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.social-text .section-title { color: var(--navy); }
.social-text .section-tag { color: var(--accent); }
.social-text .section-sub { color: var(--muted); }
.fb-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  margin-top: 2rem;
  transition: background 0.2s, transform 0.2s;
}
.fb-follow-link:hover {
  background: #1464d8;
  transform: translateY(-2px);
}

/* iPhone slide-up + cursor animation */
.social-phone {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.phone-wrapper {
  position: relative;
  display: inline-block;
}
.iphone-mockup {
  max-width: 300px;
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
  display: block;
}
.iphone-mockup.in-view {
  transform: translateY(0);
  opacity: 1;
}

/* Cursor */
.cursor-anim {
  position: absolute;
  width: 26px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  top: 0;
  left: 0;
  transform: translate(180px, 60px);
  animation: cursor-move 3.5s ease-in-out infinite;
  animation-play-state: paused;
}
.cursor-anim.active {
  animation-play-state: running;
}

@keyframes cursor-move {
  0%   { transform: translate(180px, 60px); opacity: 0; }
  10%  { transform: translate(180px, 60px); opacity: 1; }
  55%  { transform: translate(88px, 195px); opacity: 1; }
  62%  { transform: translate(88px, 195px) scale(0.8); }
  70%  { transform: translate(88px, 195px) scale(1); }
  90%  { transform: translate(88px, 195px); opacity: 1; }
  100% { transform: translate(180px, 60px); opacity: 0; }
}

/* Sparkles */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 11;
  font-size: 1rem;
  opacity: 0;
  animation: sparkle-pop 3.5s ease-in-out infinite;
  animation-play-state: paused;
}
.sparkle.active { animation-play-state: running; }

@keyframes sparkle-pop {
  0%, 58%  { opacity: 0; transform: scale(0) translate(0,0); }
  65%      { opacity: 1; transform: scale(1.2) translate(0,0); }
  80%      { opacity: 0.6; }
  90%      { opacity: 0; transform: scale(0.5) translate(var(--tx), var(--ty)); }
  100%     { opacity: 0; }
}

.sparkle:nth-child(1) { top: 185px; left: 60px;  --tx: -12px; --ty: -14px; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 175px; left: 95px;  --tx:   4px; --ty: -18px; animation-delay: 0.05s; }
.sparkle:nth-child(3) { top: 192px; left: 118px; --tx:  14px; --ty: -10px; animation-delay: 0.1s; }
.sparkle:nth-child(4) { top: 208px; left: 108px; --tx:  12px; --ty:   8px; animation-delay: 0.08s; }
.sparkle:nth-child(5) { top: 210px; left: 72px;  --tx: -10px; --ty:  10px; animation-delay: 0.03s; }
.sparkle:nth-child(6) { top: 168px; left: 82px;  --tx:  -6px; --ty: -20px; animation-delay: 0.12s; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  padding: 4rem 8% 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--white); letter-spacing: 2px; margin-bottom: 0.8rem; }
.footer-logo span { color: var(--accent); }

.footer-desc { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.2rem; max-width: 300px; }

.footer-contact { font-size: 0.85rem; line-height: 1.9; color: rgba(255,255,255,0.45); }
.footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }

.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1;
  padding: 0.45rem 0;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-col a:last-child { border-bottom: none; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ---- SCROLL REVEAL ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-img-side { display: none; }
  .hero-content { padding: 8rem 6% 5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-item:first-child { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: flex; justify-content: center; }
  .nav-links { display: none; }
  .hero-testimonial { max-width: 100%; }
}

@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-sub {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 2px 16px rgba(0,0,0,0.85), 0 4px 32px rgba(0,0,0,0.7);
  }
  .stat-label { color: rgba(255,255,255,0.7); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
