/* ============================
   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,
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 { 
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; 
}
body {
  background: #F7F3EB;
  color: #223D58;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
*, *::before, *::after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  outline: none; 
}

/* ============================
   VINTAGE RETRO THEME VARS
   ============================ */
:root {
  --brand-primary: #223D58;
  --brand-secondary: #DE4300;
  --brand-accent: #F0F3F6;
  --cream: #F7F3EB;
  --retro-mustard: #F3C148;
  --retro-teal: #479393;
  --retro-blue: #648CA9;
  --retro-brown: #826A5D;
  --retro-green: #73A580;
  --retro-orange: #DF883C;
  --retro-red: #C84A53;
  --vintage-shadow: 0 4px 24px rgba(76,40,0,0.08), 0 1.5px 0 0 #E2C89C;
  --pattern-bg: repeating-linear-gradient(
    135deg, #F7F3EB, #F7F3EB 10px, #F3C148 10px, #F3C148 13px
  );
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ============================
   GENERAL TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  text-shadow: 0 1px 0 #ECD293;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.125rem; }

p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--brand-primary);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b { font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* ============================
   MAIN STRUCTURE & LAYOUTS
   ============================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.feature-grid, .service-list, .faq-list, .faq-list-preview, .case-study-list, .testimonials-container, .contact-info-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 24px;
}
.feature-grid { justify-content: space-between; }
.service-list, .faq-list, .faq-list-preview, .contact-info-summary { flex-direction: column; gap: 18px; }

.case-study-list {
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--vintage-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
  flex: 1 1 320px;
}

.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: center;
  gap: 20px;
  background: #FFF8EA;
  border: 2px solid #F3C148;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(34,61,88,0.10);
  padding: 20px 32px;
  min-width: 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 36px rgba(222,67,0,0.13), 0 2px 0 #F3C148;
  transform: translateY(-2px) scale(1.03);
}
.testimonial-meta {
  display: flex;
  gap: 18px;
  font-size: 0.97rem;
  color: #826A5D;
  font-style: italic;
  justify-content: center;
  align-items: center;
}

/***************************
 FEATURE/INFO STRUCTURE
***************************/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid li, .service-list li, .faq-list li, .faq-list-preview li {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(100,140,169,.09);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 355px;
  border-left: 7px solid var(--retro-orange);
  margin-bottom: 8px;
  transition: box-shadow 0.16s, border-color 0.19s;
}
.feature-grid li img {
  width: 38px; height: 38px; margin-bottom: 8px;
}
.feature-grid li:hover, .service-list li:hover, .faq-list-preview li:hover {
  box-shadow: 0 12px 38px rgba(100,140,169,0.23);
  border-color: var(--retro-red);
}

/***************************
 BUTTONS & CTAS
***************************/
.cta-btn {
  display: inline-block;
  background: var(--retro-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.13rem;
  letter-spacing: 0.04em;
  margin-top: 16px;
  box-shadow: 0 2px 13px rgba(223,67,0,0.13);
  border: 3px solid transparent;
  transition: background 0.25s, color 0.23s, border-color 0.22s, transform 0.18s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-secondary);
  color: #FFF8EA;
  border-color: var(--retro-mustard);
  transform: translateY(-2px) scale(1.03);
}

button, .mobile-menu-close {
  cursor: pointer;
}

/* ===============================
   HEADER, NAVBAR & MOBILE MENU
   =============================== */
header {
  width: 100%;
  background: var(--pattern-bg);
  box-shadow: 0 2px 8px rgba(223,67,0,0.06);
  padding-top: 10px;
  position: relative;
  z-index: 70;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-bottom: 12px;
  width: 100%;
}
.logo-link img {
  min-width: 130px;
  height: 38px;
  filter: sepia(.12) contrast(1.08);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 0 3px 0;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
  border-bottom: 2px solid var(--retro-brown);
}

.header-main .cta-btn {
  margin-left: 22px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--brand-secondary);
  border: none;
  margin-left: 12px;
  z-index: 140;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--retro-red);
}

@media (max-width: 850px) {
  .main-nav, .header-main .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU DRAWER */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 96vw;
  height: 100vh;
  background: var(--brand-accent);
  box-shadow: -8px 0 32px rgba(34,61,88,0.13);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.54,.01,.57,1.19);
  z-index: 1200;
  padding: 34px 22px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--brand-primary);
  background: none;
  border-radius: 50%;
  padding: 4px 10px;
  align-self: flex-end;
  margin-bottom: 16px;
  border: 2px solid var(--retro-mustard);
  transition: background 0.13s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: var(--retro-orange); color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-left: 6px solid var(--retro-orange);
  background: #fff;
  border-radius: 6px;
  padding: 12px 18px 12px 21px;
  box-shadow: 0 1.5px 8px rgba(34,61,88,0.08);
  transition: background 0.18s, color 0.18s, border-color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--retro-mustard);
  color: #fff;
  border-color: var(--retro-red);
}

/***************************
 HERO SECTIONS / PATTERNS
***************************/
section:first-of-type {
  background: var(--pattern-bg);
  border-bottom: 4px solid var(--retro-brown);
  box-shadow: 0 3px 15px rgba(34,61,88,0.06);
}

@media (max-width: 900px) {
  .container { max-width: 98vw; }
}

/***************************
  CARDS & INFORMATIVE BLOCKS
***************************/
.text-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 10px rgba(223,67,0,0.06);
  border-left: 6px solid var(--retro-green);
}
.text-section h3 {
  color: var(--brand-secondary);
  margin-top: 12px;
  margin-bottom: 8px;
}

/***************************
  CONTACT INFOS
***************************/
.contact-info-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
}
.contact-info-summary li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--retro-brown);
  background: #fff;
  border-radius: 6px;
  padding: 9px 15px;
}
.contact-info-summary img {
  width: 24px;
  height: 24px;
  opacity: 0.79;
}

/***************************
  FOOTER
***************************/
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 38px 0 30px 0;
  font-size: 0.98rem;
  margin-top: 45px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img {
  width: 130px;
  filter: brightness(98%) sepia(.18) contrast(1.13);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  padding-left: 0;
  transition: color 0.23s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-mustard);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 19px; opacity: .74;
}

/***************************
  RESPONSIVE & MOBILE LAYOUTS
***************************/
@media (max-width: 950px) {
  .testimonials-container, .feature-grid { flex-direction: column; align-items: stretch; }
  .container { padding: 0 8px; }
}
@media (max-width: 768px) {
  .content-wrapper, .container {
    padding: 0 4vw;
    gap: 16px;
  }
  .feature-grid, .card-container, .content-grid, .testimonials-container,
  .case-study-list, .contact-info-summary { flex-direction: column; gap: 18px; }
  .section { padding: 28px 4vw; }
  .card { padding: 20px 10px; }
  .testimonial-card { padding: 16px 8vw; }
  .footer-brand, .footer-contact, .footer-nav { align-items: flex-start; }
  .footer-brand img { width: 102px; }
  footer .container { flex-direction: column; gap: 18px; }
  .main-nav { display: none !important; }
}
@media (max-width: 540px) {
  .section { padding: 16px 2vw; }
  .container { padding: 0 3vw; }
}

/***************************
  MICRO-INTERACTIONS / ANIMATIONS
***************************/
.cta-btn, .card, .testimonial-card, .feature-grid li, .service-list li, .faq-list-preview li, .faq-list li {
  transition: box-shadow 0.2s, border-color 0.19s, background 0.26s, color 0.17s, transform 0.12s;
}
.cta-btn:active { transform: translateY(1.5px) scale(0.98); }
.feature-grid li:active { transform: scale(0.97); }

/***************************
 LINKS, FAQ, HOVERS
***************************/
a {
  transition: color 0.19s, text-decoration 0.12s;
  position: relative;
  border-bottom: 1px dashed var(--retro-teal);
}
.content-wrapper a.cta-btn {
  border-bottom: none;
}
a:hover, a:focus {
  color: var(--retro-red);
  text-decoration: underline wavy var(--retro-brown);
  outline: none;
}
.faq-list a, .faq-list-preview a { color: var(--brand-secondary); border-bottom: 1px solid var(--retro-orange); }

/***************************
 COOKIE CONSENT BANNER
***************************/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff8ea;
  border-top: 3px solid var(--retro-mustard);
  box-shadow: 0 -3px 30px rgba(34,61,88,0.12);
  padding: 24px 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 9800;
  font-size: 1rem;
  transition: transform 0.25s;
}
.cookie-banner__text {
  font-family: var(--font-body);
  color: var(--brand-primary);
  max-width: 430px;
  margin-right: 22px;
}
.cookie-banner__btn {
  background: var(--retro-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 25px;
  padding: 8px 22px;
  font-size: 1rem;
  margin-right: 10px;
  transition: background 0.18s, color 0.18s;
  border: 2px solid var(--retro-brown);
}
.cookie-banner__btn:last-child {
  margin-right: 0;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: var(--retro-red);
  color: #fff8ea;
  border-color: var(--retro-mustard);
}
.cookie-banner__settings {
  background: #fff;
  color: var(--retro-orange);
  border: 2px solid var(--retro-orange);
  margin-left: 7px;
}
.cookie-banner__settings:hover, .cookie-banner__settings:focus {
  background: var(--retro-mustard);
  color: var(--brand-primary);
  border-color: var(--retro-brown);
}

/****************
 COOKIE MODAL
****************/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 61, 88, 0.22);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s both;
}
@keyframes fadeIn { from{ opacity: 0;} to{opacity:1;}}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 6px 40px rgba(34,61,88,0.19);
  padding: 30px 35px 25px 35px;
  min-width: 280px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  font-size: 1.06rem;
  font-family: var(--font-body);
  animation: fadeInUp .34s cubic-bezier(.47,1.52,.47,.99) both;
}
@keyframes fadeInUp { from{ transform:translateY(30px); opacity:0;} to{transform:none; opacity:1; } }
.cookie-modal__close {
  position: absolute;
  top: 11px; right: 12px;
  font-size: 2rem;
  background: none;
  color: var(--retro-brown);
  border: 2px solid var(--retro-orange);
  border-radius: 40%;
  padding: 2px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--retro-orange);
  color: #fff;
}
.cookie-modal__title {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 7px;
}
.cookie-modal__category label {
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-modal__toggle {
  min-width: 34px;
}
.cookie-modal__actions {
  margin-top: 9px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal__btn {
  background: var(--retro-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 25px;
  padding: 8px 22px;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
  border: 2px solid var(--retro-brown);
  outline: none;
}
.cookie-modal__btn:hover, .cookie-modal__btn:focus {
  background: var(--retro-red);
  color: #fff8ea;
  border-color: var(--retro-mustard);
}

/***************************
  UTILITY CLASSES
***************************/
.mb-0 { margin-bottom: 0 !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.rounded { border-radius: 7px; }

/***************************
  SPECIAL RETRO/NOSTALGIC EFFECTS
***************************/
.retro-label {
  display: inline-block;
  background: var(--retro-mustard);
  border-radius: 5px;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .97rem;
  padding: 3px 9px;
  margin: 2px 0 8px 0;
  letter-spacing: .04em;
  box-shadow: 0 1px 0 #F0F3F6;
}

/***************************
 FORM ELEMENTS/TOGGLE (Cookie modal)
***************************/
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--retro-orange);
  width: 20px; height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

/***************************
   PRINT & NOISE (DECORATIVE)
***************************/
@media print {
  *, *::before, *::after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
