/* --- 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, 
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F5F6FA;
  color: #222A35;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.25s; }
img { max-width: 100%; display: block; border: 0; background: none; }
button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
  box-shadow: none;
}

/* --- ROOT COLORS & BRAND FONTS (FALLBACKS) --- */
:root {
  --primary: #2E4053;
  --secondary: #8FC1A9;
  --accent: #F5F6FA;
  --danger: #D7263D;
  --success: #46B98F;
  --text-dark: #222A35;
  --text-light: #FCFCFC;
  --shadow: 0 4px 18px rgba(34,42,53,0.06);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-sans: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-display: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  --transition: 0.25s cubic-bezier(0.5,0,0.5,1);
}

body {
  background: var(--accent);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 400;
}

/* --- TYPOGRAPHY + HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 2.125rem; margin-bottom: 20px; line-height: 1.18; }
h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.12rem; font-weight: 600; }
p, li, ul, ol {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 15px;
}
strong { font-weight: 800; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
}

/* --- LAYOUT & SPACING --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}
.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;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  min-width: 270px;
  flex: 1 1 270px;
  transition: filter var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  filter: brightness(1.04) saturate(1.1);
  box-shadow: 0 8px 28px rgba(46,64,83,0.13);
  transform: translateY(-3px) scale(1.03);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- HERO & SECTION STYLING --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
.text-section {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-section {
    padding: 18px 8px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .section {
    padding: 18px 0 24px 0;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- MAIN NAVIGATION --- */
header {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  border-bottom: 3px solid var(--secondary);
}
header > a {
  margin-left: 28px;
  margin-right: 32px;
  padding: 14px 0;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 12px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--text-light);
}
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 16px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--text-dark);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(46,64,83,0.98);
  color: #fff;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.83,-0.01,.42,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  padding: 20px 26px 10px 18px;
  margin-top: 14px;
  cursor: pointer;
  border: none;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 36px;
  width: 100vw;
  margin-top: 6vh;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  padding: 16px 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--text-dark);
}

@media (max-width: 1024px) {
  .container { max-width: 100vw; }
  header > a { margin-left: 8px; margin-right: 16px; }
  .main-nav { gap: 20px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 12px; }
  header > a { margin-right: 6px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* --- HERO & CTA BUTTONS --- */
.cta-button {
  background: var(--secondary);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  padding: 18px 38px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(46,64,83,0.14);
  cursor: pointer;
  margin-top: 16px;
  margin-bottom: 10px;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(46,64,83,0.22);
}

/* --- FEATURE & CARD ICONS & CONTENT --- */
.content-wrapper ul, .text-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  margin-left: 0;
  padding-left: 0;
}
.content-wrapper ul li, .text-section ul li {
  background: #F5F6FA;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 8px;
  align-items: center;
  font-size: 1rem;
  display: flex;
  gap: 16px;
  box-shadow: 0 2px 9px rgba(46,64,83,0.04);
  font-weight: 500;
}
.content-wrapper ul li img {
  width: 40px;
  height: 40px;
  margin-right: 0;
  border-radius: 7px;
  background: var(--secondary);
  padding: 6px;
}
@media (max-width: 700px) {
  .content-wrapper ul, .text-section ul {
    gap: 7px;
  }
  .content-wrapper ul li, .text-section ul li {
    padding: 12px 8px;
    font-size: 0.98rem;
  }
  .content-wrapper ul li img {
    width: 30px; height: 30px; padding: 3px;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 28px;
  background: #fff;
  color: var(--primary);
  border-left: 7px solid var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 18px rgba(34,42,53,0.08);
  margin-bottom: 20px;
  font-size: 1.08rem;
  min-width: 220px;
  max-width: 480px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card p {
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--primary);
}
.testimonial-card span {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--secondary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(46,64,83,0.13);
  transform: translateY(-2px) scale(1.024);
  z-index: 1;
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 12px 12px;
    font-size: 1.0rem;
    min-width: 0;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-sans);
  padding: 48px 0 8px 0;
}
footer .container {
  max-width: 1240px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px 0;
  min-width: 150px;
}
footer nav a {
  color: var(--text-light);
  opacity: 0.92;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 4px 0;
  transition: color 0.19s, opacity 0.19s, text-decoration 0.19s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
  opacity: 1;
}
footer .text-section {
  background: none;
  color: #fff;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  font-size: 1rem;
}
footer .newsletter {
  font-size: 1rem;
  color: #fff;
  opacity: 0.93;
}
footer .social-links {
  display: flex;
  gap: 16px;
  margin-top: 7px;
}
footer .social-links img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  transition: filter 0.2s, transform 0.2s;
  filter: grayscale(0.23);
  background: #fff6;
  box-shadow: 0 3px 9px rgba(34,42,53,0.22);
}
footer .social-links img:hover {
  filter: grayscale(0.01) brightness(1.13);
  transform: scale(1.12) rotate(-7deg);
  background: var(--secondary);
}

@media (max-width:900px) {
  footer .content-wrapper { gap: 22px; }
}
@media (max-width:700px) {
  footer {
    padding: 26px 0 8px 0;
    font-size: 0.93rem;
  }
  footer .content-wrapper { flex-direction: column; gap: 18px; }
  footer .social-links { margin-bottom: 7px; }
}

/* --- IMAGE & NEUTRAL PLACEHOLDER STYLES --- */
.neutral-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e8ef;
  color: #888;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  min-height: 80px;
  font-size: 1rem;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 10px;
  box-shadow: 0 3px 9px rgba(140,170,160,0.06);
}

/* --- RESPONSIVE FLEX DIRECTION --- */
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section, .content-wrapper {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- ANIMATION CLASSES --- */
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.31,1.02,.64,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 22px rgba(46,64,83,0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 34px 22px 34px;
  z-index: 1400;
  font-size: 1rem;
  font-family: var(--font-sans);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  animation: fadeIn 0.6s cubic-bezier(.36,1,.56,1.11);
}
.cookie-banner__text {
  flex: 1 1 0%;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 22px;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  box-shadow: 0 2px 8px rgba(46,64,83,0.14);
}
.cookie-btn:focus, .cookie-btn:hover { background: var(--secondary); color: var(--primary); }
.cookie-btn.danger {
  background: var(--danger);
}
.cookie-btn.danger:focus, .cookie-btn.danger:hover {
  background: #a51c2c; color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  background: var(--primary); color: #fff;
}
@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 17px 8px 13px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions { gap: 8px; }
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,64,83,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1420;
  animation: fadeIn 0.34s;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 38px rgba(34,42,53,0.22);
  max-width: 380px;
  width: 90vw;
  padding: 34px 34px 26px 34px;
}
.cookie-modal h2 { font-size: 1.5rem; margin-bottom: 18px; }
.cookie-modal ul {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category-toggle {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
@media (max-width: 420px) {
  .cookie-modal { padding: 18px 4px 14px 4px; }
  .cookie-modal h2 { font-size: 1.03rem; }
}

/* --- FORMS AND INPUTS (for future extensibility) --- */
input, textarea {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid #CAD2DF;
  margin-bottom: 12px;
  width: 100%;
  background: #fafbfd;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.17s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  background: #fff;
}

button {
  font-family: var(--font-display);
  font-weight: bold;
  transition: background 0.15s, color 0.15s;
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar { width: 10px; background: #E2E6ED; }
::-webkit-scrollbar-thumb { background: #babfd1; border-radius: 30px; }
::-webkit-selection {
  background: var(--secondary);
  color: #fff;
}
::selection {
  background: var(--secondary);
  color: #fff;
}

/* Custom geometric accent for modern style */
section:before {
  content: '';
  display: block;
  position: absolute;
  left: -36px;
  top: -20px;
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border-radius: 13px 0 48px 0;
  opacity: 0.09;
  z-index: 0;
}
section {
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  section:before {
    display: none;
  }
}

/* --- ACCESSIBILITY + FOCUS STATES --- */
:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
}

/* --- VISUALS FOR MODERN BOLD STYLE --- */
.card, .text-section, .testimonial-card {
  box-shadow: 0 4px 18px rgba(46,64,83,0.14);
  border-radius: var(--radius-lg);
}
@media (max-width:500px){
  .card,.text-section,.testimonial-card {
    border-radius: 10px;
    padding: 11px 6px;
  }
}

/* --- ENSURE MINIMUM SPACING BETWEEN CARDS & SECTIONS --- */
.card-container > *,
.content-grid > *,
.content-wrapper > *,
.text-section > * {
  margin-bottom: 20px;
}
.card-container > *:last-child,
.content-grid > *:last-child,
.content-wrapper > *:last-child,
.text-section > *:last-child {
  margin-bottom: 0;
}
section:last-of-type {
  margin-bottom: 0;
}

/* --- PRINT (clean) --- */
@media print { 
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .container, main { box-shadow: none !important; background: #fff !important; }
  body { background: #fff !important; color: #111 !important; }
}
