/* =============================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F6F2;
  color: #2a241e;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* =============================
   VINTAGE RETRO CUSTOM PROPS
============================= */
:root {
  --clr-primary: #123C69;
  --clr-secondary: #E9F1F7;
  --clr-accent: #EDC988;
  --clr-bg-main: #F9F6F2;
  --clr-bg-paper: #fffbea;
  --clr-bg-alt: #FCF3E0;
  --clr-text-main: #2a241e;
  --clr-text-secondary: #5e574d;
  --clr-error: #ae2323;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --shadow-card: 0 3px 18px rgba(18,60,105,0.09), 0 1.5px 7px rgba(41,36,30,0.06);
  --shadow-btn: 0 2px 6px rgba(237,201,136,0.10);
  --retro-border: 2.5px solid #123C69;
  --pattern-url: url("data:image/svg+xml,%3Csvg width='40' height='40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' fill='%23E9F1F7'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%23EDC988'/%3E%3C/svg%3E");
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Web Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Roboto:wght@400;500&display=swap');

/* =============================
     GLOBAL TYPOGRAPHY
============================= */
body {
  font-family: var(--font-body);
  background: var(--clr-bg-main);
  color: var(--clr-text-main);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-primary);
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  border-bottom: var(--retro-border);
  display: inline-block;
  padding-bottom: 4px;
  background: var(--clr-accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 0 rgba(18,60,105,0.11);
}
h3 {
  font-size: 1.13rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
p, li, span, a, label {
  font-size: 16px;
}
.text-section ul, .text-section ol {
  margin: 8px 0 16px 20px;
}
.text-section li {
  list-style: disc inside;
  margin-left: 16px;
  margin-bottom: 8px;
}
.text-section ol li {
  list-style-type: decimal;
}

/* Vintage Patterns on Section Headers or BG */
section {
  background: var(--clr-bg-paper);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
section:nth-child(even) {
  background: var(--clr-bg-alt);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============================
     CONTAINER & WRAPPER LAYOUTS
============================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  align-items: flex-start;
  justify-content: center;
}

.card-container, .feature-grid, .service-card-list, .testimonial-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 32px 24px;
  border: var(--retro-border);
}

.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;
  margin-bottom: 20px;
  background: #fff8de;
  border: 2.5px dashed var(--clr-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(18,60,105,0.07);
  color: #2a241e;
  font-family: var(--font-body);
  max-width: 410px;
  min-width: 230px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

.feature-grid .feature {
  flex: 1 1 250px;
  background: #fcf3e0;
  border-radius: var(--radius-md);
  border: 2px dotted var(--clr-primary);
  padding: 24px 18px;
  text-align: left;
  min-width: 240px;
  max-width: 320px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.25s;
}
.feature-grid .feature:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 6px 24px rgba(18,60,105,0.16);
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: sepia(0.65) hue-rotate(-22deg) brightness(1.08);
}

.service-card-list {
  gap: 24px 16px;
}
.service-card {
  flex: 1 1 220px;
  background: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-accent);
  box-shadow: var(--shadow-card);
  padding: 28px 18px 18px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 300px;
  transition: box-shadow 0.18s, transform 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.service-card h3 {
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.service-card span {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--clr-accent);
  font-family: var(--font-display);
  background: var(--clr-secondary);
  border-radius: 9px;
  padding: 3px 10px;
  letter-spacing: 1px;
  box-shadow: 0 1px 2px rgba(237,201,136,0.07);
}
.service-card:hover {
  box-shadow: 0 9px 28px rgba(18,60,105,0.16);
  transform: translateY(-7px) scale(1.038);
}

.faq-list {
  flex-direction: column;
  gap: 20px;
}
.faq {
  background: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  border-left: 6px solid var(--clr-accent);
  margin-bottom: 20px;
  transition: background 0.2s, border-color 0.2s;
}
.faq h3 {
  color: var(--clr-primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.faq:hover {
  background: #fff9ea;
  border-left: 6px solid var(--clr-primary);
}

/* =============================
     HEADER AND NAVIGATION
============================= */
header {
  background: var(--clr-primary);
  box-shadow: 0 3px 12px rgba(18,60,105,0.085);
  color: #fff;
  position: sticky;
  top:0;
  width: 100%;
  z-index: 103;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 1140px;
}
header a img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  background: none;
  padding: 8px 0;
  border-radius: 0px;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.17s;
}
.main-nav a:not(.button-primary)::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width 0.3s cubic-bezier(.47,1.64,.41,.8);
  border-radius: 6px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.main-nav a:hover:not(.button-primary)::after, .main-nav a.active:not(.button-primary)::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--clr-accent);
}
.button-primary {
  display: inline-block;
  background: var(--clr-accent);
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  padding: 11px 28px;
  border-radius: 26px;
  box-shadow: var(--shadow-btn);
  transition: background 0.14s, transform 0.13s, color 0.17s;
  letter-spacing: 1.2px;
  font-size: 1.05rem;
  cursor: pointer;
  margin-left: 14px;
  white-space: nowrap;
  outline: none;
  border: 2px solid var(--clr-accent);
}
.button-primary:hover, .button-primary:focus {
  background: var(--clr-primary);
  color: var(--clr-accent);
  border: 2.3px solid var(--clr-accent);
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 3px 16px rgba(18,60,105,0.11);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--clr-accent);
  color: var(--clr-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2em;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 11px rgba(237,201,136,0.17);
  transition: background 0.15s, color 0.15s;
  margin-left: 20px;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--clr-primary);
  color: var(--clr-accent);
  outline: 3px solid var(--clr-accent);
}

/* =============================
   MOBILE MENU & ANIMATION
============================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--clr-secondary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-105vw);
  transition: transform 0.34s cubic-bezier(0.76,0,0.24,1);
  box-shadow: 0 4px 65px rgba(18,60,105,0.13);
  padding: 24px 32px 32px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--clr-accent);
  color: var(--clr-primary);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.35em;
  margin-bottom: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--clr-primary);
  color: var(--clr-accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--clr-primary);
  font-size: 1.16rem;
  padding: 14px 0 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: transparent;
  position: relative;
  transition: background 0.14s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-accent);
  color: var(--clr-primary);
}
.mobile-nav a:last-child {
  margin-bottom: 10px;
}
/* Hide menu on desktop */
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}

/* =============================
     FOOTER STYLES
============================= */
footer {
  background: var(--clr-primary);
  color: #fff;
  padding: 44px 0 24px;
  margin-top: 66px;
  box-shadow: 0 -2px 18px rgba(18,60,105,0.085);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-logo img {
  height: 59px;
  width: auto;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97em;
  margin-top: 8px;
}
.footer-contact a {
  color: var(--clr-accent);
  text-decoration: underline dotted;
}
.footer-contact a:hover {
  color: #fff;
  background: var(--clr-accent);
  padding: 0 4px;
  border-radius: var(--radius-sm);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: var(--clr-accent);
  font-family: var(--font-display);
  font-size: 1em;
  letter-spacing: 0.6px;
  transition: color 0.11s;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline wavy #fff8de 2px;
}

/* =============================
     COOKIE CONSENT BANNER & MODAL
============================= */
#cookie-banner {
  position: fixed;
  left: 0; right:0; bottom:0;
  width: 100vw;
  z-index: 400;
  background: #fbf0d0;
  color: #3d3d1f;
  margin: 0;
  box-shadow: 0 -2px 18px rgba(18,60,105,0.13);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  gap: 18px;
  border-top: 3px solid var(--clr-accent);
  animation: cookiebanner-pop 0.52s cubic-bezier(.5,1.8,.33,1) 0s 1;
}
@keyframes cookiebanner-pop {
  from { opacity: 0; transform: translateY(64px) scaleY(0.94); }
  to { opacity: 1; transform: none; }
}
#cookie-banner p {
  font-family: var(--font-body);
  flex: 1;
  margin-bottom: 0;
  color: #312c1b;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--clr-primary);
  color: var(--clr-accent);
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 21px;
  cursor: pointer;
  margin-right: 0;
  font-size: 1rem;
  transition: background 0.16s, color 0.14s, transform 0.12s;
}
.cookie-btn.accept {
  background: var(--clr-accent);
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.cookie-btn.reject {
  background: #fff8de;
  color: var(--clr-error);
  border: 2px solid var(--clr-error);
}
.cookie-btn.settings {
  background: var(--clr-bg-paper);
  color: var(--clr-primary);
  border: 2px solid var(--clr-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-3px) scale(1.05);
  background: var(--clr-primary);
  color: var(--clr-accent);
}

#cookie-modal {
  display: none;
  position: fixed;
  z-index: 420;
  left:0; top:0; width: 100vw; height: 100vh;
  background: rgba(18, 60, 105, 0.22);
  align-items: center;
  justify-content: center;
  transition: background 0.22s;
}
#cookie-modal.open {
  display: flex;
  animation: cookiemodal-fadein 0.34s cubic-bezier(.46,2,.55,1.15);
}
@keyframes cookiemodal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fffbea;
  padding: 36px 26px 24px 26px;
  border-radius: var(--radius-lg);
  box-shadow: 0 9px 28px rgba(18,60,105,0.13);
  min-width: 320px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h2 {
  margin-bottom: 12px;
  color: var(--clr-primary);
  font-size: 1.2rem;
  background: none;
  border-bottom: none;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--clr-primary);
  font-size: 1rem;
}
.cookie-toggle {
  width: 48px;
  height: 26px;
  background: var(--clr-secondary);
  border-radius: 20px;
  border: 2px solid var(--clr-accent);
  position: relative;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.17s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height:0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  background: var(--clr-accent);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: transform 0.16s cubic-bezier(.62,1.43,.52,1), background 0.11s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(22px);
  background: var(--clr-primary);
}
.cookie-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: var(--clr-accent);
  color: var(--clr-primary);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.14rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: -8px;
  margin-top: -22px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--clr-primary);
  color: var(--clr-accent);
}


/* =============================
     MICRO-INTERACTIONS, BUTTONS
============================= */
button, .button-primary, .cookie-btn {
  outline: none;
  transition: background 0.14s, color 0.13s, box-shadow 0.15s, transform 0.16s;
}
button:active, .button-primary:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* =============================
     RETRO ELEMENT TOUCHES
============================= */
section::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--pattern-url);
  opacity: 0.11;
  pointer-events:none;
  z-index: 0;
}
section > * { position: relative; z-index: 2; }

.card, .service-card, .feature, .testimonial-card, .faq {
  font-family: var(--font-body);
}

/* =============================
     RESPONSIVE DESIGN
============================= */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (max-width: 1000px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 820px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-logo img {
    height: 44px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
  }
}
@media (max-width: 768px) {
  section,.section {
    padding: 25px 6px;
    margin-bottom: 36px;
    border-radius: var(--radius-md);
  }
  .card,.service-card,.feature {
    padding: 18px 10px;
    min-width: 160px;
    max-width: 98vw;
  }
  .testimonial-card {
    min-width: 160px;
    max-width: 100vw;
    padding: 16px 10px;
  }
  h1 {
    font-size: 1.33rem;
  }
  h2 {
    font-size: 1.09rem;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
    gap: 9px;
    max-width: none;
  }
  .card-container, .feature-grid, .service-card-list, .testimonial-list, .faq-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer-logo img {
    height: 34px;
  }
}
@media (max-width: 650px) {
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .feature{
    min-width: 90vw;
    max-width: 99vw;
  }
  .service-card{
    min-width: 120px;
    max-width: 98vw;
  }
  .faq{padding: 13px 6px;}
}

/* =============================
     PRINT-LIKE RETRO DECOR
============================= */
.card, .feature, .service-card {
  border-style: double;
  background: linear-gradient(120deg, #fffbea 97%, #EDC988 100%);
  box-shadow: 0 3px 14px rgba(18,60,105,0.07);
}
.card::after, .feature::after, .service-card::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom:0; width: 100%; height: 6px;
  background: repeating-linear-gradient(90deg, var(--clr-accent), var(--clr-primary) 4px, transparent 4px, transparent 10px);
  opacity: 0.19;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: none;
}

/*
 * Accessibility - Focus Rings/
 */
:focus-visible {
  outline: 3px dashed var(--clr-primary);
  outline-offset: 2px;
}

/*
 * Misc. Custom List Styles
 */
.text-section ul, .text-section ol {
  margin-left: 4px;
  margin-right:10px;
}
.text-section li::marker {
  color: var(--clr-accent);
  font-size: 1.18em;
  font-family: var(--font-display);
}

/*
 * Extra: Prevent Images from Breaking Layout
 */
img {
  max-width: 100%;
  height: auto;
}

/*
 * Utilities
 */
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.mt-3 { margin-top: 22px; }
.mb-3 { margin-bottom: 22px; }

/* >EOF< */