
:root{--green:#07613f;--dark:#0b211a;--ink:#10231b;--orange:#ff6d13;--soft:#f3f7f4;--line:#dbe3de;--lime:#8bd246}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}img{max-width:100%}
header{height:86px;display:flex;align-items:center;padding:0 3.5%;gap:28px;background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid #eee}
.brand img{width:280px;max-height:60px;object-fit:contain}nav{display:flex;gap:23px;margin-left:auto;align-items:center}nav a{color:#111;text-decoration:none;font-size:14px;font-weight:900}.talk,.btn{display:inline-block;background:var(--green);color:#fff!important;text-decoration:none;font-weight:900;padding:16px 21px;border-radius:7px}.btn.orange{background:var(--orange)}
.shell{width:min(1500px,92%);margin:auto}.hero{height:640px;position:relative;overflow:hidden}.hero>img{width:100%;height:100%;object-fit:cover}.shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,31,24,.95),rgba(3,31,24,.72) 42%,rgba(3,31,24,.05) 75%,transparent)}
.hero-copy{position:absolute;left:5%;top:75px;color:#fff;max-width:720px}.eyebrow,.kicker{display:inline-block;font-weight:900;letter-spacing:.07em;color:var(--lime)}.hero-copy .eyebrow{background:var(--green);color:#fff;padding:9px 13px;border-radius:5px}.hero h1{font-size:62px;line-height:1.04;margin:24px 0}.hero p{font-size:20px;line-height:1.55}.hero .btn{margin-top:15px;background:var(--orange)}
section.pad{padding:75px 0}.soft{background:var(--soft)}.dark{background:var(--dark);color:#fff}
h2{font-size:46px;line-height:1.08;margin:10px 0 23px}h3{line-height:1.2}.lead{font-size:20px;line-height:1.55}
.factbar{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}.factbar>div{padding:24px 4%;border-right:1px solid var(--line)}.factbar b,.factbar span{display:block}.factbar b{color:var(--green);font-size:20px}.factbar span{margin-top:5px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center}.grid2 img{border-radius:14px;width:100%;display:block}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.card .body{padding:20px}.card h3{margin:0 0 10px;font-size:21px}.card p{line-height:1.5;margin:0}.card a{color:var(--orange);font-weight:900;text-decoration:none}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gallery figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.gallery figcaption{padding:14px 16px;font-weight:900;color:var(--green)}
.photo-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.photo-strip img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}
.process{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.process article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px}.process b{color:var(--orange);display:block;font-size:19px;margin-bottom:8px}
.products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.products article{text-align:center;padding:24px;border-right:1px solid var(--line);min-width:0}.products img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.products p{line-height:1.45}.products a{font-size:32px;color:var(--orange);text-decoration:none}
.cta{text-align:center;padding:75px 5%;background:var(--dark);color:#fff}.cta p{font-size:20px}.cta .btn{background:var(--orange);margin-top:10px}
footer{background:#061913;color:#fff;padding:28px 4%;display:flex;gap:25px;flex-wrap:wrap}footer b{color:var(--lime)}
.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form input,.form textarea,.form select{width:100%;padding:14px;border:1px solid #cfd8d2;border-radius:7px;font:inherit}.form textarea{grid-column:1/-1;min-height:150px}.form button{grid-column:1/-1;border:0;cursor:pointer}
.feature-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.feature-list div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px}.feature-list b{display:block;color:var(--green);margin-bottom:7px}
@media(max-width:1100px){nav{display:none}.cards,.gallery{grid-template-columns:repeat(2,1fr)}.products{grid-template-columns:repeat(3,1fr)}.process{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:50px}.grid2{grid-template-columns:1fr}.factbar{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){header{padding:0 3%}.brand img{width:205px}.talk{font-size:11px;padding:12px}.hero{height:590px}.hero-copy{top:50px}.hero h1{font-size:40px}.hero p{font-size:17px}.cards,.gallery,.photo-strip,.products,.process,.feature-list,.form{grid-template-columns:1fr}.form textarea,.form button{grid-column:auto}.factbar{grid-template-columns:1fr}h2{font-size:36px}}

.rich{display:grid;gap:20px;margin-top:30px}
.rich article{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}
.rich h3{margin:0 0 10px;color:var(--green);font-size:23px}
.rich p{font-size:18px;line-height:1.6;margin:0 0 10px}
.rich ul{margin:10px 0 0 20px;padding:0;line-height:1.6;font-size:17px}
.dark .rich article{background:#103027;border-color:#1e493c;color:#fff}.dark .rich h3{color:var(--lime)}
.note{border-left:5px solid var(--orange);padding:16px 20px;background:#fff;font-size:19px;line-height:1.55;margin:24px 0}
.dark .note{background:#12372d}

/* BYGGEPLADS V12 */
.construction-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.construction-gallery figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.construction-gallery img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.construction-gallery figcaption{padding:15px 18px;font-weight:900;color:var(--green)}
.zoom-image{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.construction-calc{display:grid;grid-template-columns:.9fr 1.1fr;gap:38px;align-items:start}
.amp-table{width:100%;border-collapse:collapse;background:#fff}.amp-table th,.amp-table td{padding:13px 15px;border-bottom:1px solid var(--line);text-align:left}.amp-table th{background:#edf4f0;color:var(--green)}
.calcbox{background:#0e3329;color:#fff;border-radius:14px;padding:28px}.calcbox label{display:block;font-weight:900;margin-bottom:24px}.calcbox label b{float:right;color:var(--lime)}.calcbox input{width:100%;display:block;margin-top:12px}
#constructionResult{background:#123e32;border-left:5px solid var(--lime);padding:18px;line-height:1.55;border-radius:4px}
.image-modal{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.96);align-items:center;justify-content:center;padding:30px 70px 55px}
.image-modal.open{display:flex}.image-modal>img{max-width:96vw;max-height:88vh;width:auto;height:auto;object-fit:contain}
#closeModal{position:absolute;right:24px;top:12px;border:0;background:transparent;color:#fff;font-size:54px;line-height:1;cursor:pointer;z-index:2}
.modal-nav{position:absolute;top:45%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:58px;width:58px;height:80px;border-radius:8px;cursor:pointer}.modal-nav.prev{left:12px}.modal-nav.next{right:12px}
#modalCaption{position:absolute;bottom:16px;left:70px;right:70px;text-align:center;color:#fff;font-weight:900;font-size:17px}
@media(max-width:900px){.construction-calc{grid-template-columns:1fr}.construction-gallery{grid-template-columns:1fr}}
@media(max-width:650px){.image-modal{padding:55px 8px}.modal-nav{width:44px;height:65px;font-size:42px}.modal-nav.prev{left:3px}.modal-nav.next{right:3px}#modalCaption{left:48px;right:48px}}

/* BYGGEPLADS V13 - GRID BOOST FIX */
.dark .gridboost-process article{
    background:#fff;
    color:#10231b;
    border:1px solid #dbe3de;
    min-height:285px;
    padding:24px 22px;
    display:flex;
    flex-direction:column;
}
.dark .gridboost-process article b{
    color:#ff6d13;
    font-size:20px;
    margin-bottom:10px;
}
.dark .gridboost-process article h3{
    color:#07613f;
    font-size:20px;
    margin:0 0 10px;
}
.dark .gridboost-process article p{
    color:#2d3a35;
    font-size:16px;
    line-height:1.5;
    margin:0 0 14px;
}
.dark .gridboost-process article small{
    color:#60716a;
    font-weight:800;
    margin-top:auto;
    line-height:1.35;
}
.gb-icon{
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#edf4f0;
    color:#07613f;
    font-size:25px;
    font-weight:900;
    margin-bottom:15px;
}
@media(max-width:1050px){
    .gridboost-process{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
    .gridboost-process{grid-template-columns:1fr}
}

/* PUBLIC HOMEPAGE STANDARD */
#solutions .card img,.products img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}

/* HOMEPAGE – exact matching image size for the two five-card rows */
@media (min-width:1101px){
  #solutions .cards{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }
  #solutions .card{
    border:0;
    border-right:1px solid var(--line);
    border-radius:0;
    padding:24px;
    background:#fff;
  }
  #solutions .card:first-child{
    border-left:1px solid var(--line);
  }
  #solutions .card img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:8px;
    margin:0;
  }
  #solutions .card .body{
    padding:20px 0 0;
  }
  #solutions .card h3{
    min-height:48px;
  }
}
/* Make product row geometry explicit to match */
@media (min-width:1101px){
  .products{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  .products article{
    padding:24px;
  }
  .products img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:8px;
  }
}

/* HOMEPAGE PROFESSIONAL TEXT */
#solutions + .pad .lead,
.pad .shell > .lead{
    max-width:1100px;
}
.feature-list div{
    line-height:1.5;
}
.process article{
    line-height:1.5;
}
.note{
    margin-top:28px;
}

/* LOCKED HOMEPAGE RULE — DO NOT CHANGE
   "Løsninger til din virkelighed" must match the 5 product cards exactly on desktop. */
@media (min-width:1101px){
  body #solutions .cards{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:0 !important;
    border-top:1px solid var(--line) !important;
    border-bottom:1px solid var(--line) !important;
  }
  body #solutions .cards > .card{
    display:block !important;
    min-width:0 !important;
    border:0 !important;
    border-right:1px solid var(--line) !important;
    border-radius:0 !important;
    padding:24px !important;
    background:#fff !important;
    overflow:visible !important;
  }
  body #solutions .cards > .card:first-child{
    border-left:1px solid var(--line) !important;
  }
  body #solutions .cards > .card > img{
    width:100% !important;
    height:auto !important;
    aspect-ratio:4/3 !important;
    object-fit:cover !important;
    display:block !important;
    border-radius:8px !important;
    margin:0 !important;
  }
  body #solutions .cards > .card > .body{
    padding:20px 0 0 !important;
  }
  body .products{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  }
  body .products > article{
    padding:24px !important;
  }
  body .products > article > img{
    width:100% !important;
    height:auto !important;
    aspect-ratio:4/3 !important;
    object-fit:cover !important;
    display:block !important;
    border-radius:8px !important;
    margin:0 !important;
  }
}
