/* ===========================
   CSS RESET & NORMALIZATION
   =========================== */
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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html { 
  scroll-behavior: smooth;
  background: #F8F9FC;
}
body {
  background: #F8F9FC;
  color: #3c322d;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #20BFA9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f07f47;
}
ul, ol {
  padding-left: 1.6em;
}
strong { font-weight:700; }

/* ===============
     FONT IMPORTS (fallback if local missing)
   =============== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* =======================
   VINTAGE RETRO COLORS & FONTS
   ======================= */
:root {
  --primary: #253858;
  --secondary: #20BFA9;
  --accent: #F8F9FC;
  /* Vintage/Retro palette */
  --retro-orange: #f07f47;
  --retro-yellow: #f9dc5c;
  --retro-red: #e4572e;
  --retro-blue: #355c7d;
  --retro-brown: #7a5c2e;
  --retro-ivory: #fff9e7;
  --button-shadow: 0 2px 6px 0 rgba(68,52,27,.10);
  --card-shadow: 0 6px 24px 0 rgba(46,32,27,.11);
}


/*
* =========
* TYPOGRAPHY
* =========
*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -2px;
  font-weight: 900;
  color: var(--retro-blue);
  text-shadow: 1px 1px 0 var(--retro-yellow);
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--retro-orange);
  letter-spacing: -1px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--retro-brown);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #554838;
}
.text-section p,
.text-section ul {
  color: #554838;
  font-size: 1.06rem;
  margin-bottom: 16px;
}

/* ========
   LAYOUT BASE
   ======== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 3px 24px 0 rgba(46,32,27,.07);
  position: relative;
}
@media (max-width: 768px) {
  .section { padding: 28px 4vw; }
}

/*
* FLEXBOX LAYOUTS
*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  flex: 1 1 220px;
  background: var(--retro-ivory);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
  border: 2px solid #ede0c4;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 30px 0 rgba(70,53,27,0.18);
  transform: translateY(-3px) scale(1.02);
  z-index: 2;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .content-grid { flex-direction: column; }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
}

/* ================
   SPECIAL FLEXBOX GRIDS FOR PAGE COMPONENTS
================ */
.feature-grid, .service-highlights, .service-list, .solution-list, .case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 10px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.feature-grid > div, .service-highlights > div, .solution-list > div, .service-list > div {
  flex: 1 1 240px;
  min-width: 220px;
  padding: 22px 14px 18px 14px;
  border-radius: 15px;
  background: var(--retro-ivory);
  box-shadow: 0 1px 4px rgba(202,168,130,0.12);
  border: 1.5px dashed #e0cba7;
  text-align: center;
  margin-bottom: 20px;
  transition: box-shadow .21s, border-color .23s;
}
.feature-grid > div:hover, .service-highlights > div:hover, .solution-list > div:hover, .service-list > div:hover {
  box-shadow: 0 8px 24px 0 rgba(46,32,27,.14);
  border-color: var(--retro-orange);
  background: #fff4dd;
}

.case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.case-study-highlights {
  flex: 1 1 260px;
  background: #fff9e7;
  border-radius: 14px;
  border: 1.5px solid #fbe4b1;
  padding: 30px 30px 14px 30px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px 0 rgba(161,112,41,0.09);
}

/* ================
   SECTION STYLING & VISUAL HIERARCHY
================ */
main > section:not(:last-child) {
  margin-bottom: 48px;
}
.text-section { margin-bottom: 0; }
.section .container { padding: 0; }

/* ================
   BUTTONS
================ */
.cta-btn, 
button, 
input[type="submit"], 
input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  background: var(--retro-orange);
  color: #fff;
  padding: 15px 32px;
  border-radius: 30px;
  border: none;
  box-shadow: var(--button-shadow);
  cursor: pointer;
  letter-spacing: .6px;
  margin-top: 10px;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(216,150,61,0.17);
  outline: none;
  transition: box-shadow .14s, background .18s, transform .2s, color .18s;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus {
  background: var(--retro-red);
  color: #fff9e7;
  box-shadow: 0 4px 17px 0 rgba(224,122,48,0.23);
  transform: translateY(-2px) scale(1.03);
}

.button-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.button-secondary:hover {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-color: var(--retro-brown);
}

/* ================
   HEADER & NAVIGATION
================ */
header {
  background: var(--retro-brown);
  padding: 18px 0 14px 0;
  box-shadow: 0 4px 24px 0 rgba(46,32,27,0.11);
  position: sticky;
  top: 0;
  z-index: 100;
}
header > *, header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
header nav {
  flex: 1;
  gap: 20px;
  margin-left: 36px;
}
header nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 18px;
  transition: background .19s, color .19s;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}
header a.cta-btn {
  background: var(--retro-red);
  color: var(--accent);
  padding: 12px 22px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-left: 16px;
}
header a.cta-btn:hover {
  background: var(--retro-orange);
  color: var(--primary);
}
header img {
  width: 155px;
  height: auto;
}

/* ================
   MOBILE NAVIGATION
================ */
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: none;
  font-size: 1.9rem;
  border-radius: 40px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px 0 rgba(80,60,25,0.09);
  cursor: pointer;
  transition: background .22s, color .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--retro-orange);
  color: #fff;
}

@media (max-width: 900px) {
  header nav, header a.cta-btn { display: none !important; }
  .mobile-menu-toggle { display: flex!important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--retro-blue);
  z-index: 3100;
  transform: translateX(-105vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  transition: transform 0.38s cubic-bezier(.35,1.03,0.32,1);
  box-shadow: 0 10px 40px rgba(50,21,2,0.23);
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  font-size: 2.2rem;
  border: none;
  border-radius: 40px;
  margin-left: 16px;
  margin-bottom: 22px;
  box-shadow: 0 2px 9px 0 rgba(80,60,25,0.08);
  transition: background .14s, color .14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--retro-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 90vw;
  margin-left: 24px;
}
.mobile-nav a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 10px 0;
  border-radius: 11px;
  transition: color .17s, background .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--retro-orange);
  padding-left: 16px;
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ====================
   MAIN CONTENT
==================== */
main {
  min-height: 60vh;
}

/* HEADER/BREADCRUMB SHADOW-ANCHOR */
@media (max-width: 480px) {
  header img { width: 120px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
}

/* ===================
   FOOTER
=================== */
footer {
  background: var(--retro-brown);
  color: var(--accent);
  padding: 40px 0 18px 0;
  border-top: 8px double var(--retro-yellow);
  margin-top: 72px;
  box-shadow: 0 -4px 18px 0 rgba(44,32,17,0.10);
}
.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}
.footer-menu a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .1px;
  padding: 2px 10px;
  border-radius: 16px;
  transition: background .17s, color .15s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--retro-orange);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  line-height: 1.6;
  background: rgba(255,254,232,0.03);
  border-radius: 12px;
  padding: 5px 12px;
}
.footer-contact a {
  color: var(--retro-yellow);
  font-weight: 500;
  text-decoration: underline;
  transition: color .18s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--retro-orange);
}
.footer-copy {
  text-align: center;
  color: #f0e9cd;
  font-size: 0.98rem;
  margin-top: 20px;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .footer-contact {
    flex-direction: column;
    gap: 9px;
    align-items: center;
  }
  .footer-menu { gap: 11px; }
  footer { padding: 32px 0 14px; }
}


/* ===================
   TESTIMONIALS
=================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff9e7;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(161,112,41,0.14);
  padding: 20px 28px;
  min-width: 250px;
  max-width: 430px;
  margin-bottom: 20px;
  border: 2px solid #fad698;
  transition: border-color .17s, box-shadow .21s;
}
.testimonial-card:hover {
  border-color: var(--retro-orange);
  box-shadow: 0 10px 32px rgba(172,132,19,0.23);
}
.testimonial-card p {
  color: #5d4d23;
  font-size: 1.15rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
}


/* ===================
   RETRO/VINTAGE NOSTALGIC ELEMENTS
=================== */
.section {
  background-image: repeating-linear-gradient(135deg, #fff9e7 0 12px, transparent 13px 20px);
  border: 3px double #edca7e;
}
.feature-grid > div, .service-highlights > div, .solution-list > div, .service-list > div {
  background-image: repeating-linear-gradient(90deg, #faf3db .2em, #fff9e7 .3em, transparent .5em 100%);
}
.case-study-highlights {
  background-image: repeating-linear-gradient(90deg,#fff8d4 0 8px,#fffce1 8px 14px);
}
.testimonial-card {
  background-image: repeating-linear-gradient(120deg,#fffbe2 0 8px,#fbe8a1 8px 16px);
}

/* retro line break decoration */
hr {
  border: none;
  border-top: 3px double #e4d4ad;
  margin: 24px 0;
}

/* ================
   FORMS & LIST STYLES
================ */
ul, ol {
  margin-bottom: 20px;
}
ol {
  counter-reset: customlist;
  list-style: none;
}
ol > li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 30px;
}
ol > li:before {
  counter-increment: customlist;
  content: counter(customlist) '.';
  position: absolute;
  left: 0;
  color: var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
ul > li {
  margin-bottom: 12px;
}

/* ================
   MISC SMALL COMPONENTS
================ */
blockquote {
  border-left: 6px solid var(--retro-orange);
  background: #fff9e7;
  color: #5d4713;
  font-style: italic;
  padding: 24px 24px 24px 32px;
  margin: 28px 0 34px 0;
  border-radius: 12px;
  font-size: 1.15rem;
}

/* ================
   COOKIE CONSENT BANNER & MODAL
================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fffbe2;
  color: #4A3514;
  box-shadow: 0 -2px 22px rgba(100,70,10,0.10);
  font-size: 1rem;
  padding: 22px 8vw 18px 8vw;
  z-index: 6000;
  transition: transform .36s cubic-bezier(.18,1.12,.18,1);
  border-top: 3px solid #f6d379;
}
.cookie-banner.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 1;
  margin-right: 22px;
  font-size: 1.02rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-banner button {
  background: var(--retro-orange);
  color: #fff;
  border: none;
  border-radius: 26px;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 7px 20px;
  margin: 0 2px;
  box-shadow: 0 1px 8px rgba(240,127,71,0.07);
  cursor: pointer;
  transition: background .18s, box-shadow .19s, color .14s;
}
.cookie-banner button.cookie-settings {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: 2px solid #e4c179;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-red);
  color: #fff9e7;
  box-shadow: 0 6px 24px rgba(240,127,71,.19);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 20px 3vw 16px 3vw;
  }
  .cookie-banner .cookie-banner-text {
    margin-right: 0;
  }
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 7000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,23,2,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffce8;
  border: 4px double #fad698;
  border-radius: 25px;
  padding: 34px 48px 29px 48px;
  min-width: 300px;
  max-width: 98vw;
  box-shadow: 0 8px 28px 0 rgba(220,130,64,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  color: var(--retro-orange);
  font-family: 'Montserrat',Arial,sans-serif;
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--retro-orange);
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 19px;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: none;
  font-size: 1.57rem;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--retro-orange);
  color: #fff;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 8vw 18px 8vw;
  }
}

/* ================
   RESPONSIVE
================ */
@media (max-width: 1100px) {
  .feature-grid, .service-highlights, .solution-list, .service-list, .case-study-grid { gap: 16px; }
  .footer-contact { gap: 18px 11px; }
  .container { max-width: 96vw; }
}
@media (max-width: 820px) {
  .feature-grid > div, .service-highlights > div, .solution-list > div, .service-list > div, .case-study-highlights, .testimonial-card {
    min-width: 170px;
    padding: 12px 7vw;
    font-size: 0.97rem;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 3vw; }
  .section { padding: 20px 4vw; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.08rem; }
  .section { border-radius: 13px; }
  .footer-contact div { font-size: .95rem; }
  .cta-btn { font-size: 0.97rem; padding:10px 13vw; }
}

/* ===============
  MICRO ANIMATIONS & HOVER INTERACTIONS
================ */
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal-close {
  transition: background .16s, color .15s, box-shadow .18s, transform .16s;
}
.card, .feature-grid > div, .service-highlights > div, .solution-list > div, .service-list > div, .case-study-highlights, .testimonial-card {
  transition: transform .2s, box-shadow .23s, border-color .17s;
}
.card:hover, .feature-grid > div:hover, .service-highlights > div:hover, .solution-list > div:hover, .service-list > div:hover, .case-study-highlights:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 7px 26px rgba(217,137,58,0.16);
  z-index:2;
}

/* =======
 ACCESSIBILITY: Focus
======== */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--retro-red);
  outline-offset: 4px;
}

/* ===============
  Hide visually but accessible
================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
