/* ---------------------------
   CSS RESET & BASELINE
---------------------------- */

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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F1FAEE;
  color: #222;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
a {
  color: #E63946;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #1B263B;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}


/* ---------------------------
    FONT IMPORTS
---------------------------- */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  src: local('Orbitron Bold'), url('https://fonts.gstatic.com/s/orbitron/v30/yMJRMIlzdpvBhQQL_Qq7dys.woff2') format('woff2');
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Orbitron:wght@700&display=swap');

:root {
  --brand-primary: #1B263B;
  --brand-secondary: #E63946;
  --brand-accent: #F1FAEE;
  --retro-yellow: #F7D488;
  --retro-blue: #2281A4;
  --retro-brown: #967259;
  --retro-cream: #FFF6E5;
  --retro-orange: #F38320;
  --retro-green: #84A98C;
  --font-display: 'Orbitron', 'Montserrat', Arial, sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --card-shadow: 0 2px 12px rgba(27, 38, 59, 0.10), 0 4px 24px rgba(27,38,59,0.08);
  --border-radius: 18px;
  --border-radius-sm: 9px;
  --section-pattern: repeating-linear-gradient(-45deg, #F7D488 0 8px, #FFF6E5 8px 16px);
}

/* ---------------------------
  RETRO VINTAGE COLOR & TYPE
---------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-primary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin: 18px 0 8px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 8px; }

p, li, td, th {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2a2a2a;
  margin-bottom: 0.5em;
}
strong {
  color: var(--brand-secondary);
  font-weight: 600;
}

blockquote {
  font-family: var(--font-body);
  font-style: italic;
  background: var(--retro-yellow);
  color: #333;
  padding: 18px 24px;
  border-radius: var(--border-radius-sm);
  border-left: 5px solid var(--brand-secondary);
  margin-bottom: 10px;
  box-shadow: 0px 1px 7px rgba(27,38,59,0.07);
}

/* ---------------------------
     RETRO SECTION PATTERN
---------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-pattern);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 25px 7px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 10px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------------------------
    NAVIGATION & HEADER
---------------------------- */
header {
  background: var(--retro-cream);
  border-bottom: 4px solid var(--brand-secondary);
  box-shadow: 0 2px 10px rgba(27,38,59,0.05);
  position: relative;
  z-index: 15;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 10px 12px 10px;
}
nav > a img { height: 42px; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: 18px;
}
nav ul li { display: flex; }
nav ul li a {
  font-family: var(--font-display);
  font-size: 1.000rem;
  color: var(--brand-primary);
  letter-spacing: 1px;
  padding: 6px 15px 7px 15px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
nav .btn-primary {
  margin-left: 26px;
}

@media (max-width: 900px) {
  nav ul {
    gap: 10px;
  }
  nav .btn-primary {
    margin-left: 9px;
  }
  nav {
    padding: 7px 6px 7px 6px;
  }
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
  nav ul,
  nav .btn-primary {
    display: none !important;
  }
}

/* -------------
  MOBILE MENU
 ------------- */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    background: var(--brand-secondary);
    color: #fff;
    border: none;
    font-size: 2.1rem;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    margin: 6px;
    position: absolute;
    right: 15px;
    top: 14px;
    z-index: 33;
    transition: background 0.18s;
  }
  .mobile-menu-toggle:hover {
    background: var(--brand-primary);
    color: #fff6e5;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--brand-primary);
  transform: translateX(-105vw);
  z-index: 99;
  transition: transform 0.36s cubic-bezier(0.7, 0.7, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 0 0 9999px rgba(27,38,59,.65);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  width: 44px; height: 44px;
  align-self: flex-end;
  margin: 20px 20px 0 0;
  cursor: pointer;
  transition: background .17s;
  z-index: 4;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 40px;
}
.mobile-nav a {
  color: #F1FAEE;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 1.25rem;
  background: transparent;
  border-radius: 12px;
  padding: 16px 32px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.mobile-menu {
  /* prevent scroll on open */
  overflow-y: auto;
}

/* -------------
     BUTTONS
 ------------- */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.10rem;
  letter-spacing: 1.2px;
  border-radius: 13px;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(230,57,70,.13);
  margin-top: 12px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.14s, color 0.14s, transform 0.14s, box-shadow 0.15s;
}
.btn-primary {
  color: #fff;
  background: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--retro-yellow);
  color: var(--brand-primary);
  border-color: var(--retro-yellow);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 19px 0 rgba(230,57,70,0.16);
}

.btn-secondary {
  color: #1B263B;
  background: var(--retro-yellow);
  border: 2px solid var(--retro-yellow);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #1B263B;
  color: #fff;
  border-color: #1B263B;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 17px 0 rgba(182,132,54,0.12);
}

/* -------------
   TYPO SCALES
 ------------- */

@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  .btn-primary,.btn-secondary {
    font-size: 1rem;
    padding: 10px 16px;
  }
}

/* ---------------------------
       MAIN CONTENT SPACING
---------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--card-shadow);
  padding: 30px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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;
  margin-bottom: 22px;
  background: var(--retro-yellow);
  color: #1B263B;
  border: 2.5px dashed var(--brand-secondary);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 1px 9px rgba(27,38,59,0.09);
  max-width: 560px;
  font-family: var(--font-body);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-cream);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 6px rgba(179,131,54,0.10);
}

/* spacing for text blocks in info sections */
.text-section {
  margin-bottom: 25px;
  padding: 14px 0 0 0;
}

/* Visual highlight for prices in services */
.price {
  font-weight: bold;
  background: var(--retro-orange);
  color: #fff;
  border-radius: 7px;
  padding: 2px 10px;
  font-size: 1.1rem;
  margin-left: 8px;
}

/* ---------------------------
         TABLES
---------------------------- */
table {
  width: 100%;
  background: var(--retro-cream);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 11px;
  box-shadow: 0 1px 15px rgba(27,38,59,.07);
  overflow: hidden;
  margin: 28px 0 14px;
  font-size: 1rem;
}
thead th {
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 14px 12px;
  text-align: left;
}
tbody td {
  padding: 13px 12px;
  border-bottom: 2px solid #DFD9CF;
  background: var(--retro-cream);
  color: #2a2a2a;
}
td, th {
  vertical-align: top;
}

/* ---------------------------
       FOOTER
---------------------------- */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 46px 0 19px 0;
  box-shadow: 0 -2px 18px 0 rgba(27,38,59,0.06);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
footer a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-size: 0.95rem;
}
footer a:hover,
footer a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  align-items: center;
}
.footer-contact {
  color: #FFE5AD;
  font-family: var(--font-body);
  font-size: .95rem;
  margin-top: 8px;
}
footer small {
  display: block;
  margin-top: 19px;
  color: #bababa;
}
footer img {
  height: 28px;
}

@media (max-width: 540px) {
  footer {
    padding: 25px 0 12px 0;
  }
  footer .container {
    gap:15px;
  }
  .footer-contact {font-size: .89rem;}
}

/* ---------------------------
  RESPONSIVE DESIGN
---------------------------- */
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 3px;
  }
  .content-grid, .card-container, .text-image-section, .testimonial-card {
    flex-direction: column !important;
    gap: 17px !important;
    align-items: stretch;
  }
}

/* ---------------------------
  ACCESSIBILITY/MICRO UX
---------------------------- */
:focus {
  outline: 2.5px dotted var(--brand-secondary);
  outline-offset: 3px;
}

/* Visual hierarchy for section headers */
section h2 {
  border-bottom: 2px solid var(--retro-orange);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--retro-yellow) 45%, transparent 100%);
  border-radius: 3px 12px 0 0;
  box-decoration-break: clone;
}

/* List styling (retro bullets) */
ul li, ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 6px;
  font-size: 1rem;
}
ul li:before, ol li:before {
  content: '\25A0';
  color: var(--brand-secondary);
  font-size: 1.0em;
  position: absolute;
  left: 3px;
  top: -2px;
  font-family: var(--font-display);
}

/* Remove bullets for nav/footer */
nav ul li:before,
footer nav a:before {
  display: none;
  content: '';
}

/* ---------------------------
   SPECIAL RETRO DECORATION
---------------------------- */
section:before, section:after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
section:before {
  top: 18px; left: 19px;
  width: 34px; height: 34px;
  background: url('data:image/svg+xml;utf8,<svg width="34" height="34" viewBox="0 0 34 34" fill="%23F38320" xmlns="http://www.w3.org/2000/svg"><rect width="6" height="6"/></svg>') no-repeat;
  opacity: 0.11;
}
section:after {
  bottom: 12px; right: 16px;
  width: 44px; height: 44px;
  background: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 44 44" fill="%23967259" xmlns="http://www.w3.org/2000/svg"><circle cx="22" cy="22" r="12"/></svg>') no-repeat;
  opacity: 0.11;
}

@media (max-width: 600px) {
  section:before, section:after {
    display: none !important;
  }
}

/* ---------------------------
   COOKIE CONSENT BANNER
---------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--retro-cream);
  border-top: 3px solid var(--brand-secondary);
  box-shadow: 0 -2px 18px 0 rgba(27,38,59,0.15);
  color: var(--brand-primary);
  z-index: 99999;
  padding: 20px 10px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookieSlideIn 0.7s cubic-bezier(.60, 1.1, .7, .8) 1;
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-content {
  max-width: 730px;
  text-align: center;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 26px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.17s;
  margin-top: 0;
  margin-bottom: 0;
}
.cookie-banner .accept {
  background: var(--brand-secondary);
  color: #fff;
  border: 2px solid var(--brand-secondary);
  font-weight: 700;
}
.cookie-banner .accept:hover {
  background: var(--retro-yellow);
  color: var(--brand-primary);
}
.cookie-banner .reject {
  background: var(--retro-yellow);
  color: var(--brand-primary);
  border: 2px solid var(--retro-yellow);
  font-weight: 700;
}
.cookie-banner .reject:hover {
  background: #fff6e5;
  color: var(--brand-secondary);
}
.cookie-banner .settings {
  background: #e4ded6;
  color: var(--brand-primary);
  border: 2px solid #e4ded6;
  font-weight: 700;
}
.cookie-banner .settings:hover {
  background: var(--retro-brown);
  color: #fff;
}

@media (max-width: 540px) {
 .cookie-banner {
   padding: 8px 4px;
 }
 .cookie-banner .cookie-content {
   font-size: 0.95rem;
   padding: 0 2px;
 }
}

/* MODAL DIALOG FOR COOKIE PREFS */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,38,59,0.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.24s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-cream);
  border: 3px solid var(--brand-secondary);
  border-radius: 17px;
  box-shadow: 0 10px 44px 0 rgba(27,38,59,0.15);
  padding: 34px 26px 26px 26px;
  min-width: 290px;
  max-width: 450px;
  max-height: 90vh;
  color: var(--brand-primary);
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin: 0 0 14px 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 17px 0 0 0;
  font-size: 1rem;
}
.cookie-modal label {
  font-family: var(--font-body);
  color: var(--brand-primary);
  font-weight: 600;
}
.cookie-modal .switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 6px;
}
.cookie-modal input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--brand-secondary);
  border-radius: 5px;
  margin-right: 6px;
  border: 1.4px solid var(--brand-primary);
}
.cookie-modal .always-on {
  color: #bba21a;
  font-style: italic;
  font-size: 0.97rem;
  margin-left: 7px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px; top: 18px;
  background: var(--brand-secondary);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 1.3rem;
  width: 32px; height: 32px;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 3;
}
.cookie-modal .close-modal:hover {
  background: var(--brand-primary);
  color: var(--retro-yellow);
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 16px 5px 11px 5px;
    max-width: 96vw;
    font-size: 0.96rem;
  }
}

/* ---------------------------
   ANIMATIONS & MICRO INTERACTIONS
---------------------------- */
.card, .testimonial-card, .feature-item, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(230,57,70,.14), 0 4px 20px rgba(27,38,59,0.10);
  transform: translateY(-3px) scale(1.016);
}

/* Lists in footer, sidebar, nav, main - gap and white-space */
footer nav, nav ul {
  gap: 15px;
  display: flex;
  flex-wrap: wrap;
}

/* -------------
   PRINT FRIENDLY
--------------- */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .card, .testimonial-card, .feature-item { box-shadow: none !important; border: 0 !important; }
}

/* -------------
    END
--------------- */
