/* PostExpress Nordic AB — egen design, fria fonter (Google Fonts: Montserrat, Source Sans 3)
   Referens: frenchforwarders.com (struktur), men all kod och styling är skriven för PostExpress. */

:root {
  --accent: #003599;  /* PostExpress-brandbla fran logotypen */
  --accent-dark: #002b7a;
  --accent-light: #4d8dff;  /* las ton for mork bakgrund */
  --dark: #1a202c;
  --dark-2: #2d3748;
  --gray: #52606d;
  --line: #e2e8f0;
  --bg: #f7f9fb;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1200px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-2);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--white);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
.section-alt { background: var(--bg); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--dark);
}
.brand:hover { text-decoration: none; }
.brand img.logo {
  width: 84px; height: 84px; flex: none;
  margin-bottom: -42px;  /* stracker sig over nedkanten och in i hero-sektionen */
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .3));
}
.brand .nordic { color: var(--accent); }

.nav {
  display: flex; gap: 1.4rem; margin-left: auto;
  list-style: none; flex-wrap: wrap;
}
.nav a { color: var(--dark-2); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--accent); text-decoration: none; }

.lang-switch {
  display: flex; gap: .35rem; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
}
.lang-switch a { color: var(--gray); padding: .1rem .35rem; }
.lang-switch a.active { color: var(--white); background: var(--dark); border-radius: 999px; }
.lang-switch a:hover { text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line);
  background: none; border-radius: 8px; padding: .4rem .7rem;
  font-family: var(--font-head); font-weight: 700; cursor: pointer;
}

@media (max-width: 920px) {
  .nav { display: none; width: 100%; flex-direction: column; padding: .5rem 0 1rem; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; padding: .6rem 0; }
  .lang-switch { margin-left: .75rem; }
  .brand img.logo { width: 64px; height: 64px; margin-bottom: -32px; border-radius: 10px; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #101827 55%, #2b3a52 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 85% 15%, rgba(0, 53, 153, .28), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(100, 149, 237, .10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 1.25rem; color: #cbd5e0; max-width: 46rem; margin: 1.2rem 0 2rem;
}
.hero .eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1rem;
}

.hero-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem; margin-top: 3rem; list-style: none;
}
.hero-cards a {
  display: block; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; color: var(--white); transition: border-color .15s, transform .15s;
}
.hero-cards a:hover { border-color: var(--accent-light); transform: translateY(-2px); text-decoration: none; }
.hero-cards .t { font-family: var(--font-head); font-weight: 700; display: block; }
.hero-cards .d { color: #a0aec0; font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  background: var(--accent); color: var(--white);
  padding: .8rem 1.7rem; border-radius: 8px; border: none;
  font-size: 1rem; cursor: pointer; text-transform: uppercase; letter-spacing: .04em;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { border-color: var(--accent-light); background: transparent; }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: var(--dark-2); }

/* Service cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 1px 3px rgba(26, 32, 44, .05);
}
.card h3 { margin-bottom: .5rem; }
.card .icon { color: var(--accent); margin-bottom: .8rem; display: inline-flex; }
.card p { color: var(--gray); font-size: .98rem; }
.card .more { display: inline-block; margin-top: .9rem; font-weight: 600; font-family: var(--font-head); font-size: .9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-weight: 700; margin-bottom: .8rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--gray); font-size: .98rem; }

/* Pricing */
.pricing-card {
  background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.7rem; text-align: center;
  display: flex; flex-direction: column;
}
.pricing-card.feature { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 53, 153, .18); }
.price-tag { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--dark); margin: .6rem 0 .2rem; }
.price-unit { color: var(--gray); font-size: .95rem; margin-bottom: 1.2rem; display: block; }
.price-features { list-style: none; text-align: left; margin: 0 0 1.6rem; flex: 1; }
.price-features li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: var(--dark-2); }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: .95rem;
  width: .75rem; height: .75rem; border-radius: 2px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* FAQ */
details.faq {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: .7rem; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--gray); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem; text-align: center; }
.stat .n { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.stat .l { color: var(--gray); font-size: .95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--dark), #2b3a52);
  color: var(--white); text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cbd5e0; max-width: 40rem; margin: 0 auto 1.8rem; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .35rem; color: var(--dark); }
.field input, .field select {
  width: 100%; padding: .7rem .9rem; border: 1px solid #cbd5e0;
  border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background: var(--white);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.services-check { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.2rem 0; }
.services-check label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.unit-toggle { display: inline-flex; border: 1px solid #cbd5e0; border-radius: 8px; overflow: hidden; margin-bottom: 1.2rem; }
.unit-toggle button {
  border: none; background: var(--white); padding: .5rem 1.2rem; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.unit-toggle button.active { background: var(--dark); color: var(--white); }
.calc-note { color: var(--gray); font-size: .92rem; margin-top: 1rem; }
.calc-results { margin-top: 2rem; }
.result-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result-table th {
  text-align: left; font-family: var(--font-head); font-size: .85rem; text-transform: uppercase;
  letter-spacing: .05em; background: var(--dark); color: var(--white); padding: .8rem 1rem;
}
.result-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); }
.result-table td.price { font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.result-actions { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.result-actions button {
  border: 1px solid var(--dark); background: var(--white); padding: .45rem 1rem;
  border-radius: 8px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
}
.result-actions button:hover { background: var(--dark); color: var(--white); }
.rate-notice {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 8px; padding: .9rem 1.1rem; margin-top: 1.2rem; font-size: .95rem;
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; font-style: italic; color: var(--gray); }
.quote .who { margin-top: 1rem; font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--dark); font-size: .9rem; }

/* Contact / forms */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.info-list { list-style: none; }
.info-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.info-list li strong { display: inline-block; min-width: 9rem; font-family: var(--font-head); font-size: .9rem; }

/* Page hero (undersidor) */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2b3a52 100%);
  color: var(--white); padding: 4.5rem 0 3.8rem; text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #cbd5e0; font-size: 1.2rem; max-width: 44rem; margin: 1rem auto 0; }

/* Sub-nav (ankare på info-sidan) */
[id] { scroll-margin-top: 90px; }
.subnav { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.subnav a {
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  padding: .4rem 1.1rem; color: #cbd5e0;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.subnav a:hover { border-color: var(--accent-light); color: var(--white); text-decoration: none; }

/* Footer */
.site-footer { background: var(--dark); color: #a0aec0; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: .95rem; margin-bottom: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { padding: .25rem 0; }
.site-footer a { color: #a0aec0; }
.site-footer a:hover { color: var(--white); }
.footer-brand { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.1rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.footer-brand img.logo { background: transparent; border-radius: 0; padding: 0; width: 34px; height: 34px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
