/*
Theme Name: FIKS Theme
Author: FIKS
Description: Let, robust og performance-orienteret theme til FIKS Website. FIKS Website ejer builder, design og offentligt indhold; temaet leverer templates og sikre fallbacks.
Version: 3.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fiks-theme
*/

/* =========================================================
   FIKS Theme 2.1 – shared design contract
   ========================================================= */
:root{
  --hw-primary:#214b43;--hw-secondary:#e6efeb;--hw-accent:#b56b42;--hw-bg:#f6f7f4;--hw-surface:#fff;--hw-text:#17231f;--hw-muted:#64716b;
  --hw-radius:22px;--hw-button-radius:14px;--hw-section-pad:112px;--hw-container:1220px;--hw-heading-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --hw-body-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--hw-card-shadow:0 14px 42px rgba(18,31,25,.08);--hw-body-size:16px;
  --hw-hero-size:clamp(46px,6vw,76px);--hw-h2-size:clamp(36px,4.8vw,58px);--hw-h3-size:23px;--hw-button-height:50px;--hw-content-gap:22px;--hw-image-ratio:4/3;
  --hw-border:color-mix(in srgb,var(--hw-text) 11%,transparent);--hw-soft:color-mix(in srgb,var(--hw-secondary) 62%,var(--hw-bg));--hw-focus:color-mix(in srgb,var(--hw-accent) 72%,white);
}

*,*::before,*::after{box-sizing:border-box}
html{margin:0;padding:0;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--hw-bg);color:var(--hw-text);font-family:var(--hw-body-font);font-size:var(--hw-body-size);line-height:1.68;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
img,picture,video,canvas,svg{display:block;max-width:100%;height:auto}
input,button,textarea,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:var(--hw-primary);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{opacity:.9}
h1,h2,h3,h4,h5,h6{font-family:var(--hw-heading-font);color:var(--hw-text);line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
h1{font-size:var(--hw-hero-size);margin:.18em 0 .35em}h2{font-size:var(--hw-h2-size);margin:.35em 0 .4em}h3{font-size:var(--hw-h3-size);margin:.5em 0 .45em}
p{margin:0 0 1.25em}ul,ol{padding-left:1.3em}hr{border:0;border-top:1px solid var(--hw-border);margin:2.4rem 0}

.hw-container{width:min(calc(100% - 48px),var(--hw-container));margin-inline:auto}
.hw-main-anchor{outline:none}.hw-main-anchor:focus{outline:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus,.hw-skip-link:focus{clip:auto!important;width:auto;height:auto;margin:0;overflow:visible;white-space:normal;position:fixed!important;z-index:100000;top:12px;left:12px;padding:12px 18px;background:var(--hw-surface);color:var(--hw-text);border:2px solid var(--hw-accent);border-radius:10px;box-shadow:var(--hw-card-shadow)}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--hw-focus);outline-offset:3px}

/* Shared UI primitives, intentionally compatible with plugin classes */
.hw-eyebrow{font-size:11px;line-height:1.2;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:var(--hw-accent);margin-bottom:13px}
.hw-button,.wp-element-button,.wp-block-button__link,button[type=submit],input[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:var(--hw-button-height);padding:10px 21px;border:1px solid var(--hw-primary);border-radius:var(--hw-button-radius);background:var(--hw-primary);color:#fff!important;font-weight:750;line-height:1.1;text-decoration:none;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
.hw-button:hover,.wp-element-button:hover,.wp-block-button__link:hover,button[type=submit]:hover,input[type=submit]:hover{opacity:1;transform:translateY(-1px);box-shadow:0 10px 28px color-mix(in srgb,var(--hw-primary) 18%,transparent)}
.hw-button-secondary{background:transparent;color:var(--hw-primary)!important;border-color:color-mix(in srgb,var(--hw-primary) 34%,transparent)}
.hw-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hw-theme-text-link,.hw-text-link{display:inline-flex;align-items:center;gap:.4em;font-weight:750;text-decoration:none}

/* =========================================================
   Native WordPress content fallback
   ========================================================= */
.hw-theme-entry-content{font-size:clamp(16px,1.15vw,18px)}
.hw-theme-entry-content>*{max-width:760px;margin-left:auto;margin-right:auto}
.hw-theme-entry-content>.alignwide{max-width:min(1100px,var(--hw-container))}
.hw-theme-entry-content>.alignfull{max-width:none;width:100vw;margin-left:50%;transform:translateX(-50%)}
.hw-theme-entry-content h2{margin-top:2.15em}.hw-theme-entry-content h3{margin-top:1.8em}.hw-theme-entry-content h4{font-size:1.14em;margin-top:1.6em}
.hw-theme-entry-content a:not(.hw-button):not(.wp-block-button__link){font-weight:650}
.hw-theme-entry-content blockquote,.wp-block-quote{margin-top:2rem;margin-bottom:2rem;padding:24px 28px;border-left:4px solid var(--hw-accent);background:var(--hw-soft);border-radius:0 var(--hw-radius) var(--hw-radius) 0}
.hw-theme-entry-content blockquote p:last-child{margin-bottom:0}
.hw-theme-entry-content figure{margin-top:2rem;margin-bottom:2rem}.wp-caption-text,figcaption{font-size:12px;color:var(--hw-muted);margin-top:8px}
.hw-theme-entry-content table,.wp-block-table table{width:100%;border-collapse:collapse;background:var(--hw-surface);border-radius:calc(var(--hw-radius)*.7);overflow:hidden}
.hw-theme-entry-content th,.hw-theme-entry-content td,.wp-block-table th,.wp-block-table td{padding:13px 15px;text-align:left;border-bottom:1px solid var(--hw-border)}
.hw-theme-entry-content th{background:var(--hw-soft);font-weight:800}
.hw-theme-entry-content pre,.wp-block-code{overflow:auto;padding:20px;background:color-mix(in srgb,var(--hw-text) 94%,black);color:#fff;border-radius:calc(var(--hw-radius)*.65)}
.hw-theme-entry-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.92em}
.wp-block-separator{border-color:var(--hw-border)}
.wp-block-pullquote{border-color:var(--hw-accent)}

input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],input[type=date],input[type=search],select,textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--hw-border);border-radius:calc(var(--hw-radius)*.52);background:var(--hw-surface);color:var(--hw-text);transition:border-color .15s,box-shadow .15s}
textarea{min-height:130px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--hw-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--hw-accent) 12%,transparent);outline:none}
label{font-weight:700;color:var(--hw-text)}

/* =========================================================
   Generic article / page templates
   ========================================================= */
.hw-theme-article{padding:clamp(72px,9vw,128px) 0;background:var(--hw-bg)}
.hw-theme-article-inner{max-width:920px}
.hw-theme-entry-header{max-width:820px;margin:0 auto 42px;text-align:center}
.hw-theme-entry-header h1{font-size:clamp(42px,6vw,72px)}
.hw-theme-entry-excerpt{font-size:clamp(18px,1.8vw,23px);line-height:1.5;color:var(--hw-muted);max-width:720px;margin:18px 0 0}
.hw-theme-entry-header .hw-theme-entry-excerpt{margin:18px auto 0}
.hw-theme-featured-media{margin:0 0 50px;border-radius:var(--hw-radius);overflow:hidden;box-shadow:var(--hw-card-shadow)}
.hw-theme-featured-media img{width:100%;aspect-ratio:16/9;object-fit:cover}

/* =========================================================
   Fallback header / footer – only used without plugin renderer
   ========================================================= */
.hw-theme-fallback-header{position:sticky;top:0;z-index:999;background:color-mix(in srgb,var(--hw-bg) 94%,transparent);backdrop-filter:saturate(140%) blur(14px);border-bottom:1px solid var(--hw-border)}
.admin-bar .hw-theme-fallback-header{top:32px}
.hw-theme-fallback-header-inner{min-height:78px;display:flex;align-items:center;gap:24px}
.hw-theme-fallback-brand{flex:0 0 auto}.hw-theme-fallback-brand .custom-logo{max-height:48px;width:auto}.hw-theme-brand-text{font-family:var(--hw-heading-font);font-size:22px;font-weight:800;text-decoration:none;color:var(--hw-text)}
.hw-theme-fallback-nav{margin-left:auto}.hw-theme-menu{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}.hw-theme-menu li{margin:0}.hw-theme-menu a{font-size:14px;font-weight:750;color:var(--hw-text);text-decoration:none}.hw-theme-menu .current-menu-item>a,.hw-theme-menu .current_page_item>a{color:var(--hw-accent)}
.hw-theme-header-call{min-height:44px;padding-inline:16px}.hw-theme-menu-toggle{display:none;width:46px;height:42px;padding:9px;border:1px solid var(--hw-border);border-radius:10px;background:transparent}.hw-theme-menu-toggle span:not(.screen-reader-text){display:block;height:2px;background:var(--hw-text);margin:5px 0;border-radius:99px}
.hw-theme-fallback-footer{padding:68px 0 0;background:var(--hw-primary);color:#fff}.hw-theme-fallback-footer a{color:#fff}.hw-theme-fallback-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:50px;padding-bottom:45px}.hw-theme-footer-name{font-family:var(--hw-heading-font);font-size:26px}.hw-theme-fallback-footer p{color:#ffffffb8;max-width:430px}.hw-theme-footer-contact{display:flex;flex-direction:column;gap:8px}.hw-theme-footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.hw-theme-fallback-footer-bottom{padding:18px 0;border-top:1px solid #ffffff20;font-size:12px;color:#ffffffa8}

/* =========================================================
   Project + service hero templates
   ========================================================= */
.hw-theme-project-hero,.hw-theme-service-hero{padding:clamp(72px,8vw,118px) 0 clamp(56px,7vw,96px);background:linear-gradient(180deg,var(--hw-soft),var(--hw-bg))}
.hw-theme-project-hero-grid,.hw-theme-service-hero-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(420px,1.12fr);gap:clamp(40px,7vw,92px);align-items:center}
.hw-theme-project-intro,.hw-theme-service-intro{min-width:0}.hw-theme-project-intro h1,.hw-theme-service-intro h1{font-size:clamp(46px,5.8vw,82px);margin:.12em 0 .35em}.hw-theme-project-intro .hw-theme-entry-excerpt,.hw-theme-service-intro .hw-theme-entry-excerpt{margin-top:0}
.hw-theme-project-hero-media,.hw-theme-service-hero-media{margin:0;border-radius:var(--hw-radius);overflow:hidden;box-shadow:var(--hw-card-shadow);background:var(--hw-surface)}
.hw-theme-project-hero-media img,.hw-theme-service-hero-media img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hw-theme-service-intro .hw-actions{margin-top:28px}
.hw-theme-project-meta{display:flex;gap:12px 30px;flex-wrap:wrap;margin:30px 0 0;padding:22px 0 0;border-top:1px solid var(--hw-border)}.hw-theme-project-meta div{display:grid;gap:3px}.hw-theme-project-meta dt{text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:800;color:var(--hw-muted)}.hw-theme-project-meta dd{margin:0;font-weight:750}
.hw-theme-project-content,.hw-theme-service-content{padding-top:clamp(62px,7vw,100px);padding-bottom:clamp(62px,7vw,100px)}

/* Plugin project showcase output on theme templates */
.hw-theme-project-content .hw-project-facts{max-width:900px;margin:36px auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;padding:22px;border:1px solid var(--hw-border);border-radius:var(--hw-radius);background:var(--hw-surface)}
.hw-theme-project-content .hw-project-facts>div{display:grid;gap:4px}.hw-theme-project-content .hw-project-facts span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--hw-muted)}
.hw-theme-project-content .hw-before-after{max-width:1100px;margin:60px auto}.hw-theme-project-content .hw-before-after>div{display:grid;grid-template-columns:1fr 1fr;gap:var(--hw-content-gap)}.hw-theme-project-content .hw-before-after figure{margin:0;position:relative}.hw-theme-project-content .hw-before-after img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--hw-radius)}.hw-theme-project-content .hw-before-after figcaption{position:absolute;left:12px;bottom:12px;margin:0;padding:6px 9px;background:#000b;color:#fff;border-radius:999px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.hw-theme-project-content .hw-project-gallery{max-width:1100px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:60px auto}.hw-theme-project-content .hw-project-gallery img{width:100%;height:100%;min-height:240px;object-fit:cover;border-radius:calc(var(--hw-radius)*.7)}.hw-theme-project-content .hw-project-gallery img:first-child{grid-column:span 2;grid-row:span 2}
.hw-theme-project-content .hw-project-quote{max-width:900px;margin:60px auto;padding:38px 42px;background:var(--hw-primary);color:#fff;border:0;border-radius:var(--hw-radius);font-family:var(--hw-heading-font);font-size:clamp(25px,3vw,38px);line-height:1.25;box-shadow:var(--hw-card-shadow)}
.hw-theme-project-content .hw-related-services{max-width:900px;margin:60px auto;padding-top:30px;border-top:1px solid var(--hw-border)}.hw-related-service-links{display:flex;gap:10px;flex-wrap:wrap}.hw-related-service-links a{padding:10px 13px;border:1px solid var(--hw-border);border-radius:999px;text-decoration:none;font-weight:750;background:var(--hw-surface)}

/* Service calculator + related projects */
.hw-theme-service-calculator{padding:clamp(70px,8vw,110px) 0;background:var(--hw-soft);border-block:1px solid var(--hw-border)}
.hw-theme-section-heading{max-width:760px;margin-bottom:38px}.hw-theme-section-heading h1,.hw-theme-section-heading h2{margin:.15em 0 .3em}.hw-theme-section-heading p{font-size:clamp(17px,1.4vw,20px);color:var(--hw-muted);max-width:680px}
.hw-theme-related-projects{padding:clamp(70px,8vw,110px) 0;background:var(--hw-bg)}

/* =========================================================
   Archive / grid system
   ========================================================= */
.hw-theme-archive-hero{padding:clamp(72px,8vw,116px) 0 56px;background:linear-gradient(180deg,var(--hw-soft),var(--hw-bg))}.hw-theme-archive-hero .hw-theme-section-heading{margin-bottom:0}.hw-theme-archive-hero h1{font-size:clamp(48px,6vw,80px)}
.hw-theme-archive-body{padding-top:30px;padding-bottom:clamp(80px,9vw,130px)}
.hw-theme-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hw-content-gap)}
.hw-theme-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--hw-border);border-radius:var(--hw-radius);overflow:hidden;background:var(--hw-surface);box-shadow:var(--hw-card-shadow);transition:transform .2s ease,box-shadow .2s ease}.hw-theme-card:hover{transform:translateY(-3px)}
.hw-theme-card-media{display:block;overflow:hidden;background:var(--hw-soft)}.hw-theme-card-media img{width:100%;aspect-ratio:var(--hw-image-ratio);object-fit:cover;transition:transform .45s cubic-bezier(.2,.65,.3,1)}.hw-theme-card:hover .hw-theme-card-media img{transform:scale(1.025)}
.hw-theme-card-body{padding:24px;display:flex;flex-direction:column;align-items:flex-start;flex:1}.hw-theme-card-body h2,.hw-theme-card-body h3{font-size:var(--hw-h3-size);margin:.25em 0 .55em;letter-spacing:-.025em}.hw-theme-card-body h2 a,.hw-theme-card-body h3 a{color:var(--hw-text);text-decoration:none}.hw-theme-card-body p{color:var(--hw-muted);font-size:14px;line-height:1.6}.hw-theme-card-body .hw-theme-text-link{margin-top:auto}.hw-theme-card-meta{font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.11em;font-weight:800;color:var(--hw-accent);margin-bottom:8px}
.hw-theme-project-filters{display:grid;grid-template-columns:1fr 1fr auto auto;gap:12px;align-items:end;padding:18px;margin:0 0 34px;border:1px solid var(--hw-border);border-radius:var(--hw-radius);background:var(--hw-surface)}.hw-theme-project-filters label{display:grid;gap:6px}.hw-theme-project-filters label span{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--hw-muted)}.hw-theme-project-filters select{min-width:0}.hw-theme-filter-reset{align-self:center;padding:12px 6px;font-size:13px;font-weight:750}
.hw-theme-pagination{margin-top:52px}.navigation.pagination .nav-links{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.navigation.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 10px;border:1px solid var(--hw-border);border-radius:10px;background:var(--hw-surface);text-decoration:none;font-weight:750}.navigation.pagination .current{background:var(--hw-primary);border-color:var(--hw-primary);color:#fff}
.hw-theme-empty-state{padding:70px 28px;text-align:center;border:1px dashed color-mix(in srgb,var(--hw-text) 22%,transparent);border-radius:var(--hw-radius);background:var(--hw-surface)}.hw-theme-empty-state h2{font-size:clamp(30px,4vw,48px)}.hw-theme-empty-state p{color:var(--hw-muted)}

/* CTA band */
.hw-theme-cta-band{padding:clamp(65px,7vw,95px) 0;background:var(--hw-primary);color:#fff}.hw-theme-cta-band h2{color:#fff;font-size:clamp(34px,4.4vw,56px);margin:.16em 0 .28em}.hw-theme-cta-band p{color:#ffffffbd;margin:0;max-width:650px}.hw-theme-cta-band .hw-eyebrow{color:#ffffffa8}.hw-theme-cta-band-inner{display:grid;grid-template-columns:1fr auto;gap:45px;align-items:center}.hw-theme-cta-band .hw-button{background:#fff;border-color:#fff;color:var(--hw-primary)!important}.hw-theme-cta-band .hw-button-secondary{background:transparent;color:#fff!important;border-color:#ffffff50}

/* Error / search */
.hw-theme-error-page{padding:clamp(100px,13vw,180px) 0}.hw-theme-error-inner{max-width:760px}.hw-theme-error-inner h1{font-size:clamp(48px,7vw,84px)}.hw-theme-error-inner>p{font-size:20px;color:var(--hw-muted)}.hw-theme-error-inner form.search-form{display:flex;gap:10px;max-width:620px;margin:30px 0}.search-form label{flex:1}.search-form .search-field{height:100%}.search-form .search-submit{flex:0 0 auto}

/* =========================================================
   Performance-friendly responsive behavior
   ========================================================= */
@media(max-width:1000px){
  .hw-theme-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hw-theme-project-hero-grid,.hw-theme-service-hero-grid{grid-template-columns:1fr;gap:36px}.hw-theme-project-hero-media,.hw-theme-service-hero-media{max-width:760px}
  .hw-theme-fallback-footer-grid{grid-template-columns:1.5fr 1fr}
  .hw-theme-fallback-footer-grid nav{grid-column:1/-1}
}
@media(max-width:782px){.admin-bar .hw-theme-fallback-header{top:46px}}
@media(max-width:760px){
  .hw-container{width:min(calc(100% - 30px),var(--hw-container))}
  .hw-theme-fallback-header-inner{min-height:68px}.hw-theme-menu-toggle{display:block;margin-left:auto}.hw-theme-header-call{display:none}.hw-theme-fallback-nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:14px 15px 20px;background:var(--hw-surface);border-bottom:1px solid var(--hw-border);box-shadow:0 18px 40px rgba(0,0,0,.09)}.hw-theme-fallback-header.is-menu-open .hw-theme-fallback-nav{display:block}.hw-theme-menu{display:flex;align-items:stretch;flex-direction:column;gap:0}.hw-theme-menu a{display:block;padding:12px 8px;border-bottom:1px solid var(--hw-border)}
  .hw-theme-card-grid{grid-template-columns:1fr}.hw-theme-project-filters{grid-template-columns:1fr}.hw-theme-project-filters .hw-button{width:100%}.hw-theme-filter-reset{text-align:center}
  .hw-theme-project-content .hw-before-after>div{grid-template-columns:1fr}.hw-theme-project-content .hw-project-gallery{grid-template-columns:1fr 1fr}.hw-theme-project-content .hw-project-gallery img:first-child{grid-column:1/-1;grid-row:auto}.hw-theme-project-content .hw-project-gallery img{min-height:170px}.hw-theme-project-content .hw-project-quote{padding:28px 24px}
  .hw-theme-cta-band-inner{grid-template-columns:1fr;gap:26px}.hw-theme-fallback-footer-grid{grid-template-columns:1fr;gap:28px}.hw-theme-fallback-footer-grid nav{grid-column:auto}
  .hw-theme-error-inner form.search-form{flex-direction:column}.hw-theme-entry-content>.alignfull{width:100%;margin-left:0;transform:none}
}
@media(max-width:520px){
  .hw-theme-project-hero,.hw-theme-service-hero,.hw-theme-archive-hero{padding-top:62px}.hw-theme-project-intro h1,.hw-theme-service-intro h1,.hw-theme-archive-hero h1{font-size:clamp(40px,12vw,58px)}
  .hw-theme-project-content .hw-project-gallery{grid-template-columns:1fr}.hw-theme-project-content .hw-project-gallery img:first-child{grid-column:auto}
  .hw-actions{align-items:stretch;flex-direction:column}.hw-actions .hw-button{width:100%}
}

/* Motion safety */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.hw-theme-card:hover{transform:none}.hw-theme-card:hover .hw-theme-card-media img{transform:none}
}

/* Print */
@media print{.hw-theme-fallback-header,.hw-header,.hw-theme-fallback-footer,.hw-footer,.hw-theme-cta-band,.hw-mobile-actions{display:none!important}body{background:#fff;color:#000}.hw-container{width:100%;max-width:none}.hw-theme-project-hero,.hw-theme-service-hero,.hw-theme-archive-hero{background:#fff;padding:20px 0}.hw-theme-card{box-shadow:none}}
.hw-theme-fallback-logo{max-height:48px;width:auto}.hw-theme-fallback-logo-link{display:inline-flex;align-items:center;text-decoration:none}
.hw-theme-fallback-social{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.hw-theme-fallback-social a{font-size:12px;font-weight:750}

/* =========================================================
   FIKS Theme 2.1 – Header/Footer Builder fallback
   Mirrors plugin 2.2 settings when the plugin is unavailable.
   ========================================================= */
:root{--hw-adminbar-height:0px;--hw-theme-header-live-height:0px}
.admin-bar{--hw-adminbar-height:32px}
.hw-theme-topbar{position:relative;z-index:1002;background:var(--hw-primary);color:#fff;font-size:12px;font-weight:700;padding:8px 0}
.hw-theme-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.hw-theme-topbar-actions,.hw-theme-topbar-social{display:flex;align-items:center;gap:12px}.hw-theme-topbar a{color:inherit;text-decoration:none}
.hw-theme-fallback-header{position:relative;top:auto;z-index:1000;padding:0;background:var(--hw-theme-header-bg,var(--hw-surface));color:var(--hw-theme-header-text,var(--hw-text));border-bottom:1px solid color-mix(in srgb,currentColor 10%,transparent);backdrop-filter:saturate(145%) blur(15px);transition:background .22s,color .22s,box-shadow .22s,border-color .22s}
.hw-theme-fallback-header.is-sticky{position:sticky;top:var(--hw-adminbar-height,0px)}.hw-theme-fallback-header.no-blur{backdrop-filter:none}.hw-theme-fallback-header.no-border{border-bottom-color:transparent}
.hw-theme-header-desktop-row,.hw-theme-header-mobile-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;min-height:var(--hw-theme-header-height,82px);transition:min-height .22s}
.hw-theme-header-zone{display:flex;align-items:center;gap:18px;min-width:0}.hw-theme-header-zone-left{justify-content:flex-start}.hw-theme-header-zone-center{justify-content:center}.hw-theme-header-zone-right{justify-content:flex-end}
.hw-theme-logo{display:inline-flex;align-items:center;color:inherit;text-decoration:none;min-width:0}.hw-theme-logo-media{display:inline-flex;align-items:center}.hw-theme-fallback-logo,.hw-theme-logo-media img{display:block;max-height:var(--hw-theme-header-logo-height,50px);width:auto;transition:max-height .22s}.hw-theme-brand-text{font-family:var(--hw-heading-font);font-size:clamp(19px,2vw,27px);font-weight:800;line-height:1;color:inherit}
.hw-theme-inline-nav .hw-theme-menu{display:flex;align-items:center;gap:clamp(14px,2vw,28px);list-style:none;margin:0;padding:0}.hw-theme-inline-nav a{color:inherit;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap}
.hw-theme-header-phone,.hw-theme-header-email{color:inherit;text-decoration:none;font-size:13px;font-weight:750}.hw-theme-header-tagline,.hw-theme-header-hours{font-size:12px;line-height:1.35;opacity:.72}.hw-theme-header-social{display:flex;gap:10px}.hw-theme-header-social a{color:inherit;text-decoration:none;font-size:11px;font-weight:750}
.hw-theme-header-cta{white-space:nowrap}.hw-theme-fallback-header.is-scrolled{background:var(--hw-theme-header-scrolled-bg,var(--hw-surface));color:var(--hw-theme-header-scrolled-text,var(--hw-text))}.hw-theme-fallback-header.is-scrolled .hw-theme-header-desktop-row{min-height:var(--hw-theme-header-scrolled-height,70px)}.hw-theme-fallback-header.is-scrolled .hw-theme-fallback-logo,.hw-theme-fallback-header.is-scrolled .hw-theme-logo-media img{max-height:var(--hw-theme-header-scrolled-logo-height,42px)}.hw-theme-fallback-header.is-scrolled:not(.no-scroll-shadow){box-shadow:0 10px 34px color-mix(in srgb,var(--hw-text) 10%,transparent)}
.hw-theme-fallback-header.is-transparent:not(.is-scrolled){background:transparent;color:var(--hw-theme-header-transparent-text,#fff);border-color:transparent}.hw-theme-fallback-header.is-transparent:not(.is-scrolled) .hw-theme-header-cta{background:#fff;border-color:#fff;color:var(--hw-primary)!important}
.hw-theme-header-center .hw-theme-header-desktop-row{grid-template-columns:1fr minmax(360px,auto) 1fr}.hw-theme-header-compact .hw-theme-header-desktop-row{gap:14px}.hw-theme-header-minimal .hw-theme-header-desktop-row{grid-template-columns:auto 1fr auto}
.hw-theme-header-mobile-row,.hw-theme-mobile-menu-panel{display:none}.hw-theme-menu-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:44px;height:44px;padding:0;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:10px;background:transparent;color:inherit}.hw-theme-menu-toggle span{display:block;width:18px;height:2px;margin:0;background:currentColor;border-radius:99px;transition:transform .2s,opacity .2s}.hw-theme-fallback-header.is-menu-open .hw-theme-menu-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}.hw-theme-fallback-header.is-menu-open .hw-theme-menu-toggle span:nth-child(2){opacity:0}.hw-theme-fallback-header.is-menu-open .hw-theme-menu-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.hw-theme-mobile-menu-panel{background:var(--hw-theme-header-scrolled-bg,var(--hw-surface));color:var(--hw-theme-header-scrolled-text,var(--hw-text));border-top:1px solid color-mix(in srgb,currentColor 10%,transparent)}.hw-theme-mobile-menu-inner{padding:20px 0 28px}.hw-theme-mobile-menu-panel .hw-theme-menu{list-style:none;margin:0;padding:0;display:grid}.hw-theme-mobile-menu-panel .hw-theme-menu a{display:block;padding:13px 0;border-bottom:1px solid color-mix(in srgb,currentColor 9%,transparent);color:inherit;text-decoration:none;font-size:18px;font-weight:750}.hw-theme-mobile-menu-meta{display:flex;gap:14px;flex-wrap:wrap;padding-top:20px}.hw-theme-mobile-menu-meta a{color:inherit}.hw-theme-mobile-menu-social{display:flex;gap:10px}

.hw-theme-fallback-footer{padding:0;background:var(--hw-theme-footer-bg,#151d19);color:var(--hw-theme-footer-text,#eef2ef)}.hw-theme-footer-bg-dark{--hw-theme-footer-bg:#151d19;--hw-theme-footer-text:#eef2ef}.hw-theme-footer-bg-primary{--hw-theme-footer-bg:var(--hw-primary);--hw-theme-footer-text:#fff}.hw-theme-footer-bg-soft{--hw-theme-footer-bg:var(--hw-secondary);--hw-theme-footer-text:var(--hw-text)}.hw-theme-footer-bg-surface{--hw-theme-footer-bg:var(--hw-surface);--hw-theme-footer-text:var(--hw-text)}
.hw-theme-footer-space-compact{padding-top:48px}.hw-theme-footer-space-normal{padding-top:72px}.hw-theme-footer-space-airy{padding-top:98px}.hw-theme-footer-grid{display:grid;gap:42px;padding-bottom:46px}.hw-theme-footer-columns3 .hw-theme-footer-grid{grid-template-columns:1.35fr 1fr 1fr}.hw-theme-footer-columns4 .hw-theme-footer-grid,.hw-theme-footer-branding .hw-theme-footer-grid,.hw-theme-footer-contact .hw-theme-footer-grid{grid-template-columns:1.3fr repeat(3,1fr)}.hw-theme-footer-minimal .hw-theme-footer-grid{grid-template-columns:1.4fr 1fr auto}
.hw-theme-footer-column{display:grid;align-content:start;gap:22px;min-width:0}.hw-theme-footer-module{display:grid;gap:10px}.hw-theme-fallback-footer h3{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:inherit;opacity:.72}.hw-theme-fallback-footer p{margin:0;color:inherit;opacity:.72}.hw-theme-fallback-footer a{color:inherit;text-decoration:none}.hw-theme-footer-brand .hw-theme-logo{margin-bottom:8px}.hw-theme-footer-brand .hw-theme-logo-media img{max-height:52px}.hw-theme-footer-bg-dark .hw-theme-footer-brand img,.hw-theme-footer-bg-primary .hw-theme-footer-brand img{filter:brightness(0) invert(1)}.hw-theme-footer-list,.hw-theme-footer-contact,.hw-theme-footer-module nav .hw-theme-menu{display:grid;gap:8px}.hw-theme-footer-module nav .hw-theme-menu{list-style:none;margin:0;padding:0}.hw-theme-footer-social{display:flex;gap:12px;flex-wrap:wrap}.hw-theme-footer-social a{font-size:12px}.hw-theme-footer-bottom{padding:20px 0 24px;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:11px}.hw-theme-footer-bottom>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.hw-theme-footer-bottom-contrast{background:color-mix(in srgb,#000 15%,transparent);padding-inline:18px}.hw-theme-footer-legal{display:flex;gap:12px}

@media(max-width:900px){
  .hw-theme-header-desktop-row{display:none}.hw-theme-header-mobile-row{display:grid;grid-template-columns:1fr auto 1fr;min-height:var(--hw-theme-header-mobile-height,68px);gap:9px}.hw-theme-header-mobile-row .hw-theme-fallback-logo,.hw-theme-header-mobile-row .hw-theme-logo-media img{max-height:var(--hw-theme-header-mobile-logo-height,42px)}.hw-theme-header-mobile-row .hw-theme-header-zone{gap:8px}.hw-theme-header-mobile-row .hw-theme-header-zone-center{justify-content:center}.hw-theme-header-mobile-row .hw-theme-header-zone-right{justify-content:flex-end}.hw-theme-header-mobile-row .hw-theme-phone-label{display:none}.hw-theme-header-mobile-row .hw-theme-header-phone{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:10px}.hw-theme-header-mobile-row .hw-theme-header-cta{min-height:42px;padding:9px 11px;font-size:12px}.hw-theme-menu-toggle{display:flex}.hw-theme-fallback-header.is-sticky:not(.is-mobile-sticky){position:relative;top:auto}
  .hw-theme-fallback-header.is-menu-open .hw-theme-mobile-menu-panel{display:block}.hw-theme-mobile-menu-dropdown .hw-theme-mobile-menu-panel{position:absolute;left:0;right:0;top:100%;box-shadow:0 24px 50px #0002}.hw-theme-mobile-menu-drawer .hw-theme-mobile-menu-panel,.hw-theme-mobile-menu-fullscreen .hw-theme-mobile-menu-panel{display:block;position:fixed;top:calc(var(--hw-adminbar-height,0px) + var(--hw-theme-header-mobile-height,68px));right:0;bottom:0;width:min(420px,100%);transform:translateX(105%);transition:transform .24s;overflow:auto;box-shadow:-20px 0 50px #0002;z-index:-1}.hw-theme-mobile-menu-fullscreen .hw-theme-mobile-menu-panel{width:100%}.hw-theme-fallback-header.is-menu-open.hw-theme-mobile-menu-drawer .hw-theme-mobile-menu-panel,.hw-theme-fallback-header.is-menu-open.hw-theme-mobile-menu-fullscreen .hw-theme-mobile-menu-panel{transform:translateX(0);z-index:99}.hw-theme-menu-open{overflow:hidden}.hw-theme-topbar-inner{justify-content:center}.hw-theme-topbar-actions{display:none}
  .hw-theme-footer-columns3 .hw-theme-footer-grid,.hw-theme-footer-columns4 .hw-theme-footer-grid,.hw-theme-footer-branding .hw-theme-footer-grid,.hw-theme-footer-contact .hw-theme-footer-grid,.hw-theme-footer-minimal .hw-theme-footer-grid{grid-template-columns:1fr 1fr}.hw-theme-footer-column:first-child{grid-column:1/-1}
}
@media(max-width:782px){.admin-bar{--hw-adminbar-height:46px}}
@media(max-width:600px){.hw-theme-header-mobile-row .hw-theme-header-zone-center{display:none}.hw-theme-footer-columns3 .hw-theme-footer-grid,.hw-theme-footer-columns4 .hw-theme-footer-grid,.hw-theme-footer-branding .hw-theme-footer-grid,.hw-theme-footer-contact .hw-theme-footer-grid,.hw-theme-footer-minimal .hw-theme-footer-grid{grid-template-columns:1fr}.hw-theme-footer-column:first-child{grid-column:auto}.hw-theme-footer-bottom{align-items:flex-start;flex-direction:column}}

/* Navigation details shared by the fallback builder */
.hw-theme-inline-nav .hw-theme-menu>li{position:relative;display:flex;align-items:center;gap:2px}.hw-theme-inline-nav .sub-menu{position:absolute;top:calc(100% + 12px);left:0;min-width:210px;list-style:none;margin:0;padding:10px;border:1px solid var(--hw-border);border-radius:calc(var(--hw-radius)*.65);background:var(--hw-surface);color:var(--hw-text);box-shadow:var(--hw-card-shadow);display:grid;gap:2px;opacity:0;visibility:hidden;transform:translateY(-4px);transition:.16s;z-index:50}.hw-theme-inline-nav .sub-menu a{display:block;padding:9px 11px;border-radius:8px;color:inherit;white-space:nowrap}.hw-theme-inline-nav li:hover>.sub-menu,.hw-theme-inline-nav li:focus-within>.sub-menu,.hw-theme-inline-nav li.is-submenu-open>.sub-menu{opacity:1;visibility:visible;transform:none}.hw-theme-submenu-toggle{width:26px;height:26px;min-height:0;padding:0;border:0;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.hw-theme-submenu-toggle span{transition:transform .18s}.menu-item-has-children.is-submenu-open>.hw-theme-submenu-toggle span{transform:rotate(180deg)}.hw-theme-nav-cta{display:inline-flex!important;align-items:center;min-height:40px;padding:8px 14px!important;border-radius:var(--hw-button-radius);background:var(--hw-primary);color:#fff!important;border:1px solid var(--hw-primary)!important}
@media(max-width:900px){.hw-theme-mobile-menu-panel .menu-item-has-children{display:grid;grid-template-columns:1fr auto}.hw-theme-mobile-menu-panel .menu-item-has-children>a{grid-column:1}.hw-theme-mobile-menu-panel .hw-theme-submenu-toggle{grid-column:2;grid-row:1}.hw-theme-mobile-menu-panel .sub-menu{display:none;grid-column:1/-1;position:static;list-style:none;margin:0;padding:0 0 4px 14px}.hw-theme-mobile-menu-panel .is-submenu-open>.sub-menu{display:grid}.hw-theme-mobile-menu-panel .sub-menu a{font-size:15px;padding:10px 0}.hw-theme-mobile-menu-panel .hw-theme-nav-cta{justify-content:center;margin-top:8px}}

/* Theme 2.1 – fallback mobilbar, samme designkontrakt som pluginet */
.hw-theme-mobile-actions{display:none}
@media(max-width:600px){body:not(.hw-site){padding-bottom:72px}.hw-theme-mobile-actions{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:9998;display:flex;gap:7px;padding:7px;background:rgba(20,29,24,.94);backdrop-filter:blur(14px);border-radius:16px;box-shadow:0 15px 45px #0005}.hw-theme-mobile-actions a{flex:1;min-height:45px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;font-size:13px;border-radius:11px}.hw-theme-mobile-actions-split a{color:#fff}.hw-theme-mobile-actions-split .hw-theme-mobile-call{background:#ffffff16}.hw-theme-mobile-actions-split .hw-theme-mobile-quote{background:var(--hw-accent);color:#fff}.hw-theme-mobile-actions-primary{background:var(--hw-primary)}.hw-theme-mobile-actions-primary a,.hw-theme-mobile-actions-dark a{color:#fff}.hw-theme-mobile-actions-primary .hw-theme-mobile-quote{background:#ffffff18}.hw-theme-mobile-actions-dark{background:#101713}.hw-theme-mobile-actions-dark .hw-theme-mobile-call{background:#ffffff12}.hw-theme-mobile-actions-floating{background:color-mix(in srgb,var(--hw-surface) 94%,transparent);border:1px solid color-mix(in srgb,var(--hw-primary) 14%,transparent)}.hw-theme-mobile-actions-floating a{color:var(--hw-text)}.hw-theme-mobile-actions-floating .hw-theme-mobile-call{background:color-mix(in srgb,var(--hw-primary) 8%,transparent)}.hw-theme-mobile-actions-floating .hw-theme-mobile-quote{background:var(--hw-accent);color:#fff}}
.hw-theme-topbar{background:var(--hw-theme-topbar-bg,var(--hw-primary));color:var(--hw-theme-topbar-text,#fff)}.hw-theme-fallback-footer{background:var(--hw-theme-footer-bg,#151d19);color:var(--hw-theme-footer-text,#eef2ef)}.hw-theme-footer-bottom{background:var(--hw-theme-footer-bottom-bg,transparent);color:var(--hw-theme-footer-bottom-text,inherit)}.hw-theme-footer-bottom-align-center .hw-theme-footer-bottom{justify-content:center;text-align:center}.hw-theme-footer-bottom-align-center .hw-theme-footer-bottom>div{justify-content:center}.hw-theme-footer-bottom-align-left .hw-theme-footer-bottom{justify-content:flex-start}.hw-theme-footer-bottom-contrast{background:var(--hw-theme-footer-bottom-bg,color-mix(in srgb,#000 15%,transparent))}

/* Footer navigation is always static; dropdown positioning belongs to the header only. */
.hw-theme-fallback-footer .hw-theme-menu,
.hw-theme-fallback-footer .sub-menu{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.hw-theme-fallback-footer .sub-menu{padding:4px 0 0 12px;position:static;min-width:0;border:0;background:transparent;color:inherit;box-shadow:none;opacity:1;visibility:visible;transform:none}
.hw-theme-fallback-footer .sub-menu a{padding:0;color:inherit;white-space:normal;font-size:12px}
.hw-theme-fallback-footer .hw-theme-submenu-toggle{display:none!important}
.hw-theme-fallback-footer .hw-theme-nav-cta{justify-self:start}

