/* 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,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;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F7F9;
  color: #2C3140;
  font-family: "Georgia", "Times New Roman", Times, serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
ul,ol {
  margin-left: 1.5em;
}
a {
  color: #345270;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D8B266;
  outline: none;
}

/* BRAND & TYPOGRAPHY */
:root {
  --primary: #345270;
  --secondary: #D8B266;
  --accent: #F6F7F9;
  --onsecondary: #2C3140;
  --dark: #212735;
  --body-font: 'Georgia', 'serif';
  --sans-font: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
h1 {
  font-family: var(--sans-font);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}
h2 {
  font-family: var(--body-font);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
h3 {
  font-family: var(--body-font);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}
h4, h5, h6 {
  font-family: var(--body-font);
  color: var(--primary);
}
p, li, ul, ol {
  font-family: var(--body-font);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #2C3140;
  letter-spacing: 0.01em;
}
small {
  font-size: 0.875rem;
  color: #797B85;
}
strong, b {
  font-weight: 700;
  color: var(--dark);
}
.text-section h3 {
  margin-top: 24px;
}
.text-section h2 {
  margin-top: 24px;
}

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

/* ESSENTIAL STRUCTURE & SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 16px 0 rgba(41,59,99,0.09);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.15s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 100%;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(41,59,99,0.16);
  transform: translateY(-3px) scale(1.012);
}
.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: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(41,59,99,0.09);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(41,59,99,0.18);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: #2C3140;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-right: 10px;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(44,70,120,0.07);
  padding: 22px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.feature-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.feature-item:hover {
  box-shadow: 0 4px 14px 0 rgba(41,59,90,0.12);
  transform: translateY(-2px);
}
ul.service-list {
  list-style: disc inside;
  padding-left: 0.5em;
  margin-bottom: 0;
}
ul.service-list li {
  margin-bottom: 14px;
  padding-left: 4px;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(120deg, #F6F7F9 90%, #D8B26622 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 48px;
}
.hero-section h1 {
  font-size: 2.8rem;
}
.hero-section p {
  font-size: 1.25rem;
  color: #40506b;
  margin-bottom: 14px;
}

/* HEADER, NAV AND FOOTER */
header {
  background: #fff;
  box-shadow: 0 1px 6px 0 rgba(44,70,120,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
}
header img {
  height: 44px;
  width: auto;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-family: var(--sans-font);
  font-size: 1rem;
  margin-left: 14px;
}
nav.main-nav a {
  color: var(--primary);
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.14s, color 0.16s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: #f6f7f9;
  color: var(--secondary);
}
nav.main-nav .cta-btn {
  background: var(--secondary);
  color: var(--onsecondary);
  border-radius: 8px;
  padding: 7px 18px;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(216,178,102,0.11);
  margin-left: 10px;
  border: none;
  transition: background 0.2s, color 0.15s, transform 0.12s;
}
nav.main-nav .cta-btn:hover, nav.main-nav .cta-btn:focus {
  background: #e5be73;
  color: #fff;
}

footer {
  background: #345270;
  padding: 38px 0 18px 0;
  font-family: var(--sans-font);
  color: #fff;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: #D8B266;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eee;
  margin-bottom: 0;
}
footer img {
  height: 18px;
  width: 18px;
  opacity: .86;
  filter: brightness(0.97);
}
footer small {
  color: #fff9;
  margin-top: 8px;
  font-size: 0.92rem;
  font-family: var(--body-font);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 14px;
  transition: color 0.16s;
  z-index: 1101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(40,59,100,0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  z-index: 2100;
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(0.63,0,0.47,1.28);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.3rem;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 22px 24px 8px 0;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 2120;
  overflow: visible !important;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 13vh 0 0 34px;
  width: 80vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 9px 0;
  border-radius: 5px;
  transition: background 0.14s, color 0.1s;
  min-width: 140px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D8B26633;
  color: var(--secondary);
}

/* Show/hide nav on mobile */
@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FLEX LAYOUT FOR GRIDS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 18px;
}

/* BADGES (about) */
.trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.trust-badges span {
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 16px 6px 10px;
  font-size: 1rem;
  gap: 7px;
  font-family: var(--sans-font);
  box-shadow: 0 1px 5px 0 rgba(44,70,120,0.11);
}
.trust-badges img {
  width: 20px; height: 20px;
  margin-right: 3px;
}

/* BUTTON STYLE */
.cta-btn, button.cta-btn, input[type=submit].cta-btn {
  background: var(--secondary);
  border: none;
  color: var(--onsecondary);
  border-radius: 8px;
  font-family: var(--sans-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.006em;
  padding: 12px 30px;
  box-shadow: 0 2px 12px 0 rgba(216,178,102,0.11);
  cursor: pointer;
  transition: background 0.19s, color 0.16s, transform 0.17s;
  margin-bottom: 10px;
  display: inline-block;
  min-width: 170px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #9b7d32;
  color: #fff;
  transform: translateY(-1px) scale(1.016);
  outline: none;
}

button {
  font-family: var(--sans-font);
}

/* TEXT SECTIONS (Info/Legal) */
.text-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 10px 0 rgba(41,59,99,0.055);
  padding: 28px 24px;
  margin-top: 15px;
  margin-bottom: 18px;
}
.text-section ul {
  margin-left: 1.09em;
}
.text-section li {
  margin-bottom: 9px;
}

/* ABOUT & CONTACT LISTS */
.about-section ul, .contact-section ul {
  margin-left: 1.1em;
  margin-bottom: 0.9em;
}
.about-section li, .contact-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* SERVICE LISTS */
ul.service-list, .service-list {
  margin-bottom: 0.5em;
  padding-left: 1.1em;
}

/* PAGE TITLE SPACING */
h1 + p, h1 + .cta-btn {
  margin-top: 6px;
}
h2 + ul, h2 + .feature-grid, h2 + p, h2 + .service-list, h2 + .card-container {
  margin-top: 6px;
}

/* ARTICLE/CONTENT FLEX WRAP */
main > section, .about-section, .contact-section, .services-section, .features-section, .testimonials-section {
  margin-bottom: 60px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid {
    gap: 16px;
  }
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .card, .testimonial-card, .feature-item {
    padding: 20px 13px;
  }
  .hero-section {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .hero-section {
    padding: 44px 0 32px 0;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: unset;
  }
  .section {
    margin-bottom: 40px;
    padding: 24px 7px;
  }
  .card, .feature-item {
    min-width: unset;
    width: 100%;
  }
  /* Hamburger always visible on mobile */
  .mobile-menu-toggle {
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .cta-btn {
    min-width: 90vw;
    padding-left: 0;
    padding-right: 0;
  }
  .trust-badges {
    gap: 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 7px;
  }
}

/* COOKIES CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffdfc;
  color: var(--primary);
  box-shadow: 0 -2px 32px 0 rgba(41,59,99,0.10);
  z-index: 2222;
  padding: 22px 12px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: fadein-banner 0.42s cubic-bezier(0.39,0,0.67,1.16);
}
@keyframes fadein-banner {
  from {transform: translateY(110%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  max-width: 420px;
  margin-right: 20px;
  margin-bottom: 0;
  color: #2C3140;
  font-size: 1rem;
  line-height: 1.5;
}
.cookie-btn {
  margin-right: 9px;
  background: var(--secondary);
  color: var(--onsecondary);
  border: none;
  border-radius: 7px;
  font-family: var(--sans-font);
  font-weight: 600;
  padding: 9px 22px;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 rgba(216,178,102,0.08);
  cursor: pointer;
  transition: background 0.13s, color 0.15s;
}
.cookie-btn.settings {
  background: #34527022;
  color: var(--primary);
  border: 1px solid #34527033;
}
.cookie-btn.reject {
  background: #fff;
  color: #9b7d32;
  border: 1px solid #D8B26688;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #e8c482;
  color: #212735;
}
.cookie-btn.settings:hover {
  background: #eaf0f7;
  color: #345270;
}
.cookie-btn.reject:hover {
  background: #f8ddb8;
  color: #784b11;
}

/* COOKIES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,70,120,0.64);
  z-index: 2244;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-banner 0.32s cubic-bezier(0.59,0,0.57,1.07);
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 7px 32px 0 rgba(41,59,99,0.18);
  padding: 32px 28px 26px 28px;
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modalappear 0.3s cubic-bezier(0.79,0,0.22,1.09);
}
@keyframes modalappear {
  from {transform: scale(0.89) translateY(30px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #888;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .modal-close:hover {
  color: #212735;
}
.cookie-modal h3 {
  font-size: 1.12rem;
  font-family: var(--sans-font);
  margin-bottom: 2px;
  color: var(--primary);
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-toggle {
  appearance: none;
  outline: none;
  width: 42px;
  height: 22px;
  border-radius: 14px;
  background: #e8e8eb;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.19s cubic-bezier(0.69,0,0.41,1.09);
  box-shadow: 0 1px 3px #0002;
}
.cookie-toggle:checked::before {
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* MODAL COLUMN FLEX ADJUST ON MOBILE */
@media (max-width: 480px) {
  .cookie-modal { min-width: unset; padding: 18px 7px; }
}

/* MISC */
::-webkit-scrollbar {
  width: 10px;
  background: #F6F7F9;
}
::-webkit-scrollbar-thumb {
  background: #D8B26666;
  border-radius: 6px;
}

@media (max-width: 820px) {
  .footer-contact {
    flex-direction: column;
    gap: 3px;
  }
  footer .container {
    gap: 15px;
  }
}

/* MICRO-INTERACTIONS */
a, .cta-btn, .cookie-btn, button, .feature-item, .card {
  transition: background 0.13s, color 0.13s, box-shadow 0.18s, transform 0.16s;
}

/* VISUAL HIERARCHY */
h1, h2, h3, .section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* SPACING BETWEEN CARDS/SECTIONS */
.card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child), .section:not(:last-child), .content-grid > *:not(:last-child) {
  margin-bottom: 20px;
}

/* DISABLED BUTTON */
button[disabled], .cta-btn[disabled], .cookie-btn[disabled] {
  background: #eee !important;
  color: #b7b7b7 !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Z-INDEX HANDLING */
header { z-index: 1000; }
.mobile-menu { z-index: 2100; }
.cookie-banner { z-index: 2222; }
.cookie-modal-overlay { z-index: 2244; }

/* A11Y - KEYBOARD FOCUS OUTLINE */
:focus {
  outline-color: #D8B266;
  outline-width: 3px !important;
  outline-style: solid;
  outline-offset: 3px;
}

/* --- END --- */
