/* AurumFörtroende | style.css | Nature Organic Flexbox Only */

/* --- CSS RESET/NORMALIZE --- */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F8F7F2;
  color: #22313F;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
a {
  color: #44614B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #678B5C;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: inherit;
}
:focus {
  outline: 2px solid #8AB971;
  outline-offset: 2px;
}

/* --- NATURE ORGANIC THEME COLORS --- */
:root {
  --primary: #22313F;
  --secondary: #E8C060;
  --accent: #FFFFFF;
  --earth: #8E8355;
  --organic: #44614B;
  --nature-bg: #F8F7F2;
  --green: #8AB971;
  --deep-green: #678B5C;
  --brown: #7B6344;
  --light-green-bg: #F3F8ED;
  --error: #D54848;
  --shadow: 0 2px 8px rgba(68, 97, 75, 0.10);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--primary);
  line-height: 1.15;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(34, 49, 63, 0.04);
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--organic);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--earth);
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--deep-green);
}
p, ul, ol, li {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.15rem;
  color: var(--deep-green);
  margin-bottom: 20px;
  font-weight: 400;
}
strong {
  font-weight: 700;
  color: var(--organic);
}

/* --- CORE LAYOUT --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light-green-bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.text-section {
  background: var(--accent);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

/* --- CARDS & GRIDS --- */
.card-container, .feature-grid, .article-list, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature, .testimonial-card, .service-list li, .article-list li {
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  align-items: flex-start;
  position: relative;
}
.card {
  border-left: 6px solid var(--deep-green);
}
.feature {
  align-items: center;
  min-width: 260px;
  max-width: 340px;
  border-left: 6px solid var(--green);
  transition: box-shadow 0.2s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 20px rgba(68, 97, 75, 0.18);
}
.testimonial-slider {
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: var(--light-green-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(68,97,75,0.13);
  color: #2C3843;
  min-width: 270px;
  max-width: 370px;
  flex: 1;
  align-items: center;
  gap: 18px;
  padding: 24px 20px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.testimonial-card p {
  color: #22313F;
  font-size: 1.03rem;
}
.testimonial-card strong {
  color: var(--deep-green);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 26px rgba(34,49,63,0.14);
  transform: translateY(-2px) scale(1.02);
}
.service-list,
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-top: 18px;
}
.service-list li, .article-list li {
  flex: 1 1 340px;
  min-width: 270px;
  max-width: 370px;
}
.service-list li h3, .service-list li h2 {
  margin: 0 0 8px 0;
  color: var(--organic);
  font-size: 1.22rem;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER / NAVIGATION --- */
header {
  background: var(--accent);
  box-shadow: 0 1px 12px rgba(34,49,63,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 26px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.main-nav a {
  color: var(--primary);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 1.07rem;
  transition: background 0.2s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--light-green-bg);
  color: var(--deep-green);
}
.cta-btn {
  background: var(--secondary);
  color: #22313F;
  padding: 10px 28px;
  font-family: 'Merriweather', serif;
  border-radius: 28px 20px 32px 12px; /* organic asymmetric */
  font-weight: 700;
  font-size: 1.17rem;
  box-shadow: 0 2px 10px rgba(232,192,96, 0.11);
  margin-left: auto;
  margin-right: 10px;
  border: none;
  transition: background 0.18s, color 0.19s, box-shadow 0.16s;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--deep-green);
  color: #fff;
  box-shadow: 0 6px 22px rgba(68,97,75,0.19);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--deep-green);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px rgba(68,97,75,0.08);
  margin-left: 10px;
  transition: background 0.17s;
  z-index: 35;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--organic);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,49,63,0.92);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.68,-0.22,.62,1.31);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-self: flex-end;
  margin: 22px 14px 4px 0;
  box-shadow: 0 1px 8px rgba(68,97,75,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 28px 18px 34px;
  margin-top: 2vh;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.19s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--deep-green);
  color: var(--secondary);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding-top: 38px;
  padding-bottom: 18px;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo img {
  height: 48px;
  margin-right: 18px;
  width: auto;
  display: block;
  border-radius: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.07rem;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  font-size: 1.02rem;
  color: #f8eec4;
}
.footer-contact a {
  color: var(--secondary);
}

/* --- HERO SECTIONS / CTA --- */
section > .container > .content-wrapper > .cta-btn:not(.cookie-btn) {
  margin-top: 8px;
  align-self: flex-start;
}
section > .container > .content-wrapper > h1,
section > .container > .content-wrapper > h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* --- ARTICLES / LISTS / FAQ --- */
.article-list {
  gap: 24px;
}
.article-list li {
  border-top: 4px solid var(--earth);
  background: var(--accent);
  border-radius: 15px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.article-list li:hover, .article-list li:focus-within {
  box-shadow: 0 8px 32px rgba(34,49,63, 0.12);
  transform: scale(1.017);
}
.article-list li a {
  color: var(--deep-green);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
  font-size: 1.06rem;
}
.article-list li a:hover {
  color: var(--secondary);
}

/* --- FORMS & BUTTONS --- */
button, .cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.23s, color 0.11s, box-shadow 0.22s;
}

/* --- COOKIE CONSENT BANNER + MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1200;
  background: var(--primary);
  color: #fff;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  box-shadow: 0 -2px 18px rgba(34,49,63,0.15);
  animation: slideup 0.7s cubic-bezier(.61,.01,.38,.99);
}
@keyframes slideup {
  0% { transform: translateY(100%); opacity: 0; }
  80% { transform: translateY(-4%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1.02rem;
  margin: 0 12px 0 0;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 24px 14px 18px 10px;
  padding: 7px 22px;
  margin-left: 6px;
  font-weight: 700;
  font-family: 'Open Sans', Arial, sans-serif;
  border: none;
  font-size: 1.07rem;
  transition: background 0.18s, color 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--green);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--earth);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--error);
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,49,63,0.67);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.33s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  color: #22313F;
  border-radius: 22px;
  box-shadow: 0 2px 32px rgba(34,49,63,0.21);
  min-width: 340px;
  max-width: 96vw;
  padding: 38px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popfade 0.37s cubic-bezier(.61,.42,.29,1.3);
}
@keyframes popfade {
  from { transform: scale(0.9); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--deep-green);
  margin-bottom: 2px;
  font-size: 1.2rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1.04rem;
  color: #22313F;
}
.cookie-modal .toggle {
  accent-color: var(--deep-green);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
  margin-right: 8px;
}
.cookie-modal .close-cookie-modal {
  align-self: flex-end;
  background: none;
  color: var(--deep-green);
  font-size: 2rem;
  border-radius: 50%;
  margin-bottom: 3px;
  margin-top: -36px;
  margin-right: -14px;
  width: 42px;
  height: 42px;
  transition: background 0.13s;
}
.cookie-modal .close-cookie-modal:hover {
  background: #E9F1DB;
}

/* --- ORGANIC SHAPES/EFFECTS --- */
.card, .feature, .testimonial-card, .service-list li, .article-list li, .cookie-modal {
  border-radius: 22px 16px 22px 12px;
}
section, .text-section {
  border-radius: 38px 20px 32px 13px;
}

/* --- SHADOWS --- */
.card, .service-list li, .feature, .testimonial-card {
  box-shadow: var(--shadow);
}

/* --- TRANSITIONS & INTERACTION STATES --- */
.card, .feature, .testimonial-card, .service-list li {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .feature:hover, .service-list li:hover {
  box-shadow: 0 10px 36px rgba(68,97,75,0.13);
  transform: translateY(-2px) scale(1.018);
}

/* --- RESPONSIVE DESIGN: MOBILE-FIRST --- */
@media (max-width: 980px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .feature-grid, .service-list, .card-container, .article-list {
    gap: 13px;
  }
  .main-nav {
    gap: 13px;
    margin-left: 8px;
  }
  .footer-nav {
    gap: 6px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.24rem; }
  .section, .text-section {
    padding: 22px 7px;
    margin-bottom: 38px;
    border-radius: 20px 8px 14px 7px;
  }
  .card, .service-list li, .feature, .testimonial-card, .article-list li {
    padding: 18px 13px;
    min-width: 0;
    max-width: 100%;
  }
  .feature-grid, .service-list, .article-list, .testimonial-slider,
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-logo img {
    height: 38px;
    margin: 0 auto 16px auto;
  }
  .footer-contact {
    font-size: 1rem;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 9px 17px;
  }
}
@media (max-width: 660px) {
  header .main-nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
}
@media (max-width: 430px) {
  .cookie-modal {
    padding: 19px 7px 17px 10px;
    min-width: 0;
  }
}

/* --- MISCELLANEOUS --- */
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* --- ACCESSIBILITY: SELECTION COLOR --- */
::selection {
  background: var(--secondary);
  color: #22313F;
}

/* --- HIDE ELEMENT UTILS (for JS usage) --- */
.is-hidden { display: none !important; }

/* --- END --- */
