/* ===================================================
   CSS RESET / NORMALIZE (vintage retro base + modern)
   =================================================== */
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,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;
}
html {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: var(--bg-main, #FAF3EA);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #45322e;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary, #1F5987);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,a:focus {
  color: var(--highlight, #FFCB47);
}
ul,ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li,ol li {
  margin-bottom: 8px;
  font-size: 1em;
}
button,input,select,textarea {
  font: inherit;
  border-radius: 0;
  background: none;
  border: none;
}
*:focus {
  outline: 2px dashed var(--primary, #1F5987);
  outline-offset: 2px;
}

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  /* Brand colors */
  --primary: #1F5987;     /* deep blue */
  --secondary: #FFF8F1;   /* cream (base bg) */
  --accent: #FFCB47;      /* sunshine yellow */
  --bg-main: #FAF3EA;     /* slightly faded retro paper */

  /* Retro Palette */
  --retro-pink: #EA9696;
  --retro-green: #98b370;
  --retro-brown: #7c6354;
  --retro-orange: #E89941;
  --retro-muted: #B6A39E;

  /* Typography */
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-retro: 'Montserrat', 'Cooper Black', 'Franklin Gothic Medium', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;

  /* Shadow/Elevation */
  --shadow-card: 0 3px 12px 0 rgba(124,99,84,0.11);
  --shadow-btn: 0 3px 8px 0 rgba(31,89,135,0.06);
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

/* ===========================
   TYPOGRAPHY & HEADINGS
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-retro);
  color: var(--primary);
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 1px 2px 0 var(--retro-muted, #B6A39E);
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.3rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 20px;
  font-size: 1.09em;
  color: #45322e;
}
strong {
  font-weight: 700;
  color: var(--retro-brown);
}
em {
  color: var(--retro-green);
  font-style: italic;
}
.small-print {
  font-size: 0.93em;
  color: #9e958f;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ===========================
   GENERAL LAYOUT CONTAINERS
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary, #FFF8F1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* ================================
   FLEXBOX LAYOUTS (NO GRID!)
   ================================ */
/* Feature grid cards on Homepage */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 230px;
  min-width: 210px;
  background: #FFE4B5;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 20px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.13s, box-shadow 0.13s;
  border: 3px solid #e89941;
  position: relative;
}
.feature-grid > div:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 7px 22px 0 rgba(234,150,150,0.19);
}
.feature-grid img {
  width: 48px;
  margin-bottom: 16px;
}

.service-list {
  list-style-type: circle;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-list li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: #FFF2D1;
  border-radius: var(--border-radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 1.02em;
}
.service-list span {
  color: var(--accent);
  font-weight: bold;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 10px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff6ed;
  border: 2.5px dashed var(--retro-pink);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 2px 13px 0 rgba(31,89,135,0.12);
  min-width: 260px;
  max-width: 410px;
  flex: 1 1 280px;
  font-size: 1.08em;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #43322e;
}
.testimonial-card .stars {
  font-family: var(--font-retro);
  color: var(--accent);
  font-size: 1.5em;
}
.testimonial-card div {
  color: #7c6354; /* retro brown for attribution */
}

/* Cards and grid for flexible layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #ede3db;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  position: relative;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.trusted-partner-badges {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 12px;
}

/* =========================
   HERO & CTA
   ========================= */
.hero {
  position: relative;
  background: repeating-linear-gradient(135deg, #fff8f1, #fff8f1 22px, #ffe4b5 24px, #ffe4b5 44px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 36px;
  margin-bottom: 46px;
  border-bottom: 5px solid var(--accent);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  text-shadow: 1.5px 2px 0 #ffe4b5;
  font-family: var(--font-retro);
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.17em;
  color: #674c37;
}

.cta, a.cta, button.cta {
  font-family: var(--font-retro);
  background: var(--accent);
  color: #3d2621;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 1.13em;
  font-weight: 700;
  text-shadow: none;
  letter-spacing: 1.1px;
  box-shadow: var(--shadow-btn);
  border: 2px solid #e89941;
  margin-top: 2px;
  margin-bottom: 2px;
  transition: background 0.17s, color 0.17s, box-shadow 0.13s;
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta:hover, .cta:focus {
  background: #ffe4b5;
  color: var(--primary);
  box-shadow: 0 2px 10px 0 rgba(255,203,71,0.15), 0 0px 2px 0 #FFD884;
  border-color: var(--primary);
}

/* =========================
   HEADER / NAV BAR
   ========================= */
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 3px 14px 0 rgba(31,89,135,0.10);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header a {
  color: #fff;
}
header img {
  max-height: 48px;
  margin-right: 25px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05em;
  font-weight: 600;
  padding: 7px 12px;
  text-shadow: 1px 1.2px 0 #163a56;
  border-radius: var(--border-radius-sm);
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a.cta {
  background: var(--accent);
  color: var(--primary);
  text-shadow: none;
  box-shadow: var(--shadow-btn);
  border: 1.4px solid #ffe4b5;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E89941;
  color: #fff;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #fff8f1;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(31,89,135,0.15);
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2em;
  border: none;
  padding: 4px 15px 4px 15px;
  border-radius: 28px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  position: relative;
  z-index: 120;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: #3d2621;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg,#FFF8F1 82%, #E89941 100%);
  box-shadow: 0 9px 36px 8px rgba(234,150,150,0.22);
  z-index: 200;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.23,1.07,.39,1), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--retro-pink);
  color: #fff;
  font-size: 2.2em;
  border: none;
  margin: 17px 18px 10px 0;
  padding: 0 16px 4px 16px;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: var(--shadow-btn);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 38px 0 0 34px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.28em;
  font-weight: 700;
  background: none;
  padding: 8px 0;
  border-bottom: 1.2px dotted var(--retro-orange);
  transition: color 0.14s, background 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--retro-pink);
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 850px) {
  header .container {
    flex-direction: row;
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 851px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #463f3a;
  color: #f5e7d1;
  padding: 46px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer img {
  max-height: 36px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.01em;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  text-decoration: underline dotted 1.1px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--retro-orange);
  color: #463f3a;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8f1;
  color: #543824;
  border-top: 3px solid var(--accent);
  z-index: 3000;
  box-shadow: 0 -3px 16px 0 rgba(233,153,65,0.13);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 14px 16px 14px;
  animation: cookiebanner-slidein 0.5s;
}
@keyframes cookiebanner-slidein {
  0% { transform: translateY(50px); opacity:0; }
  80% { transform: translateY(-6px); opacity:1; }
  100% { transform: translateY(0px); opacity:1; }
}
.cookie-banner__text {
  font-family: var(--font-body);
  font-size: 1em;
  margin-right: 26px;
  max-width: 440px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-retro);
  font-size: 1.07em;
  background: var(--accent);
  color: #332017;
  border: 2px solid var(--primary);
  border-radius: 22px;
  padding: 7px 23px 8px 23px;
  font-weight: 600;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, border 0.13s;
  box-shadow: 0 2px 9px #ffe4b58a;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-brown);
}
.cookie-btn.settings {
  background: #fff6ed;
  color: var(--primary);
  border-color: var(--accent);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-54%) scale(1);
  background: #fff8f1;
  z-index: 4000;
  min-width: 320px;
  max-width: 95vw;
  padding: 38px 30px 23px 32px;
  border-radius: var(--border-radius);
  box-shadow: 0 18px 99px 0 rgba(233,153,65,0.11);
  border: 2.9px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  animation: cookiemodal-popin 0.36s cubic-bezier(.18,1.11,.41,1);
}
@keyframes cookiemodal-popin {
  0% { opacity:0; transform: translate(-50%,-12%) scale(0.85); }
  90% { opacity:1; transform: translate(-50%,-57%) scale(1.06); }
  100% { opacity:1; transform: translate(-50%,-54%) scale(1); }
}
.cookie-modal__header {
  font-family: var(--font-retro);
  font-size: 1.29em;
  font-weight: 700;
  margin-bottom: 17px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.05em;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 13px;
}
.cookie-modal__close {
  position: absolute;
  right: 19px;
  top: 19px;
  background: var(--retro-pink);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 3px 13px 5px 13px;
  font-size: 1.45em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.14s, color 0.14s;
}
.cookie-modal__close:hover {
  background: var(--primary);
  color: var(--accent);
}

/* =========================
   RESPONSIVE STYLES
   ========================= */
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
  .feature-grid {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 730px;
  }
  .feature-grid > div {
    min-width: 170px;
    padding: 20px 12px 18px;
  }
  footer .container {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .content-wrapper, .feature-grid, .service-list, .testimonial-slider, .content-grid, .card-container, .footer-nav {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch;
  }
  .feature-grid > div {
    min-width: unset;
  }
  .testimonial-slider {
    align-items: stretch;
  }
  .hero {
    min-height: 144px;
    padding: 36px 0 23px;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 1.47rem;
  }
  .hero p {
    font-size: 1.03em;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .section {
    margin-bottom: 30px;
    padding: 24px 7px 26px 7px;
  }
  .card, .feature-grid > div, .testimonial-card {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
  .trusted-partner-badges {
    gap: 12px;
  }
  .footer-nav {
    gap: 8px;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 14px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .cookie-banner__text {
    font-size: 0.97em;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 15px 6px 12px 6px;
  }
  .cookie-modal {
    padding: 19px 7px 19px 12px;
    font-size: 0.97em;
  }
}

/* =========================
   UTILITY & EXTRAS
   ========================= */
::-webkit-scrollbar {
  width: 12px;
  background: #f6e4db;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
  border: 3px solid #ffe4b5;
}

/* Micro-interaction transition for all buttons */
button, .cta, .cookie-btn {
  transition: background 0.13s, color 0.13s, box-shadow 0.13s, border 0.13s;
}

/* Decorative retro background pattern for select sections */
.section {
  background-image: repeating-linear-gradient(135deg,#fff8f1 0, #fff8f1 24px, #fae6d3 28px, #fae6d3 44px);
  background-size: 70px 70px;
}

/* ===========================
   VINTAGE/RETRO EMBELLISHMENTS
   =========================== */
.section, .feature-grid > div, .testimonial-card, .card {
  border-radius: 14px 34px 18px 28px / 24px 14px 38px 14px;
  box-shadow: 0 3px 12px 0 rgba(140,105,80,0.09);
}
.testimonial-card {
  border-style: dashed;
  border-width: 2.5px;
  border-color: var(--retro-pink);
  background: #fff6ed;
}
.feature-grid > div {
  border-style: solid;
  border-color: #e89941;
}

/* Decorative pseudo for section titles */
h2:before {
  content: '\2605';
  color: var(--accent);
  font-size: 1.09em;
  margin-right: 8px;
  opacity: 0.78;
}

/* Custom list style for features (retro dots) */
ul li::before {
  content: '\25CF';
  color: var(--retro-green);
  margin-right: 8px;
  font-size: 0.85em;
}
ol li::before {
  content: '';
}

/* Blockquote/quote/retro style for testimonials */
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.08em;
  quotes: '“' '”';
  position: relative;
}
.testimonial-card p::before {
  content: open-quote;
  color: var(--retro-orange);
  font-size: 2.3em;
  position: absolute;
  left: -13px; top: -7px;
  opacity: 0.36;
}
.testimonial-card p::after {
  content: close-quote;
  color: var(--retro-orange);
  font-size: 2.3em;
  position: absolute;
  right: -17px; bottom: -6px;
  opacity: 0.36;
}

/* ===========================
   CUSTOM FORMS (if needed)
   =========================== */
input, textarea, select {
  background: #FFF2D1;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-sm);
  padding: 8px 11px;
  font-size: 1em;
  font-family: var(--font-body);
  color: #45322e;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
  background: #fff6ed;
}

/* ========== END ========== */
