/* =========================================================
   styles.css – Maria Karlström Phillips
   Harmonisk typografi + mjuk, ljus design (enhetlig text)
   ========================================================= */

/* -------------------------
   1) Design tokens
-------------------------- */
:root{
  /* Basfärger */
  --bg: #f1f4f8;
  --ink: #1f2b34;
  --text: #24303a;
  --muted: #55626f;
  --line: rgba(36,48,58,0.12);

  /* Accent (fullmåne/rosé + soft blue) */
  --accent: #d9b3c2;
  --accent2: #c9d6e6;

  /* Ytor */
  --panel: rgba(255,255,255,0.78);

  /* Former */
  --radius: 18px;
  --radiusSm: 14px;
  --shadow: 0 18px 40px rgba(15,25,35,0.08);

  /* Layout */
  --max: 1100px;

  /* Typografi (harmonisk skala) */
  --fs-title: clamp(28px, 3vw, 40px); /* rubrik */
  --fs-h2: 20px;                      /* korttitlar */
  --fs-body: 18px;                    /* ALL brödtext */
  --fs-small: 14px;                   /* meta */

  --lh-title: 1.40;
  --lh-body:  1.90;
}

/* -------------------------
   2) Base / Reset-ish
-------------------------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin:0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* mjuk “ether”-bakgrund */
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(217,179,194,0.20), transparent 55%),
    radial-gradient(900px 550px at 85% 15%, rgba(201,214,230,0.28), transparent 55%),
    radial-gradient(900px 550px at 60% 85%, rgba(255,255,255,0.55), transparent 60%),
    var(--bg);
}

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

/* -------------------------
   3) Typography
-------------------------- */
p{ margin: 0 0 18px; }

h1{
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 18px;
}

h2{
  font-size: var(--fs-h2);
  line-height: 1.35;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 10px;
}

.small, .meta{
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Kicker (överrubrik) */
.eyebrow{
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #3a4752;
  margin: 0 0 14px;
}

/* Lead: samma storlek som body för harmonin */
.lead{
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #2f3c46;
  max-width: 72ch;
  margin: 0 0 18px;
}

/* -------------------------
   4) Layout helpers
-------------------------- */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 22px;
}

.section{ padding: 44px 0; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* -------------------------
   5) Header / Nav
-------------------------- */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(241,244,248,0.78);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-left{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand{
  font-weight: 650;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-decoration:none;
  margin-right: 6px;
}

.nav a{
  text-decoration:none;
  font-size: 14px;
  color: var(--text);
  opacity: 0.86;
}

.nav a:hover{
  opacity: 1;
  text-decoration: underline;
}

.nav a.active{
  opacity: 1;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

/* -------------------------
   6) Buttons
-------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(36,48,58,0.14);
  background: rgba(255,255,255,0.70);
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,25,35,0.10);
  background: rgba(255,255,255,0.92);
}

.btn.primary{
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(217,179,194,0.95), rgba(201,214,230,0.80));
}

/* för knapprader */
.actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------
   7) Hero (Hem)
-------------------------- */
.hero{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: start;
  padding: 44px 0 18px;
}

.hero-copy{ grid-column: span 6; }
.hero-art{ grid-column: span 6; }

@media (max-width: 920px){
  .hero-copy, .hero-art{ grid-column: span 12; }
}

/* Bildbox (background sätts per sida i index.html) */
.hero-art-box{
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Quote */
.quote{
  border-radius: var(--radius);
  border: 1px solid rgba(36,48,58,0.12);
  background: rgba(255,255,255,0.62);
  padding: 18px;
}

.quote p{
  margin: 0;
  font-style: italic;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.quote .meta{
  margin-top: 10px;
}

/* -------------------------
   8) Cards / Tjänster
-------------------------- */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad{ padding: 18px; }

.service{
  grid-column: span 6;
  padding: 18px;
}

@media (max-width: 920px){
  .service{ grid-column: span 12; }
}

.service-top{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 10px;
}

.icon-wrap{
  width: 78px;
  height: 78px;
  border-radius: var(--radiusSm);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(36,48,58,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.service-icon{
  width: 58px;
  height: auto;
  opacity: 0.98;
}

.bullets{
  margin: 12px 0 0 0;
  padding: 0 0 0 18px;
  color: #2f3c46;
}

.bullets li{ margin: 6px 0; }

/* -------------------------
   9) Footer
-------------------------- */
.footer{
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding: 28px 0 30px;
  color: var(--muted);
  font-size: 14px;
  text-align:center;
  background: rgba(255,255,255,0.55);
}

.footer-links{
  margin-top: 10px;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a{
  color: #b97776;
  text-decoration:none;
}

.footer-links a:hover{
  text-decoration: underline;
}
/* =========================
   Elementen & Energin
   ========================= */

.element-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.element-card{
  text-align: center;
  padding: 24px 20px;
  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  border: 1px solid rgba(36,48,58,0.08);
}

.element-icon{
  width: 88px;
  height: auto;
  margin-bottom: 18px;
  opacity: 0.95;
}

.element-card h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.element-card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #2f3c46;
}
/* Fix: "Att arbeta med elementen i vardagen" – korten blev för smala */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
}

.card{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(36,48,58,0.10);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(36,48,58,0.08);
}

.card-pad{
  padding: 22px 20px;
}

.card h3{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;

  /* Viktigt: stoppa “konstig” radbrytning */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.card .lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}
/* ===== Element – centrering ===== */

.elements-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 28px;
  justify-content: center;
}

.element-card{
  text-align: center;
}

.element-card img{
  display: block;
  margin: 0 auto 14px;
}