/* ===================== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F4F6;
  color: #2B2B2B;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 32px;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}
input, textarea {
  font-family: inherit;
  border-radius: 4px;
  border: 1px solid #b2bea6;
  padding: 10px 12px;
  margin-bottom: 16px;
}

/* ======================= FONTS ======================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');
:root {
  --primary: #23395D;
  --secondary: #0EA37F;
  --accent: #F2F4F6;
  --retro-red: #C1440E;
  --retro-yellow: #FFE066;
  --retro-cream: #FFFBE9;
  --retro-blue: #406492;
  --retro-brown: #795548;
  --retro-shadow: rgba(51,37,23,0.14);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Open Sans', 'Verdana', Arial, sans-serif;
  --radius: 12px;
  --transition: 0.24s cubic-bezier(.79,.21,.42,1.02);
}

body {
  font-family: var(--font-body);
  background: var(--retro-cream);
  color: #2B2B2B;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 1px 0 var(--retro-yellow);
}
h1 { font-size: 2.7rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.32rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li, input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #3B3834;
}
strong, b {
  color: var(--retro-red);
  font-weight: 600;
  letter-spacing: 0.7px;
}
blockquote {
  border-left: 5px solid var(--retro-red);
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--retro-blue);
  margin: 24px 0 16px;
  background: var(--retro-yellow);
  border-radius: var(--radius);
}

/* ============ VINTAGE/RETRO COLORS & PATTERNS ============= */
body {
  background-color: var(--retro-cream);
}
main, .container, .content-wrapper {
  background: transparent;
}

/* Subtle retro lines for section breaks */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: repeating-linear-gradient(135deg, var(--accent), var(--accent) 23px, #ebded3 25px, #ebded3 35px);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--retro-shadow);
}
.section:nth-of-type(even), section:nth-of-type(even) {
  background: repeating-linear-gradient(135deg, var(--retro-yellow), var(--retro-yellow) 28px, #FFFBE9 30px, #FFFBE9 38px);
}

/* ========================= LAYOUT ======================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff8ef;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px var(--retro-shadow);
  padding: 32px 28px;
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px var(--retro-brown);
  transform: translateY(-4px) 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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--retro-yellow);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  font-family: var(--font-display);
  color: #2B2B2B;
  margin-bottom: 20px;
  min-width: 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid, .service-cards, .team-grid, .service-list, .case-list, .blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.feature-grid > div, .service-cards > div, .team-grid > div, .service-list > div, .case-list > div, .blog-grid > article {
  flex: 1 1 calc(50% - 24px);
  min-width: 260px;
  margin-bottom: 20px;
  background: #fff8ef;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 26px 22px 22px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .service-cards > div:hover, .team-grid > div:hover, .service-list > div:hover, .case-list > div:hover, .blog-grid > article:hover {
  box-shadow: 0 8px 24px var(--retro-brown);
  transform: scale(1.025) translateY(-3px);
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.category {
  padding: 4px 14px;
  background: var(--retro-yellow);
  color: var(--primary);
  font-family: var(--font-display);
  border-radius: 18px;
  font-size: 0.96rem;
  text-shadow: 0 1px 0 #FFFBE9;
}

/* ============ NAVIGATION ============= */
header {
  background: var(--primary);
  box-shadow: 0 2px 12px 0 rgba(35,57,93,0.08);
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 16px 0;
  gap: 26px;
}
.main-nav a {
  font-family: var(--font-display);
  color: #FFF;
  font-size: 1.08rem;
  padding: 7px 18px;
  border-radius: 24px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--retro-yellow);
  color: var(--primary);
}

.btn-primary {
  background: var(--retro-red);
  color: #FFF;
  font-weight: bold;
  border-radius: 24px;
  padding: 10px 32px;
  font-size: 1.08rem;
  letter-spacing: 0.6px;
  font-family: var(--font-display);
  box-shadow: 0 4px 14px rgba(193,68,14,0.18);
  border: 2px solid var(--retro-yellow);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(193,68,14,0.30);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff8ef;
  font-weight: bold;
  padding: 9px 28px;
  border-radius: 24px;
  font-family: var(--font-display);
  border: 2px solid var(--accent);
  font-size: 1.04rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  box-shadow: 0 6px 18px rgba(14,163,127,0.18);
}

/* ====== HERO & CTA ====== */
.hero, .cta, .cta-newsletter, .thank-you {
  background: var(--retro-yellow);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px var(--retro-shadow);
  padding: 50px 0 42px 0;
  margin-bottom: 54px;
  text-align: center;
}
.hero h1, .cta h2, .thank-you h1 {
  letter-spacing: 2px;
  color: var(--retro-red);
  font-size: 2.25rem;
  text-shadow: 0 2px 0 #FFFBE9;
}
.hero p, .cta p, .thank-you p { color: #473c2d; font-size: 1.17rem; }
.hero .btn-primary, .cta .btn-primary, .thank-you .btn-primary {
  margin-top: 20px;
}

/* ============ TESTIMONIALS ============= */
.testimonials {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: var(--retro-yellow);
  color: #222;
  font-family: var(--font-display);
  border-radius: var(--radius);
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1;
}
.testimonial-card strong {
  color: var(--retro-brown);
  font-size: 1.06em;
  font-family: var(--font-display);
}

/* ============ SPECIAL SECTIONS STYLING ============= */
.footer-brand img {
  width: 160px;
  margin-bottom: 12px;
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 24px 0;
}
.footer-menu a {
  color: var(--primary);
  font-size: 0.98rem;
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-menu a:hover {
  color: var(--retro-red);
}
.footer-contact h3 { font-size: 1.15rem; margin-bottom: 8px; }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3B3834;
  margin-bottom: 4px;
}
.footer-contact img { width: 19px; height: 19px; margin-right: 6px; }

.footer-newsletter h3 { font-size: 1.09rem; }
footer {
  background: var(--retro-blue);
  color: #fff8ef;
  border-top: 6px dashed var(--retro-yellow);
  padding-top: 40px;
  padding-bottom: 30px;
}
footer .container { flex-direction: row; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 55px;
  justify-content: space-between;
  align-items: flex-start;
}
.copyright {
  text-align: center;
  font-size: 0.98rem;
  color: var(--retro-yellow);
  margin-top: 30px;
  letter-spacing: 1.5px;
}

/* ========== BLOG SEARCH & CARDS ========== */
.blog-list input[type="search"] {
  width: 100%;
  padding: 13px 15px;
  border-radius: 30px;
  font-size: 1.06em;
  background: #fff;
  margin-bottom: 16px;
  border: 2px solid var(--retro-yellow);
  box-sizing: border-box;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.blog-grid article {
  flex: 1 1 calc(33% - 24px);
  min-width: 260px;
  border-radius: var(--radius);
  background: #FFFBE9;
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cta-newsletter {
  background: var(--retro-yellow);
  border-radius: var(--radius);
  margin-bottom: 55px;
  box-shadow: 0 4px 14px var(--retro-shadow);
  text-align: center;
  padding: 38px 12px 46px;
}

/* ========== CONTACT BLOCK ========== */
.contact-block {
  background: #FFFBE9;
  border-radius: var(--radius);
  padding: 38px 20px;
  box-shadow: 0 6px 21px var(--retro-shadow);
  margin-bottom: 46px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-embed {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 2px dashed var(--retro-blue);
  border-radius: 20px;
  padding: 22px 18px;
  background: #f8f3e3;
  margin-top: 10px;
}

/* ========== LEGAL ========== */
.legal {
  background: #fff8ef;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px var(--retro-shadow);
  padding: 40px 16px 20px;
  color: #3B3834;
}
.legal h1, .legal h2, .legal h3 {
  color: var(--primary);
  font-family: var(--font-display);
}
.legal ul, .legal ol {
  margin-bottom: 18px;
}

/* ========== THANK-YOU SECTION ========== */
.thank-you {
  background: var(--retro-yellow);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--retro-shadow);
  text-align: center;
  padding: 45px 16px 50px 16px;
  margin-bottom: 50px;
}
.thank-you ul {
  margin: 18px auto 22px auto;
  max-width: 420px;
  text-align: left;
  color: var(--primary);
}
.thank-you a.btn-primary { margin-top: 12px; }

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-red);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 222;
  box-shadow: 0 3px 10px var(--retro-shadow);
  border: 2px solid var(--retro-yellow);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 360px;
  background: var(--retro-blue);
  box-shadow: -5px 0 24px 0 rgba(64,100,146,0.22);
  z-index: 995;
  display: flex;
  flex-direction: column;
  padding: 34px 18px 22px 18px;
  gap: 32px;
  transition: transform 0.34s cubic-bezier(.81,.2,.16,1.01);
  transform: translateX(110%);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--retro-yellow);
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.mobile-menu-close:hover {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.mobile-nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-size: 1.21rem;
  padding: 11px 0;
  border-radius: 18px;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.mobile-nav a:hover {
  background: var(--retro-red);
  color: #FFF;
}

/* ====== Hide menu & toggle for desktop, style for mobile ====== */
@media (max-width: 1200px) {
  .feature-grid > div, .service-cards > div, .team-grid > div, .service-list > div, .case-list > div, .blog-grid > article {
    flex: 1 1 100%;
    min-width: 220px;
  }
}
@media (max-width: 900px) {
  .footer-menu, .footer-contact, .footer-newsletter {flex: 1 1 100%; min-width: 160px;}
  .content-wrapper, .footer-menu, .footer-newsletter, .footer-contact {gap: 21px;}
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }  
  .footer-brand img { width: 123px; }
  .content-grid,
  .feature-grid, .service-cards, .team-grid, .service-list, .case-list, .blog-grid {
    flex-direction: column;
  }
  .card, .feature-grid > div, .service-cards > div, .team-grid > div, .service-list > div, .case-list > div, .blog-grid > article {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
  }
  .container { padding-left: 6px; padding-right: 6px; }
  .section, section { padding: 25px 8px; margin-bottom: 38px; }
  .hero, .cta, .cta-newsletter, .thank-you { padding: 26px 7px 32px; }
  .footer-brand, .footer-menu, .footer-contact, .footer-newsletter {
    min-width: unset;
    max-width: 100vw;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  footer .content-wrapper {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .testimonial-slider { flex-direction: column; gap: 16px; }
  .testimonial-card { padding: 14px; font-size: 1.01rem; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ================= BUTTON/ANIMATION MICRO-INTERACTIONS ============= */
button, .btn-primary, .btn-secondary, .mobile-menu-close {
  outline: none;
  position: relative;
  overflow: hidden;
}
button:active:after, .btn-primary:active:after, .btn-secondary:active:after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 120%; height: 120%;
  background: rgba(35,57,93,0.08);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.29s cubic-bezier(.21,1.01,.32,1), background 0.14s;
  z-index: 1;
}
button:active:after, .btn-primary:active:after, .btn-secondary:active:after {
  transform: translate(-50%, -50%) scale(1);
}

/* ================= COOKIE CONSENT BANNER & MODAL ================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: var(--retro-yellow);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 18px 22px;
  box-shadow: 0 -2px 16px var(--retro-shadow);
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieBannerIn 0.55s cubic-bezier(.59,.66,.42,1.02);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-banner button {
  font-family: var(--font-display);
  padding: 8px 22px;
  font-size: 1.06em;
  border-radius: 18px;
  border: none;
  background: var(--primary);
  color: var(--retro-yellow);
  margin-right: 4px;
  font-weight: bold;
  transition: background 0.21s, color 0.21s;
}
.cookie-banner button:last-child {
  background: var(--retro-red);
  color: #fff8ef;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-blue);
  color: #ffe066;
}
.cookie-banner .cookie-settings-btn {
  background: var(--secondary);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35, 57, 93, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3300;
  animation: modalFadeIn 0.33s;
}
@keyframes modalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--retro-yellow);
  color: var(--primary);
  padding: 34px 24px 24px 24px;
  border-radius: var(--radius);
  max-width: 445px;
  width: 95vw;
  box-shadow: 0 6px 36px var(--retro-shadow);
  font-family: var(--font-body);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h2 {
  margin-bottom: 10px;
}
.cookie-modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.8rem;
  color: var(--retro-red);
  background: transparent;
  border: none;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: bold;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 21px;
  height: 21px;
}
.cookie-category .always-on {
  font-size: 0.98rem;
  font-style: italic;
  color: #A97F49;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  border-radius: 18px;
  font-size: 1.08rem;
  padding: 10px 22px;
  font-family: var(--font-display);
  background: var(--retro-red);
  color: #fff8ef;
  font-weight: bold;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal-content button:hover {
  background: var(--primary);
  color: var(--retro-yellow);
}

/* Hide cookie modal/banner by default (JS will show when needed) */
.cookie-banner,
.cookie-modal { display: none !important; }
.cookie-banner.visible,
.cookie-modal.visible { display: flex !important; }

/* =============== UTILITIES =============== */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.shadow-sm {
  box-shadow: 0 2px 8px var(--retro-shadow) !important;
}
.border-yellow { border: 2px solid var(--retro-yellow) !important; }
.bg-accent { background: var(--accent) !important; }

/* =============== SCROLLBAR RETRO STYLING =============== */
::-webkit-scrollbar { width: 11px; background: var(--retro-yellow); }
::-webkit-scrollbar-thumb {
  background: var(--retro-brown);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover { background: var(--retro-red); }

/* Remove tap highlight for buttons & links on mobile */
@media (pointer: coarse) {
  button, a { -webkit-tap-highlight-color: rgba(255, 224, 102, 0.37); }
}
