/* ==================================================
   CSS RESET & BASIC 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F1EEE8;
  color: #23395B;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.2em;
  padding-left: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ==================================================
   VINTAGE RETRO COLOR PALETTE + BRAND COLORS
   ================================================== */
:root {
  --primary: #23395B;
  --secondary: #6EC8E6;
  --accent: #F5F7FA;
  --retro-dark: #2B2323;
  --retro-peach: #EDC9AF;
  --retro-yellow: #F6E27A;
  --retro-red: #E06C4B;
  --retro-olive: #728A34;
  --retro-teal: #42898C;
  --retro-blue: #95B8D1;
  --retro-bg: #FFFBF2;
  --body-bg: #F1EEE8;
  --border: #D5CBB6;
  --focus: #FFBC42;
  --shadow: rgba(61, 42, 42, 0.10);
}

/* ==================================================
   TYPOGRAPHY – Retro/Vintage Brand
   ================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&family=DM+Serif+Display&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
  background: var(--body-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'DM Serif Display', serif;
  margin-bottom: 16px;
  color: var(--retro-dark);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  font-weight: 900;
  text-shadow: 2px 1px 0 var(--retro-yellow), 0 3px 16px var(--shadow);
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 var(--retro-peach);
}
h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 var(--retro-yellow);
}
h4, h5, h6 {
  font-size: 1.125rem;
  font-weight: 600;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
.text-section ul,
.text-section ol {
  margin-bottom: 18px;
  font-size: 1rem;
}

/* Retro Divider Style */
hr {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 32px 0;
}

/* ==================================================
   LAYOUT & CONTAINERS
   ================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--shadow), 0 2px 0 var(--border);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 14px var(--shadow);
  transition: box-shadow 0.2s, transform 0.1s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px) scale(1.03);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #FFFDF5;
  border: 2px solid var(--retro-peach);
  box-shadow: 0 2px 20px var(--shadow);
  margin-bottom: 20px;
  font-size: 1.125rem;
  color: #191414;
}
.testimonial-card p {
  margin-bottom: 8px;
  font-style: italic;
  color: #1e150d;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--retro-dark);
}
.testimonial-card .stars {
  display: flex;
  align-items: center;
  gap: 3px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============= FLEX ONLY ============= */
.features .feature-list,
.services .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features .feature-list li,
.services .service-list li {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 330px;
  background: var(--retro-peach);
  border-radius: 14px;
  padding: 28px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px var(--shadow);
  border: 2.5px dashed var(--retro-yellow);
  color: var(--retro-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
}
.features .feature-list li:hover,
.services .service-list li:hover {
  background: var(--retro-yellow);
  box-shadow: 0 6px 28px var(--shadow);
}
.features .feature-list img,
.services .service-list img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

/* Project Summary Cards */
.project-summary {
  background: var(--retro-blue);
  color: var(--retro-dark);
  border: 2px solid var(--retro-peach);
  border-radius: 12px;
  box-shadow: 0 1px 14px var(--shadow);
  padding: 22px 20px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Categories, Popular posts (Blog) */
.categories, .popular-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.categories li, .popular-posts li {
  background: var(--retro-yellow);
  color: var(--retro-dark);
  font-family: 'Montserrat', sans-serif;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 1px 4px var(--shadow);
}

/* ============= HERO & CTA SECTIONS ============= */
.hero {
  background: linear-gradient(98deg, var(--retro-yellow) 0 50%, var(--retro-peach) 70% 100%);
  border-bottom: 4px dotted var(--retro-blue);
  padding: 50px 0 40px 0;
}

.cta {
  background: var(--retro-teal);
  border-radius: 18px;
  box-shadow: 0 2px 20px var(--shadow);
  color: #fff;
  margin-bottom: 40px;
  padding: 38px 20px 38px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cta h2 {
  color: #fff;
  text-shadow: 0 2px 0 #287173;
}

.newsletter {
  background: #FFE4B5;
  border-radius: 14px;
  padding: 34px 20px;
  box-shadow: 0 2px 16px var(--shadow);
}
.newsletter h2 {
  color: var(--retro-dark);
}

.confirmation {
  background: #FFF5E0;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 36px 20px;
  margin: 40px 0;
}
.confirmation .contact-snippet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  font-size: 1.02rem;
  color: var(--retro-dark);
}

/* ============= NAVIGATION STYLES ============= */
header {
  background: var(--retro-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 18px var(--shadow);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 1.11rem;
  color: #fff;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-dark);
}
.nav-cta {
  background: var(--retro-yellow);
  color: var(--retro-dark) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: bolder;
  padding: 10px 26px;
  border-radius: 22px;
  margin-left: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 1.02rem;
  text-shadow: 1px 2px 0 var(--retro-peach);
  transition: box-shadow 0.13s, background 0.15s, color 0.13s;
  border: 2px dashed var(--retro-peach);
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--retro-red);
  color: #fff !important;
  box-shadow: 0 0px 14px var(--retro-red), 0 2px 12px var(--shadow);
}
header img {
  width: 110px;
  height: auto;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--retro-yellow);
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-left: 8px;
  transition: background 0.13s, color 0.13s;
  z-index: 110;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--focus);
  background: var(--retro-peach);
}

/* ========= MOBILE NAV MENU =========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 246, 198, 0.94);
  box-shadow: -2px 0 30px var(--shadow);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,1.13,.5,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 26px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 0 22px 18px 0;
  font-size: 2.3rem;
  color: var(--retro-dark);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-end;
  padding: 0 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'DM Serif Display', serif;
  font-weight: 800;
  font-size: 1.38rem;
  background: none;
  color: var(--retro-dark);
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1.5px dashed var(--retro-peach);
  min-width: 60vw;
  text-align: right;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--retro-yellow);
  color: #23395B;
}

/* Hide main nav and CTA on mobile when mobile menu active */
@media (max-width: 992px) {
  header nav, .nav-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

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

/* ============= FOOTER ============= */
footer {
  background: var(--retro-dark);
  color: #FFF5E0;
  padding: 0 0 24px 0;
  font-size: 1rem;
}
footer section {
  border-top: 4px dotted var(--retro-yellow);
  padding: 32px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 36px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}
footer nav a {
  color: #fffbea;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-yellow);
  text-decoration: underline;
}
.footer-brand img {
  width: 70px;
  margin-bottom: 4px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #fbe3d2;
}
.footer-contact img {
  width: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 17px;
  list-style: none;
}
.social-links li img {
  width: 32px;
  transition: transform 0.13s, filter 0.1s;
  filter: grayscale(30%) brightness(1.2);
}
.social-links li img:hover, .social-links li img:focus {
  transform: scale(1.19) rotate(-5deg);
  filter: none;
}

/* ============= LEGAL PAGE (text-section) ============= */
.legal {
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 36px 20px;
  margin-bottom: 50px;
}
.legal h1, .legal h2 {
  color: var(--primary);
  text-shadow: none;
}

.text-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--primary);
  font-size: 1.07rem;
}
.text-section h2, .text-section h3 {
  margin: 18px 0 8px 0;
  font-size: 1.2rem;
  color: var(--retro-dark);
}
.text-section ul, .text-section ol {
  margin-bottom: 10px;
  padding-left: 22px;
}
.text-section li {
  list-style: disc;
  margin-bottom: 6px;
}

/* ============= CONTACT DETAILS ============= */
.contact-details {
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 36px 20px;
}
.contact-details .text-section p {
  margin-bottom: 8px;
}
.contact-details strong {
  color: var(--retro-dark);
}
.contact-details img {
  width: 19px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ============== BUTTONS ============== */
.button, a.button, button.button {
  font-family: 'Montserrat', 'DM Serif Display', serif;
  font-size: 1.18rem;
  font-weight: 800;
  padding: 14px 38px;
  border-radius: 28px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  box-shadow: 0 3px 14px var(--shadow);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  outline: none;
  transition: background 0.19s, color 0.14s, box-shadow 0.12s, transform 0.14s;
  border: 2.2px dashed var(--retro-yellow);
  position: relative;
  z-index: 1;
}
.button:hover, .button:focus {
  background: var(--retro-yellow);
  color: var(--retro-dark);
  box-shadow: 0 6px 28px var(--shadow) !important;
  transform: translateY(-2px) scale(1.04);
}

/* ============== COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFFBF2;
  border-top: 3px dashed var(--retro-yellow);
  box-shadow: 0 -4px 14px var(--shadow);
  z-index: 2050;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  animation: cookieSlideIn 0.65s cubic-bezier(.64,1.7,.74,1.02) 1;
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); }
  85% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: var(--retro-dark);
  font-size: 1.07rem;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', 'DM Serif Display', serif;
  font-size: .98rem;
  font-weight: bold;
  padding: 8px 22px;
  border-radius: 19px;
  border: 2px solid var(--retro-dark);
  margin: 0 5px;
  background: var(--retro-yellow);
  color: var(--retro-dark);
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.11s;
  box-shadow: 0 1px 5px var(--shadow);
  outline: none;
}
.cookie-btn.accept {
  background: var(--retro-teal);
  color: #fff;
  border: 2px solid var(--retro-blue);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-dark);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
  border: 2px solid var(--retro-red);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--retro-yellow);
  color: var(--retro-dark);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  color: var(--retro-dark);
  border: 2px dotted var(--retro-dark);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-peach);
  color: var(--retro-dark);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2090;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(37, 31, 22, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.12s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbf2;
  border: 2.5px solid var(--retro-yellow);
  border-radius: 16px;
  max-width: 480px;
  min-width: 290px;
  padding: 28px 20px 26px 20px;
  box-shadow: 0 8px 34px var(--shadow);
  animation: popmodal 0.25s cubic-bezier(.52,1.7,.9,1.02) 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2100;
}
@keyframes popmodal {
  0% { transform: scale(0.7) translateY(60px); }
  70% { transform: scale(1.03) translateY(-8px); }
  100% { transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.26rem;
  color: var(--retro-dark);
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  background: var(--retro-peach);
  border-radius: 7px;
  padding: 10px 12px 7px 12px;
  box-shadow: 0 1px 6px var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.03rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--retro-blue);
  width: 18px; height: 18px;
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: var(--retro-olive);
}
.cookie-category.essential {
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal-close {
  margin-left: auto;
  font-size: 1.5rem;
  background: none;
  color: var(--retro-dark);
  border: none;
  cursor: pointer;
  padding: 2px 10px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--retro-red);
}

/* ============== MICRO-INTERACTIONS ============== */
.card,
.features .feature-list li,
.services .service-list li,
.button,
.cta,
.testimonial-card,
.project-summary {
  transition: box-shadow 0.2s, transform 0.13s, background 0.16s;
}
.card:hover, .features .feature-list li:hover, .services .service-list li:hover, .project-summary:hover {
  box-shadow: 0 6px 28px var(--shadow), 0 1.5px 12px var(--retro-olive);
  transform: translateY(-3px);
  z-index: 2;
}

/* ================= RESPONSIVENESS ================== */
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 800px;
    padding-left: 10px; padding-right: 10px;
  }
  .features .feature-list, .services .service-list {
    gap: 18px;
  }
  .content-grid, .card-container {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  /* Stacks for mobile */
  h1 { font-size: 2.08rem; }
  h2 { font-size: 1.44rem; }
  h3 { font-size: 1.13rem; }
  .hero, .section, .cta, .newsletter, .contact-details, .legal, .confirmation {
    padding: 22px 7px;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 14px;
  }
  .features .feature-list, .services .service-list {
    flex-direction: column;
    align-items: stretch;
  }
  .features .feature-list li, .services .service-list li {
    max-width: none;
    width: 100%;
    min-width: 0;
    padding: 19px 10px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .project-summary, .testimonial-card {
    padding: 15px 9px 14px 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cta {
    flex-direction: column;
    padding: 25px 7px 27px 7px;
  }
  .footer .container, footer .content-wrapper {
    gap: 12px !important;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.30rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 0.98rem; }
  .container {
    padding-left: 3vw; padding-right: 3vw;
  }
  .section, .hero {
    padding-left: 2vw; padding-right: 2vw;
  }
  header img, .footer-brand img {
    width: 60px;
  }
}

/* ============= SPACING: Enforce Gaps & Margins ============= */
.section, .about-short, .services-teaser, .newsletter, .legal, .confirmation, .case-studies, .contact-details, .cta {
  margin-bottom: 60px;
  padding-top: 40px; padding-bottom: 40px;
}
.card-container, .content-grid, .features .feature-list, .services .service-list {
  gap: 20px;
}
.card, .project-summary, .testimonial-card {
  margin-bottom: 20px;
}
.text-image-section, .feature-item, .testimonial-card {
  gap: 20px;
}

/* Prevent absolute overlap for content */
.card, .testimonial-card, .feature-list li {
  position: relative;
  z-index: 0;
}

/* ============== UTILITY CLASSES ============== */
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }

/* ==================== END OF CSS ==================== */
