/* ----------------------------------------------------
   RESET & BASE
---------------------------------------------------- */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  color: #314C52;
  background: #FFF9F4;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
a {
  color: #314C52;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E3B889;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  padding-left: 1.5em;
}
strong {
  font-weight: 700;
}
/* Custom scrollbar for artistic touch */
::-webkit-scrollbar {
  width: 8px;
  background: #EFE9E2;
}
::-webkit-scrollbar-thumb {
  background: #E3B889;
  border-radius: 4px;
}

/* ----------------------------------------------------
   BRAND TYPOGRAPHY
---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #314C52;
  margin-bottom: 16px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.2rem;
  color: #BA5F41; /* Artistic splash */
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, address, blockquote {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  color: #314C52;
}
blockquote {
  background: #FFF6EA;
  border-left: 4px solid #E3B889;
  font-style: italic;
  margin: 16px 0;
  padding: 16px 24px;
  border-radius: 0 12px 12px 0;
  color: #79523C;
  font-family: 'Montserrat', cursive, sans-serif;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 3px 22px 0 rgba(60, 40, 23, 0.06);
  padding: 0;
  z-index: 30;
}
header .container, header nav {
  display: flex;
  align-items: center;
  gap: 0px;
  justify-content: space-between;
}
header > a {
  margin: 0 24px 0 0;
  display: flex;
  align-items: center;
}
header nav {
  gap: 16px;
  flex-grow: 1;
  justify-content: flex-end;
}
header nav a {
  padding: 12px 18px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
header nav a[aria-current="page"] {
  color: #BA5F41;
  font-weight: 700;
}
header nav a:not(.cta-btn):hover, header nav a:not(.cta-btn):focus {
  background: #F7E1C7;
  color: #314C52;
}
.cta-btn {
  background: #E3B889;
  color: #314C52 !important;
  border: none;
  border-radius: 28px;
  padding: 12px 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 18px 0 rgba(227, 184, 137, 0.15);
  transition: background 0.22s, color 0.22s, transform 0.22s;
  cursor: pointer;
  margin-left: 8px;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: #BA5F41;
  color: #fff !important;
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
  box-shadow: 0 7px 24px 0 rgba(186, 95, 65, 0.18);
}
/* Artistic underline on nav hover */
header nav a:not(.cta-btn)::after {
  content: '';
  display: block;
  margin: 6px auto 0 auto;
  width: 18px;
  height: 3px;
  background: #BA5F41;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.17s;
}
header nav a[aria-current="page"]::after,  header nav a:hover::after {
  opacity: 1;
}
/* Hide nav on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
}
/* Logo */
header img[alt="Inredningsvisioner"] {
  height: 48px;
  width: auto;
  margin: 12px 0 12px 16px;
  display: block;
}

/* ----------------------------------------------------
   MOBILE MENU
---------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #314C52;
  cursor: pointer;
  z-index: 1010;
  margin-right: 16px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF6EA;
  z-index: 1100;
  padding: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.33s cubic-bezier(.86,0,.07,1), opacity 0.2s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  animation: slideInMenu .36s cubic-bezier(.72,-0.08,0,1.14);
}
@keyframes slideInMenu {
  from { transform: translateX(100%) }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  margin: 22px 24px 12px 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #314C52;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.14s;
  z-index: 1200;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #BA5F41;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 36px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #314C52;
  padding: 12px 4px;
  border-left: 5px solid transparent;
  border-radius: 0 16px 16px 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  width: fit-content;
}
.mobile-nav a[aria-current], .mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7E1C7;
  color: #BA5F41;
  border-left-color: #BA5F41;
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----------------------------------------------------
   HERO SECTIONS
---------------------------------------------------- */
.hero {
  background: linear-gradient(90deg, #FFF6EA 75%, #E3B889 100%);
  padding: 40px 0 0 0;
  min-height: 320px;
  box-shadow: 0 7px 40px 0 rgba(227,184,137,0.05);
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}
.hero h1 {
  font-size: 2.4rem;
  color: #BA5F41;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  text-shadow: 2px 6px 32px #FFD9B4;
}
.hero p {
  color: #314C52;
  font-size: 1.1rem;
}

/* Artistic creative underline for all h2 */
h2 {
  position: relative;
  display: inline-block;
}
h2::after {
  content: '';
  display: block;
  margin: 8px auto 0 auto;
  width: 48px;
  height: 5px;
  border-radius: 2.5px;
  background: #BA5F41;
  opacity: 0.65;
}

/* ----------------------------------------------------
   MAIN SECTIONS & FLEX SPACING PATTERNS
---------------------------------------------------- */
main {
  width: 100%;
  margin-top: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 2px 18px rgba(60, 40, 23, 0.09);
  position: relative;
}
.features, .about, .team, .services, .blog, .contact, .form, .thankyou, .legal, .testimonials, .cta {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .teacher-list, .case-study-list, .post-list, .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 0;
  justify-content: flex-start;
}
.card, .feature-item, .teacher-card, .case-item, .course-item, .post-item {
  margin-bottom: 20px;
  position: relative;
  background: #FFF6EA;
  border-radius: 24px;
  box-shadow: 0 4px 16px 0 rgba(227,184,137,0.10);
  padding: 28px 24px 28px 24px;
  min-width: 220px;
  max-width: 388px;
  flex: 1 1 280px;
  transition: transform 0.18s, box-shadow 0.17s;
}
.card:hover, .feature-item:hover, .teacher-card:hover, .case-item:hover, .course-item:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  box-shadow: 0 10px 32px 0 rgba(186,95,65,0.09);
}
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFEAD9;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px #E3B88933;
  transition: border 0.18s;
  border: 1.5px solid #E3B889;
  color: #314C52;
}
.testimonial-card p {
  flex: 1 1 0;
  color: #314C52;
  font-size: 1.06rem;
}
.testimonial-meta {
  min-width: 82px;
  color: #BA5F41;
  font-weight: 700;
  font-size: 0.99rem;
  display: flex;
  align-items: center;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

/* Tags and artistic badges */
.tag {
  display: inline-block;
  background: #E3B889;
  color: #314C52;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 3px 16px;
  border-radius: 24px;
  margin-right: 6px;
  margin-bottom: 2px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.tag + .tag {
  margin-left: 2px;
}

/* course list on kurser page */
.course-list {
  gap: 24px;
}
.course-item h3 {
  color: #BA5F41;
  margin-bottom: 5px;
}
.course-item .tag {
  background: #314C52;
  color: #fff;
  font-size: 0.87rem;
  margin-bottom: 10px;
}

/* post list for blog page */
.post-list {
  gap: 24px;
}
.post-item h3 {
  color: #314C52;
  margin-bottom: 7px;
}

.categories {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.categories .tag {
  background: #FFF6EA;
  color: #BA5F41;
  border: 1px solid #E3B889;
}

/* Team cards */
.team-member, .teacher-card {
  padding: 28px 24px;
  margin-bottom: 16px;
  background: #FFF6EA;
  border-radius: 20px;
  box-shadow: 0 3px 14px #E3B88933;
  font-size: 1rem;
  line-height: 1.6;
  color: #314C52;
  position: relative;
}
.team-member h3, .teacher-card h3 {
  color: #BA5F41;
  margin-bottom: 6px;
}
.teacher-card .tag {
  background: #BA5F41;
  color: #fff;
  margin-left: 2px;
  font-size: 0.89rem;
}

/* CTA Section */
.cta {
  background: #E3B889;
  border-radius: 40px;
  box-shadow: 0 5px 32px #E3B88955;
  margin-bottom: 60px;
  text-align: center;
}
.cta .content-wrapper {
  align-items: center;
}
.cta h2 {
  color: #314C52;
}
.cta-btn {
  margin-top: 12px;
}

/* Legal Sections */
.legal {
  background: #FFFFFF;
  border-radius: 20px;
  min-height: 340px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 24px 0 rgba(49,76,82,0.06);
}

/* Thank You Section */
.thankyou {
  background: #FFF6EA;
  border-radius: 32px;
  margin-bottom: 60px;
  box-shadow: 0 1px 8px #FFE5B6;
  text-align: center;
}

/* ----------------------------------------------------
   CONTACT/ADDRESS STYLES
---------------------------------------------------- */
address {
  font-style: normal;
  color: #314C52;
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
address img {
  height: 17px;
  width: 17px;
  margin-right: 5px;
  vertical-align: middle;
}
address a {
  color: #BA5F41;
  font-weight: 500;
  transition: color 0.15s;
}
address a:hover {
  color: #E3B889;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  background: #314C52;
  color: #fff !important;
  padding: 36px 0 18px 0;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
}
footer nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 10px;
}
footer nav a {
  color: #FFF6EA;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.14s, background 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: #BA5F41;
  color: #fff;
}
footer address {
  color: #fff;
  font-size: 0.99rem;
}
footer small {
  opacity: 0.6;
  font-size: 0.94rem;
  margin-top: 24px;
  display: block;
}

/* ----------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFF6EA;
  color: #314C52;
  box-shadow: 0 -6px 32px #E3B88960;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 16px 22px 16px;
  font-size: 1.03rem;
  transition: transform 0.21s, opacity 0.17s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner .cookie-msg {
  flex: 1 1 0;
  color: #314C52;
  font-weight: 500;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: #E3B889;
  color: #314C52;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  border: none;
  border-radius: 18px;
  padding: 7px 23px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.15s, color 0.18s, box-shadow 0.14s;
  box-shadow: 0 1px 5px #F5E6D2;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #BA5F41;
  color: #fff;
}

/* Cookie modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #0007;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 13px 36px rgba(227,184,137,0.15);
  padding: 36px 32px;
  max-width: 410px;
  max-height: 90vh;
  width: 88vw;
  color: #314C52;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  color: #BA5F41;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 32px;
  height: 18px;
  background: #E3B889;
  border-radius: 15px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked{
  background: #BA5F41;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2.5px; top: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s, background 0.18s;
}
.cookie-toggle:checked::before {
  left: 16px;
  background: #FFF6EA;
}
.cookie-modal .essential { opacity: 0.72; }
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #BA5F41;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: #314C52;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 90vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid, .case-study-list, .post-list, .course-list, .teacher-list {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
  }
  .card, .feature-item, .teacher-card, .case-item, .course-item, .post-item {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .hero .container {
    min-height: 180px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.52rem;
  }
  h2 {
    font-size: 1.16rem;
  }
  .section, .features, .about, .team, .services, .blog, .contact, .form, .thankyou, .legal, .testimonials, .cta {
    padding: 27px 10px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
  .hero {
    min-height: 120px;
    padding: 16px 0 0 0;
  }
  .hero .container {
    min-height: 100px;
    padding-top: 18px;
  }
  .card, .feature-item, .teacher-card, .case-item, .course-item, .post-item {
    padding: 16px 10px 16px 14px;
    border-radius: 12px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 15px 8px;
    border-radius: 14px;
  }
  .content-wrapper {
    gap: 14px;
  }
  footer {
    padding: 20px 0 9px 0;
    font-size: 0.95rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    font-size: 0.98rem;
    padding: 17px 6px 17px 16px;
    border-radius: 0;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 3px;
    max-width: 98vw;
  }
  .content-wrapper {
    gap: 10px;
  }
  .cookie-modal {
    padding: 16px 8px;
    max-width: 99vw;
  }
  .mobile-nav{
    margin-left: 10px;
    margin-top: 24px;
  }
}
@media (max-width: 540px) {
  .hero h1 {
    font-size: 1.12rem;
  }
  .about, .features, .team, .cta, .contact, .form, .thankyou, .legal, .testimonials {
    padding: 14px 4px;
    border-radius: 7px;
  }
}
/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
.card, .feature-item, .teacher-card, .case-item, .course-item, .post-item, .testimonial-card, .cta, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s, border 0.18s, color 0.18s;
}
.cta-btn, a, button {
  transition: color 0.16s, background 0.18s, box-shadow 0.15s, transform 0.18s;
}

/* ----------------------------------------------------
   MISC
---------------------------------------------------- */
::-moz-selection { background: #E3B889; color: #314C52; }
::selection { background: #E3B889; color: #314C52; }

ul li::before {
  content: '\2022';
  color: #BA5F41;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
}
ul li, ol li {
  padding-left: 5px;
  margin-bottom: 7px;
}

/* End of style.css for Inredningsvisioner */
