/*
Theme Name: Näsets Moln
Theme URI: https://nasetsmoln.se
Author: Näsets Moln
Description: Tema för nasetsmoln.se — privat molnlagring på Näset. Landningssida med paket & priser, anpassad lagringskalkylator, Om oss och varumärkets himmel/land-palett.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nasetsmoln
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #283740;
  --body: #4b5a63;
  --sky: #7FC4DE;
  --sky-deep: #5aa9c7;
  --sky-pale: #CDEAF4;
  --green: #79b566;
  --green-mid: #9ED08A;
  --green-pale: #D9F0CC;
  --coral: #e0917f;
  --coral-ink: #c98678;
  --coral-pale: #F3C7BD;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius-card: 26px;
  --shadow-card: 0 2px 8px rgba(40, 55, 64, .06);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; }

@keyframes nmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes nmDriftSlow { 0% { transform: translateX(-15%); } 100% { transform: translateX(115vw); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(40, 55, 64, .18); }
.btn--ghost { border: 2px solid rgba(40, 55, 64, .15); color: var(--ink); background: transparent; }
.btn--sky { background: var(--sky); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 48px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(40, 55, 64, .1);
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 55px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1; }
.brand-tag { font-size: 9px; font-weight: 600; letter-spacing: .14em; color: var(--sky-deep); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-account { color: var(--body); font-size: 14px; }
.btn-login { background: var(--sky); border-radius: 999px; padding: 10px 22px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-pale) 0%, #eef9fd 55%, #fff 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: 72px 48px 150px;
  max-width: 1180px;
  margin: 0 auto;
}
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.hero h1 .accent { color: var(--sky-deep); }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0 0 28px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--body); }
.trust span { display: flex; align-items: center; gap: 6px; }
.hero-figure { display: grid; place-items: center; }
.hero-logo { width: 320px; filter: drop-shadow(0 18px 30px rgba(40, 55, 64, .16)); animation: nmFloat 6s ease-in-out infinite; }
.drift-cloud { position: absolute; z-index: 1; top: 10px; left: -60px; width: 110px; opacity: .25; animation: nmDriftSlow 90s linear infinite; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; display: block; width: 100%; }

/* ---------- Sections ---------- */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 38px; margin: 0 0 8px; }
.section-head .sub { color: var(--body); font-size: 16px; margin: 0; }

/* ---------- Pricing ---------- */
.pricing { padding: 76px 0; background: linear-gradient(180deg, #fff, #f3faee); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(40, 55, 64, .1);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.plan--popular { border: 2px solid var(--sky); box-shadow: 0 10px 30px rgba(40, 55, 64, .1); }
.plan--custom { border: 1px dashed rgba(40, 55, 64, .3); box-shadow: none; }
.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sky);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 15px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-icon { display: block; margin-bottom: 10px; }
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.plan-size { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; margin: 4px 0 2px; }
.plan-size--sky { color: var(--sky-deep); }
.plan-size--green { color: var(--green); }
.plan-size--ink { color: var(--ink); }
.plan-price { font-size: 16px; margin-bottom: 2px; }
.plan-price strong { font-family: var(--font-display); font-size: 23px; }
.plan-vat { font-size: 12.5px; color: var(--body); margin-bottom: 18px; }
.plan-features { display: grid; gap: 9px; font-size: 14.5px; color: var(--body); margin-bottom: 24px; }
.plan-cta {
  margin-top: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 0;
  border-radius: 999px;
  cursor: pointer;
}
.plan-cta--outline { border: 2px solid rgba(40, 55, 64, .15); }
.plan-cta--solid { background: var(--ink); color: #fff; }
.plan-slider { width: 100%; accent-color: var(--sky-deep); margin: 6px 0 8px; cursor: pointer; }
.plan-slider-hint { font-size: 12px; color: var(--body); margin: 0 0 20px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band-wrap { padding: 56px 48px 0; max-width: 1180px; margin: 0 auto; }
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(40, 55, 64, .14);
}
.cta-band .cta-cloud { position: absolute; opacity: .1; width: 220px; right: -30px; top: -40px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: 34px; margin: 0 0 10px; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 54ch; margin: 0 auto 22px; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 44px;
  align-items: center;
  padding: 72px 48px;
  background: #fff;
  max-width: 1180px;
  margin: 0 auto;
}
.about-map { position: relative; display: grid; place-items: center; }
.about-map img { width: 340px; filter: drop-shadow(0 14px 26px rgba(40, 90, 120, .16)); }
.map-pin {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid rgba(40, 55, 64, .1);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(40, 55, 64, .14);
}
.about h2 { font-family: var(--font-display); font-weight: 600; font-size: 34px; margin: 0 0 14px; }
.about p { font-size: 16.5px; line-height: 1.65; color: var(--body); margin: 0 0 14px; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  padding: 34px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-pay { display: flex; gap: 8px; }
.footer-pay span { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; }

/* ---------- Inner pages ---------- */
.page-content { max-width: 780px; margin: 0 auto; padding: 64px 24px; }
.page-content h1 { font-family: var(--font-display); font-weight: 700; font-size: 42px; }
.page-content p { color: var(--body); font-size: 17px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 32px 130px; }
  .hero-figure { order: -1; }
  .hero-logo { width: 200px; }
  .about { grid-template-columns: 1fr; padding: 56px 32px; }
  .site-header { padding: 14px 24px; flex-wrap: wrap; }
  .site-nav { gap: 18px; }
  .wrap { padding: 0 32px; }
}
@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
  .site-nav ul { flex-wrap: wrap; }
  .cta-band { padding: 36px 24px; }
  .cta-band-wrap { padding: 40px 20px 0; }
  .wrap { padding: 0 20px; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ---------- WooCommerce (cart, checkout, account) ---------- */
.woocommerce, .woocommerce-page { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.woocommerce h1, .woocommerce-page h1,
.woocommerce h2, .woocommerce-page h2 { font-family: var(--font-display); color: var(--ink); }

/* Buttons: force background + text colour together in every state so the
   text can never turn invisible (WooCommerce's own styles otherwise win). */
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button,
.woocommerce input.button[type="submit"],
.woocommerce button[type="submit"],
.woocommerce .cart input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--ink) !important; color: #fff !important;
  font-family: var(--font-display); font-weight: 600;
  border: 2px solid var(--ink) !important; border-radius: 999px;
  padding: .7rem 1.4rem; opacity: 1; text-shadow: none;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce input.button[type="submit"]:hover,
.woocommerce button[type="submit"]:hover,
.woocommerce .cart input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: #1d2a32 !important; color: #fff !important; border-color: #1d2a32 !important;
}
.woocommerce button[type="submit"]:disabled,
.woocommerce input.button:disabled,
.woocommerce .cart input.button[disabled] {
  background: var(--sky-deep) !important; color: #fff !important;
  border-color: var(--sky-deep) !important; opacity: 1 !important;
}
.woocommerce .nm-tier-badge-img { max-width: 180px; height: auto; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sky) !important; }

/* ---------- Företagspaket (bredare kort under de fyra) ---------- */
:root { --biz: #3D7EA6; --biz-light: #8FC4DD; --biz-pale: #EAF4FA; }

.biz-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* Bredare än ett vanligt kort, klart smalare än alla fyra tillsammans.
   Tre zoner: info | funktioner | pris+knapp. Pris-zonen har fast bredd så
   den aldrig kan tryckas ut ur kortet. */
.plan-biz {
  width: 78%;
  min-width: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--biz-pale), #fff 70%);
  border: 2px solid var(--biz-light);
  border-radius: 22px;
  padding: 30px 34px;
  box-shadow: 0 10px 30px rgba(61, 126, 166, .10);
}

/* Zon 1 — ikon + rubrik + beskrivning */
.plan-biz__left { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.biz-icon { flex: 0 0 auto; margin-top: 2px; }
.plan-biz__kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--biz); margin-bottom: 3px;
}
.plan-biz__name {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: var(--ink); line-height: 1.15;
}
.plan-biz__desc {
  font-size: 14px; color: var(--body); line-height: 1.6; margin: 8px 0 0;
}

/* Zon 2 — funktioner, en kolumn så inget bryts */
.plan-biz__features {
  display: grid; gap: 8px; font-size: 13.5px; color: var(--body); min-width: 0;
}
.plan-biz__features span { display: block; }

/* Zon 3 — pris + knapp, fast bredd, allt inom kortet */
.plan-biz__buy {
  text-align: center;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(61, 126, 166, .2);
  border-radius: 16px;
  padding: 20px 18px;
}
.plan-biz__price { font-size: 14px; color: var(--body); line-height: 1.3; }
.plan-biz__price strong {
  display: block; font-family: var(--font-display); font-size: 26px;
  color: var(--ink); margin-bottom: 2px;
}
.plan-biz__buy .plan-vat { margin: 6px 0 16px; font-size: 12px; }
.plan-cta--biz {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--biz); color: #fff; border: 2px solid var(--biz);
  padding: 12px 10px; font-size: 15px;
}
.plan-cta--biz:hover { background: #32688a; border-color: #32688a; color: #fff; }

/* Tablet: pris-zonen flyttar ner under de två andra */
@media (max-width: 1150px) {
  .plan-biz { width: 92%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
  .plan-biz__buy { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 20px; text-align: left; padding: 18px 20px; }
  .plan-biz__buy .plan-vat { margin: 4px 0 0; }
  .plan-cta--biz { width: auto; white-space: nowrap; padding: 12px 26px; }
}

/* Mobil: allt staplat */
@media (max-width: 720px) {
  .plan-biz { width: 100%; grid-template-columns: 1fr; padding: 24px 22px; }
  .plan-biz__left { flex-direction: column; align-items: flex-start; gap: 12px; }
  .plan-biz__buy { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .plan-cta--biz { width: 100%; }
}

/* Ledtidsrad på företagskortet */
.plan-biz__lead {
  font-size: 13px; color: var(--biz); margin: 10px 0 0;
  padding-top: 10px; border-top: 1px solid rgba(61, 126, 166, .18);
}
