/* =============================================================
   draneringkungalv.se — Rank & Rent Lead-Gen Site
   Design system: mobile-first, fast, conversion-focused
   ============================================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }

/* --- Tokens --- */
:root {
  /* Brand */
  --c-primary:        #0E3A53;   /* deep ocean blue */
  --c-primary-dark:   #082638;
  --c-primary-soft:   #E6EEF3;
  --c-accent:         #F59E0B;   /* CTA amber/orange */
  --c-accent-dark:    #D97706;
  --c-accent-soft:    #FEF3C7;
  --c-trust:          #15803D;   /* trust green */

  /* Neutral */
  --c-text:           #0F172A;
  --c-text-muted:     #475569;
  --c-text-light:     #64748B;
  --c-bg:             #FFFFFF;
  --c-surface:        #F8FAFC;
  --c-surface-2:      #F1F5F9;
  --c-border:         #E2E8F0;
  --c-border-strong:  #CBD5E1;

  /* Typography */
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 1rem;
  --lh-base: 1.6;

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, .05), 0 10px 20px rgba(15, 23, 42, .08);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, .08), 0 20px 40px rgba(15, 23, 42, .12);

  /* Spacing scale */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;
}

/* --- Base typography --- */
body {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--c-primary-dark); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw + .5rem, 2.25rem); margin-bottom: var(--s-4); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.35rem); margin-bottom: var(--s-2); }
p  { margin-bottom: var(--s-4); color: var(--c-text); }
p.lead { font-size: 1.125rem; color: var(--c-text-muted); }
ul, ol { padding-left: 1.25rem; margin-bottom: var(--s-4); }
li + li { margin-top: var(--s-2); }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* --- Layout helpers --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-12); }
.section-tight { padding-block: var(--s-8); }
.section-alt { background: var(--c-surface); }
.text-center { text-align: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; font-weight: 600; color: var(--c-accent-dark); margin-bottom: var(--s-3); }

/* --- Header / Nav --- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s-3); gap: var(--s-4);
}
.brand { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--c-primary-dark); text-decoration: none; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__name { font-size: 1.0625rem; }
.header-cta { display: flex; gap: var(--s-2); align-items: center; }
.header-phone { display: none; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.header-phone:hover { color: var(--c-accent-dark); }
@media (min-width: 720px) {
  .header-phone { display: inline-flex; align-items: center; gap: .4em; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85rem 1.4rem; font-weight: 600; font-size: 1rem;
  border-radius: var(--radius); text-decoration: none; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap; line-height: 1; min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-accent); color: #1a1300; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-accent-dark); color: #FFF; }
.btn-secondary { background: var(--c-bg); color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-secondary:hover { background: var(--c-primary); color: #FFF; }
.btn-ghost { background: transparent; color: var(--c-primary); padding: .65rem 1rem; min-height: 40px; }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.0625rem; min-height: 54px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #FFF;
  padding-block: var(--s-12);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 80% 20%, #fff 0, transparent 40%);
}
.hero__grid { display: grid; gap: var(--s-8); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #FFF; }
.hero__sub { font-size: 1.125rem; color: rgba(255,255,255,.88); margin-block: var(--s-4) var(--s-6); max-width: 38ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__trust { display: flex; gap: var(--s-5); margin-top: var(--s-8); flex-wrap: wrap; font-size: .9375rem; color: rgba(255,255,255,.85); }
.hero__trust-item { display: flex; align-items: center; gap: .5em; }
.hero__trust-item svg { color: var(--c-accent); flex-shrink: 0; }
.hero__form-wrap {
  background: #FFF; color: var(--c-text);
  border-radius: var(--radius-lg); padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}
.hero__form-wrap h2 { font-size: 1.25rem; margin-bottom: var(--s-2); color: var(--c-primary-dark); }
.hero__form-wrap p { font-size: .9375rem; color: var(--c-text-muted); margin-bottom: var(--s-4); }
@media (min-width: 900px) {
  .hero { padding-block: var(--s-16); }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-12); }
  .hero__sub { font-size: 1.25rem; }
}

/* --- Cards / Service grid --- */
.grid-cards {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: var(--s-5);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--c-primary-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; margin-bottom: var(--s-3); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--s-2); font-size: 1.125rem; }
.card p { font-size: .9375rem; color: var(--c-text-muted); margin-bottom: 0; }

/* --- Areas (chips) --- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.chip {
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  padding: .45rem .9rem; border-radius: 999px; font-size: .9375rem; font-weight: 500;
}

/* --- Process steps --- */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #FFF;
  display: grid; place-items: center; font-weight: 700; font-size: 1.125rem;
  flex-shrink: 0;
}
.step h3 { margin-bottom: var(--s-1); }
.step p { font-size: .9375rem; color: var(--c-text-muted); margin-bottom: 0; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-6); }
  .step { grid-template-columns: 1fr; gap: var(--s-3); text-align: left; }
}

/* --- FAQ --- */
.faq { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.faq details {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open] { border-color: var(--c-primary-soft); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--c-primary-dark);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--c-accent-dark);
  font-weight: 400; transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin-top: var(--s-3); margin-bottom: 0; color: var(--c-text-muted); font-size: .9375rem; }

/* --- Cost section --- */
.cost-list { display: grid; gap: var(--s-2); margin-block: var(--s-4); padding-left: 0; list-style: none; }
.cost-list li {
  display: flex; gap: var(--s-2); align-items: flex-start;
  padding: var(--s-3); background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); font-size: .9375rem;
}
.cost-list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); margin-top: .55em; flex-shrink: 0;
}

/* --- Forms --- */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: var(--s-1); }
.form__field label { font-weight: 600; font-size: .9375rem; color: var(--c-text); }
.form__field .req { color: var(--c-accent-dark); margin-left: .15em; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius); background: var(--c-bg); color: var(--c-text);
  font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(14, 58, 83, .12);
}
.form__field textarea { min-height: 110px; resize: vertical; }
.form__consent { display: flex; gap: var(--s-2); align-items: flex-start; font-size: .8125rem; color: var(--c-text-muted); }
.form__consent input[type="checkbox"] { margin-top: .3em; flex-shrink: 0; }
.form__hint { font-size: .8125rem; color: var(--c-text-light); }
.form__field input[type="checkbox"] { width: auto; }

/* Honeypot */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- Trust bar --- */
.trust-bar {
  background: var(--c-primary-soft);
  padding-block: var(--s-5);
}
.trust-bar__inner {
  display: grid; gap: var(--s-3); text-align: center;
}
.trust-bar__item {
  display: flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; color: var(--c-primary-dark); font-size: .9375rem;
}
.trust-bar__item svg { color: var(--c-trust); flex-shrink: 0; }
@media (min-width: 720px) {
  .trust-bar__inner { grid-template-columns: repeat(3, 1fr); }
}

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #FFF; padding-block: var(--s-12);
  text-align: center;
}
.cta-banner h2 { color: #FFF; }
.cta-banner p { color: rgba(255,255,255,.88); margin-block: var(--s-3) var(--s-6); font-size: 1.125rem; }
.cta-banner .btn-primary { color: #1a1300; }

/* --- Footer --- */
.site-footer {
  background: var(--c-primary-dark); color: rgba(255,255,255,.78);
  padding-block: var(--s-10) var(--s-6); font-size: .9375rem;
}
.site-footer a { color: rgba(255,255,255,.92); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; gap: var(--s-6); margin-bottom: var(--s-8); }
.footer-col h4 { color: #FFF; font-size: 1rem; margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin: 0 0 var(--s-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--s-5); display: grid; gap: var(--s-3);
  font-size: .8125rem; color: rgba(255,255,255,.6);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* --- Sticky mobile CTA --- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--c-bg); border-top: 1px solid var(--c-border);
  padding: var(--s-2) var(--s-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}
.sticky-cta .btn { padding: .75rem .8rem; font-size: .9375rem; min-height: 44px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-sticky-cta { padding-bottom: 0; } }

/* --- Page header (non-home) --- */
.page-header {
  background: var(--c-primary-soft);
  padding-block: var(--s-10);
  border-bottom: 1px solid var(--c-border);
}
.page-header h1 { color: var(--c-primary-dark); }
.page-header p { color: var(--c-text-muted); font-size: 1.125rem; margin-top: var(--s-3); max-width: 60ch; }

/* --- Utilities --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }

/* --- Print friendliness --- */
@media print {
  .site-header, .sticky-cta, .cta-banner, .site-footer { display: none; }
}
