/*------------------------
  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,main,mark,menu,nav,output,ruby,section,summary,time,samp{
  margin:0; padding:0; border:0; font-size:100%; font:inherit; vertical-align:baseline;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f4ecde;
  color: #413932;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:16px;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:focus { outline: 2px dotted #918d85; outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }
strong, b { font-weight: 700; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; font-family: 'Baloo 2', 'Comic Sans MS', cursive, sans-serif; letter-spacing: -1px; color:#333; }

/*-----------------------------
  VINTAGE RETRO COLOR PALETTE  
------------------------------*/
:root {
  --blue: #2483c7;
  --retro-blue-dark: #1a5c8a;
  --sun-yellow: #FFD136;
  --vintage-cream: #f4ecde;
  --vintage-light: #fffdf7;
  --brown: #9e7355;
  --accent-white: #fff;
  --dusty-pink: #e3a7a0;
  --mint: #C6DFC8;
  --shadow: rgba(145, 116, 62, 0.13);
  --retro-border: #b4a491;
  --focus: #d87900;
}

/*----------------
    TYPOGRAPHY
-----------------*/
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Montserrat:wght@400;600&display=swap');
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: .01em;
}
h1 {
  font-family: 'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
  font-size: 2.6rem;
  color: var(--retro-blue-dark);
  margin-bottom: 18px;
}
h2 {
  font-family: 'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
  font-size: 2.1rem;
  color: var(--retro-blue-dark);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Baloo 2', 'Comic Sans MS',cursive,sans-serif;
  font-size: 2rem;
  color: var(--retro-blue-dark);
  letter-spacing: .04em;
  margin-bottom: 18px;
}

/*--------------------
    LAYOUT CONTAINER
--------------------*/
.container {
  max-width: 1100px;
  width: 92%;
  margin: 0 auto;
  padding: 0 8px;
}

/*--------------------------------
    VINTAGE PATTERNS & SPACING
---------------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--vintage-light);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 2px solid var(--retro-border);
  position: relative;
}
.content-wrapper {
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent-white);
  border: 2px solid var(--retro-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.22s cubic-bezier(.21,.70,.26,1), box-shadow .2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1.1deg);
  box-shadow: 0 8px 28px var(--shadow);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.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: var(--mint);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 2px dashed var(--retro-blue-dark);
  color: #24241f;
  box-shadow: 0 2px 10px var(--shadow);
  position: relative;
}
.testimonials .testimonial-card {
  background: var(--sun-yellow);
  border-color: var(--brown);
  color: #402802;
}
.testimonial-card strong {
  font-family: 'Baloo 2', cursive, sans-serif;
  color: var(--retro-blue-dark);
  font-size: 1.08em;
  letter-spacing: 0.025em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul, ol {
  margin: 0 0 15px 0;
  padding-left: 32px;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1.05em;
}

/*------------------------------
      RETRO HERO SECTION
-------------------------------*/
.hero {
  background: repeating-linear-gradient(135deg, #f4ecde 0, #fffdf7 8%, #f4ecde 12%);
  box-shadow: 0 6px 24px var(--shadow);
  border-bottom: 4px dotted var(--sun-yellow);
  margin-bottom: 50px;
  padding-top: 30px;
  padding-bottom: 42px;
  position: relative;
}
.hero .content-wrapper { text-align: center; max-width: 640px; margin: 0 auto; }
.hero h1 {
  text-shadow: 1px 2px 0px #fff5cc, 2px 3px 2px #e0c08e64;
  font-size: 2.7rem;
  margin-bottom:12px;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 30px;
  color: #4b4028;
}

/*--------------------------
        VINTAGE BUTTONS
---------------------------*/
.cta-primary, .cta-secondary {
  display: inline-block;
  background: var(--sun-yellow);
  color: var(--retro-blue-dark);
  font-family: 'Baloo 2', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  padding: 13px 34px;
  margin-top: 10px;
  border-radius: 42px;
  border: 2px solid var(--brown);
  letter-spacing: 0.03em;
  box-shadow: 0px 3px 0px var(--retro-border);
  cursor: pointer;
  transition: background .18s, color .18s, filter .18s, transform .18s;
  position: relative;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brown);
  color: var(--accent-white);
  filter: brightness(1.07) saturate(1.1);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: var(--dusty-pink);
  color: var(--retro-blue-dark);
  border-color: #e6a0a3;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--retro-blue-dark); color: #fff; border-color: var(--brown);
}
.button-group {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px;
}

/*----------------------
    NAVIGATION STYLES
-----------------------*/
header {
  background: #f9efe2;
  box-shadow: 0 3px 14px var(--shadow);
  border-bottom: 3px solid var(--sun-yellow);
  padding: 0;
}
.branding {
  display: flex;
  align-items: center;
  margin-right: 24px;
}
.branding img { height: 48px; width: auto; margin: 8px 12px 8px 2px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 1.05rem;
  padding: 6px 18px;
  border-radius: 18px;
  transition: background .18s, color .15s;
  color: var(--retro-blue-dark);
  text-shadow: 0 1px 0 #fff;
  border: 2px solid transparent;
}
.main-nav a:hover,.main-nav a:focus {
  background: var(--sun-yellow);
  color: var(--brown);
  border-color: #e6d192;
}
.main-nav .cta-primary {
  margin-left:12px;
  padding: 9px 18px;
  font-size: 1rem;
  background: var(--retro-blue-dark);
  color: var(--accent-white);
  border-color: var(--brown);
}
.main-nav .cta-primary:hover,.main-nav .cta-primary:focus{
  background: var(--sun-yellow);
  color: var(--retro-blue-dark);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/*----------------------------
         MOBILE MENU
-----------------------------*/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--sun-yellow);
  color: var(--retro-blue-dark);
  border: none;
  border-radius: 24px;
  padding: 5px 18px 5px 16px;
  margin-left: 20px;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background .15s, color .15s, box-shadow .18s, transform .2s;
  z-index: 50;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--focus); }
.mobile-menu-toggle:hover { background: var(--brown); color: #fff; box-shadow: 0 6px 32px var(--shadow); }

.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: #f9efe2;
  box-shadow: 0 2px 32px var(--shadow);
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.41,.04,.16,.95);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--brown);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 18px 32px 6px 0;
  cursor: pointer;
  transition: color .18s;
  z-index: 1002;
}
.mobile-menu-close:hover { color: #ce5812; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 16px 0 0 42px;
}
.mobile-nav a {
  font-family: 'Baloo 2', cursive,sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0;
  color: var(--retro-blue-dark);
  padding: 12px 0 6px 8px;
  border-radius:7px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover,.mobile-nav a:focus { background:var(--sun-yellow); color:var(--brown); }

@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .header .container, header .container {
    flex-direction: column;
    align-items: flex-start;
    gap:8px 0;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width:769px) {
  .mobile-menu { display:none!important; }
}

/*--------------------------
      SECTIONS & CARDS
---------------------------*/
.features, .services, .about, .legal {
  background: var(--vintage-cream);
  box-shadow: 0 3px 12px var(--shadow);
  border-radius: 16px;
  padding: 38px 16px;
}
.features ul, .services ul {
  list-style: none;
  padding-left: 0!important;
}
.features ul li, .services ul li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 22px;
  font-size: 1.04em;
  color: #5f4036;
  line-height:1.45;
}
.features ul li img, .services ul li img {
  position: absolute; left: 0; top: 1px; width: 28px; height: 28px;
}
.features ul li strong, .services ul li strong {
  color: var(--retro-blue-dark);
  font-family:'Baloo 2',cursive,sans-serif;
  font-weight:700;
  letter-spacing:0.01em;
}

.service-briefs, .game-briefs {
  background: var(--mint);
  border-radius: 9px;
  box-shadow: 0 1px 4px var(--shadow);
  margin:18px 0 0 0;
  padding:20px 18px;
  font-size:1em;
  color:#2c3526;
  border:1.5px solid #aadbb8;
}
.game-briefs {
  background: var(--dusty-pink);
  border-color: #eac3d3;
}

.text-section {
  background: var(--vintage-light);
  border-radius: 10px;
  padding:18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px #0001;
  border: 1px solid var(--retro-border);
}

/*--------------------------
        FOOTER LAYOUT
---------------------------*/
footer {
  background: #f4ecde;
  border-top: 3.5px dashed var(--retro-blue-dark);
  padding:36px 0 28px 0;
  margin-top:60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-nav a {
  font-family:'Baloo 2',cursive,sans-serif;
  font-size:1.07em;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1.2px solid transparent;
  color: var(--retro-blue-dark);
  transition: background .2s, color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--sun-yellow);
  color:#e84d17;
  border-color: #f9c243;
}
.contact-info {
  flex: 1 1 260px;
  color: #573c29;
  font-size: 1em;
  margin-bottom: 12px;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-size: 1em;
}
.footer-social img {
  width: 28px; height: 28px; margin-left: 7px; display:inline-block; vertical-align:middle;
}
.footer-branding img {
  height: 36px; width: auto;
}

/*--------------------------
  COOKIE CONSENT BANNER
---------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right:0;
  width: 100vw;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: var(--vintage-cream);
  color: #483e1f;
  border-top: 3.5px solid var(--sun-yellow);
  box-shadow: 0 -3px 24px var(--shadow);
  padding: 22px 10vw 22px 10vw;
  font-size: 1.07em;
  gap: 36px;
  opacity: 1;
  transition: opacity .33s .09s, transform .28s;
}
.cookie-banner.hide {
  opacity: 0; pointer-events: none; transform: translateY(120px);
}
.cookie-banner .button-group {
  gap: 8px; margin:0 0 0 25px;
}
.cookie-banner .cta-primary, .cookie-banner .cta-secondary {
  padding: 10px 22px;
  font-size:1em;
  margin:0;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(130%);
  width: 92vw;
  max-width: 400px;
  background: var(--vintage-light);
  color:#574028;
  border: 2.5px solid var(--sun-yellow);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px var(--shadow);
  z-index:10000;
  padding: 28px 34px 26px 28px;
  transition: transform .33s cubic-bezier(.5,.2,.15,1), opacity .26s;
  opacity:0; pointer-events: none;
}
.cookie-modal.show { 
  transform: translateX(-50%) translateY(0); opacity:1; pointer-events:all;
}
.cookie-modal h3 {
  font-family: 'Baloo 2',cursive; font-size:1.22rem; color: var(--retro-blue-dark);
  margin-bottom: 14px;
  margin-top: 0;
}
.cookie-categories {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex; align-items:center; gap:12px;
  padding: 9px 0;
}
.cookie-category label {
  font-size: 1em;
  letter-spacing: .01em;
  color:#3c2935;
}
.cookie-modal .button-group {
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5vw 22px 5vw;
    gap: 18px;
    font-size: 0.98em;
  }
}

@media (max-width: 450px) {
  .cookie-modal {
    padding: 19px 8vw 19px 6vw;
  }
}

input[type='checkbox'] {
  accent-color: var(--sun-yellow);
  width:18px;height:18px;
  margin-right:6px;
  vertical-align: middle;
}

/*--------------------------
   RESPONSIVE & RETRO MEDIA
---------------------------*/
@media (max-width: 1050px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .footer-nav, footer .container {
    flex-direction: column;
    gap: 24px 0;
  }
  .contact-info, .footer-social, .footer-branding {
    margin-bottom:10px;
  }
}
@media (max-width: 768px) {
  .section, .features, .services, .about, .legal {
    margin-bottom: 36px;
    padding: 26px 6px;
  }
  .content-grid, .card-container, .footer-nav, footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero {
    padding-top: 17px; padding-bottom: 28px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 540px) {
  .footer-nav {
    gap: 8px;
  }
  .service-briefs, .game-briefs {
    padding: 10px 6px;
  }
}

/*-----------------------
    VINTAGE EXTRAS
------------------------*/
/* Dots, stripes, torn edge effect: simulate with box-shadows, svg bg or borders between sections */
.section:after {
  content: '';
  display: block;
  position: absolute;
  left: 40px; right: 40px; bottom: -14px;
  height: 12px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 7px 0 0 #ffe49933;
  z-index: 1;
  opacity: 0.22;
  pointer-events: none;
}

/*-------------------
     MISC ELEMENTS
--------------------*/
::-webkit-input-placeholder { color: #baaaa5; }
::-moz-placeholder { color: #baaaa5; }
:-ms-input-placeholder { color: #baaaa5; }
::placeholder { color: #baaaa5; }

hr { border: 0; border-bottom: 1.5px dashed var(--sun-yellow); margin: 24px 0; }

/*--------------------------
      ANIMATIONS / DETAILS
---------------------------*/
.cta-primary, .cta-secondary, .mobile-menu-toggle, .mobile-menu-close, .footer-nav a, .main-nav a {
  transition: background .18s, color .18s, box-shadow .2s, transform .25s;
}
.cta-primary:active, .main-nav .cta-primary:active {
  transform: scale(0.97) translateY(1px);
}
.testimonial-card {
  transition: box-shadow .17s, transform .15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px var(--shadow);
  transform: rotate(-0.6deg) scale(1.025);
}

/*---------------------
   ACCESSIBILITY
----------------------*/
*:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  z-index: 10000 !important;
  position: relative;
}

/*--------------------
  UTILITIES
---------------------*/
.d-none { display:none !important; }
.gap-24 { gap:24px; }
.gap-18 { gap:18px; }

/*---------------------
   PRINT FRIENDLY
----------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none!important; }
  .section { box-shadow:none; border: none; background:#fff; }
}
