/* ============================================================
   FINTA SYSTEMS - PROFESSIONAL CORPORATE STYLE (FLEXBOX ONLY)
   CSS RESET & NORMALIZE | BRAND: Finta Systems | Fonts: Montserrat, Roboto
   ============================================================ */

/* Reset and 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,
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 {
  height: 100%;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F5F5;
  color: #1F2937;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #38A3A5;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #14405a;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #29384b;
}
strong {
  font-weight: 600;
  color: #22577A;
}
small {
  font-size: 0.91rem;
  color: #697184;
}

/* Main Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section Spacing */
section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(34, 87, 122, 0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

/* Mandatory Spacing/Alignment Flexbox Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34, 87, 122, 0.07);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 260px;
  padding: 26px 20px 22px 20px;
}
.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;
  padding: 20px;
  background: #f6fafe;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px rgba(34, 87, 122, 0.06);
  margin-bottom: 20px;
  flex-direction: column;
  color: #18394B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO Section Customization */
section:first-of-type {
  background: linear-gradient(110deg, #f7fafd 75%, #e3edf5 100%);
  box-shadow: 0 2px 26px 0 rgba(34, 87, 122, 0.11);
}
section:first-of-type h1 {
  color: #22577a;
}

/* Feature/Service Grid (Home + Services) */
.feature-grid, .service-list-short, .service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div, .service-list-short > div, .service-categories > div {
  background: #f8fafb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(34,87,122,0.06);
  flex: 1 1 290px;
  min-width: 260px;
  padding: 28px 22px 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Buttons & CTAs */
.cta-primary, .cta-secondary, .cookie-banner button, .cookie-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  margin-right: 14px;
  margin-top: 8px;
  outline: none;
}
.cta-primary {
  background: #22577A;
  color: #fff;
  box-shadow: 0 1.5px 8px rgba(34, 87, 122, 0.09);
}
.cta-primary:hover, .cta-primary:focus {
  background: #38A3A5;
  color: #fff;
  box-shadow: 0 3px 16px rgba(56,163,165,0.14);
}
.cta-secondary {
  background: #fff;
  border: 2px solid #38A3A5;
  color: #22577A;
  margin-right: 0;
}
.cta-secondary:hover, .cta-secondary:focus {
  background:#38A3A5;
  color: #fff;
}

/* Tables (Pricing) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin-bottom: 24px;
  margin-top: 6px;
  box-shadow: 0 2px 10px 0 rgba(34,87,122,0.06);
  border-radius: 9px;
  overflow: hidden;
}
table th, table td {
  padding: 16px 10px;
  text-align: left;
}
table th {
  background: #f0f8fb;
  color: #22577A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
table tr:not(:first-child):hover {
  background: #f6fafd;
}
table td {
  font-size: 1rem;
  color: #2e3a50;
  border-bottom: 1px solid #e0e6eb;
}
table tr:last-child td {
  border-bottom: none;
}

/* Nav Bar */
header {
  position: relative;
  background: #fff;
  box-shadow: 0 1.5px 8px rgba(34, 87, 122, 0.035);
  z-index: 100;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  padding: 14px 0 12px 0;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 6px 10px;
  border-radius: 6px;
  color: #22577A;
  transition: background 0.14s, color 0.16s;
}
header nav a[aria-current],
header nav a.active,
header nav a:hover, header nav a:focus {
  background: #e3f1f5;
  color: #38A3A5;
}
header nav a.cta-primary {
  margin-left: auto;
}

header img[alt="Finta Systems"] {
  height: 38px;
  width: auto;
  margin-right: 19px;
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #22577A;
  font-size: 2.1rem;
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 1202;
  cursor: pointer;
  padding: 4px 12px;
  transition: color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #38A3A5;
  background: #ecf4f8;
  border-radius: 50%;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,87,122,0.98);
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(.79,0,.25,1), opacity 0.26s;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  right: 26px;
  top: 16px;
  cursor: pointer;
  z-index: 1203;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #38A3A5;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 180px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  padding: 12px 3px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin: 0;
  border-radius: 7px;
  transition: background 0.12s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #38A3A5;
  color: #fff;
}

@media (max-width: 1050px) {
  .container { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 900px) {
  .feature-grid > div, .service-list-short > div, .service-categories > div {
    min-width: 180px;
    flex: 1 1 190px;
    padding: 20px 10px 15px 13px;
  }
}

@media (max-width: 850px) {
  .feature-grid, .service-list-short, .service-categories {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.3rem; }
  nav { gap: 10px; }
  .content-wrapper { gap: 12px; }
  section { padding: 24px 6px; }
  .feature-grid, .service-list-short, .service-categories {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .service-list-short > div, .service-categories > div {
    min-width: unset;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 13px auto;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  table th, table td { padding: 11px 4px; font-size: 0.98rem; }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .container { max-width: 95vw; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .card, .feature-grid > div, .service-list-short > div, .service-categories > div {
    padding: 10px 6px 10px 9px;
  }
  section { margin-bottom: 32px; }
}

/* Footer */
footer {
  background: #f8fafb;
  padding: 0;
  margin-top: 40px;
  border-top: 2px solid #eaeef1;
}
footer .container {
  padding-top: 34px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 6px;
}
footer nav a {
  font-size: 0.98rem;
  color: #22577a;
  border-radius: 4px;
  padding: 3px 7px;
}
footer nav a:hover, footer nav a:focus {
  background: #e3f1f5;
  color: #38A3A5;
}
footer img[alt="Finta Systems"] {
  height: 32px;
  margin-bottom: 3px;
}
footer div > a { margin-right: 7px; }
footer div > a img[alt^="icon-"] {
  height: 22px;
  width: 22px;
  display: inline-block;
  margin-top: 3px;
}
footer small {
  color: #8b98a7;
  margin-top: 7px;
  display: block;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #f6fafe;
  color: #123251;
  border-top: 2px solid #e0e7ee;
  padding: 22px 14px 18px 14px;
  font-size: 1rem;
  box-shadow: 0 -2px 16px rgba(34,87,122,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1400;
  gap: 14px;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #22577A;
  color: #fff;
  min-width: 110px;
  font-size: 0.96rem;
  border-radius: 8px;
  border: none;
  padding: 10px 17px;
  margin-top: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.19s, color 0.15s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #22577A;
  border: 2px solid #38A3A5;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #38A3A5;
  color: #fff;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #eafafb;
  color: #22577A;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 87, 122, 0.70);
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(34,87,122,0.22);
  max-width: 410px;
  width: 92vw;
  padding: 34px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  z-index: 1600;
  animation: slideInModal .42s cubic-bezier(.65,.05,.36,1) 1;
}
@keyframes slideInModal {
  0% { transform: translateY(70px) scale(0.94); opacity: 0; } 100% { transform: none; opacity:1; }
}
.cookie-modal-title {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #22577A;
  margin-bottom: 12px;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.01rem;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #38A3A5;
  width: 17px; height: 17px;
}
.cookie-modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 19px;
  border-radius: 8px;
  border: none;
  background: #22577A;
  color: #fff;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal-btn.secondary {
  background: #fff;
  border: 2px solid #38A3A5;
  color: #22577A;
}
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  background: #38A3A5;
  color: #fff;
}
.cookie-modal-btn.secondary:hover, .cookie-modal-btn.secondary:focus {
  background: #eafafb;
  color: #22577A;
}
.cookie-modal-close {
  position: absolute;
  right: 13px;
  top: 9px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #22577A;
  cursor: pointer;
  padding: 2px 7px;
  z-index: 1601;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #38A3A5;
}

/* Misc Spacing and Details */
.section ul, .section ol {
  margin-bottom: 0px;
  margin-top: 2px;
  padding-left: 18px;
  list-style: disc inside;
}
.section ul li, .section ol li {
  margin-bottom: 7px;
  font-size: 1rem;
}

/* Accordions, Guides, and Blog List (Tips page) */
.section ul li a {
  color: #38A3A5;
  text-decoration: underline;
  transition: color 0.15s;
}
.section ul li a:hover, .section ul li a:focus {
  color: #22577A;
}

/* Accessibility: Outline for focus */
a:focus, button:focus, input:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #38A3A5;
  outline-offset: 2px;
}

/* Success/Thank you Page Styling */
.thankyou-message {
  background: #f6fafe;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34,87,122,0.07);
  padding: 21px 18px;
  margin: 18px 0 27px 0;
}

/* Contact Info List Styling */
.content-wrapper > div > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.07rem;
}
.content-wrapper > div > p img {
  height: 19px;
  width: 19px;
  margin-right: 2px;
}

/* Animations / Micro-interactions */
button, .cta-primary, .cta-secondary, a.cta-primary {
  transition: background 0.17s, color 0.17s, box-shadow 0.19s;
}
.card, .testimonial-card, .feature-item, .feature-grid > div {
  transition: box-shadow 0.17s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .service-list-short > div:hover, .service-categories > div:hover {
  box-shadow: 0 5px 18px 0 rgba(56,163,165,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* Enhanced Readability for Testimonials */
.testimonial-card {
  background: #f6fafe;
  color: #18394B;
  border: 1.5px solid #e0e7ee;
}
.testimonial-card p {
  color: #18394B;
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #22577A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
}

/* Hide cookie banner when not needed (js adds .hide) */
.cookie-banner.hide, .cookie-modal-overlay {
  pointer-events: none;
}

/* Hide desktop nav on mobile, show mobile menu toggles */
@media (max-width: 768px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  .footer nav {
    flex-direction: column;
    gap: 6px;
  }
}

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

/* ================ END FINTA SYSTEMS STYLE ================ */
