/* ========================================================
   DJÄRVA TOPPMÖTET – PROFESSIONAL CORPORATE CSS STYLESHEET
   ======================================================== */

/* ========================
   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-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;
  background: #F6F9FB;
  color: #203157;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #203157;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #E65A2E;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #203157;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 8px; }

body, p, li, span, button, input, label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #203157;
}
p {
  margin-bottom: 16px;
}
strong { font-weight: 700; color: #203157; }

/* =============
   BRAND COLORS
   ============= */
:root {
  --primary: #203157;
  --secondary: #E65A2E;
  --accent: #F6F9FB;
  --gray-100: #f5f7fa;
  --gray-200: #e2e6ec;
  --gray-300: #c7cdd8;
  --gray-400: #96a0b7;
  --gray-700: #293651;
  --text-dark: #203157;
  --text-light: #ffffff;
  --shadow: 0 4px 12px rgba(32, 49, 87, 0.07), 0 1.5px 6px rgba(32,49,87,0.08);
  --shadow-card: 0 2px 8px rgba(32,49,87,.10);
}

/* ===================
   CONTAINER / LAYOUT
   =================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.section:last-child {
  margin-bottom: 0;
}

.text-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ======================
   HEADER & NAVIGATION
   ====================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 14px 0 rgba(32,49,87,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 6px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--gray-100);
}
.btn.primary {
  background: var(--secondary);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.08rem;
  border: none;
  border-radius: 6px;
  padding: 11px 32px;
  margin-left: 28px;
  transition: background 0.18s, transform 0.16s, box-shadow 0.16s;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.btn.primary:hover, .btn.primary:focus {
  background: #d44a1d;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(230,90,46,.12);
  color: #fff;
}

/* Hide .main-nav and .btn.primary on mobile if menu is open */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.1rem;
  padding: 8px 12px;
  border: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 5px;
  margin-left: 20px;
  transition: background 0.12s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
}

/* ===============
   MOBILE NAV
   =============== */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  width: 100vw;
  height: 100vh;
  background: #203157ed;
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.85,0,.21,1), opacity 0.25s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 20px 0 20px 22px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 210;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 24px;
  margin-left: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  padding: 12px 0;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  transition: color 0.14s, background 0.10s;
  border-radius: 3px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  width: 100%;
  background: linear-gradient(90deg, #203157 62%, #20315709 100%);
  color: #fff;
  padding: 70px 0 54px 0;
  margin-bottom: 60px;
}
.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  color: #fff;
  align-items: flex-start;
}
.hero-section h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero-section p {
  color: #e9eef7;
  font-size: 1.13rem;
  margin-bottom: 32px;
}
.hero-section .btn.primary {
  margin-left: 0;
  margin-top: 10px;
}

/* =============================
   FLEX SPACING & ALIGNMENT
   ============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  min-width: 270px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32,49,87,.09);
  border-radius: 10px;
  margin-bottom: 22px;
  border-left: 5px solid var(--secondary);
  min-width: 260px;
  max-width: 420px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #203157;
}
.testimonial-card span {
  color: #293651;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px 20px 22px;
  min-width: 215px;
  margin-bottom: 24px;
  transition: transform 0.1s, box-shadow 0.17s;
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.011);
  box-shadow: 0 8px 28px rgba(32,49,87,.15);
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

/**********
   GRIDS
***********/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.specialization-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 28px 0;
  width: 100%;
}
.profile {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  padding: 22px 19px;
  min-width: 205px;
  margin-bottom: 22px;
}
.qualifications-list ul {
  margin-top: 10px;
}

/* =============
  TESTIMONIALS
=============== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}
.customer-ratings,
.success-summary {
  background: var(--accent);
  color: var(--primary);
  padding: 13px 20px;
  border-radius: 7px;
  box-shadow: var(--shadow);
  margin-top: 16px;
  font-size: 1.03rem;
  font-weight: 500;
}
.success-summary {
  margin-bottom: 0px;
  margin-top: 20px;
  background: #fff;
  color: #203157;
  font-size: 1rem;
}

.before-after {
  background: var(--gray-100);
  border-radius: 7px;
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  margin: 20px 0 0 0;
}

/*******************
   CTA SECTION
********************/
.cta-section {
  background: linear-gradient(94deg, #203157 60%, #20315715 100%);
  color: #fff;
  padding: 60px 0 48px 0;
  text-align: left;
  margin-bottom: 0;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .btn.primary {
  margin-top: 18px;
}

/***********
  FOOTER
************/
footer {
  width: 100%;
  background: #203157;
  color: #fff;
  margin-top: 65px;
  padding-top: 44px;
  padding-bottom: 20px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.footer-logo img {
  width: 72px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  transition: text-decoration 0.16s, color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: underline;
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 38px;
  margin-bottom: 8px;
  font-size: 0.97rem;
  color: #e4e9f2;
  align-items: flex-start;
}
.footer-contact img {
  width: 19px;
  min-width: 19px;
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: -2px;
}
.footer-copy {
  font-size: 0.93rem;
  color: #ccd3e2;
  margin-top: 10px;
}

/**********
  FORMS
***********/
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border-radius: 5px;
  border: 1px solid var(--gray-300);
  padding: 10px 13px;
  font-size: 1rem;
  margin-bottom: 17px;
  background: #fff;
  width: 100%;
  max-width: 400px;
  color: var(--primary);
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 7px;
  display: inline-block;
  color: var(--primary);
}

/**************
 BUTTONS & LINK
****************/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.14s, color 0.15s, transform 0.13s;
  text-align: center;
  min-width: 120px;
  min-height: 42px;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}
.btn.secondary {
  background: #fff;
  color: var(--secondary);
  border: 2.1px solid var(--secondary);
  margin-left: 12px;
}
.btn.secondary:hover, .btn.secondary:focus {
  background: var(--secondary);
  color: #fff;
}
.btn:active {
  transform: scale(.98);
}

/**************
   MISC UTILITY
***************/
.event-calendar ul, .qualifications-list ul, .before-after ul {
  margin-left: 20px;
  margin-bottom: 10px;
}
.featured-event-highlight {
  background: #fff;
  color: #203157;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 18px 20px 15px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.register-cta {
  margin: 18px 0 0 0;
}

/****************
  THANK YOU PAGE
*****************/
.thankyou-section {
  background: linear-gradient(90deg, #203157 65%, #20315711);
  color: #fff;
  padding: 70px 0 50px 0;
}
.thankyou-section h1, .thankyou-section h2, .thankyou-section p, .thankyou-section ul {
  color: #fff;
}

/*********************************
   CONTACT INFO BLOCK & ETC.
**********************************/
.contact-info-block {
  background: #fff;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 21px 24px 14px 22px;
  margin-bottom: 22px;
  color: var(--primary);
}
.contact-info-block h2 {
  margin-bottom: 13px;
}
.contact-info-block div {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-info-block img {
  min-width: 20px; width: 20px;
}

/*****************************
   COOKIE BANNER & PREFERENCES
******************************/
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #154d93;
  color: #fff;
  box-shadow: 0 -3px 24px rgba(32,49,87, .15);
  z-index: 8000;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 18px 24px;
  gap: 24px;
  min-height: 74px;
  font-size: 1rem;
  transition: transform 0.27s;
}
#cookie-banner.closed {
  transform: translateY(100vh);
}
#cookie-banner .cookie-text {
  flex: 1;
  margin-right: 12px;
}
#cookie-banner .btn {
  margin-left: 10px;
  font-size: 1rem;
  padding: 8px 20px;
}
#cookie-banner .btn.accept {
  background: var(--secondary);
  color: #fff;
}
#cookie-banner .btn.reject {
  background: #fff;
  border: 2px solid var(--gray-300);
  color: var(--primary);
}
#cookie-banner .btn.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
#cookie-banner .btn:hover, #cookie-banner .btn:focus {
  filter: brightness(1.06);
  background: var(--secondary);
  color: #fff;
  outline: none;
  border-color: var(--secondary);
}

#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: rgba(32,49,87,0.26);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #203157;
  border-radius: 15px;
  box-shadow: 0 10px 44px rgba(32,49,87,0.21);
  padding: 36px 32px 24px 32px;
  max-width: 430px;
  width: 92vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.07rem;
  margin-bottom: 0;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
  margin-right: 8px;
}
.cookie-desc {
  font-size: 0.96rem;
  color: #293651;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #203157;
  cursor: pointer;
  transition: color 0.1s;
}
#cookie-modal .modal-close:hover {
  color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions .btn {
  font-size: 1rem;
  padding: 9px 18px;
}

/*************************
  RESPONSIVE – MOBILE FIRST
**************************/
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
  .hero-section .container {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
  .feature-grid, .testimonial-slider, .card-container, .specialization-grid, .footer-contact {
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-right: 10px;
    padding-left: 10px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .main-nav {
    display: none !important;
  }
  .btn.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .testimonial-slider, .card-container, .specialization-grid, .footer-contact {
    gap: 14px;
  }
  .section, .hero-section, .cta-section {
    padding: 28px 0 22px 0;
    margin-bottom: 34px;
  }
  .hero-section {
    padding: 40px 0 30px 0;
  }
  .hero-section .container, .cta-section .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .testimonial-card, .profile, .feature-item {
    min-width: 85vw;
    padding: 20px 13px;
  }
  .footer-nav, .footer-contact, .specialization-grid {
    flex-direction: column;
    gap: 10px;
  }
  .footer-logo img {
    width: 56px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .hero-section h1 {
    font-size: 1.33rem;
    margin-bottom: 14px;
  }
  .btn, .btn.primary, .btn.secondary {
    padding: 8px 14px;
    font-size: 0.98rem;
  }
  .hero-section, .cta-section {
    padding-top: 19px;
    padding-bottom: 11px;
  }
  .testimonial-card, .profile {
    padding: 12px 9px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
}

/*****************************
   MISC ELEM SPACING + SHADOW
******************************/
section ul, section ol {
  margin-top: 6px;
  margin-bottom: 12px;
}

/*****************
   ANIMATIONS
******************/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section, .card, .feature-item, .testimonial-card, .profile, .before-after, .featured-event-highlight, .contact-info-block {
  animation: fadeInUp .8s cubic-bezier(.69,0,.13,1) 0.03s both;
}

/*********************
   COLORS, CONTRAST
**********************/
.testimonial-card {
  background: #fff;
  color: #203157;
  border-left: 5px solid var(--secondary);
}
.testimonial-card p,
.testimonial-card span {
  color: #293651;
}
.customer-ratings, .success-summary {
  background: var(--accent);
  color: #203157;
}

/**********************
   MICRO-INTERACTIONS
***********************/
a.btn, .btn {
  transition: box-shadow 0.13s, background 0.14s, color 0.14s, transform 0.13s;
  will-change: transform, box-shadow;
}
.btn:active {
  transform: scale(0.97);
}

/***********************
   ACCESSIBILITY MODES
************************/
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/***********************
   Z-INDEX LAYERING
************************/
header { z-index: 20; }
.mobile-menu { z-index: 200; }
#cookie-banner { z-index: 8000; }
#cookie-modal { z-index: 9000; }

/***********************
   PRINT SAFETY
************************/
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu { display: none !important; }
  body, .container, main, .content-wrapper { background: #fff !important; color: #181b23 !important; }
}
