/* 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;
}
footer div {
  color: white;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F7F3;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* BRAND & RETRO FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&display=swap');

:root {
  --primary: #18313D;
  --primary-rgb: 24,49,61;
  --secondary: #73B09A;
  --accent: #F7F7F3;
  --retro-yellow: #F2CD5D;
  --retro-red: #CB4629;
  --retro-blue: #47749B;
  --retro-brown: #A67C52;
  --retro-green: #009E6D;
  --surface: #FAF3DC;
  --border: #E2D5B6;
  --shadow: rgba(24,49,61,0.06);

  --font-display: 'Montserrat', 'Roboto Slab', Georgia, serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-retro: 'Roboto Slab', Georgia, serif;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-md: 0 4px 16px var(--shadow);
  --shadow-sm: 0 2px 8px var(--shadow);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--surface);
  color: var(--primary);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

/************************************/
/* HEADER & NAVIGATION             */
/************************************/
header {
  background: var(--retro-yellow);
  border-bottom: 4px solid var(--retro-brown);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 28px;
}
.logo {
  min-width: 120px;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-retro);
  font-size: 17px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.15s;
  padding: 6px 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--retro-red);
  text-decoration: underline wavy var(--retro-red) 2px;
}
.cta.primary {
  background: var(--retro-red);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-retro);
  font-size: 18px;
  font-weight: bold;
  padding: 12px 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--retro-red);
  transition: 
    background 0.22s,
    color 0.22s,
    box-shadow 0.18s,
    border-color 0.15s;
  margin-left: 10px;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #fff;
  color: var(--retro-red);
  border-color: var(--retro-red);
}
.cta.secondary {
  background: var(--retro-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-retro);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 28px;
  margin-top: 12px;
  border: 2px solid var(--retro-blue);
  transition: 
    background 0.22s,
    color 0.22s,
    border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: #fff;
  color: var(--retro-blue);
  border-color: var(--retro-blue);
}

/********************/
/* MOBILE NAVIGATION */
/********************/
.mobile-menu-toggle {
  display: none;
  background: var(--retro-red);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: var(--shadow-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--retro-red);
  margin-left: 18px;
  z-index: 40;
  transition: background 0.22s, color 0.22s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #fff;
  color: var(--retro-red);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.85,0,0.17,1);
  z-index: 100;
  box-shadow: 0 0 24px rgba(24,49,61,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 32px;
  padding-left: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--retro-yellow);
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--retro-red);
  border: 2px solid var(--retro-red);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--retro-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
  padding-left: 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--primary);
  padding: 16px 0;
  border-bottom: 1px dotted var(--border);
  transition: color 0.14s, background 0.15s;
  border-radius: 0;
  min-width: 200px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--retro-yellow);
}

@media (max-width: 1024px) {
  header .main-nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/********************************************/
/* VINTAGE RETRO HERO & SECTION PATTERNS    */
/********************************************/
.hero {
  background: linear-gradient(90deg, var(--retro-yellow) 60%, var(--retro-blue) 120%);
  border-bottom: 4px solid var(--retro-brown);
  padding: 48px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 600px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0px 2px var(--border);
  line-height: 1.13;
}
.hero p {
  font-size: 20px;
  color: var(--retro-brown);
  font-family: var(--font-retro);
  font-weight: 700;
}

/**************************/
/* SECTION SPACING & FLEX  */
/**************************/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px 32px 8px;
    margin-bottom: 36px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  .text-section {
    gap: 14px;
  }
}
h1, h2, h3, h4 {
  font-family: var(--font-retro);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 48px;
  margin-bottom: 18px;
  margin-top: 0;
}
h2 {
  font-size: 32px;
  margin-bottom: 16px;
  margin-top: 0;
}
h3 {
  font-size: 20px;
  margin-bottom: 5px;
  margin-top: 0;
}
h4 {
  font-size: 18px;
}

p, li, div, span {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--primary);
}

/************************************/
/* FLEX LAYOUTS FOR CONTENT GRIDS   */
/************************************/
.feature-grid,
.service-cards,
.content-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.case-study-list,
.article-previews,
.guide-categories,
.faq-list,
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/****************************************/
/* FEATURE CARD & SERVICE CARD STYLING   */
/****************************************/
.feature-grid > li, .service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px 24px 22px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature-grid > li:hover, .service-card:hover {
  box-shadow: 0 6px 28px rgba(24,49,61,0.15);
  transform: translateY(-4px) scale(1.023);
  border-color: var(--retro-yellow);
}
.feature-grid img, .service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
.feature-grid h3, .service-card h3 {
  font-family: var(--font-retro);
  font-size: 22px;
  color: var(--retro-blue);
  margin-bottom: 6px;
}
.feature-grid p, .service-card p {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 0;
  font-family: var(--font-body);
}
.service-price {
  display: inline-block;
  font-family: var(--font-retro);
  font-weight: bold;
  color: var(--retro-red);
  background: var(--retro-yellow);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-top: 10px;
  letter-spacing: 0.08em;
  border: 1px solid var(--retro-brown);
}
.service-cards {
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service-card {
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
}

/***************************************/
/* TESTIMONIALS CARDS, SHADOW & TYPO   */
/***************************************/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px;
  background: #fffbe1;
  border-left: 8px solid var(--retro-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  min-width: 200px;
  max-width: 640px;
}
.testimonial-card .testimonial-text {
  font-family: var(--font-retro);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.testimonial-details {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--retro-brown);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-details span {
  font-size: 18px;
  color: var(--retro-yellow);
  margin-left: 5px;
  letter-spacing: 2px;
}
/**************************************/
/* FAQ, CASE STUDY & ARTICLE LISTS    */
/**************************************/
.faq-list > li {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--retro-blue);
  background: #fff;
  padding: 18px 22px 14px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-list h3 {
  font-size: 18px;
  color: var(--retro-red);
  font-family: var(--font-retro);
  margin-bottom: 8px;
}
.case-study-list > li, .article-previews > li, .guide-categories > li {
  background: #fff;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--retro-yellow);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 10px;
}

/*************************************/
/* CTA HIGHLIGHT SECTION             */
/*************************************/
.cta-highlight {
  background: var(--retro-yellow);
  border-radius: var(--radius-lg);
  padding: 48px 0;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  margin-bottom: 60px;
}
.cta-highlight h2 {
  color: var(--retro-red);
  font-family: var(--font-retro);
  font-size: 34px;
  margin-bottom: 6px;
}
.cta-highlight p {
  font-size: 18px;
  color: var(--primary);
  font-family: var(--font-body);
}

/*************************/
/* FOOTER                 */
/*************************/
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-legal a {
  color: #fffbe1;
  font-family: var(--font-retro);
  font-size: 16px;
  opacity: 0.85;
  transition: color 0.19s;
  margin-bottom: 2px;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--retro-yellow); }
.social-icons {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
}
.footer-brand-info {
  font-size: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
@media (max-width: 800px) {
  .footer-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-brand-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/**********************************/
/* RESPONSIVE LAYOUT & FLEX DIR   */
/**********************************/
@media (max-width: 900px) {
  .feature-grid, .service-cards, .content-grid, .card-container {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .service-cards, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > li, .service-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .cta-highlight h2 { font-size: 24px; }
}

/*************************************/
/* TABLES (if present in text-section)*/
/*************************************/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
}
th, td {
  border: 1.5px solid var(--border);
  padding: 12px 14px;
  font-family: var(--font-body);
}
th {
  background: var(--retro-yellow);
  color: var(--primary);
  font-family: var(--font-retro);
}

/******************/
/* LINKS & BUTTON */
/******************/
a {
  color: var(--retro-blue);
  transition: color 0.14s, background 0.15s;
}
a:hover, a:focus {
  color: var(--retro-red);
}
button, .cta {
  cursor: pointer;
}

/***********************************/
/* COOKIE BANNER & PREFERENCES MODAL*/
/***********************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe1;
  color: var(--primary);
  border-top: 3px solid var(--retro-brown);
  box-shadow: 0 -6px 18px rgba(24,49,61, 0.09);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  font-size: 16px;
  font-family: var(--font-body);
  animation: slideUpIn 0.4s;
}
@keyframes slideUpIn {
  from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-banner .buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-retro);
  font-size: 16px;
  font-weight: bold;
  border: 2px solid var(--retro-blue);
  background: var(--retro-blue);
  color: #fff;
  margin-left: 0;
  transition: background 0.16s, color 0.16s, border-color 0.14s;
}
.cookie-btn.accept {
  background: var(--retro-green);
  border-color: var(--retro-green);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff;
  color: var(--retro-green);
}
.cookie-btn.reject {
  background: var(--retro-red);
  border-color: var(--retro-red);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: var(--retro-red);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  border-color: var(--retro-yellow);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: var(--retro-yellow);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(24,49,61, 0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  animation: popupIn 0.2s;
}
@keyframes popupIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-content {
  background: #fffbe1;
  border-radius: var(--radius-md);
  border: 3px solid var(--retro-brown);
  box-shadow: var(--shadow-md);
  padding: 38px 36px 28px 36px;
  min-width: 320px;
  max-width: 96vw;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 20px;
  background: var(--retro-yellow);
  color: var(--retro-red);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--retro-red);
  cursor: pointer;
}
.cookie-modal-close:hover { background: var(--retro-red); color: #fff; }
.cookie-categories {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-family: var(--font-retro);
  font-size: 17px;
  padding: 8px 0;
}
.cookie-category-toggle {
  min-width: 40px;
  height: 24px;
  appearance: none;
  border: 2px solid var(--retro-blue);
  border-radius: 12px;
  background: var(--surface);
  outline: none;
  position: relative;
  cursor: pointer;
  transition: border 0.13s;
}
.cookie-category-toggle:checked {
  border: 2px solid var(--retro-green);
  background: var(--retro-green);
}
/* Custom switch thumb */
.cookie-category-toggle {
  position: relative;
}
.cookie-category-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--retro-red);
  position: absolute;
  left: 2px;
  top: 1.7px;
  transition: left 0.18s, background 0.16s;
}
.cookie-category-toggle:checked:before {
  left: 20px;
  background: var(--retro-green);
}
/* Label for 'always on' essential cookies */
.cookie-category[disabled] label,
.cookie-category .always-on {
  color: var(--retro-brown);
  opacity: 0.7;
  font-style: italic;
  font-size: 15px;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 20px 8px;
    font-size: 15px;
    align-items: flex-start;
  }
  .cookie-modal-content {
    padding: 26px 7vw 18px 7vw;
    min-width: 0;
  }
}

/************************************/
/* MICRO-INTERACTIONS & TRANSITIONS */
/************************************/
.card, .service-card, .feature-grid > li, .cta-highlight, .testimonial-card, .faq-list > li {
  transition: box-shadow 0.15s, transform 0.16s, border 0.16s;
}
b, strong {
  font-weight: bold;
  color: var(--retro-red);
  font-family: var(--font-retro);
}
em {
  font-style: italic;
  color: var(--retro-brown);
}
/* Decorative retro dot pattern (optional, can be added via :before) */
.section-pattern {
  position: absolute;
  right: 0;
  top: 20px;
  width: 120px;
  height: 48px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

/****************************************/
/* FORM CONTROLS (Contact and Cookie)    */
/****************************************/
input, textarea, select {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 16px;
  margin-bottom: 14px;
  margin-top: 4px;
  width: 100%;
  color: var(--primary);
  font-family: var(--font-body);
  box-shadow: 0 1px 3px rgba(24,49,61,0.03);
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--retro-yellow);
  background: #fffbe1;
}

/**************************/
/* SPACING UTILITIES      */
/**************************/
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.gap-16 { gap: 16px !important; }

/***********************************/
/* RETRO PATTERNS (headline dots)   */
/***********************************/
h2:before {
  content: '•';
  color: var(--retro-blue);
  margin-right: 8px;
  font-size: 0.8em;
}
h2:after {
  content: '•';
  color: var(--retro-brown);
  margin-left: 8px;
  font-size: 0.8em;
}

/*******************/
/* PRINT STYLES    */
/*******************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { padding: 0 !important; margin: 0 !important; }
}
