/* ===== CSS RESET & NORMALIZATION ===== */
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 {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #FEFAEC;
  color: #362B23;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
button {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ===== BRAND & RETRO VARIABLES ===== */
:root {
  --primary: #2A2F4F;
  --primary-dark: #1B1E2B;
  --secondary: #50ABDF;
  --accent: #E3EDF6;
  --retro-yellow: #FFD966;
  --retro-coral: #E38161;
  --retro-green: #6EAE7A;
  --retro-brown: #B67C54;
  --retro-bg: #FEFAEC;
  --text-dark: #362B23;
  --text-light: #FAF6E9;
  --shadow: 0 3px 18px rgba(42,47,79,0.09);
  --radius: 18px;
  --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --pattern: repeating-linear-gradient(120deg, #FFD966 0 8px, transparent 8px 16px);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: 0.4px;
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.18rem; }
h4, h5, h6 { font-size: 1rem; }
p, ul, li, table, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
}
small {
  font-size: 0.95em;
  opacity: 0.87;
}

/* ===== LAYOUT UTILS ===== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1120px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFBE6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(39,20,10,0.08), 0 3px 11px rgba(226,141,50,0.10);
  transform: translateY(-4px) scale(1.025);
}

.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: #FFFDEC;
  border: 2px dashed var(--retro-coral);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(228,186,81,0.09);
  position: relative;
  transition: background 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  background: #FFF3C1;
  border-color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======= PATTERNED & VINTAGE SECTION BACKGROUNDS ======= */
.hero {
  background: var(--accent);
  background-image: var(--pattern);
  padding-top: 36px;
  padding-bottom: 36px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.features {
  background: #FFF3C1;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
}
.services {
  background: #FFFAF0;
  border: 2px solid var(--retro-brown);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta {
  background: var(--retro-green);
  color: var(--text-light);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
.cta p, .cta a {
  color: var(--text-light);
}
.about {
  background: var(--retro-yellow);
  border-radius: var(--radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.legal {
  background: #ECE3D3;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.pricing {
  background: #FFF3C1;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.thanks {
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
.support {
  background: #FFFDEC;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.contact-section {
  background: #FFFAF0;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.form-section {
  background: #FAE9CC;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== RETRO BUTTONS & CTA ===== */
.cta-btn, .cta-btn-large, .service-cta, .cookie-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  padding: 13px 30px;
  background: var(--retro-yellow);
  color: var(--primary-dark);
  border: 3px solid var(--retro-brown);
  border-radius: 28px;
  transition: background 0.22s, box-shadow 0.21s, color 0.18s, border-color 0.21s, transform 0.21s;
  box-shadow: 0 1px 9px rgba(120, 60, 4, 0.13);
  margin-top: 12px;
  text-align: center;
}
.cta-btn-large {
  font-size: 21px;
  padding: 16px 46px;
  border-width: 4px;
}
.cta-btn:hover, .cta-btn-large:hover, .service-cta:hover, .cookie-btn:hover {
  background: var(--retro-coral);
  color: #FEFAEC;
  border-color: var(--primary);
  transform: scale(1.035) translateY(-2px);
  box-shadow: 0 2px 14px rgba(206,118,55,0.13);
  text-decoration: none;
}

.service-cta {
  font-size: 1rem;
  background: var(--retro-green);
  color: var(--text-light);
  border: 3px solid var(--retro-brown);
}
.service-cta:hover { background: var(--retro-coral); }

/* ===== HEADER NAV ===== */
header {
  background: var(--retro-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 14px;
  padding: 0 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 17px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-coral);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 10px;
  top: 12px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: var(--retro-coral);
  background: var(--retro-bg);
  border: 2px solid var(--retro-brown);
  border-radius: 50%;
  z-index: 101;
  box-shadow: 0 2px 9px rgba(189,156,20,0.08);
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.17s, background 0.17s;
}
.mobile-menu-toggle:active {
  background: var(--retro-yellow);
  box-shadow: 0 2px 16px rgba(207,198,98,0.11);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 360px;
  height: 100vh;
  background: var(--accent);
  box-shadow: -4px 0 24px rgba(39,20,10,0.20);
  transform: translateX(102vw);
  transition: transform 0.35s cubic-bezier(.68,-0.55,0.27,1.55);
  z-index: 120;
  padding: 38px 24px 24px 24px;
  overflow-y: auto;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 19px;
  font-size: 2.2rem;
  background: var(--retro-coral);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--retro-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(220,90,30,0.15);
  transition: background 0.14s, border-color 0.14s;
}
.mobile-menu-close:active {
  border-color: var(--primary);
  background: var(--retro-yellow);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 62px;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  padding: 12px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.22s, color 0.18s;
}
.mobile-nav a:hover {
  background: var(--retro-yellow);
  color: var(--retro-coral);
}

@media (max-width: 980px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 980px) {
  .cta-btn {
    margin-left: auto;
  }
}
@media (min-width: 981px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none!important;
  }
}

/* ===== MAIN SECTION & SERVICE CARDS ===== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 24px 0;
  justify-content: flex-start;
}
.service-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 308px;
  background: #FFFDEC;
  border-radius: var(--radius);
  border: 2px solid var(--retro-brown);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.17s, border-color 0.19s, transform 0.21s;
  margin-bottom: 20px;
}
.service-card:hover {
  box-shadow: 0 6px 30px rgba(184, 139, 16, 0.14);
  border-color: var(--retro-coral);
  transform: translateY(-3px) scale(1.03);
}

/* ===== TABLES (RETRO STYLING) ===== */
.comparison-table, .pricing-table, .comparison-chart {
  width: 100%;
  background: #FFFBE8;
  border: 2px solid var(--retro-brown);
  border-radius: var(--radius);
  margin: 16px 0 40px 0;
  box-shadow: 0 1px 10px rgba(180, 90, 10, 0.08);
  overflow: hidden;
}
.comparison-table th, .pricing-table th, .comparison-chart th {
  background: #FFD966;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 16px 8px;
  border-bottom: 2px solid var(--retro-brown);
}
.comparison-table td, .pricing-table td, .comparison-chart td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #F3D7A4;
  font-family: var(--font-body);
  background: rgba(255,249,213,0.91);
}
.comparison-table tr:last-child td, .pricing-table tr:last-child td, .comparison-chart tr:last-child td {
  border-bottom: none;
}


/* ===== TESTIMONIAL BLOCKS ===== */
.testimonials h2 {
  color: var(--retro-coral);
  margin-bottom: 18px;
}
blockquote {
  font-style: italic;
  background: none;
  color: var(--primary-dark);
  font-size: 1.09rem;
  border-left: 5px solid var(--retro-yellow);
  margin-bottom: 8px;
  padding-left: 15px;
}
.testimonial-meta {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--retro-brown);
}

/* ===== TRUST BADGES & CERTIFICATES ===== */
.trust-badges, .certifications {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-badges img, .certifications img {
  width: 58px;
  height: auto;
  background: #ffeed8;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 1px 7px rgba(200,170,40,0.13);
  border: 1.5px solid #ECE3D3;
}

/* ===== CTA AREA ===== */
.cta .cta-btn-large, .cta .cta-btn {
  margin-top: 0;
  margin-bottom: 10px;
  background: #FAE9CC;
  color: var(--primary);
  border-color: var(--retro-brown);
}
.cta .cta-btn-large:hover, .cta .cta-btn:hover {
  background: var(--retro-yellow);
  color: var(--retro-coral);
}
.cta p { margin-top: 8px; }

/* ====== ABOUT/LEGAL/FORM SECTIONS ====== */
.about-section, .legal, .form-section, .contact-section {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}
.text-section p {
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.text-section ul {
  margin-left: 18px;
}
.text-section ul li {
  list-style: disc inside;
  margin-bottom: 10px;
}
.text-section a {
  color: var(--retro-coral);
  text-decoration: underline;
}

/* ===== FAQ/SUPPORT ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.faq-list li {
  background: #FFF3C1;
  border-radius: 10px;
  padding: 19px 15px;
  border-left: 5px solid var(--retro-green);
  font-size: 1rem;
  box-shadow: 0 1px 7px rgba(130,160,64,0.13);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 28px 0 0 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 16px rgba(31,34,51,0.10);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}
footer nav {
  display: flex;
  gap: 19px;
}
footer nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover {
  color: var(--retro-coral);
}
.footer-info {
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.93em;
}

/* ===== COOKIE CONSENT BANNER AND MODAL ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF3C1;
  color: var(--primary-dark);
  border-top: 3.5px solid var(--retro-brown);
  box-shadow: 0 -2px 24px rgba(213, 170, 46, .17);
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  padding: 20px 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieSlideIn 0.48s cubic-bezier(.68,-0.55,0.27,1.55);
}
@keyframes cookieSlideIn {
  from { transform: translateY(140px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  margin-left: 14px;
  margin-top: 0;
  font-size: 1rem;
  padding: 8px 23px;
  border-width: 2px;
  border-radius: 21px;
}
.cookie-banner .cookie-btn.settings {
  background: var(--retro-green);
  color: var(--text-light);
  border-color: var(--retro-brown);
}
.cookie-banner .cookie-btn.reject {
  background: #ECE3D3;
  color: var(--retro-coral);
  border-color: var(--retro-brown);
}

.cookie-banner .cookie-btn:hover {
  background: var(--retro-coral);
  color: #fff;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4010;
  inset: 0;
  background: rgba(43,38,24,0.41);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.26s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF3C1;
  border-radius: var(--radius);
  max-width: 420px;
  width: 98vw;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 8px 38px rgba(189,156,20,0.23);
  position: relative;
  margin: 0 auto;
  color: var(--primary-dark);
  font-family: var(--font-body);
  animation: fadeInModal 0.27s;
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--retro-coral);
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 14px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--retro-green);
}
.cookie-modal .cookie-category label {
  font-size: 1.1rem;
}
.cookie-modal .cookie-category.essential label {
  color: var(--retro-brown);
  font-weight: 600;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 26px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.6rem;
  background: var(--retro-coral);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .close-modal-btn:hover {
  background: var(--retro-yellow);
  color: var(--primary-dark);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 980px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    max-width: 99vw;
    padding: 0 4px;
  }
  .section, .features, .services, .cta, .about, .legal, .about-section,
  .form-section, .contact-section, .pricing, .thanks, .support {
    padding: 28px 6px;
    margin-bottom: 36px;
    border-radius: 13px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .service-list { gap: 16px; }
  .service-card { padding: 18px 11px; min-width: 90vw; max-width: 100vw; }
  .testimonial-card { padding: 13px 8px; gap: 11px; }
  .card, .card-container { min-width: 88vw; }
  .trust-badges, .certifications {
    gap: 13px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .about-section, .form-section, .legal, .contact-section {
    max-width: 99vw;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  footer .container { padding: 6px 2vw; }
}
@media (max-width: 540px) {
  .mobile-menu { padding: 14vw 8vw 9vw 6vw; }
}

/* ===== MICRO-INTERACTIONS & TRANSITIONS ===== */
.cta-btn, .cta-btn-large, .service-cta {
  transition: background 0.21s, color 0.21s, border-color 0.18s, box-shadow 0.16s, transform 0.11s;
}
td, th, blockquote, .testimonial-card {
  transition: background 0.15s, color 0.18s;
}
.testimonial-card {
  cursor: pointer;
}
.testimonial-card:active {
  transform: scale(0.99) translateY(3px);
}

/* ===== MISC UTILS ===== */
::-webkit-scrollbar {
  width: 9px;
  background: #fff9e8;
}
::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 11px;
}

/* ===== Z-INDEX COMPLIANCE ===== */
header { z-index: 100; }
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 4000; }

/* ===== FONTS LOAD (Web Safe Fallbacks; insert font links in HTML) ===== */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Arial Narrow'), local('Arial');
  font-style: normal;
  font-weight: 400 700;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), local('Arial'), local('Helvetica');
  font-style: normal;
  font-weight: 400 700;
}
