/* =====================================================
   Scandinavian Clean CSS for GleamingProject 
   Mobile-first, Flexbox-only – NO CSS Grid/Columns
   Brand: Modern, trustworthy, visionary
======================================================= */

/* ================== CSS RESET ======================= */
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,
main, 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 {
  line-height: 1.5;
  background: #F7FAFC;
  color: #15304B;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #0FA5C5;
  text-decoration: none;
  transition: color 0.18s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, li {
  list-style: none;
}

/* ================== BASE TYPOGRAPHY ================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #15304B;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.375rem;  /* 38px */
  line-height: 1.13;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;   /* 28px */
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;   /* 20px */
  font-weight: 600;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.125rem;  /* 18px */
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 0px;
  color: #11223A;
}
strong {
  font-weight: 700;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #15304B;
}

/* Typography Utility */
.section-title {
  margin-bottom: 24px;
  font-size: 2rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* ================== CONTAINER & WRAPPER ============= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================== HEADER & NAV ==================== */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(27,38,59,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
.header-wrapper > a img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #15304B;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #0FA5C5;
  border-bottom: 2px solid #0FA5C5;
}

.cta-btn {
  background: #0FA5C5;
  color: #FFFFFF !important;
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  box-shadow: 0 2px 16px rgba(15,165,197,0.07);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  display: inline-block;
  margin-left: 16px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #15304B;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(21,48,75,0.10);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

/* ================== MOBILE NAVIGATION =============== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #FFFFFF;
  color: #15304B;
  border: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(21,48,75,0.12);
  cursor: pointer;
  z-index: 11;
  transition: background 0.16s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F7FAFC;
  color: #0FA5C5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
  padding: 0 28px;
}
.mobile-nav a {
  color: #15304B;
  font-size: 1.25rem;
  padding: 12px 0;
  font-weight: 500;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-bottom: 1px solid #E3E8EE;
  transition: color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #0FA5C5;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .footer-nav {
    gap: 12px !important;
  }
}
@media (max-width: 880px) {
  .header-wrapper nav.main-nav {
    gap: 10px;
  }
  .header-wrapper .cta-btn{
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-wrapper .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 22px;
    top: 20px;
    z-index: 60;
    background: #FFFFFF;
    border: none;
    color: #15304B;
    font-size: 2rem;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15,165,197,0.04);
    transition: color 0.16s, background 0.16s;
    cursor: pointer;
  }
  .mobile-menu-toggle:focus,
  .mobile-menu-toggle:hover {
    color: #0FA5C5;
    background: #F7FAFC;
  }
  .mobile-menu[aria-expanded="true"],
  .mobile-menu.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 100;
    box-shadow: 0 2px 28px rgba(27,38,59,0.19);
    animation: menuSlideIn 0.33s cubic-bezier(.66,.01,.27,1);
    overflow-y: auto;
    transition: transform 0.32s cubic-bezier(.66,.01,.27,1);
  }
  .mobile-menu:not(.open):not([aria-expanded="true"]) {
    display: none;
  }
  @keyframes menuSlideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }
}


/* ================== SECTION LAYOUT ================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(27,38,59,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
    border-radius: 10px;
  }
}

/* Flex utility containers */
.card-container,
.card-grid,
.feature-grid,
.review-cards,
.trend-grid,
.service-listings,
.testimonial-slider
{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container,
  .card-grid,
  .feature-grid,
  .review-cards,
  .trend-grid,
  .testimonial-slider,
  .service-listings {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ================== CARDS =========================== */
.card {
  background: #F7FAFC;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21,48,75,0.06);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 36px rgba(21,48,75,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* Flexible features/services */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid > div,
.review-cards > div,
.trend-grid > div,
.service-listings > div {
  background: #F7FAFC;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(21,48,75,0.05);
  padding: 20px 18px 18px 18px;
  min-width: 230px;
  flex: 1 1 calc(33% - 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.feature-grid > div:hover,
.review-cards > div:hover,
.trend-grid > div:hover,
.service-listings > div:hover {
  box-shadow: 0 4px 30px rgba(21,48,75,0.10);
}
@media (max-width: 900px) {
  .feature-grid > div,
  .trend-grid > div,
  .review-cards > div,
  .service-listings > div {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.editor-recommendation {
  display: inline-block;
  background: #0FA5C5;
  color: #FFFFFF;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 0.95rem;
  border-radius: 99px;
  padding: 4px 16px;
  margin-top: 10px;
}

.awards-badge {
  display: inline-block;
  background: #15304B;
  color: #FFFFFF;
  font-size: 0.9rem;
  padding: 2px 10px 2px 10px;
  border-radius: 99px;
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.007em;
}

.publication-quote {
  display: inline-block;
  font-size: 1rem;
  color: #0FA5C5;
  margin-top: 10px;
  font-style: italic;
}

/* ================== TESTIMONIALS ==================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFFFF;
  box-shadow: 0 2px 16px rgba(21,48,75, 0.06);
  border-radius: 14px;
  margin-bottom: 20px;
  flex: 1 1 330px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.16s;
}
.testimonial-card p {
  color: #15304B;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #0FA5C5;
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .testimonial-card,
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }
}

/* ================== CONTACT INFO & SOCIAL ============ */
.contact-info {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: box-shadow 0.14s, transform 0.14s;
}
.social-links a:hover img,
.social-links a:focus img {
  box-shadow: 0 2px 12px #0FA5C599;
  transform: scale(1.08);
}

.text-section img {
  display: inline-block;
  vertical-align: middle;
  width: 19px;
  height: 19px;
  margin-right: 8px;
}

/* ================== FOOTER ========================== */
footer {
  background: #F6F7F9;
  padding: 0;
  margin-top: 60px;
  border-top: 1px solid #E3E8EE;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 20px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-wrapper > a img {
  height: 36px;
  margin-right: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a,
.legal-nav a {
  color: #15304B;
  font-size: 0.98rem;
  padding-bottom: 2px;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus,
.legal-nav a:hover,
.legal-nav a:focus {
  color: #0FA5C5;
}
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact {
  font-size: 0.98rem;
  color: #11223A;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}
@media (max-width: 1050px) {
  .footer-wrapper {
    gap: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .footer-wrapper {
    padding: 28px 10px 12px 10px;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ================== COOKIE CONSENT BANNER ============ */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  color: #15304B;
  padding: 22px 24px;
  box-shadow: 0 -2px 18px rgba(21,48,75,0.05);
  z-index: 1200;
  font-size: 1rem;
  border-top: 1px solid #E3E8EE;
  transition: transform 0.28s cubic-bezier(.66,.01,.27,1), opacity 0.23s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner .cookie-btn {
  background: #0FA5C5;
  color: #FFF;
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 24px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn.reject {
  background: #F2F4F7;
  color: #15304B;
  border: 1px solid #C7D0DF;
}
.cookie-banner .cookie-btn.settings {
  background: #15304B;
  color: #FFF;
}
.cookie-banner .cookie-btn:focus,
.cookie-banner .cookie-btn:hover {
  background: #0A7DA1;
  color: #FFFFFF;
  outline: none;
  box-shadow: 0 2px 10px rgba(15,165,197,0.09);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-btn {
    min-width: 130px;
    width: 100%;
    margin: 4px 0 0 0;
  }
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(21, 48, 75, 0.24);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 8px 56px rgba(21,48,75,0.11);
  max-width: 98vw;
  width: 400px;
  padding: 30px 26px 26px 26px;
  color: #15304B;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn .34s cubic-bezier(.66,.01,.27,1);
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.96); opacity: 0.2; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-dialog h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: #15304B;
  font-weight: 500;
}
.cookie-category input[type="checkbox"]:not([disabled]) {
  accent-color: #0FA5C5;
  width: 18px;
  height: 18px;
  border-radius: 8px;
}
.cookie-category input[type="checkbox"][disabled] {
  accent-color: #B6C4D7;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal-actions .cookie-btn {
  flex: 1;
  margin: 0;
  min-width: 90px;
}
@media (max-width: 520px) {
  .cookie-modal-dialog {
    width: 96vw;
    min-width: 0;
    padding: 18px 5vw 14px 5vw;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* ================ BUTTONS & INTERACTIONS =============== */
button, .button, [type="button"], [type="submit"] {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  margin: 0;
}
button:focus,
.button:focus,
a:focus {
  outline: 2px solid #0FA5C5;
  outline-offset: 2px;
}

/* ================ LISTS & MISC =============== */
ul, ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 6px;
}
.text-section ul, .text-section ol {
  margin-top: 6px;
  margin-bottom: 10px;
}

/* FAQ style */
.faq-brief {
  background: #F7FAFC;
  padding: 18px 16px;
  border-radius: 11px;
  color: #15304B;
  margin-top: 24px;
}
.faq-brief h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
  font-weight: 600;
}
.faq-brief ul {
  padding-left: 14px;
  margin: 0;
}

/* ================ SPACING UTILITIES =================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }

/* ================== RESPONSIVENESS ================ */
@media (max-width: 500px) {
  .header-wrapper {
    min-height: 54px;
    gap: 10px;
  }
  .section {
    padding: 13px 1.5vw;
    margin-bottom: 22px;
    border-radius: 8px;
    gap: 14px;
  }
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.07rem; }
}

/* ================== PRINT OVERRIDE ================== */
@media print {
  header, footer, .cta-btn, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  .section, .container { box-shadow: none !important; padding: 0 !important; background: #fff !important; }
}
