/* ========= CSS RESET & BASE ========== */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fffbea;
  color: #23416C;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #23416C;
  text-decoration: none;
  transition: color .2s;
}
a:focus {
  outline: 2px dashed #F4B942;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 1.4em;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23416C;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-shadow: 0 3px 16px rgba(36,29,19,0.07);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, .text-section p, .subheadline {
  margin-bottom: 14px;
  color: #2e3b35;
  font-size: 1.08rem;
}

/* ============= VINTAGE RETRO ACCENTS & PATTERNS ============= */
body {
  background-color: #fdf6e3; /* warm off-white */
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffdf6;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(36,29,19,0.08);
  border: 2px solid #eae2c7;
}

.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
}

/* Classic pattern background for hero/cta */
.hero, .cta-banner {
  background: repeating-linear-gradient(-45deg, #f2e7c5, #f2e7c5 18px, #f4b9421a 18px, #f4b9421a 33px);
  border-radius: 0 0 18px 18px;
  border-bottom: 5px double #23416C;
}

.cta-banner {
  background-color: #f4b94211;
  background-image: repeating-linear-gradient(-45deg, #f4b9421a, #f4b9421a 10px, transparent 10px, transparent 28px);
  border-radius: 14px;
  border: 2px solid #f4b942;
}

/* ============ TYPOGRAPHY RETRO FONTS & EFFECTS ============ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600,700&display=swap');

h1, h2, h3, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
h1, h2 {
  letter-spacing: 2px;
  text-transform: uppercase;
}
.subheadline {
  font-size: 1.15rem;
  color: #6b3e1d;
  font-style: italic;
  background: #f4b9421a;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ============= BUTTONS ============== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: 0 4px 12px 0 #f4b94226;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s;
  outline: none;
}
.btn-primary {
  background: #F4B942;
  color: #23416C;
  border: 2px solid #cf9e27;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff7e1;
  color: #5d3600;
  box-shadow: 0 6px 16px 0 #f4b94244;
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: #23416C;
  color: #fffbe7;
  border: 2px solid #F4B942;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #133055;
  color: #F4B942;
  border-color: #fffbe7;
  transform: translateY(-2px) scale(1.04);
}

/* ============= HEADER & NAVIGATION ============= */
header {
  background: #fffaf2;
  border-bottom: 2px solid #f4b94244;
  position: relative;
  z-index: 10;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}
.header-flex a img {
  height: 52px;
  width: auto;
  margin-right: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 0 3px;
  transition: background .15s, color .15s;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #f4b94217;
  color: #975a16;
}
.main-nav a.btn-primary {
  margin-left: 20px;
}

/* ======== MOBILE MENU ========= */
.mobile-menu-toggle {
  display: none;
  background: #f4b942;
  color: #23416C;
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px #f4b94233;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, box-shadow .12s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #ffeecd;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffdfa;
  box-shadow: 0 4px 80px #23416c66;
  transform: translateX(-110vw);
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: transform 0.38s cubic-bezier(0.85,0,0.2,1), opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #23416C;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: 10;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background .12s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #f4b94222;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 22px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #23416C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 18px 32px;
  border-bottom: 1px solid #f4b94233;
  background: none;
  transition: background .14s, color .14s;
  border-radius: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #f4b94218;
  color: #F4B942;
}

/* Hide/Show header nav for mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================= HERO =============== */
.hero {
  padding: 56px 0 36px 0;
  text-align: center;
  min-height: 28vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ============= FLEX SPACING MANDATORY PATTERNS ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffef9;
  border-radius: 13px;
  box-shadow: 0 2px 10px #f4b9420f;
  border: 1.6px solid #f4b94251;
  padding: 26px 20px 20px 20px;
}
.content-grid, .feature_grid, .step-list, .facts-grid, .case-study-grid, .contact-details {
  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: #fff7e4;
  border-radius: 13px;
  box-shadow: 0 5px 32px #f4b94211;
  border: 1.5px solid #ddb455;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== SPECIAL COMPONENTS ========== */
.feature_grid > div, .facts-grid > div, .step-list > div, .case {
  background: #fffbe7;
  border-radius: 12px;
  box-shadow: 0 1.5px 14px #23416c17;
  border: 1.7px solid #f4b94233;
  width: 230px;
  min-width: 180px;
  flex: 1 1 210px;
  padding: 18px 13px 16px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .13s;
}
.feature_grid > div:hover, .facts-grid > div:hover, .step-list > div:hover, .case:hover {
  box-shadow: 0 7px 28px #f4b94233, 0 3px 40px #23416c17;
  transform: scale(1.03) translateY(-2px);
}
.feature_grid img, .facts-grid img, .step-list img, .case img {
  width: 46px;
  margin-bottom: 8px;
}
.feature_grid h3, .facts-grid span, .step-list span, .case h3 {
  color: #492C09;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 9px;
  line-height: 1.25;
  font-size: 1.18rem;
}

/* Services List */
.service_list {
  margin-top: 14px;
  margin-bottom: 4px;
  padding-left: 20px;
  font-size: 1.09rem;
}
.service_list li {
  margin-bottom: 7px;
  list-style: disc inside;
}
.disclaimer {
  background: #f8e9d3;
  border-radius: 13px;
  border: 2px dashed #f4b942cc;
  padding: 18px 17px 20px 25px;
  margin-top: 20px;
  color: #9e6928;
}

/* Testimonials */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.testimonial-card p {
  color: #3c2a13;
  font-style: italic;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #23416C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-left: 18px;
}

/* Accordion FAQ */
.accordion-faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff7e4;
  border-radius: 9px;
  border: 1.3px solid #ddb455;
  box-shadow: 0 2px 10px #f4b94212;
  padding: 18px 19px;
  margin-bottom: 12px;
  transition: box-shadow .18s, background .13s;
}
.faq-item:hover {
  background: #ffebb2;
  box-shadow: 0 4px 20px #f4b94226;
}
.faq-item h3 {
  font-size: 1.045rem;
  color: #a06222;
  margin-bottom: 8px;
}

/* ============== Contact Details ============== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 19px 0 14px 0;
  align-items: flex-start;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 200px;
  flex: 1 1 200px;
}
.contact-details img {
  width: 36px;
  filter: sepia(0.2) hue-rotate(-10deg) saturate(1.2);
}

/* Text Section & Map */
.text-section {
  margin-bottom: 20px;
}
.text-section img {
  margin-top: 18px;
  border: 1.5px dotted #ddb455;
  border-radius: 7px;
  padding: 10px;
}

/* =============== FOOTER =============== */
footer {
  background: #ece5d9;
  border-top: 3px double #f4b942cc;
  padding-top: 27px;
  padding-bottom: 8px;
  margin-top: 40px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.01rem;
  align-items: flex-start;
}
.footer-links a {
  color: #23416C;
  opacity: 0.86;
  transition: color .16s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: #F4B942;
}
.footer-links span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #945e21;
  margin-top: 3px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.footer-brand img {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #fffdf7;
  border: 2px solid #f4b94233;
}
.footer-brand > div {
  color: #573b23;
}
.footer-brand strong {
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-brand small {
  font-size: 0.95rem;
}

/* ============= Cookie Consent Banner ============= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fcf5e0;
  border-top: 2px solid #ddb455;
  box-shadow: 0 -3px 16px #dbaa322f;
  padding: 27px 16px 21px 16px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 1;
  transition: transform 0.30s cubic-bezier(.83,.19,.43,1), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  font-size: 1.05rem;
  color: #23416C;
  margin-bottom: 7px;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-block;
  padding: 9px 23px;
  font-size: 1rem;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .13s;
}
.cookie-btn.accept {
  background: #F4B942;
  color: #23416C;
  border: 2px solid #cf9e27;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffeeba;
  color: #7a4f11;
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: #fffdfa;
  color: #9e2e15;
  border: 2px solid #ca6356;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffc3b0;
  color: #ad2618;
  transform: scale(1.03);
}
.cookie-btn.settings {
  background: #ece5d9;
  color: #23416C;
  border: 2px solid #4E3E23;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ead4b8;
  color: #6a530c;
  transform: scale(1.03);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23416c44;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fffdf6;
  border-radius: 16px;
  box-shadow: 0 7px 44px #23416c33;
  max-width: 370px;
  width: 90vw;
  padding: 32px 26px 22px 26px;
  text-align: left;
  border: 3px solid #ddb455;
  position: relative;
  animation: modalIn 0.33s cubic-bezier(0.68,0,0.24,1);
}
@keyframes modalIn {
  0% { transform: scale(0.9) translateY(24px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.14rem;
  margin-bottom: 14px;
  color: #a5782a;
}
.cookie-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-modal-row label {
  font-size: 1.04rem;
  color: #23416C;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal-row input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #F4B942;
  outline: 2px solid #23416C;
  cursor: pointer;
  border-radius: 5px;
}
.cookie-modal-row input[type='checkbox'][disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #8b7726;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 19px;
  width: 35px;
  height: 35px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f7ecd0;
}
/* End Cookie Consent Popup */

/* =========== Responsive Design ========== */
@media (max-width: 1020px) {
  .header-flex {
    padding: 10px 0;
  }
  .footer-flex {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .feature_grid > div, .facts-grid > div, .step-list > div, .case {
    min-width: 140px;
    width: 100%;
    flex: 1 1 100%;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 860px) {
  .hero {
    padding: 30px 0 18px 0;
    min-height: auto;
  }
  .feature_grid, .facts-grid, .step-list, .case-study-grid, .contact-details {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .content-grid, .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .section, .cta-banner, .content-wrapper {
    padding: 22px 10px;
  }
  .testimonials {
    margin-bottom: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .hero .content-wrapper {
    gap: 9px;
  }
  .container {
    padding: 0 3vw;
  }
  .section {
    padding: 23px 6px;
  }
  .cta-banner {
    padding: 17px 4px;
  }
  .footer-brand img {
    width: 40px;
    height: 40px;
  }
  .footer-brand strong {
    font-size: 0.98rem;
  }
  .footer-brand small {
    font-size: 0.83rem;
  }
  .footer-links {
    font-size: 0.93rem;
  }
  .mobile-nav a {
    font-size: 1.13rem;
    padding: 15px 18px;
  }
  .mobile-menu {
    padding-top: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 8px;
  }
  .section {
    margin-bottom: 38px;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .section, .cta-banner, .content-wrapper{
    padding: 10px 1.5vw;
  }
  .testimonial-meta {
    margin-left: 0;
    font-size: 0.92rem;
  }
}

/* === Utility and General Classes === */
.text-center { text-align: center !important; } 
.d-block { display: block !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-4 { margin-bottom: 4px !important; }

/* ========== Micro-Interactions (Transitions) ========== */
.card, .feature_grid > div, .facts-grid > div, .step-list > div, .case, .testimonial-card, .accordion-faq > .faq-item {
  transition: box-shadow .21s cubic-bezier(.72, .23, .19, .85), transform .14s cubic-bezier(.72, .23, .19, .85);
}
.card:hover, .feature_grid > div:hover, .facts-grid > div:hover, .step-list > div:hover, .case:hover {
  box-shadow: 0 7px 24px 0 #f4b9423d, 0 3px 40px #23416c14;
  transform: scale(1.04) translateY(-2px);
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  transform: scale(.99);
}
input:focus, textarea:focus, select:focus {
  border-color: #F4B942;
  outline: none;
  box-shadow: 0 0 0 2px #f4b94233;
}

/* ========== Success & Notification ========== */
.alert-success {
  background: #f4b94236;
  color: #29552e;
  border-left: 6px solid #F4B942;
  border-radius: 7px;
  padding: 12px 18px;
  margin-bottom: 12px;
}

/* ========== Forms ========== */
form input, form textarea, form select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 9px 12px;
  margin-bottom: 14px;
  border: 1.5px solid #f4b94255;
  border-radius: 9px;
  width: 100%;
  background: #fffefa;
  transition: border .14s, box-shadow .16s;
}

/* ============= Misc Retro/Nostalgic Borders/Patterns ============= */
hr {
  border: none;
  border-bottom: 2.5px dotted #ddb455;
  margin: 36px 0 30px;
}

/* ======= Hide outline for mouse, show for keyboard/tab ======= */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.5px dashed #F4B942;
  outline-offset: 3px;
}

/* ======= Miscellaneous Classes from Content ======= */
.case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.case {
  width: 270px;
  min-width: 180px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.facts-grid > div {
  align-items: center;
  text-align: left;
  min-width: 170px;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.step-list > div {
  width: 195px;
}

.faq-section {
  padding-bottom: 10px;
}
.faq-section h1, .faq-section h2 {
  text-align: center;
}

/* ============= Pattern Overlay (retro) ============= */
.section, .cta-banner {
  position: relative;
}
.section:before, .cta-banner:before {
  content: '';
  pointer-events: none;
  display: block;
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  z-index: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(135deg, #f4b94211 0 3px, transparent 3px 10px);
}
.section > *, .cta-banner > * {
  position: relative;
  z-index: 1;
}

/* Prevent content overlap */
main > section:not(:last-child) {
  margin-bottom: 40px;
}

/* =========== Print ============= */
@media print {
  nav, .main-nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  header, footer, .cta-banner {
    background: #fff !important;
  }
}
