/* ==========================================================
   jorgson.dk – site.css  (Bootstrap 5.3 + jQuery)
   Tømrermester Jørgensen & Søn
   ========================================================== */

:root {
  --jg-navy: #0D1B2B;
  --jg-ink: #0A1015;
  --jg-steel: #1B395A;
  --jg-red: #E3000F;
  --jg-red-dark: #B8000C;
  --jg-blue: #176BE0;
  --jg-cream: #F5EBE0;
  --jg-paper: #FBF7F2;
  --jg-text: #1A1A1A;
  --jg-muted: #5E6672;
  --jg-line: rgba(13, 27, 43, .12);
  --jg-radius: 6px;
  --jg-display: "Zilla Slab", Georgia, serif;
  --jg-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bs-body-font-family: var(--jg-body);
  --bs-body-color: var(--jg-text);
  --bs-link-color-rgb: 23, 107, 224;
}

body { background: var(--jg-paper); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { font-family: var(--jg-display); font-weight: 600; letter-spacing: -.01em; }
img { max-width: 100%; }
::selection { background: var(--jg-red); color: #fff; }

.jg-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--jg-radius); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.jg-btn-red { background: var(--jg-red); border: 2px solid var(--jg-red); color: #fff; }
.jg-btn-red:hover, .jg-btn-red:focus-visible { background: var(--jg-blue); border-color: var(--jg-blue); color: #fff; }
.jg-btn-red:disabled { background: var(--jg-red-dark); border-color: var(--jg-red-dark); color: #fff; opacity: .85; }
.jg-btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.jg-btn-ghost:hover { border-color: #fff; background: #fff; color: var(--jg-navy); }
.jg-btn-outline { border: 2px solid var(--jg-navy); color: var(--jg-navy); background: transparent; }
.jg-btn-outline:hover { background: var(--jg-navy); color: #fff; }

/* ---------- Topbar + header ---------- */
.jg-topbar { background: var(--jg-ink); color: rgba(255,255,255,.7); font-size: .85rem; padding: .4rem 0; }
.jg-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.jg-topbar a:hover { color: #fff; }
.jg-topbar i { color: var(--jg-red); margin-right: .25rem; }

.jg-header { background: var(--jg-navy); transition: box-shadow .25s ease; }
.jg-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.jg-header .navbar { padding: .4rem 0; }
.jg-brand { padding: 0; margin-right: 1.5rem; }
.jg-brand img { height: 112px; width: auto; max-width: 70vw; object-fit: contain; }
@media (max-width: 991.98px) { .jg-brand img { height: 84px; } }
.jg-header .nav-link { color: rgba(255,255,255,.82); font-weight: 700; padding: .5rem .9rem !important; position: relative; }
.jg-header .nav-link:hover, .jg-header .nav-link.active { color: #fff; }
.jg-header .nav-link.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 3px; background: var(--jg-red);
}
@media (max-width: 991.98px) {
  .jg-header .navbar-collapse { border-top: 1px solid rgba(255,255,255,.1); margin-top: .65rem; padding-top: .5rem; }
  .jg-header .nav-link.active::after { left: 0; right: auto; width: 24px; }
}

/* ---------- Shared section bits ---------- */
.jg-section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.jg-paper { background: var(--jg-paper); }
.jg-cream { background: var(--jg-cream); }
.jg-navy { background: var(--jg-navy); color: rgba(255,255,255,.78); }
.jg-h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.25rem; color: var(--jg-navy); }
.jg-lead { font-size: 1.15rem; color: var(--jg-muted); }
.jg-navy .jg-lead, .jg-contact .jg-lead { color: rgba(255,255,255,.75); }
.jg-num {
  display: inline-block; font-family: var(--jg-display); font-weight: 600; font-size: .95rem;
  color: var(--jg-red); letter-spacing: .04em; margin-bottom: .85rem;
}
.jg-navy .jg-num, .jg-contact .jg-num { color: #FF5A63; }
.jg-link-arrow { font-weight: 700; color: var(--jg-navy); text-decoration: none; border-bottom: 2px solid var(--jg-red); padding-bottom: 2px; }
.jg-link-arrow i { transition: transform .2s; display: inline-block; }
.jg-link-arrow:hover i { transform: translateX(4px); }

/* Measuring-ruler motif */
.jg-ruler {
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--jg-navy) 0 2px, transparent 2px 80px) top left / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, var(--jg-navy) 0 1px, transparent 1px 40px) top left / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(13,27,43,.55) 0 1px, transparent 1px 8px) top left / 100% 6px no-repeat;
}
.jg-ruler--dark {
  background-color: var(--jg-ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 8px);
  background-size: 100% 14px, 100% 9px, 100% 5px;
  background-repeat: no-repeat;
  height: 14px;
}
.jg-ruler-band { background: #F2C84B; background: linear-gradient(180deg, #F3CF5A, #E9BC3A); border-block: 2px solid var(--jg-navy); }
.jg-ruler-labels {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: .35rem 12px .7rem; font-family: var(--jg-display); font-weight: 700; color: var(--jg-navy);
  text-transform: uppercase; letter-spacing: .08em; font-size: .9rem;
}

/* ---------- Hero ---------- */
.jg-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--jg-navy) url("/assets/images/outline-skray-126-itfHTZHaIllnyDIL.jpg") center / cover no-repeat;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.jg-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jg-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,16,21,.92) 0%, rgba(13,27,43,.82) 45%, rgba(13,27,43,.45) 100%),
    linear-gradient(0deg, rgba(10,16,21,.5), transparent 40%);
}
@media (prefers-reduced-motion: reduce) { .jg-hero-video { display: none; } }

.jg-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; color: rgba(255,255,255,.85); margin-bottom: 1.25rem;
}
.jg-eyebrow span { width: 36px; height: 3px; background: var(--jg-red); display: inline-block; }
.jg-hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 700; margin-bottom: 1.25rem; color: #fff; }
.jg-hero-title em { font-style: italic; font-weight: 500; color: #F3CF5A; }
.jg-hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 36rem; margin-bottom: 2rem; }
.jg-hero-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: 0; font-weight: 700; font-size: .95rem; }
.jg-hero-facts i { color: #F3CF5A; margin-right: .35rem; }

/* ---------- Form cards (fælles for top og bund) ---------- */
.sk-form-card { position: relative; }
.jg-form-card {
  background: #fff; color: var(--jg-text); border-radius: var(--jg-radius);
  padding: 1.75rem; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden;
}
/* Tømrervinkel i hjørnet */
.jg-form-card::before, .jg-form-card::after { content: ""; position: absolute; background: var(--jg-red); z-index: 1; }
.jg-form-card::before { top: 0; left: 0; width: 64px; height: 6px; }
.jg-form-card::after  { top: 0; left: 0; width: 6px; height: 64px; }
.jg-form-kicker { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--jg-red); margin-bottom: .35rem; }
.jg-form-title { font-size: 1.6rem; color: var(--jg-navy); margin-bottom: 1rem; }
.jg-form-sub { color: var(--jg-muted); margin-top: -.5rem; margin-bottom: 1.25rem; }
.jg-form-card .form-label { font-size: .8rem; font-weight: 700; color: var(--jg-navy); margin-bottom: .2rem; }
.jg-form-card .form-control, .jg-form-card .form-select {
  border: 1.5px solid #CDD3DA; border-radius: 4px; background-color: #FBFCFD; padding: .55rem .75rem;
}
.jg-form-card .form-control:focus, .jg-form-card .form-select:focus {
  border-color: var(--jg-blue); box-shadow: 0 0 0 .2rem rgba(23,107,224,.18); background-color: #fff;
}
.jg-form-note { font-size: .8rem; color: var(--jg-muted); margin: .65rem 0 0; }
.jg-form-card--bottom { padding: clamp(1.5rem, 3vw, 2.5rem); }
.jg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Succes-overlay – vises af site.js (display:flex + fadeIn) */
.contact-success-wrapper {
  position: absolute; inset: 0; z-index: 5; align-items: center; justify-content: center; text-align: center;
  background: #fff; padding: 2rem;
}
.jg-success { max-width: 340px; }
.jg-success h4 { color: var(--jg-navy); font-size: 1.5rem; margin: 1rem 0 .5rem; }
.jg-success p { color: var(--jg-muted); }
.jg-success a { color: var(--jg-red); font-weight: 700; }
.jg-success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--jg-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem;
  box-shadow: 0 0 0 10px rgba(227,0,15,.12);
  animation: jgPop .45s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes jgPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Om os ---------- */
.jg-quote {
  font-family: var(--jg-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2; color: var(--jg-navy); border-left: 6px solid var(--jg-red); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0;
}
.jg-collage { position: relative; padding: 0 0 18% 0; }
.jg-collage figure { margin: 0; overflow: hidden; border-radius: var(--jg-radius); background: var(--jg-steel); }
.jg-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jg-collage-a { width: 78%; aspect-ratio: 4 / 5; }
.jg-collage-b {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1 / 1;
  border: 8px solid var(--jg-paper); border-radius: var(--jg-radius);
}
.jg-collage-stamp {
  position: absolute; left: 62%; top: 8%; transform: translateX(-50%) rotate(-8deg);
  width: 118px; height: 118px; border-radius: 50%; background: var(--jg-red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  font-family: var(--jg-display); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  outline: 2px dashed rgba(255,255,255,.6); outline-offset: -9px;
}
.jg-collage-stamp strong { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
.jg-collage-stamp span { font-style: italic; font-size: 1rem; margin: .1rem 0; }

/* ---------- Services ---------- */
.jg-service {
  display: block; position: relative; height: 100%; min-height: 420px; border-radius: var(--jg-radius); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--jg-steel);
}
.jg-service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.jg-service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,21,0) 30%, rgba(10,16,21,.92) 100%); }
.jg-service:hover img { transform: scale(1.06); }
.jg-service-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; z-index: 1; }
.jg-service-no {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 2px solid #F3CF5A; color: #F3CF5A; font-family: var(--jg-display); font-weight: 700; border-radius: 50%; margin-bottom: .75rem;
}
.jg-service h3 { font-size: 1.75rem; margin-bottom: .4rem; color: #fff; }
.jg-service p { margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; }
.jg-service:hover h3 { text-decoration: underline; text-decoration-color: var(--jg-red); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.jg-more-services {
  display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.5rem 0 0;
}
.jg-more-services li {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .45rem 1.1rem; color: #fff; font-weight: 700; font-size: .95rem;
}
.jg-more-services i { color: #F3CF5A; }

/* ---------- Shorts ---------- */
.jg-shorts {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--jg-navy) transparent;
}
.jg-short {
  flex: 0 0 auto; width: clamp(220px, 24vw, 280px); aspect-ratio: 9 / 16; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden; background: var(--jg-navy); box-shadow: 0 14px 36px rgba(13,27,43,.2);
  border: 4px solid #fff;
}
.jg-short iframe { width: 100%; height: 100%; border: 0; display: block; }
.jg-arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--jg-navy); background: transparent; color: var(--jg-navy);
  font-size: 1.2rem; transition: all .2s;
}
.jg-arrow:hover { background: var(--jg-navy); color: #fff; }
.jg-follow { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; font-weight: 700; }
.jg-follow span { font-family: var(--jg-display); color: var(--jg-navy); font-size: 1.1rem; }
.jg-follow a { color: var(--jg-navy); text-decoration: none; }
.jg-follow a:hover { color: var(--jg-red); }

/* ---------- Personer + partner ---------- */
.jg-person { background: #fff; border-radius: var(--jg-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(13,27,43,.08); height: 100%; }
.jg-person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--jg-cream); }
.jg-person-body { padding: 1.5rem; border-top: 6px solid var(--jg-red); }
.jg-person h3 { font-size: 1.6rem; color: var(--jg-navy); margin-bottom: .5rem; }
.jg-person a { display: block; color: var(--jg-text); text-decoration: none; padding: .15rem 0; }
.jg-person a i { color: var(--jg-red); margin-right: .4rem; }
.jg-person a:hover { color: var(--jg-blue); }
.jg-partner {
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--jg-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem;
}
.jg-partner-label { font-family: var(--jg-display); font-size: 1.3rem; color: var(--jg-navy); }
.jg-partner img { max-height: 62px; width: auto; }

/* ---------- Kontakt-sektion (bund) ---------- */
.jg-contact {
  background:
    radial-gradient(circle at 0% 100%, rgba(23,107,224,.25), transparent 45%),
    linear-gradient(160deg, var(--jg-steel) 0%, var(--jg-navy) 55%, var(--jg-ink) 100%);
  color: rgba(255,255,255,.8);
}
.jg-steps { margin: 2rem 0; }
.jg-steps li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.jg-steps li span {
  flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--jg-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--jg-display); font-weight: 700; font-size: 1.15rem;
}
.jg-steps strong { display: block; color: #fff; font-size: 1.05rem; }
.jg-callbox {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--jg-radius);
  border: 1px dashed rgba(255,255,255,.3);
}
.jg-callbox > i { font-size: 1.5rem; color: #F3CF5A; }
.jg-callbox span { display: block; font-size: .85rem; }
.jg-callbox a { font-family: var(--jg-display); font-size: 1.9rem; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.1; }
.jg-callbox a:hover { color: #F3CF5A; }

/* ---------- Footer ---------- */
.jg-footer { background: var(--jg-ink); color: rgba(255,255,255,.65); font-size: .95rem; }
.jg-footer-logo { height: 62px; width: auto; object-fit: contain; }
.jg-footer-lead { max-width: 22rem; }
.jg-footer-h { font-family: var(--jg-body); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }
.jg-footer-links li { margin-bottom: .6rem; }
.jg-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.jg-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--jg-red); }
.jg-footer address { font-style: normal; line-height: 1.8; }
.jg-muted { color: rgba(255,255,255,.45); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.jg-social { display: flex; gap: .6rem; }
.jg-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.jg-social a:hover { background: var(--jg-red); border-color: var(--jg-red); text-decoration: none; }
.jg-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---------- Reveal (klassen sættes af site.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobil ---------- */
@media (max-width: 575.98px) {
  .jg-form-card { padding: 1.35rem; }
  .jg-service { min-height: 340px; }
  .jg-collage-stamp { width: 92px; height: 92px; }
  .jg-collage-stamp strong { font-size: 1.05rem; }
  .jg-ruler-labels { justify-content: center; font-size: .78rem; }
}