/*
Theme Name: Haninge Smide
Theme URI: https://haningesmide.se
Author: Haninge Smide
Description: Professionellt tema för Haninge Smide — certifierat smidesföretag i Stockholm
Version: 1.0
License: Private
Text Domain: haninge-smide
*/

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
:root{
  --steel:#1a1a1e;--steel-mid:#2c2c32;--steel-light:#3e3e46;
  --rust:#c0522a;--rust-bright:#e06030;--ember:#e8940a;
  --smoke:#888890;--off-white:#f0ede8;--cream:#faf7f2;
}
html{scroll-behavior:smooth;}
body{font-family:'Source Sans 3',sans-serif;background:var(--cream);color:var(--steel);line-height:1.6;overflow-x:hidden;}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;justify-content:space-between;align-items:center;padding:0 4rem;height:70px;background:rgba(26,26,30,0.97);backdrop-filter:blur(10px);border-bottom:3px solid var(--rust);}
.logo-wrap{display:flex;align-items:center;gap:12px;text-decoration:none;}
.logo-top{font-family:'Playfair Display',serif;font-size:15px;font-weight:700;color:var(--off-white);letter-spacing:2px;display:block;}
.logo-bot{font-family:'Playfair Display',serif;font-size:10px;color:var(--rust);letter-spacing:6px;display:block;}
nav ul{list-style:none;display:flex;align-items:center;position:relative;}
nav ul li{position:relative;}
nav ul a{display:flex;align-items:center;padding:0 1.2rem;height:70px;font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:var(--smoke);text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-3px;transition:color 0.2s,border-color 0.2s;}
nav ul a:hover{color:var(--off-white);border-bottom-color:var(--rust);}
.nav-cta{margin-left:1rem;padding:0.6rem 1.4rem;background:var(--rust);color:var(--off-white)!important;font-size:11px;letter-spacing:0.14em;text-transform:uppercase;text-decoration:none;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 100%,8px 100%);transition:background 0.2s;border-bottom:none!important;height:auto!important;}
.nav-cta:hover{background:var(--rust-bright)!important;}
.sep{width:1px;height:20px;background:rgba(255,255,255,0.1);margin:0 0.2rem;display:inline-block;}
.has-dropdown{position:relative;}
.dropdown-menu{display:none;position:absolute;top:100%;left:0;background:var(--steel-mid);border:1px solid rgba(192,82,42,0.3);border-top:2px solid var(--rust);min-width:240px;z-index:200;padding:0.5rem 0;}
.has-dropdown:hover .dropdown-menu{display:block;}
.dropdown-menu a{display:block;padding:0.7rem 1.4rem;height:auto;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--smoke);text-decoration:none;border-bottom:1px solid rgba(255,255,255,0.04);transition:color 0.2s,background 0.2s;margin-bottom:0;border-left:none;}
.dropdown-menu a:hover{color:var(--off-white);background:rgba(192,82,42,0.12);}
.dropdown-menu a:last-child{border-bottom:none;}
.nav-arrow{font-size:8px;margin-left:4px;opacity:0.6;}

/* HERO */
.hero{min-height:100vh;display:flex;align-items:center;position:relative;padding:0 4rem;overflow:hidden;}

.hero-overlay{position:absolute;inset:0;background:linear-gradient(105deg,rgba(26,26,30,0.95) 45%,rgba(26,26,30,0.7) 100%);}
.hero-content{position:relative;z-index:2;max-width:680px;}
.eyebrow{display:inline-flex;align-items:center;gap:0.75rem;font-size:0.72rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--rust-bright);margin-bottom:1.5rem;}
.eyebrow::before{content:'';display:block;width:32px;height:1px;background:var(--rust-bright);}
h1{font-family:'Playfair Display',serif;font-size:clamp(2.8rem,5vw,4.8rem);font-weight:900;line-height:1.05;color:var(--off-white);margin-bottom:1.5rem;}
h1 em{font-style:normal;color:var(--rust-bright);}
.hero-lead{font-size:1rem;font-weight:300;color:rgba(240,237,232,0.75);max-width:520px;margin-bottom:2rem;line-height:1.85;}
.btn-group{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:2.5rem;}
.btn-primary{display:inline-block;padding:0.9rem 2rem;background:var(--rust);color:var(--cream);text-decoration:none;font-size:0.82rem;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 100%,10px 100%);transition:background 0.2s,transform 0.15s;}
.btn-primary:hover{background:var(--rust-bright);transform:translateY(-2px);}
.btn-ghost-wrap{display:inline-block;background:rgba(240,237,232,0.55);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 100%,10px 100%);padding:2px;transition:background 0.2s;}
.btn-ghost-wrap:hover{background:var(--rust-bright);}
.btn-ghost{display:block;padding:0.88rem 2rem;background:#1a1a1e;color:var(--off-white);text-decoration:none;font-size:0.82rem;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 100%,9px 100%);transition:color 0.2s;}
.btn-ghost:hover{color:var(--rust-bright);}
.hero-badges{display:flex;gap:0.75rem;flex-wrap:wrap;}
.hero-badge{display:inline-block;padding:0.4rem 1rem;border:1px solid rgba(192,82,42,0.5);font-size:0.68rem;letter-spacing:0.18em;text-transform:uppercase;color:var(--rust-bright);font-weight:600;}

/* SECTIONS */
.section{padding:6rem 4rem;}
.section-tag{display:inline-flex;align-items:center;gap:0.75rem;font-size:0.7rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--rust);margin-bottom:1rem;}
.section-tag::before{content:'';display:block;width:24px;height:1px;background:var(--rust);}
h2{font-family:'Playfair Display',serif;font-size:clamp(1.8rem,3vw,2.8rem);font-weight:700;line-height:1.1;}
.section-lead{font-size:0.95rem;color:rgba(26,26,30,0.62);max-width:560px;margin-top:1rem;line-height:1.85;}

/* TJÄNSTER */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:3.5rem;border:1px solid rgba(192,82,42,0.15);}
.service-card{position:relative;overflow:hidden;border-right:1px solid rgba(192,82,42,0.15);border-bottom:1px solid rgba(192,82,42,0.15);background:#fff;}
.service-card:nth-child(3n){border-right:none;}
.service-card:nth-last-child(-n+3){border-bottom:none;}
.service-img-wrap{overflow:hidden;position:relative;height:200px;background:var(--steel-light);}
.service-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s;}
.service-card:hover .service-img-wrap img{transform:scale(1.06);}
.service-img-wrap::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 50%,rgba(26,26,30,0.25));}
.service-img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--steel-light);color:var(--smoke);font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;text-align:center;padding:1rem;}
.service-body{padding:1.5rem 1.75rem 1.75rem;}
.service-num{font-family:'Playfair Display',serif;font-size:2.2rem;font-weight:900;color:rgba(192,82,42,0.1);position:absolute;top:0.75rem;right:1.25rem;}
.service-title{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:700;color:var(--steel);margin-bottom:0.6rem;}
.service-desc{font-size:0.85rem;color:rgba(26,26,30,0.62);line-height:1.75;margin-bottom:1.2rem;}
.service-link{display:inline-flex;align-items:center;gap:0.4rem;font-size:0.75rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--rust);text-decoration:none;font-weight:600;transition:gap 0.2s,color 0.2s;}
.service-link:hover{color:var(--rust-bright);gap:0.7rem;}
.service-link::after{content:'→';}
.service-card::before{content:'';position:absolute;top:0;left:0;width:3px;height:0;background:var(--rust);transition:height 0.35s;z-index:2;}
.service-card:hover::before{height:100%;}

/* PROCESS */
.process-section{background:#fff;padding:6rem 4rem;}
.process-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:2rem;margin-top:3.5rem;}
.process-step{text-align:center;}
.process-hex{width:52px;height:52px;background:var(--rust);clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;color:#fff;}
.process-step-title{font-family:'Playfair Display',serif;font-size:0.95rem;font-weight:700;color:var(--steel);margin-bottom:0.5rem;}
.process-step-desc{font-size:0.8rem;color:var(--smoke);line-height:1.6;}

/* VARFÖR VÄLJA OSS */
.why-section{background:var(--cream);padding:6rem 4rem;}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3.5rem;}
.why-card{background:#fff;border:1px solid rgba(192,82,42,0.12);padding:2rem;position:relative;border-left:3px solid var(--rust);transition:transform 0.2s,box-shadow 0.2s;}
.why-card:hover{transform:translateY(-3px);box-shadow:0 8px 32px rgba(26,26,30,0.08);}
.why-icon{width:36px;height:36px;border:1.5px solid var(--rust);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1.2rem;color:var(--rust);font-size:1rem;}
.why-title{font-family:'Playfair Display',serif;font-size:1.05rem;font-weight:700;color:var(--steel);margin-bottom:0.6rem;}
.why-desc{font-size:0.85rem;color:rgba(26,26,30,0.62);line-height:1.75;}

/* OM OSS */
.about-section{background:var(--steel);padding:6rem 4rem;display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;}
.about-img-wrap{position:relative;}
.about-img-placeholder{width:100%;height:480px;background:var(--steel-light);display:flex;align-items:center;justify-content:center;color:var(--smoke);font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;text-align:center;}
.about-img-badge{position:absolute;bottom:-1.5rem;right:-1.5rem;background:var(--steel-mid);padding:1.5rem 2rem;border-left:4px solid var(--rust);}
.about-img-badge .big{font-family:'Playfair Display',serif;font-size:2.5rem;font-weight:900;color:var(--rust-bright);display:block;}
.about-img-badge .small{font-size:0.7rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--smoke);}
.about-content{padding-bottom:1.5rem;}
.about-content p{font-size:0.95rem;color:rgba(240,237,232,0.65);line-height:1.85;margin-bottom:1.2rem;}
.about-list{list-style:none;margin-top:1.5rem;display:flex;flex-direction:column;gap:0.65rem;}
.about-list li{display:flex;align-items:center;gap:0.75rem;font-size:0.9rem;color:var(--off-white);}
.about-list li::before{content:'';display:block;width:6px;height:6px;background:var(--rust);transform:rotate(45deg);flex-shrink:0;}
.about-cta{display:inline-flex;align-items:center;gap:0.5rem;margin-top:2rem;font-size:0.78rem;letter-spacing:0.14em;text-transform:uppercase;color:var(--rust-bright);text-decoration:none;font-weight:600;transition:gap 0.2s;}
.about-cta:hover{gap:0.85rem;}
.about-cta::after{content:'→';}

/* KONTAKT */
.contact-section{background:var(--steel-mid);padding:6rem 4rem;display:grid;grid-template-columns:1fr 1fr;gap:5rem;}
.contact-info{display:flex;flex-direction:column;gap:1.5rem;margin-top:2rem;}
.contact-label{font-size:0.68rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--rust-bright);display:block;margin-bottom:0.25rem;}
.contact-value{font-size:1rem;color:var(--off-white);}
.contact-form{display:flex;flex-direction:column;gap:1rem;}
.contact-form .wpcf7-form{display:flex;flex-direction:column;gap:1rem;}
.contact-form label{font-size:0.68rem;letter-spacing:0.16em;text-transform:uppercase;color:var(--smoke);display:block;margin-bottom:0.4rem;}
.contact-form input,.contact-form textarea,.contact-form select{width:100%;background:rgba(255,255,255,0.06);border:1px solid rgba(240,237,232,0.15);color:var(--off-white);padding:0.75rem 1rem;font-family:'Source Sans 3',sans-serif;font-size:0.92rem;transition:border-color 0.2s;outline:none;resize:none;}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--rust);}
.contact-form textarea{height:120px;}
.wpcf7-submit{padding:0.9rem 2rem;background:var(--rust);color:var(--cream);font-size:0.82rem;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;border:none;cursor:pointer;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 100%,10px 100%);transition:background 0.2s;width:100%;}
.wpcf7-submit:hover{background:var(--rust-bright);}

/* FOOTER */
footer{background:#0e0e11;border-top:1px solid rgba(192,82,42,0.2);padding:3rem 4rem;}
.footer-inner{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3rem;margin-bottom:2.5rem;}
.footer-logo-wrap{display:flex;align-items:center;gap:10px;margin-bottom:1rem;}
.footer-logo{font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:900;color:var(--smoke);}
.footer-logo span{color:var(--rust);}
.footer-tagline{font-size:0.8rem;color:rgba(136,136,144,0.5);line-height:1.6;max-width:220px;}
.footer-col-title{font-size:0.68rem;letter-spacing:0.18em;text-transform:uppercase;color:var(--rust);margin-bottom:1rem;font-weight:600;}
.footer-links{display:flex;flex-direction:column;gap:0.5rem;}
.footer-links a{font-size:0.78rem;text-decoration:none;letter-spacing:0.06em;transition:color 0.2s;}
.footer-nav-link{color:var(--rust);}
.footer-nav-link:hover{color:var(--rust-bright);}
.footer-info-link{color:rgba(136,136,144,0.55);}
.footer-info-link:hover{color:var(--rust);}
span.footer-info-link{display:block;font-size:0.78rem;color:rgba(136,136,144,0.55);letter-spacing:0.06em;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.06);padding-top:1.5rem;display:flex;justify-content:space-between;align-items:center;}
.footer-copy{font-size:0.72rem;color:rgba(136,136,144,0.35);}

/* PAGE HERO (tjänstesidor) */
.page-hero{padding:9rem 4rem 5rem;background:var(--steel);position:relative;min-height:380px;display:flex;align-items:center;}
.page-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,rgba(26,26,30,0.97) 55%,rgba(26,26,30,0.7));}
.page-hero-content{position:relative;z-index:2;max-width:780px;}
.breadcrumb{font-size:0.72rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--smoke);margin-bottom:1.2rem;}
.breadcrumb a{color:var(--smoke);text-decoration:none;transition:color 0.2s;}
.breadcrumb a:hover{color:var(--rust-bright);}
.page-content{padding:5rem 4rem;max-width:900px;margin:0 auto;}
.page-content h2{margin-bottom:1.5rem;margin-top:2.5rem;}
.page-content h2:first-child{margin-top:0;}
.page-content p{font-size:0.96rem;color:rgba(26,26,30,0.7);line-height:1.9;margin-bottom:1.2rem;}

/* CTA SEKTION */
.cta-section{background:var(--steel);padding:5rem 4rem;text-align:center;}
.cta-section h2{color:var(--off-white);margin-bottom:1rem;}
.cta-section p{color:rgba(240,237,232,0.6);max-width:500px;margin:0 auto 2rem;}

/* MOBILE */
@media(max-width:900px){
  nav{padding:0 1.5rem;}
  nav ul{display:none;}
  .hero{padding:7rem 1.5rem 3rem;}
  .section{padding:4rem 1.5rem;}
  .process-section{padding:4rem 1.5rem;}
  .why-section{padding:4rem 1.5rem;}
  .process-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem;}
  .services-grid{grid-template-columns:1fr;}
  .service-card{border-right:none!important;}
  .service-card:nth-last-child(-n+3){border-bottom:1px solid rgba(192,82,42,0.15);}
  .service-card:last-child{border-bottom:none;}
  .why-grid{grid-template-columns:1fr;}
  .about-section{grid-template-columns:1fr;padding:4rem 1.5rem;gap:3rem;}
  .about-img-badge{bottom:-1rem;right:1rem;}
  .contact-section{grid-template-columns:1fr;padding:4rem 1.5rem;gap:3rem;}
  .footer-inner{grid-template-columns:1fr;gap:2rem;}
  .footer-bottom{flex-direction:column;gap:1rem;text-align:center;}
  footer{padding:3rem 1.5rem;}
  .page-hero{padding:7rem 1.5rem 3rem;}
  .page-content{padding:3rem 1.5rem;}
  .cta-section{padding:4rem 1.5rem;}
}


/* ===== SERVICE PAGE SECTIONS ===== */

.intro-section{background:#fff;padding:5rem 4rem;}
.intro-grid{display:grid;grid-template-columns:1.2fr 0.8fr;gap:4rem;align-items:start;}
.intro-img,.racke-img,.design-img,.montage-img,.problem-img{width:100%;height:340px;background:var(--steel-light);display:flex;align-items:center;justify-content:center;color:var(--smoke);font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;text-align:center;padding:1rem;}
.type-section,.what-section,.usp-section,.speed-section,.explain-section,.target-section,.corten-section{background:var(--cream);padding:5rem 4rem;}
.material-section,.faq-section,.design-section,.racke-section,.montage-section,.problem-section{background:#fff;padding:5rem 4rem;}
.brf-section,.cert-section{background:var(--steel);padding:5rem 4rem;}
.legal-section{background:var(--steel-mid);padding:5rem 4rem;}
.usp-hero-section{background:var(--cream);padding:4rem;text-align:center;}
.usp-hero-section h2{margin-bottom:1rem;}
.usp-hero-section p{font-size:0.95rem;color:rgba(26,26,30,0.65);max-width:620px;margin:0 auto;}
/* GRIDS */
.type-grid,.material-grid,.design-grid,.brf-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;margin-top:2.5rem;}
.cert-grid,.target-grid,.speed-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:2.5rem;}
.what-grid,.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;margin-top:2.5rem;}
.intro-grid,.racke-grid,.montage-grid,.problem-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;}
.racke-grid.reverse > *:first-child{order:2;}
.racke-grid.reverse > *:last-child{order:1;}
/* CARDS */
.type-card,.what-card,.target-card,.service-section .service-card{background:#fff;padding:2rem;border-left:3px solid var(--rust);transition:transform 0.2s,box-shadow 0.2s;}
.type-card:hover,.what-card:hover,.target-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(26,26,30,0.07);}
.material-card{padding:2rem;border:1px solid rgba(192,82,42,0.15);background:var(--cream);}
.material-card h3{color:var(--rust);margin-bottom:0.5rem;}
.cert-card,.brf-card{background:var(--steel-mid);padding:2rem;}
.cert-card h3,.brf-card h3{color:var(--off-white);margin-bottom:0.75rem;}
.cert-card p,.brf-card p{color:rgba(240,237,232,0.65);font-size:0.88rem;line-height:1.75;margin-bottom:0;}
.speed-card{background:#fff;padding:2.5rem;border:1px solid rgba(192,82,42,0.12);text-align:center;}
.speed-num{font-family:'Playfair Display',serif;font-size:2rem;font-weight:900;color:var(--rust);display:block;margin-bottom:0.5rem;}
.speed-label{font-size:0.78rem;color:var(--smoke);letter-spacing:0.1em;text-transform:uppercase;}
.service-img{width:100%;height:260px;background:var(--steel-light);display:flex;align-items:center;justify-content:center;color:var(--smoke);font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;text-align:center;padding:1rem;margin-top:2rem;}
/* PROCESS STEPS (service pages) */
.process-steps{display:flex;flex-direction:column;gap:1.5rem;margin-top:2.5rem;}
.service-process-step{display:flex;gap:1.5rem;align-items:flex-start;}
.step-num{width:44px;height:44px;min-width:44px;background:var(--rust);clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-size:1rem;font-weight:700;color:#fff;}
.step-content h3{color:var(--off-white);margin-bottom:0.3rem;font-family:'Playfair Display',serif;font-weight:700;}
.step-content p{color:rgba(240,237,232,0.65);margin-bottom:0;font-size:0.88rem;}
/* USP */
.usp-list{list-style:none;display:flex;flex-direction:column;gap:0.75rem;margin-top:1.5rem;}
.usp-list li{display:flex;align-items:center;gap:0.75rem;font-size:0.95rem;color:var(--steel);}
.usp-list li::before{content:'';display:block;width:6px;height:6px;background:var(--rust);transform:rotate(45deg);flex-shrink:0;}
/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:0;margin-top:2.5rem;border:1px solid rgba(192,82,42,0.15);}
.faq-item{padding:1.75rem 2rem;border-bottom:1px solid rgba(192,82,42,0.12);}
.faq-item:last-child{border-bottom:none;}
.faq-q{font-family:'Playfair Display',serif;font-size:1rem;font-weight:700;color:var(--steel);margin-bottom:0.75rem;}
.faq-a{font-size:0.9rem;color:rgba(26,26,30,0.65);line-height:1.8;margin-bottom:0;}
.faq-a a{color:var(--rust);text-decoration:none;}
/* BOXES */
.explain-box{background:#fff;border-left:4px solid var(--rust);padding:2rem;margin-top:1.5rem;}
.legal-box{background:rgba(192,82,42,0.08);border:1px solid rgba(192,82,42,0.25);padding:2rem;margin-top:1.5rem;}
.legal-section h2,.legal-section p{color:var(--off-white);}
.legal-section .legal-box a{color:var(--rust-bright);}
.cert-section h2,.brf-section h2{color:var(--off-white);}
.cert-section p,.brf-section p{color:rgba(240,237,232,0.65);}
/* INTERNAL LINKS */
.internal-links{background:var(--cream);padding:2.5rem 4rem;border-top:1px solid rgba(192,82,42,0.1);}
.internal-links p{font-size:0.88rem;color:var(--smoke);margin-bottom:0;}
.internal-links a{color:var(--rust);text-decoration:none;font-weight:600;}
.internal-links a:hover{color:var(--rust-bright);}
/* h3 in light sections */
h3{font-family:'Playfair Display',serif;font-size:1.05rem;font-weight:700;color:var(--steel);margin-bottom:0.5rem;}
/* MOBILE SERVICE */
@media(max-width:900px){
  .intro-section,.type-section,.material-section,.usp-section,.faq-section,.internal-links,
  .racke-section,.brf-section,.cert-section,.what-section,.montage-section,.target-section,
  .corten-section,.design-section,.problem-section,.explain-section,.legal-section,
  .service-section,.usp-hero-section,.speed-section{padding:3.5rem 1.5rem;}
  .intro-grid,.racke-grid,.montage-grid,.problem-grid{grid-template-columns:1fr;}
  .type-grid,.material-grid,.design-grid,.brf-grid,.cert-grid,.what-grid,
  .target-grid,.speed-grid,.service-grid{grid-template-columns:1fr;}
  .racke-grid.reverse > *:first-child{order:unset;}
  .racke-grid.reverse > *:last-child{order:unset;}
}

/* EDITOR CONTENT SECTION */
.editor-content-section{background:#fff;padding:3rem 4rem;}
.editor-content{max-width:780px;margin:0 auto;}
.editor-content h2{font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:700;color:var(--steel);margin:2rem 0 0.75rem;}
.editor-content h3{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:700;color:var(--steel);margin:1.5rem 0 0.5rem;}
.editor-content p{font-size:0.95rem;color:rgba(26,26,30,0.75);line-height:1.85;margin-bottom:1rem;}
.editor-content ul{margin:0.5rem 0 1rem 1.5rem;}
.editor-content ul li{font-size:0.95rem;color:rgba(26,26,30,0.75);line-height:1.85;margin-bottom:0.35rem;}
@media(max-width:768px){.editor-content-section{padding:2.5rem 1.5rem;}}

/* REAL IMAGES */
img.racke-img,img.intro-img,img.design-img,img.montage-img,img.problem-img,img.service-img{width:100%;height:340px;object-fit:cover;display:block;}
.service-img-wrap{overflow:hidden;}
.about-img-wrap{overflow:hidden;position:relative;}


/* FIX 1: Ta bort ram från bilder på tjänstesidor */
img.racke-img,img.intro-img,img.design-img,img.montage-img,img.problem-img,img.service-img{border:none;outline:none;box-shadow:none;}

/* FIX 7+8: Läsbar text i process-steg (staltrappor + avvaxlingar) */
.service-process-step .step-title{color:var(--steel);}
.service-process-step .step-desc{color:rgba(26,26,30,0.75);}
.step-num{background:var(--rust);color:#fff;}

/* FIX 9: Juridisk ansvar-sektion (avvaxlingar) */
.legal-section{background:var(--steel);padding:4rem;}
.legal-box{background:var(--steel-mid);border:1px solid var(--steel-light);border-radius:4px;padding:2rem;}
.legal-box h3{color:var(--rust-bright);font-size:1rem;margin-bottom:0.75rem;}
.legal-box p{color:rgba(240,237,232,0.8);font-size:0.9rem;line-height:1.85;}
.legal-section h2{color:var(--off-white);}
.legal-section>.section-tag{color:var(--rust-bright);}
.legal-section>p{color:rgba(240,237,232,0.7);}

/* FIX 11: Hamburgerknapp mobil */
.nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;background:none;border:none;}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--off-white);}
@media(max-width:768px){
  .nav-toggle{display:flex;}
  nav ul{display:none;flex-direction:column;align-items:stretch;position:absolute;top:60px;left:0;right:0;background:var(--steel);padding:1.5rem;gap:1rem;z-index:999;}
  nav ul.open{display:flex;}
  nav ul a{height:auto;padding:0.75rem 1rem;justify-content:flex-start;}
}

.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0.6;}
.page-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0.6;}

/* Fix ram på bilder */
img.racke-img,img.intro-img,img.design-img,img.montage-img,img.problem-img,img.service-img{
  width:100%;height:340px;object-fit:cover;display:block;
  padding:0!important;background:none!important;border:none!important;
  box-shadow:none!important;outline:none!important;
}

/* Fix process-steg text */
.service-process-step{display:flex;align-items:flex-start;gap:1.25rem;margin-bottom:1.5rem;}
.service-process-step h3{color:var(--steel)!important;font-size:1rem;font-weight:700;margin-bottom:0.35rem;}
.service-process-step p{color:rgba(26,26,30,0.75)!important;font-size:0.9rem;line-height:1.75;}
.step-content h3{color:var(--steel)!important;}
.step-content p{color:rgba(26,26,30,0.75)!important;}
.step-num{min-width:36px;height:36px;background:var(--rust);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.9rem;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);}

/* Fix stalkonstruktioner hero text storlek */
.page-hero h1{font-size:clamp(1.6rem,3.5vw,2.8rem);}

/* ============================================================
   V3 UPDATES
   ============================================================ */

/* HERO OPACITY */
.hero-bg{opacity:0.4!important;}
.page-hero-bg{opacity:0.5!important;}

/* BUTTONS — rektangulära, centrerade, samma bredd */
.btn-group{display:flex;flex-direction:column;align-items:center;gap:0.85rem;margin-bottom:2.5rem;}
.btn-group .btn-primary,.btn-group .btn-ghost{width:100%;max-width:320px;text-align:center;box-sizing:border-box;}
.btn-primary{clip-path:none!important;border-radius:2px;display:block;}
.btn-ghost-wrap{display:none!important;}
.btn-ghost{display:block;padding:0.88rem 2rem;background:transparent;color:var(--off-white);border:2px solid var(--off-white);text-decoration:none;font-size:0.82rem;letter-spacing:0.12em;text-transform:uppercase;font-weight:600;clip-path:none!important;border-radius:2px;}
.nav-cta{clip-path:none!important;border-radius:2px!important;}

/* WHY-CARD IKONER — Design B */
.why-card{border-left:none;border:1px solid rgba(192,82,42,0.12);}
.why-icon{width:44px;height:44px;border-radius:10px;background:var(--rust);border:none;color:#fff;font-size:1.2rem;display:flex;align-items:center;justify-content:center;margin-bottom:1.2rem;}

/* PROCESS — Design A */
.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3.5rem;}
.process-card{background:var(--cream);border:1px solid rgba(192,82,42,0.1);border-radius:8px;padding:1.75rem 1.5rem;position:relative;overflow:hidden;}
.process-num-bg{font-family:'Playfair Display',serif;font-size:68px;font-weight:900;color:rgba(192,82,42,0.07);position:absolute;top:0.1rem;right:0.75rem;line-height:1;}
.process-icon-wrap{width:44px;height:44px;border-radius:10px;background:var(--rust);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;font-size:1.2rem;color:#fff;}
.process-card-title{font-family:'Playfair Display',serif;font-size:1rem;font-weight:700;color:var(--steel);margin-bottom:0.4rem;}
.process-card-desc{font-size:0.85rem;color:var(--smoke);line-height:1.6;margin:0;}

/* STEG-IKONER tjänstesidor — Design B */
.step-num{width:40px;height:40px;min-width:40px;background:var(--rust);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.95rem;border-radius:10px;clip-path:none!important;}

/* KONTAKTFORMULÄR */
.cf-form{display:flex;flex-direction:column;gap:1rem;}
.cf-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.cf-field{display:flex;flex-direction:column;gap:0.4rem;}
.cf-field label{font-size:0.78rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(240,237,232,0.65);font-weight:600;}
.cf-field input,.cf-field select,.cf-field textarea{background:rgba(255,255,255,0.06);border:1px solid rgba(240,237,232,0.2);color:var(--off-white);padding:0.75rem 1rem;font-size:0.9rem;border-radius:2px;font-family:inherit;width:100%;box-sizing:border-box;}
.cf-field input:focus,.cf-field select:focus,.cf-field textarea:focus{outline:none;border-color:var(--rust);}
.cf-field select option{background:var(--steel);color:var(--off-white);}
.cf-field textarea{resize:vertical;min-height:110px;}
.cf-checkbox{display:flex;align-items:flex-start;gap:0.65rem;font-size:0.8rem;color:rgba(240,237,232,0.55);line-height:1.5;}
.cf-checkbox input[type="checkbox"]{margin-top:3px;accent-color:var(--rust);}
.cf-submit{padding:1rem 2rem;background:var(--rust);color:var(--off-white);font-size:0.82rem;letter-spacing:0.14em;text-transform:uppercase;font-weight:700;border:none;cursor:pointer;border-radius:2px;width:100%;transition:background 0.2s;}
.cf-submit:hover{background:var(--rust-bright);}
.cf-note{font-size:0.78rem;color:rgba(240,237,232,0.45);text-align:center;margin:0.25rem 0 0;}
.cf-success{display:none;padding:1rem;background:rgba(192,82,42,0.15);border:1px solid var(--rust);color:var(--off-white);border-radius:2px;font-size:0.9rem;}
.cf-error{display:none;padding:1rem;background:rgba(200,50,50,0.15);border:1px solid rgba(200,50,50,0.5);color:var(--off-white);border-radius:2px;font-size:0.9rem;}

/* MOBILMENY */
@media(max-width:768px){
  nav ul.open{gap:0;padding:1rem 1.5rem 1.5rem;}
  nav ul.open .has-dropdown>.dropdown-menu{display:block!important;position:static;background:none;border:none;padding:0 0 0.5rem 1rem;}
  nav ul.open .has-dropdown .dropdown-menu a{font-size:11px;color:rgba(240,237,232,0.4);}
}

/* MOBILBREDD-FIXAR */
@media(max-width:900px){
  .legal-section{padding:3.5rem 1.5rem!important;}
  .service-section{padding:3.5rem 1.5rem!important;}
  .process-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
  .cf-row{grid-template-columns:1fr;}
  .process-grid{grid-template-columns:1fr;}
}
.service-section{background:#fff;padding:5rem 4rem;}

/* ============================================================
   V4 UPDATES
   ============================================================ */

/* HERO OPACITY — 40% för alla sidor */
.hero-bg{opacity:0.4!important;}
.page-hero-bg{opacity:0.4!important;}

/* HERO CONTENT — flytta text lite åt höger */
.hero-content{padding-left:8%;}

/* KNAPPAR — rundade hörn 10px på samtliga */
.btn-primary{border-radius:10px!important;clip-path:none!important;}
.btn-ghost{border-radius:10px!important;clip-path:none!important;}
.nav-cta{border-radius:10px!important;clip-path:none!important;}
.cf-submit{border-radius:10px!important;}
.wpcf7-submit{border-radius:10px!important;clip-path:none!important;}

/* HERO — knappar bredvid varandra på desktop */
.btn-group{flex-direction:row;flex-wrap:wrap;gap:1rem;align-items:center;}
.btn-group .btn-primary,.btn-group .btn-ghost{width:auto;max-width:none;}

/* CTA-KNAPP på tjänstesidor — mindre, inte full bredd */
.cta-section{text-align:center;}
.cta-section .btn-primary{display:inline-block!important;width:auto!important;padding:0.75rem 2rem!important;font-size:0.82rem;}

/* MOBILMENY — vänsterjusterad, orange huvudkategorier */
@media(max-width:768px){
  nav ul{text-align:left!important;}
  nav ul li>a{color:var(--rust)!important;font-weight:600;justify-content:flex-start!important;}
  nav ul li .sep{display:none;}
  nav ul.open .has-dropdown .dropdown-menu a{color:rgba(240,237,232,0.45)!important;font-weight:400;justify-content:flex-start!important;}
  nav ul li:last-child a.nav-cta{color:var(--off-white)!important;}
}

/* MOBIL — knappar staplade igen, mindre CTA och cf-submit */
@media(max-width:768px){
  .btn-group{flex-direction:column;align-items:flex-start;}
  .btn-group .btn-primary,.btn-group .btn-ghost{width:100%;max-width:280px;}
  .cta-section .btn-primary{width:auto;padding:0.7rem 1.5rem;font-size:0.76rem;letter-spacing:0.1em;}
  .cf-submit{padding:0.75rem 1.5rem;font-size:0.76rem;letter-spacing:0.1em;width:auto;}
}

/* CHECKBOX — vänsterjusterad, nära kryssrutan */
.cf-checkbox{display:flex;align-items:flex-start;gap:0.5rem;justify-content:flex-start;font-size:0.8rem;color:rgba(240,237,232,0.55);line-height:1.5;}
.cf-checkbox input[type="checkbox"]{margin-top:3px;flex-shrink:0;width:14px;height:14px;}
.cf-checkbox label{cursor:pointer;}

/* ============================================================
   V5 — HERO: ingen opacity, ingen overlay
   ============================================================ */
.hero-bg{opacity:1!important;}
.page-hero-bg{opacity:1!important;}
.hero-overlay{display:none!important;}

/* ============================================================
   V6 — HERO: mörk overlay för rätt känsla
   ============================================================ */
.hero-bg{opacity:1!important;}
.page-hero-bg{opacity:1!important;}
.hero-overlay{display:block!important;background:rgba(10,10,12,0.40)!important;}
.page-hero::after{content:'';position:absolute;inset:0;background:rgba(10,10,12,0.40);z-index:1;}
.page-hero-content{z-index:2;position:relative;}
