/* KA Sörensson Byggkonsult – starter site
   Fokus: tydlig typografi, tillgänglighet, snabb laddning
*/

:root{
  --bg: #0b1220;
  --fg: #0d0f12;
  --muted: rgba(13,15,18,.72);
  --card: rgba(255,255,255,.86);
  --card-border: rgba(0,0,0,.08);
  --accent: #1b4b7a;
  --accent-2: #0f6b5f;
  --shadow: 0 14px 38px rgba(0,0,0,.14);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: #f6f8fb;
  line-height: 1.55;
}

img{ max-width: 100%; height: auto; display: block; }

.container{
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 18px;
  top: 18px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,251,.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}
.brand__mark{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.brand__name{ font-weight: 800; letter-spacing: .2px; }
.brand__sub{ font-size: 14px; color: var(--muted); margin-top: 2px; }

.nav{ display:flex; align-items:center; gap: 10px; }
.nav__toggle{
  display:none;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}
.nav__menu{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav__menu a{
  text-decoration:none;
  color: var(--fg);
  font-weight: 600;
  opacity: .92;
}
.nav__menu a:hover{ text-decoration: underline; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 750;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}
.btn:hover{ filter: brightness(1.03); }
.btn--ghost{
  background: rgba(255,255,255,.86);
  color: var(--fg);
  box-shadow: none;
}
.btn--small{ padding: 10px 12px; border-radius: 10px; font-weight: 700; }

/* Hero */
.hero{
  padding: 34px 0 18px 0;
  background:
    radial-gradient(1000px 420px at 15% 8%, rgba(27,75,122,.16), transparent 60%),
    radial-gradient(900px 380px at 75% 10%, rgba(15,107,95,.12), transparent 60%),
    linear-gradient(#f6f8fb, #ffffff);
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 22px;
  align-items: start;
}
.hero h1{
  margin: 0 0 10px 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: .2px;
}
.lead{
  margin: 0 0 16px 0;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
}
.cta-row{
  display:flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 14px 0 12px 0;
}
.quick-contact{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-weight: 700;
}
.quick-contact a{ color: var(--fg); text-decoration: none; }
.quick-contact a:hover{ text-decoration: underline; }
.dot{ opacity: .55; }

.badge-row{
  margin-top: 14px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(27,75,122,.08);
  border: 1px solid rgba(27,75,122,.16);
  font-weight: 700;
  font-size: 13px;
}

.hero__media{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero__media img{
  width: 100%;
  aspect-ratio: 341 / 178;
  object-fit: contain;
  background: #fff;
}

.caption{
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section{ padding: 44px 0; }
.section--alt{ background: #f1f5fb; border-top: 1px solid rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.05); }

.section__header h2{
  margin: 0 0 6px 0;
  font-size: clamp(22px, 2.3vw, 30px);
}
.section__header p{
  margin: 0 0 18px 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid{
  display:grid;
  gap: 14px;
}
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.card h3{ margin: 0 0 8px 0; }
.card p{ margin: 0 0 10px 0; color: var(--muted); }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--fg);
}
.list li{ margin: 6px 0; }

/* Steps */
.steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.steps__item{
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px 14px;
}
.steps__title{
  font-weight: 800;
  margin-bottom: 4px;
}
.steps__text{ color: var(--muted); }

/* Contact */
.contact-list{
  display:grid;
  gap: 12px;
  margin-top: 10px;
}
.label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(13,15,18,.62);
  margin-bottom: 3px;
}
.contact-list a{ font-weight: 800; color: var(--fg); text-decoration: none; }
.contact-list a:hover{ text-decoration: underline; }

.note{
  margin-top: 14px;
  padding: 12px;
  background: rgba(27,75,122,.08);
  border: 1px solid rgba(27,75,122,.14);
  border-radius: 12px;
  color: rgba(13,15,18,.88);
}

/* Form */
.form{ display:grid; gap: 10px; }
.form label{ display:grid; gap: 6px; font-weight: 700; }
input, textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 12px 12px;
  font: inherit;
  background: rgba(255,255,255,.92);
}
textarea{ resize: vertical; min-height: 120px; }

.small{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.site-footer{
  padding: 22px 0;
  background: #0b1220;
  color: rgba(255,255,255,.86);
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__title{ font-weight: 900; }
.footer__sub{ opacity: .78; margin-top: 2px; }
.footer__links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__links a{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight: 700;
}
.footer__links a:hover{ text-decoration: underline; }

/* Responsive */
@media (max-width: 920px){
  .hero__inner{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .nav__toggle{ display:inline-flex; }
  .nav__menu{
    display:none;
    position:absolute;
    right: 18px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: var(--shadow);
    min-width: 220px;
  }
  .nav__menu.is-open{ display:flex; }
}


/* FAQ */
.faq{
  display: grid;
  gap: 10px;
}
.faq__item{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  overflow: hidden;
}
.faq__item > summary{
  cursor: pointer;
  padding: 14px 14px;
  font-weight: 800;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker{ display: none; }
.faq__item > summary::after{
  content: "＋";
  float: right;
  opacity: .75;
}
.faq__item[open] > summary::after{
  content: "－";
}
.faq__content{
  padding: 0 14px 14px 14px;
  color: var(--muted);
}
.faq__content p{ margin: 10px 0; }


/* Honeypot (dold spamfälla) */
.hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.turnstile-wrap{
  margin-top: 6px;
}


/* Logotyp i header */
.brand__logo{
  display: block;
  width: 140px;
  height: 44px;
  flex: 0 0 auto;
}

@media (max-width: 760px){
  .brand__logo{ width: 121px; height: 38px; }
}



/* Kontaktperson (för bättre förtroende och balans i layouten) */
.contact-person{
  display:flex;
  gap: 14px;
  align-items:center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}

.contact-person__avatar{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.contact-person__name{
  font-weight: 800;
  line-height: 1.15;
}

.contact-person__role{
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.contact-person__promise{
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

@media (min-width: 760px){
  .contact-person__avatar{ width: 80px; height: 80px; }
}


.check input{
  margin-top: 3px;
}
.check a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Kontaktformulär: checkbox + text på samma rad (undantag från globala input-regler) */
.check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 10px 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.check input[type="checkbox"]{
  width: auto !important;   /* vinner mot ev. input{width:100%} */
  height: auto;
  flex: 0 0 auto;
  margin: 0;
}

.check span{
  display: inline;
  line-height: 1.35;
}

.check a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Override (hardening): säkra inline-layout även om globala formregler finns */
form .check,
.contact-form .check,
form label.check{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

form .check input[type="checkbox"],
form label.check input[type="checkbox"],
.contact-form .check input[type="checkbox"]{
  width: auto !important;
  max-width: none !important;
  display: inline-block !important;
  margin: 0 !important;
}

form .check span,
form label.check span,
.contact-form .check span{
  display: inline !important;
}
