/* ========================
   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,input,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 { line-height:1.15; font-family: 'Roboto', Arial, sans-serif; color-scheme: light; -webkit-text-size-adjust:100%; }
*,*:before,*:after { box-sizing: inherit; }
body { min-height:100vh; background: #F7F8F9; color: #25405B; font-family: 'Roboto', Arial, sans-serif; font-size:16px; line-height:1.6; }
img { max-width:100%; display:block; height:auto; border:0; }
a { color: #25405B; text-decoration:none; transition: color 0.2s; }
a:focus { outline: 2px solid #DAA520; outline-offset:2px; }
ul,ol { list-style: none; }
button { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; cursor: pointer; }

/* ========================
   ROOT & SCANDINAVIAN COLORS
   ======================== */
:root {
  --primary: #25405B;
  --primary-rgb: 37,64,91;
  --secondary: #F7F8F9;
  --accent: #DAA520;
  --body-bg: #F7F8F9;
  --surface: #fff;
  --surface-alt: #F1F3F6;
  --border: #E3E5E8;
  --text: #25405B;
  --text-light: #647589;
  --success: #2B7F5D;
  --danger: #BC3B3B;
  --shadow: 0 2px 8px rgba(37,64,91,0.08);
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.24;
  color: var(--primary);
  margin-bottom: 15px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height:1.32;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
}
p,li,dd {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
.subheadline {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
}
blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}
address {
  font-style: normal;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ========================
   LAYOUT CONTAINERS & WRAPPERS
   ======================== */
.container {
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}
.content-wrapper {
  width:100%;
  display: flex;
  flex-direction:column;
  align-items: flex-start;
}
.section {
  margin-bottom:60px;
  padding:40px 20px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ========================
   HEADER & NAVIGATION
   ======================== */
header {
  width:100%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(37,64,91,0.06);
  position:relative;
  z-index:100;
}
header nav {
  width:100%;
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 20px;
  padding: 0 20px;
  height: 72px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:1rem;
  color:var(--primary);
  font-weight:500;
  padding:10px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
header nav a.cta-primary {
  background: var(--accent);
  color: #fff;
  font-weight:700;
  box-shadow: 0 2px 8px rgba(218,165,32,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #b89217;
  color:#fff;
  box-shadow: 0 3px 12px rgba(218,165,32,0.19);
}
header nav img {
  height:42px; width:auto; margin-right: 18px;
}

/* Hamburger menu (hidden on desktop) */
.mobile-menu-toggle {
  display:none;
  background: var(--accent);
  color: #fff;
  font-size:2rem;
  border-radius: 8px;
  width:46px; height:46px;
  align-items:center; justify-content:center;
  margin-left:auto;
  transition: background 0.2s;
  z-index: 2200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #b89217;
}
.mobile-menu {
  display:none;
}
.mobile-menu.active {
  display:flex;
  position:fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(37, 64, 91, 0.96);
  flex-direction: column;
  justify-content:flex-start;
  align-items: flex-start;
  z-index: 2200;
  transform: translateX(0%);
  animation: mobileMenuIn 0.3s ease;
}
@keyframes mobileMenuIn {
  from { transform: translateX(-30%); opacity:0; }
  to { transform: translateX(0%); opacity:1; }
}
.mobile-menu-close {
  color:#fff;
  background: none;
  font-size:2rem;
  align-self: flex-end;
  margin:24px 24px 0 0;
  border-radius: 8px;
  padding:4px 10px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.12);
}
.mobile-nav {
  width:100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 30px;
  gap:14px;
  padding-left:40px;
}
.mobile-nav a {
  color:#fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:1.25rem;
  font-weight:500;
  padding:12px 0px 12px 5px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background:rgba(255,255,255,0.08);
  color: var(--accent);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  width:100%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.hero .container {
  display: flex;
  flex-direction:column;
  align-items: flex-start;
}
.hero .content-wrapper {
  width:100%;
  max-width:680px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding:40px 0 20px 0;
}
.hero h1 { margin-bottom: 6px; }
.hero .cta-primary { margin-top: 18px; }

/* ========================
   CTA BUTTONS
   ======================== */
.cta-primary {
  background: var(--accent);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 15px 32px;
  border-radius: 30px;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(218,165,32,0.11);
  transition: background 0.2s, box-shadow 0.21s, color 0.2s;
  letter-spacing: 0.01em;
}
.cta-primary:hover,.cta-primary:focus {
  background: #b89217;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(218,165,32,0.18);
  text-decoration: none;
}

/* ========================
   SECTION STYLES & SPACING
   ======================== */
section {
  margin-bottom:60px;
  padding:40px 0;
}
.section {
  margin-bottom:60px;
  padding:40px 20px;
}

.features, .about, .services, .testimonials, .cta, .contact, .legal, .thanks {
  width:100%;
  background: transparent;
}
.features .content-wrapper, .about .content-wrapper,
.services .content-wrapper, .testimonials .content-wrapper,
.cta .content-wrapper, .contact .content-wrapper, .legal .content-wrapper, .thanks .content-wrapper {
  margin-top: 0;
  gap: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ========================
   FLEXBOX GRID SYSTEMS
   ======================== */
.feature-grid {
  width:100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top:18px;
  margin-bottom:10px;
}
.feature-item {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(37,64,91,0.07);
  padding:28px 22px 22px 22px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 325px;
  display: flex;
  flex-direction:column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom:20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.19s, border-color 0.15s, transform 0.18s;
}
.feature-item img { width:40px; height:auto; margin-bottom: 4px; }
.feature-item:hover {
  box-shadow: 0 6px 16px rgba(37,64,91,0.13);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
}

.testimonial-card {
  background: var(--surface-alt);
  border-radius: 13px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(37,64,91,0.10);
  margin-bottom:24px;
  padding:20px;
  color:var(--text);
  display: flex;
  flex-direction:column;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(37,64,91,0.14);
  border-color: var(--accent);
}
.testimonial-card blockquote {
  margin: 0 0 8px 0;
  font-size:1.1rem;
  color:var(--primary);
}
.testimonial-card p {
  margin-bottom: 0;
  color:var(--text-light);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding:24px;
  flex: 1 1 260px;
  max-width:340px;
  min-width:210px;
  display:flex;
  flex-direction:column;
  gap:18px;
  border:1px solid var(--border);
  transition: box-shadow 0.18s, border-color 0.13s, transform 0.14s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 18px rgba(37,64,91,0.19);
  transform: scale(1.018);
}

.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;
}

/****** FAQ / RESOURCES / Contact ******/
.faq-section, .resources, .contact-details, .map-embed {
  margin-bottom:30px;
}
.faq-section dl { width:100%; }
.faq-section dt {
  font-weight:600; color:var(--primary);
  margin-top:12px;
}
.faq-section dd {
  margin-left:12px;
  margin-bottom:10px;
  color:var(--text-light);
}
.resources ul { margin-top:8px; }
.resources a {
  color: var(--accent);
  font-weight:500;
}
.resources a:hover, .resources a:focus {
  text-decoration: underline;
}

.contact-details > div {
  display:flex;
  align-items: center;
  gap:8px;
  margin-bottom:10px;
  color: var(--text-light);
}
.contact-details img {
  width:22px;
  height:22px;
}
.map-embed {
  margin-top:18px;
  display:flex;
  align-items: center;
  gap:16px;
  background: var(--surface-alt);
  border-radius:12px;
  padding:18px 20px;
  border:1px solid var(--border);
  box-shadow: 0 1px 5px rgba(37,64,91,0.07);
}
.map-embed img { width: 40px; height:40px; }

/**** Legal section ****/
.legal h1, .legal h2, .legal h3 { margin-bottom:12px; }
.legal ul, .legal ol { padding-left:24px; margin-bottom:14px; }

/* ========================
   CTA SECTION
   ======================== */
.cta { background: var(--accent); color:#fff; border-radius:18px; text-align:center; box-shadow:0 2px 10px rgba(218,165,32,0.11); }
.cta h2 { color:#fff; margin-bottom:10px; }
.cta .cta-primary { background:#fff; color:var(--accent)!important; margin-top:16px; }
.cta .cta-primary:hover, .cta .cta-primary:focus { background:var(--surface-alt); color:var(--accent)!important; }

/***** Thanks page *****/
.thanks h1 { color: var(--success); margin-bottom:18px; }
.thanks p { margin-bottom:10px; max-width:660px; }

/* ========================
   FOOTER
   ======================== */
footer {
  width:100%;
  background: var(--surface);
  border-top:1px solid var(--border);
  margin-top:32px;
  padding:30px 0 24px 0;
}
footer .container {
  display:flex;
  justify-content: center;
}
footer .content-wrapper {
  width:100%;
  max-width:1200px;
  display:flex;
  flex-wrap:wrap;
  gap: 40px;
  align-items:flex-start;
  justify-content:space-between;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap:9px;
}
.footer-navigation a {
  color: var(--primary);
  font-size: 0.99rem;
  border-radius:6px;
  padding:5px 9px;
  transition:background 0.15s,color 0.15s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap:10px;
  font-size: 0.98rem;
  color: var(--text-light);
}
.contact-info img { width:40px; height:auto; margin-bottom:6px; }
.contact-info address { margin-bottom: 6px; }
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top:10px;
}
.social-links a img { width:24px;height:24px;filter: grayscale(100%);transition: filter 0.18s, opacity 0.18s;opacity: 0.68; }
.social-links a:hover img,.social-links a:focus img{ filter:none; opacity:1; }

/* ========================
   COOKIE CONSENT BANNER & MODAL
   ======================== */
.cookie-banner {
  position:fixed;
  bottom:0;
  left:0;
  width:100vw;
  background:var(--surface-alt);
  color:var(--primary);
  border-top:1.5px solid var(--border);
  box-shadow: 0 -2px 16px rgba(37,64,91,0.09);
  display:flex;
  align-items: center;
  gap:18px;
  padding:20px 18px 20px 18px;
  z-index:3000;
  transition: transform 0.31s cubic-bezier(0.43,0.05,0.17,1.2), opacity 0.25s;
  font-size:1rem;
  flex-wrap:wrap;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity:0;
  pointer-events:none;
}
.cookie-banner .cookie-text {
  flex: 1 1 280px;
  min-width: 200px;
}
.cookie-banner .cookie-action-group {
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items: center;
  margin-left:auto;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight:600;
  font-size:1rem;
  padding:11px 26px;
  border-radius: 99px;
  margin-right: 0px;
  border: none;
  transition: background 0.2s, color 0.18s, box-shadow 0.2s;
}
.cookie-btn.accept {
  background:var(--accent);
  color:#fff;
}
.cookie-btn.accept:hover,.cookie-btn.accept:focus {
  background: #b89217;
}
.cookie-btn.reject {
  background:var(--surface);
  color:var(--primary);
  border:1px solid var(--border);
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: var(--surface-alt);
  color:var(--danger);
}
.cookie-btn.settings {
  background:var(--secondary);
  color:var(--primary);
  border:1px solid var(--border);
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  color:var(--accent);
  background:var(--surface-alt);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position:fixed;
  top:0;left:0;width:100vw;height:100vh;
  background:rgba(37,64,91,0.32);
  z-index:3500;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 1;
  animation: modalFadeIn 0.18s;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  min-width: 320px;
  max-width: 98vw;
  width: 370px;
  background: var(--surface);
  border-radius:17px;
  box-shadow:0 8px 44px rgba(37,64,91,0.12);
  padding:32px 28px 25px 28px;
  z-index:3600;
  position:relative;
  display: flex;
  flex-direction: column;
  gap:24px;
  font-size:1rem;
  color: var(--primary);
}
.cookie-modal .modal-close {
  position:absolute;
  top:13px; right:16px;
  font-size:1.5rem;
  color:var(--text-light);
  background: none;
  border:none;
  padding:0 10px;
  cursor:pointer;
  border-radius:6px;
  transition: background 0.17s, color 0.14s;
}
.cookie-modal .modal-close:hover,m .cookie-modal .modal-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-modal h2 {
  margin-bottom:6px;
  font-size:1.44rem;
  color:var(--primary);
}
.cookie-categories {
  display:flex;
  flex-direction: column;
  gap:18px;
  margin-bottom:10px;
}
.cookie-category {
  background: var(--surface-alt);
  border-radius:8px;
  padding:14px 16px 11px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border:1px solid var(--border);
}
.cookie-category label {
  font-weight:600;
  color:var(--primary);
  margin-right: 12px;
}
.cookie-category .toggle {
  margin-left:auto;
}
.toggle-switch {
  width: 42px; height: 24px; position:relative; display:inline-block;
}
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #e0e3e6;
  border-radius:14px;
  transition: background 0.22s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display:flex;
  flex-direction:row;
  gap:18px;
  margin-top:12px;
  justify-content:flex-end;
}
.cookie-modal .cookie-btn {
  margin:0;
}

/* Cookie Modal Overlay Hide */
.cookie-modal-backdrop.hide {
  display:none;
}

/***** Utility ******/
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.pb-0 { padding-bottom:0; }

/***** Accessibility Focus Outline *****/
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 990px) {
  .container { max-width:95vw; }
  header nav { height: auto; }
  .content-wrapper { padding:0; }
  .feature-grid { gap:18px; }
}
@media (max-width: 768px) {
  .container { padding-left:10px; padding-right:10px; }
  header nav { flex-wrap: wrap; gap: 9px; height:auto; }
  header nav a { font-size:0.98rem; padding:8px 10px; }
  .feature-grid, .card-container, .content-grid { gap: 16px; }
  .feature-item, .card { min-width: 160px; max-width: 100%; padding:18px 10px; }
  .section, section { padding:26px 0; margin-bottom:40px; }
  .hero { min-height:220px; padding:18px 0 0 0; }
  .contact-details, .map-embed { font-size:0.98rem; }
  .social-links { gap:6px; }
  .footer-navigation { gap:6px; }
}
@media (max-width: 700px) {
  .content-wrapper, .footer .content-wrapper { flex-direction: column; gap: 30px; }
  .footer .content-wrapper { align-items: flex-start; }
}
@media (max-width: 600px) {
  h1, .h1 { font-size:1.65rem; }
  h2, .h2 { font-size:1.2rem; }
  h3, .h3 { font-size:1rem; }
  .cta-primary { font-size:1rem; padding:11px 18px; }
  .feature-item img { width:30px; }
  .section, section { padding:14px 0; }
  .hero { min-height:120px; padding: 12px 0 0 0; }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction:column;
    align-items: stretch;
  }
  .feature-item, .card { max-width:100%; }
}
@media (max-width: 900px) {
  .text-image-section { flex-direction:column; align-items:flex-start; gap:18px; }
}
/* HAMBURGER & MOBILE MENU SHOW/HIDE */
@media (max-width: 990px) {
  header nav { display: none; }
  .mobile-menu-toggle { display:flex; }
}
@media (min-width: 991px) {
  .mobile-menu { display:none !important; }
  .mobile-menu-toggle { display:none; }
  header nav { display: flex !important; }
}

/* ================
   MICRO-INTERACTIONS
   ================ */
button, .cta-primary, .cookie-btn, a {
  transition: background 0.2s, color 0.18s, box-shadow 0.16s, transform 0.13s;
}
button:active, .cta-primary:active, .cookie-btn:active {
  transform:scale(0.98);
}

/* ================
   MINIMUM SPACING BETWEEN ALL CARDS
   ================ */
.feature-grid > *, .card-container > *, .content-grid > *, .testimonial-card, .feature-item, .card {
  margin-bottom:20px;
}

/* ===========
   MISC
   =========== */
::-webkit-scrollbar { width:10px; background:var(--secondary); }
::-webkit-scrollbar-thumb { background:#E3E5E8; border-radius:8px; }
::-webkit-scrollbar-thumb:hover { background:#d1d7df; }
