/* =======================
   RESET & BASE STYLES
   ======================= */
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 {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FAFBFB;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #224759;
  background: #FAFBFB;
  line-height: 1.5;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: #224759;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border 0.2s;
}

a:hover, a:focus {
  color: #FFB826;
  border-bottom: 1px solid #FFB826;
  outline: none;
}

ul, ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #224759;
  margin-bottom: 0.7em;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
}

hr {
  border: none;
  border-bottom: 1px solid #E6F2FA;
  margin: 32px 0;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(34, 71, 89, 0.07);
}

/* =====================
   HEADER & MAIN NAV
   ===================== */
header {
  background: #fff;
  border-bottom: 1px solid #E6F2FA;
  width: 100%;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
}
header nav a.cta-btn {
  background: #224759;
  color: #fff !important;
  border: none;
  padding: 10px 26px;
  border-radius: 30px;
  margin-left: 16px;
  box-shadow: 0 2px 6px 0 rgba(34,71,89,0.10);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
header nav a.cta-btn:hover,
header nav a.cta-btn:focus {
  background: #FFB826;
  color: #224759 !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 12px 0 rgba(255,184,38,0.08);
}
header nav a:focus {
  outline: 2px solid #FFB826;
  background: #F5F7F9;
}

/* ===============
   HERO SECTION
   =============== */
.hero {
  background: #E6F2FA;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  min-height: 340px;
}
.hero .container {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #224759;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: 1.25rem;
  color: #46657A;
  margin-bottom: 1.3em;
}

/* =========================
   FLEXBOX PATTERNS & LAYOUT
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin-bottom: 40px;
}
.card {
  margin-bottom: 20px;
  flex: 1 1 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(34,71,89,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.16s, transform 0.14s;
  min-width: 220px;
  max-width: 350px;
  padding: 28px 24px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 22px 0 rgba(34,71,89,0.12);
  transform: translateY(-3px) scale(1.02);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 24px;
  margin-bottom: 24px;
  background: #F5F7FA;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(34,71,89,0.08);
  color: #224759;
  font-size: 1.08rem;
  max-width: 580px;
  border-left: 5px solid #224759;
  transition: border 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  border-left: 5px solid #FFB826;
  box-shadow: 0 6px 24px 0 rgba(255,184,38,0.10);
}
.testimonial-card p {
  color: #224759;
}
.testimonial-card span {
  color: #46657A;
  font-size: 0.98rem;
  margin-left: 8px;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* RESPONSIVE HELPERS */
@media (max-width: 940px) {
  .container { max-width: 100%; padding: 0 12px; }
  .content-wrapper { padding: 0 0; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    min-height: 70px;
  }
  header nav {
    display: none;
  }
  .section { padding: 32px 8px; margin-bottom: 36px; }
  .hero { min-height: 240px; }
  .hero .container { min-height: 140px; }
  .testimonial-card { padding: 16px 10px 18px 16px; }
  .text-image-section { flex-direction: column; gap: 18px; }
}
@media (max-width: 450px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .hero { min-height: 100px; }
  .card { padding: 14px 8px; }
}

/* ================
   CTA BUTTONS
   ================ */
.cta-btn {
  background: #224759;
  color: #fff !important;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 10px 0 rgba(34,71,89,0.10);
  letter-spacing: 0.03em;
  margin-top: 10px;
  transition: background 0.15s, color 0.12s, box-shadow 0.19s, transform 0.13s;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFB826;
  color: #224759 !important;
  box-shadow: 0 8px 24px 0 rgba(255,184,38, 0.14);
  transform: scale(1.045) translateY(-3px);
  outline: none;
}

/* ================
   FOOTER STYLES
   ================ */
footer {
  background: #fff;
  border-top: 1px solid #E6F2FA;
  padding: 36px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
  margin-top: 6px;
}
footer nav a {
  color: #46657A;
  font-size: 0.98rem;
  border-radius: 7px;
  padding: 6px 10px;
  font-weight: 500;
  transition: background 0.14s, color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  color: #224759;
  background: #E6F2FA;
}
footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  justify-content: center;
  align-items: center;
  margin: 14px 0 2px 0;
  font-size: 0.97rem;
  color: #224759;
  opacity: 0.90;
}
footer .footer-contact img {
  width: 19px;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.78;
}
footer > .container > span {
  display: block;
  text-align: center;
  color: #A3AAB3;
  font-size: 0.91rem;
  margin-top: 6px;
}

/* =========================
   MOBILE NAVIGATION STYLES
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: #E6F2FA;
  border: none;
  color: #224759;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  position: absolute;
  right: 24px;
  top: 19px;
  z-index: 105;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFB826;
  color: #224759;
}
@media (max-width: 930px) {
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 931px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,71,89, 0.98);
  color: #fff;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 84px;
  padding-left: 32px;
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.77,0,0.175,1), opacity 0.21s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 20px;
  background: #FFB826;
  color: #224759;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  box-shadow: 0 3px 13px 0 rgba(0,0,0,0.07);
  transition: background 0.18s, color 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #E6F2FA;
  color: #224759;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color 0.16s, background 0.14s, padding 0.13s;
  padding: 9px 0 9px 9px;
  border-radius: 10px;
  min-width: 220px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #FFB826;
  color: #224759;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #224759;
  box-shadow: 0 -2px 16px 0 rgba(34,71,89,0.12);
  padding: 28px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1), opacity 0.23s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-consent-banner .cookie-btns button,
.cookie-consent-banner .cookie-btns .cookie-settings-btn {
  background: #224759;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 24px;
  cursor: pointer;
  margin: 4px 0;
  transition: background 0.2s, color 0.17s, transform 0.12s, box-shadow 0.15s;
  outline: none;
}
.cookie-consent-banner .cookie-btns .cookie-settings-btn {
  background: #FFB826;
  color: #224759;
}
.cookie-consent-banner .cookie-btns button:hover, 
.cookie-consent-banner .cookie-btns button:focus {
  background: #FFB826;
  color: #224759;
}
.cookie-consent-banner .cookie-btns .cookie-settings-btn:hover,
.cookie-consent-banner .cookie-btns .cookie-settings-btn:focus {
  background: #E6F2FA;
  color: #224759;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,71,89,0.54);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.18s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(34,71,89,0.16);
  padding: 34px 24px 28px 24px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #FFB826;
  color: #224759;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.13s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #E6F2FA;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category-label {
  font-weight: 600;
  color: #224759;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.cookie-modal .cookie-category-desc {
  color: #46657A;
  font-size: 0.96rem;
  margin-left: 2px;
}
.cookie-modal .toggle-switch {
  display: inline-flex;
  align-items: center;
  height: 28px;
}
/* Custom Switch Toggle */
.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-switch .slider {
  position: relative;
  width: 38px;
  height: 20px;
  background: #E6F2FA;
  border-radius: 20px;
  transition: background 0.14s;
  cursor: pointer;
}
.toggle-switch .slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #224759;
  transition: left 0.15s cubic-bezier(0.77,0,0.175,1), background 0.1s;
}
.toggle-switch input:checked + .slider {
  background: #FFB826;
}
.toggle-switch input:checked + .slider:before {
  left: 21px;
  background: #fff;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.cookie-modal .cookie-modal-actions button {
  background: #224759;
  color: white;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 22px;
  margin-right: 0;
  transition: background 0.16s, color 0.11s, transform 0.11s;
  cursor: pointer;
}
.cookie-modal .cookie-modal-actions button:last-child {
  background: #FFB826;
  color: #224759;
}
.cookie-modal .cookie-modal-actions button:hover,
.cookie-modal .cookie-modal-actions button:focus {
  background: #E6F2FA;
  color: #224759;
}

/* =======================
   OTHER COMPONENTS
   ======================= */
.text-section {
  margin-bottom: 18px;
  padding-bottom: 0;
}
.text-section:last-child {
  margin-bottom: 0;
}

/* --- Utilities --- */
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

/* Links inside navs, text, and modals */
nav ul { list-style: none; padding: 0; margin: 0; gap: 14px; display: flex; flex-direction: column; }
nav ul li { margin: 0; }
nav ul li a {
  color: #224759;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 7px;
  padding: 6px 14px;
  transition: background 0.2s, color 0.14s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #E6F2FA;
  color: #FFB826;
}

/* ======================
   FORMS (for contact.html)
   ====================== */
form {
  width: 100%;
  max-width: 520px;
  background: #fff;
  padding: 30px 24px 24px 24px;
  box-shadow: 0 2px 8px 0 rgba(34,71,89,0.07);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
form label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #224759;
}
form input, form textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #E6F2FA;
  border-radius: 7px;
  padding: 10px 14px;
  outline: none;
  margin-bottom: 10px;
  background: #F8FAFC;
  color: #224759;
  transition: border 0.15s, box-shadow 0.14s;
}
form input:focus, form textarea:focus {
  outline: 1.5px solid #FFB826;
  border-color: #FFB826;
}
form button[type='submit'] {
  background: #224759;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.11s, transform 0.13s;
}
form button[type='submit']:hover, form button[type='submit']:focus {
  background: #FFB826;
  color: #224759;
  transform: translateY(-2px) scale(1.04);
}

/* ================================
   SCANDINAVIAN CLEAN MOOD SHADOWS
   ================================ */
.card, .testimonial-card, .cookie-modal-content, .section {
  box-shadow: 0 2px 12px 0 rgba(34,71,89,0.07);
}
.card:hover, .testimonial-card:hover, .section:hover {
  box-shadow: 0 8px 32px 0 rgba(34,71,89,0.10);
}

/* =====================
   VISUAL HIERARCHY
   ===================== */
h1, .hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #224759;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.17rem;
  font-weight: 600;
  color: #46657A;
}

/* ===========
   CUSTOM SCROLLBARS
   =========== */
::-webkit-scrollbar {
  width: 11px;
  background: #E6F2FA;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #C8D9E3;
  border: 3px solid #E6F2FA;
}
::-webkit-scrollbar-thumb:hover {
  background: #B0C8D8;
}

/* ===============
   ANIMATIONS
   =============== */
@keyframes fadeIn {
  from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: none; }
}
.hero .content-wrapper, .section, .card, .testimonial-card {
  animation: fadeIn 0.7s cubic-bezier(0.33,1,0.68,1) both;
}
.mobile-menu, .cookie-modal, .cookie-consent-banner {
  will-change: opacity, transform;
}

/* ================
   MISC
   ================ */
::selection {
  background: #FFB82622;
}

/* Utilities for Scandinavian feel */
.card, .testimonial-card, .section {
  border-radius: 18px;
  border: 1px solid #E6F2FA;
}

/* Ensure minimum spacing between all cards & sections */
.section:not(:last-child) {
  margin-bottom: 60px;
}
.card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child) {
  margin-bottom: 20px;
}

/* Hide any unwanted content for print */
@media print {
  .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
}

/* Font Loading: fallback only for demo (website will need actual font includes) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular');
}

/* ====================
   END OF CSS FILE
   ==================== */