/* Jomiola clone stylesheet — matches jomiola.se (Astra 3.6.4 + Elementor 3.19 values) */

:root {
  --accent: #072178;
  --accent-hover: #3a3a3a;
  --ink: #0a0006;
  --footer-bg: #3a3a3a;
}

* { box-sizing: border-box; }

html { font-size: 81.25%; }
@media (max-width: 1024px) { html { font-size: 74.1%; } }
@media (max-width: 768px)  { html { font-size: 74.1%; } }
@media (max-width: 544px)  { html { font-size: 74.1%; } }

body {
  margin: 0;
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  font-size: 1rem;         /* 13px */
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
}

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

::selection { background-color: var(--accent); color: #ffffff; }

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  color: #000000;
  margin: 0 0 0.5rem;
}
h1 { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 4.6154rem; line-height: 1.2; }
h2 { font-size: 3.2308rem; }
h3 { font-size: 2.3077rem; }
h4 { font-size: 1.5385rem; }
h5 { font-size: 1.3846rem; }
h6 { font-size: 1.1538rem; }

p { margin: 0 0 0.9rem; }

@media (max-width: 768px) {
  h1 { font-size: 50px; } h2 { font-size: 25px; } h3 { font-size: 20px; }
}
@media (max-width: 544px) {
  h1 { font-size: 30px; } h2 { font-size: 25px; } h3 { font-size: 20px; }
}

/* ---------- Buttons (Elementor global) ---------- */
.button {
  display: inline-block;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  font-family: 'Varela Round', sans-serif;
  font-weight: 400;
  line-height: 1;
  font-size: 1.1538rem;    /* 15px */
  border-radius: 50px;
  padding: 15px 40px;
  text-decoration: none;
}
.button:hover, .button:focus { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; }

.button.outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}
.button.outline:hover, .button.outline:focus { background: #ffffff; color: #4064d7; border-color: #ffffff; }

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 10px; }
.container.narrow { max-width: 1140px; }

section { position: relative; }
.pad-100 { padding: 100px 0; }
.pad-50  { padding: 50px 0; }

.center { text-align: center; }

.divider {
  width: 10%;
  height: 2px;
  background: #e8e8e8;
  border: 0;
  margin: 0 auto 50px;
}

/* ---------- Header ---------- */
.site-header { background: #ffffff; }
.site-header .bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1em 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand img { max-width: 88px; width: 100%; display: block; }
@media (max-width: 768px) { .site-header .brand img { max-width: 110px; } }
@media (max-width: 544px) { .site-header .brand img { max-width: 91px; } }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6em;
  margin: 0;
  padding: 0;
}
.main-nav ul a {
  color: var(--ink);
  font-size: 1.1538rem;
  text-decoration: none;
}
.main-nav ul a:hover, .main-nav ul a.current { color: var(--accent); }

.menu-toggle { display: none; }
@media (max-width: 730px) {
  .menu-toggle {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    padding: 0.4em 0.7em;
    cursor: pointer;
    font-size: 1rem;
  }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 0.6em 0; }
}

/* ---------- Hero sections ---------- */
.hero {
  background-position: center;
  background-size: cover;
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 250px 0 150px;
}
.hero .inner { position: relative; z-index: 1; }
.hero h1, .hero h2, .hero h3, .hero h4 { color: #ffffff; }
@media (max-width: 768px) { .hero { padding: 50px 0; } }

/* Default hero (about, tjanster, kontakt, why-us, legal) */
.hero-standard::before { content: ""; display: none; }

.hero-about    { background-image: url("images/107016797_290848772266947_2139321697769520581_n.jpg"); }
.hero-tjanster { background-image: url("images/106001562_969140983556626_8014553193950330536_n.jpg"); }
.hero-tjanster::before, .hero-kontakt::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6);
}
.hero-kontakt { background-image: url("images/106480174_605443100087775_6675996533259875479_n.jpg"); }
.hero-kontakt .inner { max-width: 1140px; }
@media (max-width: 768px) { .hero-kontakt { background-attachment: scroll; } }

.hero-title-shadow { text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }

/* Home hero */
.hero-home {
  background-image: url("images/stegelholmen-1-scaled.jpg");
  padding: 250px 0 150px;
  animation: fadeIn 2s;
}
.hero-home h1 {
  font-family: 'Alegreya SC', serif;
  font-weight: 700;
  font-size: 9.2em;
  line-height: 1.5em;
  text-transform: capitalize;
  margin: 0;
}
@media (max-width: 1024px) { .hero-home h1 { font-size: 5.7em; } }
.hero-home h2 { font-family: 'Alegreya SC', serif; margin: 0; }
@media (max-width: 768px) { .hero-home { padding: 50px 0 0; } }

/* why-us / legal hero headings */
.hero-kicker { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: 65px; line-height: 1.2em; margin: 0; text-align: left; }
@media (max-width: 1024px) { .hero-kicker { font-size: 39px; } }
.hero-kicker + .divider { background: #ffffff; margin: 0 15px; width: 38%; padding: 0; height: 1.8px; }
.hero-whyus { background-image: url("images/107117635_195808391873484_1732942880155643109_n.jpg"); }
.hero-whyus .inner { text-align: left; max-width: 1140px; margin: 0 auto; padding: 0; }
@media (max-width: 768px) { .hero-whyus .inner { padding-right: 40px; } }

/* why-us page: rows under the hero */
.whyus-row { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 1024px) { .whyus-row { grid-template-columns: 1fr; } }
.whyus-col { padding: 50px 75px 20px 75px; }
@media (max-width: 1024px) { .whyus-col { padding: 30px 25px 20px 25px; } }
.whyus-col.center-col { text-align: center; }
.whyus-hp {
  border: 0;
  border-top: 5px solid var(--accent);
  width: 100%;
  margin: 2px auto 20px;
}
.whyus-div2 {
  border: 0;
  border-top: 2px solid var(--accent);
  width: 60%;
  margin: 15px 0 20px;
}
.whyus-div-full { width: 100%; }
.hero-legal {
  background-image: url("images/107117635_195808391873484_1732942880155643109_n.jpg");
  min-height: 73vh;
}
.hero-legal .hero-kicker + .divider { width: 66%; }
.hero-legal::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
.hero-legal .inner { text-align: left; padding-right: 30%; }
@media (max-width: 768px) { .hero-legal .inner { padding-right: 40px; } }


/* ---------- Home sections ---------- */
.intro-text {
  font-size: 1rem;
  margin: 0 auto 74px;
  padding: 0 200px;
}
@media (max-width: 1024px) { .intro-text { padding: 0 50px; } }
@media (max-width: 767px)  { .intro-text { padding: 0; } }
.intro-text > p { margin-bottom: 0; }

.card-grid { display: flex; flex-wrap: wrap; gap: 0; }
.card-grid > div {
  background: #ffffff;
  margin: 10px;
  flex: 1 1 300px;
  padding: 20px;
  text-align: center;
}
.card-grid h3 { margin: 0 0 0.6em; }
.card-grid h3 a { text-decoration: none; }

/* Aktiva styrelseuppdrag — logo cards */
.uppdrag-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1024px) { .uppdrag-grid { grid-template-columns: repeat(2, 1fr); } }
.uppdrag-card {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #f1f1f4;
  padding: 320px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  text-align: center;
}
.uppdrag-card.logo-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.uppdrag-card.logo-photo:hover::before { opacity: 0.5; }
.uppdrag-card > * { position: relative; z-index: 1; }
.uppdrag-card .button { align-self: center; padding: 13px 39px; font-size: 0.9rem; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); }
.uppdrag-card:not(.logo-photo) .button.outline { color: #000000; }
.uppdrag-card:not(.logo-photo) .button.outline:hover, .uppdrag-card:not(.logo-photo) .button.outline:focus { color: #000000; background: #ffffff; }
.uppdrag-card.logo-m6      { background-image: url("images/aktiva-styrelseuppdrag/sjobergsstiftelsen.png"); background-size: 85% auto; }
.uppdrag-card.logo-photo   { background-image: url("images/aktiva-styrelseuppdrag/tree-africa.jpg"); background-size: cover; }
.uppdrag-card.logo-frf     { background-image: url("images/aktiva-styrelseuppdrag/FRF-2.png"); background-size: 79% auto; }
.uppdrag-card.logo-dbv     { background-image: url("images/aktiva-styrelseuppdrag/DBV-logo.png"); background-size: 85% auto; }
.uppdrag-card.logo-barnhus { background-image: url("images/aktiva-styrelseuppdrag/barnhus-logo.png"); background-size: 85% auto; }

/* ---------- Carousels ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel .track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 10px;
}
.carousel .slide {
  flex: 0 0 calc(20% - 8px);
  scroll-snap-align: start;
  margin: 0;
  padding: 10px;
  text-align: center;
}
@media (max-width: 1024px) { .carousel .slide { flex-basis: calc(33.333% - 6.67px); } }
@media (max-width: 767px)  { .carousel .slide { flex-basis: 100%; } }
.carousel .slide img { max-height: 110px; width: auto; max-width: 90%; object-fit: contain; }
.carousel .slide figcaption { color: #7a7a7a; margin-top: 8px; }
.carousel .nav-arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #555555;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.carousel .nav-arrow:hover { background: var(--accent); color: #ffffff; }
.carousel .nav-arrow.prev { left: -6px; }
.carousel .nav-arrow.next { right: -6px; }

/* ---------- Team ---------- */
.team-band { background: #f4f4f7; padding: 75px 0 100px; }
@media (max-width: 768px)  { .team-band { padding: 50px 0; } }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 837px;
  margin: 0 auto;
  gap: 20px;
}
@media (max-width: 767px) { .team-grid { grid-template-columns: 1fr; } }
.member { text-align: center; }
.member img { width: 81%; display: block; margin: 0 auto 15px; border-radius: 3px; }
.member p { margin: -15px 0 0.6em; }
.socials { display: flex; justify-content: center; gap: 8px; }
.socials a {
  width: 2.4em; height: 2.4em;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #545454;
  color: #ffffff !important;
  font-size: 0.9rem;
  text-decoration: none;
}
.socials a:hover { background: var(--accent-hover); }
.socials.accent a { background: var(--accent); }
.socials.accent a:hover { background: #4c79ff; }

/* ---------- About page ---------- */
.about-gradient {
  background: linear-gradient(180deg, #ffffff 0%, rgba(189, 189, 189, 0.17) 100%);
}
.profile {
  display: grid;
  grid-template-columns: 41% 59%;
  gap: 70px;
  align-items: start;
}
.profile.flip { grid-template-columns: 59% 41%; }
.profile img { border-radius: 3px; width: 100%; }
.profile .text { columns: 2; column-gap: 6%; }
.profile.flip .text { padding-right: 0; }
@media (max-width: 767px) {
  .profile, .profile.flip { grid-template-columns: 1fr; gap: 20px; }
  .profile .text { columns: 1; }
}
.icon-row { display: flex; gap: 2.2em; padding-top: 40px; }
.icon-row a { font-size: 2rem; text-decoration: none; }
.icon-row a:hover { opacity: 0.75; }

/* ---------- Tjänster ---------- */
.lead-17 { font-size: 17px; text-align: center; padding: 0 200px; }
@media (max-width: 1024px) { .lead-17 { padding: 0 50px; } }
@media (max-width: 767px)  { .lead-17 { padding: 0; } }

/* ---------- Kontakt ---------- */
.kontakt-anchor[name="kontakta-oss"] { scroll-margin-top: 80px; }
.contact-divider { width: 37%; max-width: 400px; height: 2px; background: var(--accent); border: 0; margin: 0 0 25px; }
.kontakt-info h6 { text-decoration: underline; margin-bottom: 0.3em; }
.kontakt-info h6 + p { margin-top: 0; }
.map iframe { width: 100%; height: 340px; border: 0; }
.map { margin-top: 60px; }
@media (max-width: 767px) { .map iframe { height: 260px; } }

/* ---------- Legal ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
@media (max-width: 767px) { .facts-grid { grid-template-columns: 1fr; } }
.facts-grid i { font-size: 2.4rem; color: var(--accent); }
.legal-doc { max-width: 1140px; margin: 0 auto; }
.legal-doc h3 { margin-top: 2.2em; }


/* ---------- Footer ---------- */
.footer-cta {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), linear-gradient(var(--accent), var(--accent));
  /* layered to reproduce #072178 + rgba(0,0,0,.4) overlay */
  padding: 48px 0 25px;
}
.footer-cta .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 767px) { .footer-cta .cols { grid-template-columns: 1fr; } .footer-cta .button { justify-self: start; } }
.footer-cta h3, .footer-cta p { color: #ffffff; margin: 0; }
.footer-cta .button { float: right; }
.footer-cta .cols > div { padding: 10px 0; }

.site-footer { background: var(--footer-bg); color: #d8d8d8; padding: 80px 0; }
@media (max-width: 768px) { .site-footer { padding: 40px 0; } }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 19.333%;
  gap: 30px;
}
@media (max-width: 1024px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 544px)  { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #ffffff; margin-bottom: 1em; }
.site-footer a { color: #d8d8d8; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 13px; }
.site-footer li i { color: #ffffff; margin-right: 0.5em; }
.site-footer .brandmotto { color: #ffffff; margin: 1em 0; }
.footer-logo { width: 160px; display: block; margin-bottom: 1.2em; }
.socials.footer-social a { width: 2.2em; height: 2.2em; font-size: 0.85rem; background: var(--accent); }
.socials.footer-social a:hover { background: #4c79ff; }

.copyright-bar {
  background: var(--footer-bg);
  border-top: 1px solid rgba(160, 160, 160, 0.28);
  padding: 30px 0;
  text-align: center;
  color: #ffffff;
}
.copyright-bar p { margin: 0; }
