/* ============================================================
   MoneyMinds Glasgow – tech_futuristic style CSS for all pages
   Brand: Futuristic, friendly, professional, with neon/gradient tech accents
   Only Flexbox for layout (NO grid/columns)
   ============================================================ */

/* ===== 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,
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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }
button { font-family: inherit; font-size: 1rem; background: none; border: none; padding: 0; cursor: pointer; }

/* ===== Root Variables & Brand Colors ===== */
:root {
  --color-primary: #22577A;
  --color-secondary: #38A3A5;
  --color-accent: #F7F7F7;
  --color-bg-dark: #10141a;
  --color-bg-card: #212837;
  --color-neon: #19f7e7;
  --color-neon2: #50ff99;
  --color-error: #df2e2e;
  --color-shadow: 0 4px 28px rgba(36,230,255,0.10);
  --radius-card: 18px;
  --radius-btn: 32px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Arial', Helvetica, sans-serif;
  --transition-main: 0.24s cubic-bezier(.25,.8,.25,1);
  --shadow-neon: 0 0 12px 2px #18cfd7;
  --shadow-btn: 0 2px 10px 0 rgba(56,163,165,0.12), 0 0 7px 0 #19f7e755;
  --focus-outline: 0 0 0 2px #19f7e7, 0 0 0 4px #38a3a5a4;
  --gradient-hero: linear-gradient(135deg, #22577a 40%, #38a3a5 100%);
  --gradient-card: linear-gradient(135deg, #212837 80%, #22334a 100%);
  --header-height: 74px;
}

/* ===== Overall body/background styling ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--gradient-hero), #242e3a;
  color: #e6fdff;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* ===== Typography scale ===== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px #22577a55;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-neon);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px #19f7e766;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
h4, h5, h6 {
  font-family: var(--font-display);
}
p, ul, ol, li {
  font-size: 1rem;
  color: #e3f9fb;
}
p.note {
  color: #aaf0ee;
  font-size: 0.98rem;
  font-style: italic;
}
strong { color: var(--color-neon2); font-weight: bold; }

/* ====== Layout Spacing Containers (per instructions) ====== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0 12px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-btn);
  margin-bottom: 20px;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 240px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  z-index: 1;
}
.card:hover {
  box-shadow: 0 0 0 3px var(--color-neon2), 0 6px 60px #19f7e73b;
  transform: translateY(-4px) scale(1.03);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #f7f7f7;
  color: #22577a;
  border-radius: 14px;
  box-shadow: 0 4px 36px rgba(34, 87, 122, 0.07);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  transition: all var(--transition-main);
  border: 2px solid #e0feff;
}
.testimonial-card p {
  color: #22577a;
  font-size: 1.08rem;
}
.testimonial-card span {
  color: #16bfab;
  font-size: .95rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing rules for all cards/sections */
section {
  margin-bottom: 60px;
  padding: 40px 0 32px 0;
}
section:last-of-type {
  margin-bottom: 0;
}


/* ======= Header Navigation ======= */
header {
  width: 100%;
  background: #182230;
  box-shadow: 0 2px 20px rgba(34, 87, 122, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 18px;
  max-width: 1120px;
  margin: 0 auto;
}
nav > a > img {
  height: 42px;
  margin-right: 14px;
}
nav ul {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 22px;
}
nav ul li a {
  font-family: var(--font-display);
  color: var(--color-neon);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 8px 10px;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: background var(--transition-main), color var(--transition-main);
  position: relative;
}
nav ul li a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-neon);
  transition: width .24s cubic-bezier(.25,.8,.25,1);
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
}
nav ul li a:hover,
nav ul li a:focus {
  background: #22334e;
  color: var(--color-neon2);
}
nav ul li a:hover:after,
nav ul li a:focus:after {
  width: 70%;
}
nav .cta.primary {
  margin-left: 30px;
}

/* Hide nav on mobile for hamburger */
@media (max-width: 990px) {
  nav ul, nav .cta.primary {
    display: none;
  }
}

/* ===== CTAs and Buttons ===== */
.cta,
button.cta,
a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  background: var(--color-neon);
  color: #063a5c;
  border: none;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta.primary {
  background: var(--color-primary);
  color: #f3ffff;
  box-shadow: 0 0 0 2px var(--color-neon2), 0 2px 24px #19f7e733;
  border: none;
}
.cta:hover, .cta:focus {
  background: var(--color-neon2);
  color: #182230;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 0 3px var(--color-neon), 0 4px 24px #50ff995a;
  outline: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 18px 0 #38a3a5dd;
}
.cta:active {
  transform: scale(.98);
}

/* ===== Main content: sections, lists, features ===== */
.text-section {
  margin: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-wrapper > ul,
.content-wrapper > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding-left: 0;
}
.content-wrapper > ul > li,
.content-wrapper > ol > li {
  background: var(--gradient-card);
  border-radius: 14px;
  box-shadow: 0 2px 20px #38a3a510;
  padding: 22px 20px 18px 20px;
  min-width: 210px;
  flex: 1 1 190px;
  color: #e6fdff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 7px;
  position: relative;
  border: 1.5px solid #253c58;
  transition: border-color var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
}
.content-wrapper > ul > li:hover,
.content-wrapper > ol > li:hover {
  border-color: var(--color-neon);
  box-shadow: 0 0 12px 0 #19f7e722;
  transform: translateY(-3px) scale(1.03);
}
/* Icon in features */
.content-wrapper > ul > li img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 6px #50ff99aa);
}
/* Feature headings */
.content-wrapper > ul > li h3 {
  color: var(--color-neon2);
  font-size: 1.14rem;
  font-family: var(--font-display);
  margin-bottom: 4px;
}


/* ===== Modals (like cookie settings) ===== */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(16,22,30,0.75);
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #f7f7f7;
  color: #222;
  padding: 34px 32px 26px 32px;
  border-radius: 22px;
  box-shadow: 0 6px 45px #121e28aa;
  max-width: 350px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideUp .32s cubic-bezier(.37,1.19,.49,1);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #273d4c;
}
.cookie-modal .cta {
  margin-top: 6px;
  margin-bottom: 6px;
}
.cookie-modal .close-modal {
  position: absolute; top: 12px; right: 16px;
  font-size: 1.5rem;
  background: none; border: none;
  color: var(--color-neon2);
  cursor: pointer;
  transition: color var(--transition-main);
}
.cookie-modal .close-modal:hover { color: var(--color-primary); }
@keyframes slideUp {
  from { opacity:0; transform: translateY(64px) scale(.97); }
  to { opacity:1; transform: none; }
}


/* ===== Cookie Consent Banner (fixed bottom) ===== */
.cookie-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #22334E;
  color: #f7f7f7;
  padding: 24px 18px 18px 18px;
  z-index: 2000;
  box-shadow: 0 0 22px rgba(34,87,122,0.28);
  animation: cookieSlideIn .5s cubic-bezier(.5,1.2,.42,1);
}
@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button.cta,
.cookie-banner .cta {
  background: var(--color-neon2);
  color: #073e3e;
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 17px;
  min-width: 98px;
  font-weight: 700;
  border: none;
}
.cookie-banner .cta:focus {
  background: #fff;
  color: var(--color-primary);
  outline: var(--focus-outline);
}
.cookie-banner .cta.cookie-settings {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #b0e4e3;
}
.cookie-banner .cta.cookie-settings:hover { background: #dafdf9; color: #19366F; }
.cookie-banner .cta.reject {
  background: #fff1f1;
  color: var(--color-error);
  border: 1px solid #ef9d98;
}
.cookie-banner .cta.reject:hover { background: #ffe3e1; }
.cookie-banner .cta.accept {
  background: var(--color-neon2);
  color: #03736a;
}
.cookie-banner .cta.accept:hover { background: #19f7e7; color: #002d2d; }
.cookie-banner .cookie-title { font-size: 1.08rem; font-weight: bold; line-height: 1.5; }
.cookie-banner .cookie-desc { font-size: 0.97rem; }

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
  display: flex;
  background: var(--color-neon2);
  color: #122849;
  padding: 10px 14px;
  font-size: 1.7rem;
  border-radius: 12px;
  border: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1102;
  margin: 8px 0 8px 12px;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg,#212837 80%, #182230 100%);
  position: fixed;
  top: 0; right: 0;
  width: 92vw;
  max-width: 380px;
  height: 100vh;
  z-index: 1200;
  transform: translateX(102%);
  transition: transform 0.33s cubic-bezier(.61,2,.19,.94);
  box-shadow: 0 7px 88px 1px #19f7e744, 0 0 0 12vw #0007;
  padding: 32px 20px 20px 27px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-neon2);
  font-size: 2.3rem;
  position: absolute;
  top: 20px; right: 26px;
  z-index: 1301;
  border-radius: 7px;
  padding: 6px 13px;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-menu-close:hover {
  color: #ff4343;
  background: #2b3847;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 54px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.27rem;
  color: var(--color-neon2);
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 10px 12px 4px;
  transition: color var(--transition-main), background var(--transition-main);
  background: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2b3e5e;
  color: #fff;
}
@media (min-width: 991px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ===== Footer Styling ===== */
footer {
  padding: 40px 7vw 20px 7vw;
  background: #1b2638;
  color: #82eefa;
  border-top: 2px solid #293b54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding-left: 0;
}
footer nav a {
  color: #38a3a5;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color var(--transition-main);
  padding: 8px 4px;
}
footer nav a:hover { color: #19f7e7; }
footer p {
  color: #b7cbed;
  font-size: 0.97rem;
}

/* ======= Map Placeholder ======= */
.map-placeholder {
  background: #fff;
  border: 2px dashed #cbeaef;
  border-radius: 8px;
  padding: 32px;
  color: #2f7e99;
  box-shadow: 0 4px 23px 0 #38a3a51a;
  text-align: center;
  font-size: 1.12rem;
}

/* ======= Accessibility & Focus ======= */
a,
.cta,
button,
.mobile-menu-toggle,
.mobile-menu-close,
.cookie-banner .cta,
.cookie-modal .cta,
.cookie-modal .close-modal {
  outline: none;
}
a:focus, .cta:focus, button:focus, .mobile-nav a:focus {
  box-shadow: 0 0 0 3px #19f7e7, 0 0 0 5px #38a3a5;
  outline: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .section, section {
    padding: 30px 0 24px 0;
    margin-bottom: 32px;
  }
  .content-wrapper,
  .content-wrapper > ul,
  .content-wrapper > ol,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card,
  .card {
    min-width: 100%;
    max-width: 98vw;
    padding: 17px 10px;
  }
  nav {
    padding: 0 5px;
  }
}
@media (max-width: 480px) {
  h1, .h1 {
    font-size: 1.5rem;
  }
  h2, .h2 {
    font-size: 1.20rem;
  }
  .cookie-modal {
    padding: 20px 7vw;
    min-width: unset;
  }
}

/* ======= Utility classes ======= */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ======= Animations and micro-interactions ======= */
.card, .testimonial-card {
  transition: box-shadow .2s cubic-bezier(.25,.8,.25,1), transform .2s cubic-bezier(.25,.8,.25,1);
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 0 10px #19f7e788, 0 12px 34px #38a3a514;
  transform: translateY(-3px) scale(1.015);
  z-index: 2;
}
.mobile-menu, .cookie-modal {
  will-change: transform, opacity;
}

/* ======= Form Elements ======= */
input, textarea, select {
  font-family: var(--font-body);
  background: #fff;
  color: #2b455f;
  border: 1.6px solid #38a3a5;
  border-radius: 11px;
  font-size: 1.08rem;
  padding: 9px 14px;
  transition: border var(--transition-main), box-shadow var(--transition-main);
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-neon);
  box-shadow: 0 0 0 2px #19f7e7;
}
label { font-family: var(--font-display); color: #38a3a5; font-weight: 600; }

/* ======= Miscellaneous ======= */
::-webkit-scrollbar { width: 10px; background:#222b38; }
::-webkit-scrollbar-thumb { background: #38a3a5; border-radius: 6px; }

/* Prevent overlapping */
section, .card, .testimonial-card, .content-wrapper > ul > li, .content-grid > * {
  margin-bottom: 20px;
}
section > .container:last-child, .content-wrapper > ul > li:last-of-type { margin-bottom: 0; }

/* ======= End of stylesheet ======= */
