/*
Theme Name: Haldrup Byg
Theme URI: https://haldrupbyg.dk
Author: Haldrup Byg ApS
Description: Eget tema til Haldrup Byg – forslag C "Rød signatur". Forside med ydelser, referencer, om os og kontaktformular. Undersider viser deres eksisterende Elementor-indhold med temaets top og bund.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: haldrup-byg
*/

@font-face{font-family:"Saira Semi Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/saira-semi-condensed-700.woff2) format("woff2")}
@font-face{font-family:"Saira Semi Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/saira-semi-condensed-800.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/source-sans-3-var.woff2) format("woff2")}

:root{
  --hb-red:#B81F1A;
  --hb-red-dark:#8E1712;
  --hb-ink:#232322;
  --hb-antracit:#373736;
  --hb-muted:#4A4A48;
  --hb-sand:#F5F4F2;
  --hb-line:#D3D1CC;
  --hb-white:#FFFFFF;
  --hb-display:"Saira Semi Condensed","Arial Narrow",sans-serif;
  --hb-body:"Source Sans 3","Segoe UI",sans-serif;
  --hb-wrap:1280px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.hb{margin:0;background:var(--hb-white);color:var(--hb-ink);font-family:var(--hb-body);font-size:18px;line-height:1.55;-webkit-font-smoothing:antialiased}
.hb img{max-width:100%;height:auto}
.hb a{color:var(--hb-red)}
.hb a:hover{color:var(--hb-red-dark)}
.hb :focus-visible{outline:3px solid var(--hb-red);outline-offset:3px}
.hb-wrap{max-width:var(--hb-wrap);margin:0 auto;padding:0 32px}
.hb-skip{position:absolute;left:-9999px;top:0;background:var(--hb-white);padding:12px 16px;z-index:1000}
.hb-skip:focus{left:16px;top:16px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Topbjælke */
.hb-topbar{background:var(--hb-antracit);color:#E4E2DE;font-size:14px}
.hb-topbar .hb-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;padding-top:8px;padding-bottom:8px}
.hb-topbar a{color:var(--hb-white)}
.hb-topbar a.hb-tel{text-decoration:none;font-weight:600}

/* Header */
.hb-header{background:var(--hb-white);position:relative;z-index:50}
.hb-header .hb-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;padding-top:18px;padding-bottom:18px}
.hb-logo img{display:block;height:72px;width:auto}
.hb-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 24px}
.hb-nav a{font-family:var(--hb-display);font-weight:700;font-size:17px;text-transform:uppercase;letter-spacing:.03em;color:var(--hb-antracit);text-decoration:none;padding:10px 0;display:inline-block}
.hb-nav a:hover,.hb-nav .current-menu-item>a,.hb-nav li:last-child>a{color:var(--hb-red)}
.hb-menu-toggle{display:none;background:var(--hb-antracit);color:var(--hb-white);border:0;font:700 17px var(--hb-display);text-transform:uppercase;padding:12px 18px;min-height:46px;cursor:pointer}

/* Knapper */
.hb-btn{display:inline-flex;align-items:center;min-height:50px;padding:14px 26px;font-family:var(--hb-display);font-weight:700;font-size:19px;text-transform:uppercase;text-decoration:none;border:0;cursor:pointer;line-height:1.1}
.hb .hb-btn--red{background:var(--hb-red);color:var(--hb-white)}
.hb .hb-btn--red:hover{background:var(--hb-red-dark);color:var(--hb-white)}
.hb .hb-btn--dark{background:var(--hb-antracit);color:var(--hb-white)}
.hb .hb-btn--dark:hover{background:#222;color:var(--hb-white)}
.hb .hb-btn--white{background:var(--hb-white);color:var(--hb-red);font-weight:800;font-size:26px}

/* Striber (logo-motiv) */
.hb-stripes{display:flex;gap:8px;margin-bottom:26px}
.hb-stripes span{display:block;width:12px;height:46px;background:var(--hb-red);transform:skewX(-24deg)}
.hb-stripes span:nth-child(2){background:var(--hb-antracit)}

/* Overskrifter */
.hb-h1,.hb-h2,.hb-h3{font-family:var(--hb-display);font-weight:800;text-transform:uppercase;margin:0}
.hb-h1{font-size:66px;line-height:1;color:var(--hb-ink);margin-bottom:22px}
.hb-h1 em{font-style:normal;color:var(--hb-red)}
.hb-h2{font-size:46px;line-height:1.05;margin-bottom:12px}
.hb-h2 em{font-style:normal;color:var(--hb-red)}
.hb-h3{font-size:26px;line-height:1.1;margin-bottom:4px}
.hb-lead{font-size:20px;color:var(--hb-muted);max-width:520px;margin:0 0 32px}
.hb-intro{color:var(--hb-muted);max-width:640px;margin:0 0 44px}

/* Hero */
.hb-hero{background:var(--hb-sand);overflow:hidden}
.hb-hero .hb-wrap{display:flex;flex-wrap:wrap;align-items:stretch;gap:0 48px}
.hb-hero__text{flex:1 1 440px;min-width:0;padding:84px 0 72px}
.hb-hero__actions{display:flex;flex-wrap:wrap;gap:12px}
.hb-hero__media{flex:1 1 520px;min-width:0;position:relative;min-height:520px}
.hb-hero__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hb-hero__media::before{content:"";position:absolute;left:-40px;top:0;bottom:0;width:90px;background:var(--hb-sand);transform:skewX(-12deg);transform-origin:top left;z-index:1}
.hb-hero__media::after{content:"";position:absolute;left:34px;top:0;bottom:0;width:14px;background:var(--hb-red);transform:skewX(-12deg);transform-origin:top left;z-index:1}

/* Sektioner */
.hb-section{padding:96px 0}
.hb-section--sand{background:var(--hb-sand)}

/* Ydelser */
.hb-services{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:4px}
.hb .hb-tile{position:relative;display:block;min-height:340px;text-decoration:none;color:var(--hb-white);overflow:hidden;background:var(--hb-antracit)}
.hb-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45;transition:transform .4s ease,opacity .3s ease}
.hb-tile:hover img{transform:scale(1.04);opacity:.38}
.hb-tile--red{background:var(--hb-red)}
.hb-tile--red img{opacity:.25}
.hb-tile__body{position:absolute;left:0;right:0;bottom:0;padding:26px}
.hb-tile__title{font-family:var(--hb-display);font-weight:800;font-size:30px;text-transform:uppercase;line-height:1.05}
.hb-tile__text{font-size:16px;color:#F0EEEA;margin-top:6px}
.hb .hb-tile:hover{color:var(--hb-white)}

/* Ring-bjælke */
.hb-callband{background:var(--hb-red);color:var(--hb-white)}
.hb-callband .hb-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding-top:40px;padding-bottom:40px}
.hb-callband__text{font-family:var(--hb-display);font-weight:800;font-size:34px;text-transform:uppercase;line-height:1.1}

/* Referencer */
.hb-refs{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:40px}
.hb-ref{display:flex;flex-direction:column;gap:16px;margin:0}
.hb-ref img{width:100%;height:360px;object-fit:cover;display:block}
.hb-ref__body{border-left:6px solid var(--hb-red);padding-left:16px}
.hb-ref__body p{margin:0;color:var(--hb-muted)}
.hb-refs__more{margin-top:32px}

/* Om os */
.hb-about{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.hb-about__media{flex:1 1 480px;min-width:0;position:relative;margin-bottom:40px}
.hb-about__media .hb-about__main{width:100%;height:380px;object-fit:cover;display:block}
.hb-about__media .hb-about__inset{position:absolute;right:-16px;bottom:-40px;width:46%;height:200px;object-fit:cover;object-position:center 30%;border:6px solid var(--hb-white);display:block}
.hb-about__text{flex:1 1 420px;min-width:0}
.hb-about__text p{color:#3A3A38;margin:0 0 16px}
.hb-checks{margin:0 0 28px;padding:0;list-style:none;display:grid;gap:10px}
.hb-checks li{display:flex;gap:12px;align-items:baseline}
.hb-checks li::before{content:"";flex:none;display:inline-block;width:8px;height:16px;background:var(--hb-red);transform:skewX(-24deg)}

/* Kontakt */
.hb-contact{display:flex;flex-wrap:wrap;gap:56px}
.hb-contact__info{flex:1 1 380px;min-width:0}
.hb-contact__info p{color:var(--hb-muted);margin:0 0 28px}
.hb-contact__lines{display:grid;gap:10px}
.hb .hb-contact__tel{font-family:var(--hb-display);font-weight:800;font-size:34px;color:var(--hb-ink);text-decoration:none}
.hb-form{flex:1 1 480px;min-width:0;display:grid;gap:14px}
.hb-form__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.hb-form label{display:grid;gap:6px;font-weight:600;font-size:15px}
.hb-form input,.hb-form textarea{font:inherit;font-weight:400;padding:12px;border:2px solid var(--hb-line);min-height:48px;width:100%;background:var(--hb-white);color:var(--hb-ink)}
.hb-form textarea{resize:vertical;min-height:120px}
.hb-form input:focus,.hb-form textarea:focus{border-color:var(--hb-antracit);outline:none}
.hb-form button{justify-self:start;font-weight:800;font-size:20px;padding:14px 34px}
.hb-form__hp{position:absolute!important;left:-9999px!important}
.hb-form__note{font-size:14px;color:var(--hb-muted);margin:0}
.hb-notice{padding:14px 18px;font-weight:600;margin:0 0 6px}
.hb-notice--ok{background:#E8F3EA;color:#1E5B2B;border-left:6px solid #2E7D3E}
.hb-notice--err{background:#FBEAEA;color:#7D1411;border-left:6px solid var(--hb-red)}

/* Footer */
.hb-footer{background:var(--hb-antracit);color:#E4E2DE;font-size:15px}
.hb-footer::before{content:"";display:block;height:8px;background:var(--hb-red)}
.hb-footer .hb-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;padding-top:36px;padding-bottom:36px}
.hb-footer a{color:var(--hb-white)}
.hb-footer strong{color:var(--hb-white)}
.hb-footer__links{display:flex;flex-wrap:wrap;gap:6px 20px}

/* Almindelige sider */
.hb-pagehead{background:var(--hb-sand);padding:64px 0 56px}
.hb-pagehead .hb-h1{font-size:54px;margin:0}
.hb-content{padding:56px 0 80px}
.hb-content > .hb-wrap > *:first-child{margin-top:0}
.hb-content h2{font-family:var(--hb-display);font-weight:800;text-transform:uppercase;font-size:36px;line-height:1.1}
.hb-content h3{font-family:var(--hb-display);font-weight:700;font-size:26px}
.hb-elementor-page .elementor{font-family:var(--hb-body)}
.hb-404{padding:120px 0;text-align:left}

/* Responsivt */
@media (max-width:1100px){
  .hb-nav ul{gap:4px 18px}
  .hb-nav a{font-size:16px}
}
@media (max-width:900px){
  .hb-menu-toggle{display:inline-flex;align-items:center}
  .hb-nav{flex-basis:100%;display:none}
  .hb-nav.is-open{display:block}
  .hb-nav ul{flex-direction:column;gap:0;border-top:1px solid var(--hb-line)}
  .hb-nav li{border-bottom:1px solid var(--hb-line)}
  .hb-nav a{display:block;padding:14px 0}
  .hb-logo img{height:56px}
  .hb-h1{font-size:46px}
  .hb-h2{font-size:36px}
  .hb-hero__text{padding:56px 0 48px}
  .hb-hero__media{min-height:320px;margin:0 -32px}
  .hb-hero__media::before,.hb-hero__media::after{display:none}
  .hb-card{padding:24px}
  .hb-card .hb-h2{font-size:28px}
  .hb-section{padding:64px 0}
  .hb-refs{grid-template-columns:1fr}
  .hb-ref img{height:260px}
  .hb-callband__text{font-size:26px}
}
@media (max-width:560px){
  body.hb{font-size:17px}
  .hb-wrap{padding:0 18px}
  .hb-hero__media{margin:0 -18px}
  .hb-h1{font-size:38px}
  .hb-tile{min-height:260px}
  .hb-about__media .hb-about__inset{right:0}
  .hb-topbar .hb-wrap{justify-content:center;text-align:center}
}
/* Forrang over Elementors globale stil (Kit) på temaets egne elementer */
body.hb .hb-h1,body.hb .hb-h2,body.hb .hb-h3{color:var(--hb-ink);font-family:var(--hb-display)}
body.hb .hb-h1 em,body.hb .hb-h2 em{color:var(--hb-red)}
body.hb .hb-header a,body.hb .hb-nav a{font-family:var(--hb-display)}

.hb-callband__sub{margin:8px 0 0;font-size:19px;color:var(--hb-white)}
body.hb .hb-callband__sub a{color:var(--hb-white);font-weight:600;text-decoration:underline;text-underline-offset:3px}
body.hb .hb-callband__sub a:hover{color:var(--hb-white);text-decoration:none}

.hb-form__opt{font-weight:400;color:var(--hb-muted)}
.hb-form__hint{font-weight:400;font-size:14px;color:var(--hb-muted)}
.hb-form input[type=file]{padding:12px;border-style:dashed;background:var(--hb-sand);cursor:pointer;min-height:56px}
.hb-form input[type=file]::file-selector-button{font:700 15px var(--hb-display);text-transform:uppercase;background:var(--hb-antracit);color:var(--hb-white);border:0;padding:10px 16px;margin-right:12px;cursor:pointer}
.hb-pagehead .hb-lead{max-width:640px}

.hb-about--rev{flex-direction:row-reverse}
.hb-about__media--single{margin-bottom:0}
.hb-about__media--single .hb-about__main{height:420px}
.hb-about__intro{font-size:21px;line-height:1.5;color:var(--hb-ink)!important}
.hb-about__text .hb-btn{margin-top:4px}
.hb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:32px}
.hb-card{background:var(--hb-white);border:1px solid var(--hb-line);border-top:6px solid var(--hb-antracit);padding:36px}
.hb-card p{color:#3A3A38;margin:0 0 14px}
.hb-card--guarantee{border-top-color:var(--hb-red);background:var(--hb-sand)}
.hb-card .hb-h2{font-size:34px}

.hb-band-dark{background:var(--hb-antracit);color:#E4E2DE;padding:88px 0}
.hb-band-dark .hb-about__media--single{margin-bottom:0}
body.hb .hb-band-dark .hb-h2{color:var(--hb-white)}
.hb-band-dark .hb-about__text p{color:#E4E2DE}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hb-tile img{transition:none}
}
