/* RESET & BASELINE --------------------------------------------------- */
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;
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  color: #233042;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  background: #f9f8f6;
  letter-spacing: 0.02em;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
ul, ol { list-style-position: inside; }

/* TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: #174475;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}
h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.3;
}
p, li, label {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  color: #2B3565;
  margin-bottom: 14px;
}
strong { font-weight: bold; color: #174475; }
em, i { font-style: italic; }
q, blockquote {
  font-family: 'Georgia', 'Times New Roman', serif;
  quotes: '“' '”' '‘' '’';
  color: #174475;
  font-size: 1.06em;
  background: #edf2f6;
  border-left: 4px solid #5CB28D;
  padding: 1em 1em 1em 1.5em;
  margin: 12px 0 14px 0;
  border-radius: 7px;
}

/* GLOBAL CONTAINER & LAYOUT -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
main {
  flex: 1 0 auto;
  margin-bottom: 60px;
}

/* SECTION SPACING AND STRUCTURE */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(23,68,117,0.06);
}

/***** FLEXBOX PATTERNS & MANDATORY CLASSES *****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(23,68,117,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 290px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 22px 0 rgba(23,68,117,0.17);
  z-index: 2;
}
.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;
  background: #fff;
  color: #233042;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(46, 68, 94, 0.09);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.testimonial-card p, .testimonial-card q { color: #19212A; }
.testimonial-meta { font-weight: 600; color: #5CB28D; font-size: 0.98em; margin-top: 6px; }
.testimonial-stars { color: #FFD700; letter-spacing: 1.1px; font-size: 1.1em; margin-bottom: 9px; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** HERO & CTA BANNER ***********************************************/
.hero {
  background: #f0f3f6;
  border-radius: 0 0 60px 60px;
  padding: 52px 0 38px 0;
  margin-bottom: 48px;
  box-shadow: 0 8px 42px 0 rgba(23,68,117,0.08);
}
.hero .container { align-items: flex-start; }
.hero .content-wrapper { max-width: 670px; }
.hero h1 { color: #174475; font-size: 2.75rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; color: #2B3565; margin-bottom: 24px; }

.cta-banner {
  background: #f4f8f6;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(91,178,141,0.09);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-banner h2 { color: #174475; margin-bottom: 8px; }
.cta-banner p { margin-bottom: 18px; }

/***** BUTTONS **********************************************************/
.btn-primary,
.btn-secondary {
  padding: 13px 34px;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 26px;
  font-size: 1.1em;
  line-height: 1.25;
  display: inline-block;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.21s;
  border: none;
  text-align: center;
  outline: none;
}
.btn-primary {
  background: #174475;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(23,68,117,0.08);
}
.btn-primary:hover, .btn-primary:focus {
  background: #142e53;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(23,68,117,0.13);
}
.btn-secondary {
  background: #fff;
  color: #174475;
  border: 2px solid #174475;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e8ecf2;
  color: #174475;
}

/***** CARDS & FEATURE GRID ********************************************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #f7fafc;
  border: 1px solid #e5eaef;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(91,178,141,0.03);
  flex: 1 1 220px;
  padding: 24px 18px 18px 18px;
  min-width: 220px;
  max-width: 260px;
  transition: box-shadow 0.17s, border 0.21s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 18px 0 rgba(23,68,117,0.10);
  border-color: #5CB28D;
  z-index: 1;
}
.feature-grid img {
  width: 32px; height: 32px; margin-bottom: 8px;
}

/***** SLIDERS / CAROUSELS *********************************************/
.testimonial-slider,
.quotes-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.testimonial-slider .testimonial-card,
.quotes-carousel .testimonial-card {
  min-width: 270px;
  max-width: 100%;
  scroll-snap-align: start;
}

/***** INSPIRATION PAGE SPECIALS ****************************************/
.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.tips-grid > div {
  flex: 1 1 270px;
  min-width:230px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 16px;
  box-shadow: 0 2px 8px 0 rgba(23,68,117,0.06);
}
.video-placeholder {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F1F8F6;
  padding: 18px 16px;
  border-radius: 12px;
  margin-top: 18px;
}
.video-placeholder img {
  width: 42px; height: 42px;
}

/***** FAQ SEARCH *******************************************************/
.faq-search {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.faq-search label {
  font-weight: bold;
}
.faq-search input {
  border: 1px solid #b6c1db;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 1rem;
  color: #233042;
  background: #fff;
  transition: border-color 0.19s;
  outline:none;
}
.faq-search input:focus {
  border-color: #5CB28D;
}
.faq-list {
  margin-bottom: 20px;
}
.faq-list li {
  padding: 16px 0 20px 0;
  border-bottom: 1px solid #e3e8ef;
  margin-bottom: 5px;
}

/***** SEARCH FILTER (COACHES) ******************************************/
.search-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.search-filter label {
  font-weight: 600;
}
.search-filter input {
  border: 1px solid #c7d1e6;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 1rem;
  background: #f9f8f6;
  transition: border-color 0.18s;
}
.search-filter input:focus {
  border-color: #5CB28D;
}

/***** MAP & CONTACT DETAILS *******************************************/
.contact-details {
  background: #F7F9FA;
  border-radius: 10px;
  padding: 22px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px 0 rgba(23,68,117,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details img {
  width: 20px; height: 20px; margin-right: 8px; vertical-align: middle;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ECF5F3;
  padding: 14px 13px;
  border-radius: 9px;
  font-size: 0.98em;
  margin-top: 10px;
}
.map-placeholder img {
  width: 34px; height: 34px;
}

/***** BEFORE-AFTER CARDS **********************************************/
.before-after {
  margin: 24px 0 0 0;
  background: #f7faf7;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 1.1em;
  color: #285657;
  box-shadow: 0 1px 5px 0 rgba(91,178,141,0.07);
}

/***** FOOTER ***********************************************************/
footer {
  background: #f3f7fa;
  border-top: 1px solid #e3e7eb;
  padding: 44px 0 22px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
footer nav {
  margin-bottom: 10px;
  color: #174475;
  font-family: 'Montserrat', Georgia, serif;
}
footer nav a {
  color: #174475;
  font-weight: 500;
  margin: 0 2px;
  padding: 0 4px;
  transition: color 0.2s;
}
footer nav a:hover {
  color: #5CB28D;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  font-size: 0.97em;
  color: #233042;
  margin-bottom: 8px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: text-bottom;
}
.footer-hours {
  font-size: 0.97em;
  color: #5CB28D;
  font-family: 'Montserrat', Georgia, serif;
  margin-bottom: 4px;
}

/***** NAVBAR & HEADER **************************************************/
header {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(23,68,117,0.05);
  padding: 22px 0 18px 0;
  position: relative;
  z-index: 10;
  margin-bottom: 5px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
header img[alt="Energihamn"] {
  width: 154px;
  max-width: 100%;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Georgia, serif;
}
header nav a {
  color: #174475;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.16s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #5CB28D;
  background: #f1f8f6;
}
header .btn-primary {
  margin-left: 16px;
  padding: 11px 27px;
  font-size: 1em;
}

/***** MOBILE BURGER MENU ***********************************************/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 18px;
  z-index: 201;
  background: #174475;
  color: #fff;
  border: none;
  border-radius: 34px;
  width: 48px; height: 48px;
  font-size: 2.1rem;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(23,68,117,0.2);
  transition: background 0.21s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #132c49;
  outline: 2px solid #5CB28D;
}

.mobile-menu {
  position: fixed;
  z-index: 2100;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 0 34px 0 rgba(23,68,117,0.13);
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.56,.07,.19,.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 16px 0 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: #174475;
  color: #fff;
  border: none;
  border-radius: 32px;
  width: 46px; height: 46px;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2210;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:focus {
  background: #5CB28D;
  color: #174475;
  outline: 2px solid #174475;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 72px;
  width: 80vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.25em;
  color: #174475;
  font-weight: 600;
  padding: 13px 0 13px 25px;
  border-radius: 11px;
  background: none;
  transition: background 0.15s, color 0.17s;
  min-width: 80vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #d8ede6;
  color: #5CB28D;
}

/***** COOKIE CONSENT BANNER ********************************************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 4000;
  background: #fff;
  border-top: 1px solid #e3e8ef;
  box-shadow: 0 -2px 22px 0 rgba(23,68,117,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px 16px 22px 16px;
  font-size: 1rem;
  font-family: 'Roboto', Georgia, serif;
  color: #233042;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.23s, transform 0.33s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0 0 8px 0;
  max-width: 460px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  padding: 10px 22px;
  font-size: 1em;
  border-radius: 22px;
  font-family: 'Montserrat', Georgia, serif;
  border: none;
  cursor: pointer;
  transition: background .18s, color .13s;
}
.cookie-accept { background: #174475; color: #fff; }
.cookie-accept:hover, .cookie-accept:focus { background: #132e53; }
.cookie-reject { background: #babfbc; color: #fff; }
.cookie-reject:hover, .cookie-reject:focus { background: #818684; }
.cookie-settings {
  background: #fff;
  color: #174475;
  border: 1.3px solid #5CB28D;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #f1f8f6;
  color: #174475;
}

/***** COOKIE MODAL ****************************************************/
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,68,117,0.20);
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-preferences {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 42px 0 rgba(23,68,117,0.17);
  padding: 36px 24px 26px 24px;
  max-width: 410px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: 'Roboto', Georgia, serif;
  z-index: 4300;
}
.cookie-preferences h2 {
  font-family: 'Montserrat', Georgia, serif;
  margin-bottom: 9px;
  color: #174475;
  font-size: 1.36rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 7px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-weight: 600; color: #2B3565;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #174475;
  color: #fff;
  border: none;
  border-radius: 19px;
  font-size: 1.2em;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 4400;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #132e53; }

/***** FORM ELEMENTS ***************************************************/
input[type="text"], input[type="email"], textarea {
  font-family: 'Roboto', Georgia, serif;
  border: 1px solid #b6c1db;
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 1em;
  background: #fff;
  margin-bottom: 10px;
  transition: border-color 0.16s;
  color: #233042;
  width: 100%;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #5CB28D;
  outline: none;
}
label { font-weight: 500; }

/***** UTILITIES *******************************************************/
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }

/***** RESPONSIVENESS **************************************************/
@media (max-width: 1024px) {
  .container { max-width: 95%; }
  header img[alt="Energihamn"] { width: 120px; }
  .feature-grid > div { min-width: 190px; padding: 18px 12px; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .hero { padding: 38px 0 28px 0; border-radius: 0 0 43px 43px; }
  .hero .container { padding: 0 10px; }
  .hero h1 { font-size: 1.6rem; }
  .section {
    padding: 31px 7px;
    margin-bottom: 34px;
  }
  .card-container, .content-grid, .feature-grid, .tips-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card, .feature-grid > div, .tips-grid > div {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-slider, .quotes-carousel {
    flex-direction: column;
    gap: 18px;
  }
  .before-after, .contact-details, .map-placeholder {
    padding: 14px 9px;
  }
  .cta-banner {
    padding: 28px 14px;
  }
  header .container {
    gap: 8px;
  }
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-contact, .footer-hours {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .container { padding: 0 5px; }
  .hero { padding: 24px 0 17px 0; border-radius: 0 0 22px 22px; }
}

/***** PRINTING / ACCESSIBILITY ****************************************/
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  nav, .btn-primary, .btn-secondary, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  .section, .hero, .cta-banner { box-shadow: none !important; border: none !important; padding: 0 !important; }
}

/* END OF CSS */
