/* ------------------------------------------------------
  CSS Reset & Normalize (mobile-first, vintage_retro theme)
---------------------------------------------------------*/
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: #F6F6F6;
  color: #24444B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ------------------------------------------------------
  Vintage Retro Brand Colors, Fonts & Theme Variables
---------------------------------------------------------*/
:root {
  --primary: #24444B;
  --secondary: #F9C001;
  --accent: #F6F6F6;
  --vintage-coral: #E77261;
  --vintage-blue: #85A6A2;
  --vintage-brown: #E9D7C3;
  --vintage-red: #C94434;
  --vintage-green: #77B28C;
  --text-dark: #24444B;
  --text-light: #FFF;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --shadow-card: 0 4px 16px rgba(36,68,75,0.08), 0 1.5px 3px rgba(233,215,195,0.13);
  --shadow-vintage: 0 2px 8px rgba(36,68,75,0.10);
  --font-display: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  --font-body: 'Open Sans', 'Trebuchet MS', sans-serif;
}

/* ------------------------------------------------------
  Typography - Vintage/Retro Touch & Scale
---------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 0 var(--secondary),0 1px 8px rgba(233,215,195,0.15);
}
h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  text-shadow: 0 1px 0 var(--vintage-coral);
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.05rem;
  line-height: 1.3;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--vintage-blue);
  margin-bottom: 18px;
  margin-top: 2px;
  font-style: italic;
}
p,
ul,
ol,
li {
  font-family: var(--font-body);
  color: var(--primary);
}
p { margin-bottom: 14px; }

ul, ol {
  margin-left: 1.2em;
  margin-bottom: 12px;
  padding-left: 1.1em;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 7px;
  line-height: 1.55;
}
strong {
  color: var(--vintage-coral);
  font-weight: bold;
}
em {
  color: var(--vintage-red);
  font-style: italic;
}

/* Blockquote/retro testimonial quote styling */
blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: var(--vintage-brown);
  padding: 20px 24px;
  border-left: 5px solid var(--vintage-coral);
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
  color: var(--primary);
  box-shadow: var(--shadow-vintage);
}

/* --------------------------------------------
  Layout Containers & Section Patterns
----------------------------------------------*/
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}

/* Card/Feature layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--vintage-brown);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 18px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card img {
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
}

/* Content grid layouts for categories etc. */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-grid, .category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div,
.category-grid > li {
  flex: 1 1 180px;
  min-width: 168px;
  background: var(--vintage-brown);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 6px rgba(36,68,75,0.06);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 10px;
  transition: transform 0.23s cubic-bezier(.64,.09,.08,1),box-shadow 0.21s;
  border: 2px solid var(--vintage-blue);
  position: relative;
}
.feature-grid > div:hover,
.category-grid > li:hover {
  transform: translateY(-6px) scale(1.04) rotate(-2deg);
  box-shadow: 0 6px 22px rgba(36,68,75,0.16);
  border-color: var(--vintage-coral);
  z-index: 2;
  cursor: pointer;
}
.feature-grid img, .category-grid img {
  display: block;
  margin: 0 auto 10px auto;
  background: var(--accent);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  width: 46px;
  height: 46px;
}

.services-list {
  list-style: disc inside;
  margin-bottom: 12px;
  padding-left: 0px;
}
.services-list li {
  margin-bottom: 10px;
  background: var(--vintage-brown);
  padding: 11px 18px 8px 18px;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--vintage-green);
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin: 16px 0 0 2px;
}
.filters label {
  font-size: 0.99em;
  background: var(--vintage-blue);
  color: var(--text-light);
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s;
}
.filters label:hover {
  background: var(--secondary);
  color: var(--primary);
}

input[type="text"] {
  font-size: 1rem;
  padding: 9px 14px;
  border: 1.5px solid var(--vintage-blue);
  border-radius: var(--border-radius-sm);
  transition: border 0.2s;
  background: #fffde8;
  font-family: var(--font-body);
  margin-bottom: 10px;
}
input[type="text"]:focus {
  outline: none;
  border: 1.5px solid var(--secondary);
}
input[type="checkbox"] {
  accent-color: var(--secondary);
}

ol {
  list-style: decimal inside;
  margin-left: 0;
  padding-left: 0;
}

.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;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-vintage);
  min-width: 220px;
  margin-bottom: 20px;
  border: 2.5px solid var(--vintage-blue);
  font-size: 1.05rem;
  color: var(--primary) !important;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  color: var(--primary);
  background: var(--vintage-brown);
  border-left: 4px solid var(--vintage-coral);
  font-style: italic;
  font-weight: normal;
}
.testimonial-card strong {
  font-size: 1.07em;
  color: var(--vintage-coral);
}
.testimonial-card p {
  color: var(--primary);
}

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

/* ------------------------------------------------------
  Buttons
---------------------------------------------------------*/
.cta-button, .cta-button:visited {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.14rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 13px 34px 12px 34px;
  box-shadow: 0 3px 10px rgba(249,192,1,0.16);
  margin-top: 4px;
  margin-bottom: 8px;
  transition: background 0.16s, color 0.18s, box-shadow 0.17s, transform 0.18s;
  cursor: pointer;
  outline: none;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--vintage-coral);
  color: #fff;
  transform: translateY(-3px) scale(1.03) rotate(-0.75deg);
  box-shadow: 0 6px 20px rgba(233,215,195,0.18);
  text-shadow: 0 1px 6px rgba(36,68,75,0.07);
}

button,
.mobile-menu-toggle,
.mobile-menu-close {
  font-family: var(--font-display);
  background: var(--vintage-coral);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 8px 20px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, transform 0.16s;
  margin-right: 0;
  margin-bottom: 0;
}
button:hover,
.mobile-menu-toggle:hover,
.mobile-menu-close:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.07);
}
button:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus {
  outline: 2px solid var(--vintage-green);
  outline-offset: 2px;
}

/* ------------------------------------------------------
  Header, Navigation, and Mobile Menu
---------------------------------------------------------*/
header {
  background: var(--vintage-brown);
  border-bottom: 4px dotted var(--secondary);
  padding: 0 0 0 0;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px 0;
}
header nav a img {
  height: 48px;
  margin-right: 24px;
  vertical-align: middle;
}

header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
header ul li {
  margin: 0 5px;
}
header ul li a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 4px 16px 3px 16px;
  border-radius: var(--border-radius-sm);
  transition: background 0.15s, color 0.18s;
}
header ul li a:hover, header ul li a:focus {
  background: var(--secondary);
  color: var(--vintage-coral);
  outline: none;
}
.cta-button {
  margin-left: 14px;
}

/* Hide .mobile-menu-toggle on desktop, show on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-coral);
  color: #fff;
  font-size: 2.3rem;
  line-height: 1;
  padding: 3px 18px 3px 16px;
  margin-left: auto;
  border: none;
  z-index: 301;
  transition: background 0.15s, color 0.15s, transform 0.16s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--vintage-brown);
  box-shadow: 0 6px 34px 0 rgba(36,68,75,0.18);
  z-index: 501;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(.61,.01,.55,1.14);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--vintage-coral);
  border: none;
  margin: 18px 24px 8px 0;
  padding: 0 13px 0 3px;
  box-shadow: none;
}
.mobile-menu-close:hover {
  color: var(--vintage-red);
  background: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  padding: 34px 30px 14px 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.33rem;
  padding: 6.5px 10px;
  border-radius: var(--border-radius-sm);
  transition: background 0.16s, color 0.12s;
  min-width: 170px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--vintage-coral);
}

/* Show/hide nav for mobile */
@media (max-width: 950px) {
  header nav ul {
    display: none;
  }
  .cta-button {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 950px) {
  .mobile-menu {
    font-size: 1.13rem;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--vintage-brown);
  border-top: 3px solid var(--secondary);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 20px 22px 24px;
  z-index: 9001;
  box-shadow: 0 -3px 24px 0 rgba(36,68,75,0.18);
  font-size: 1rem;
  animation: cookie-banner-in 0.64s cubic-bezier(.61,.01,.55,1.14);
}
@keyframes cookie-banner-in {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .consent-btns {
  display: flex; gap: 16px; margin-top: 6px;
}
.cookie-consent-banner .consent-btn {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 21px;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.15s;
}
.cookie-consent-banner .consent-btn:hover {
  background: var(--vintage-coral);
  color: #fff;
  transform: scale(1.045);
}
.cookie-consent-banner .consent-btn.settings {
  background: var(--vintage-blue);
  color: #fff;
}
.cookie-consent-banner .consent-btn.settings:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* Cookie consent modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9900;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36,68,75,0.55);
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.45s cubic-bezier(.61,.01,.55,1.14);
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes cookie-modal-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  padding: 34px 34px 18px 34px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 38px rgba(36,68,75,0.21);
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  border: 3px solid var(--secondary);
  position: relative;
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.23em;
}
.cookie-modal label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 1.01em;
  padding: 8px 0;
}
.cookie-modal .category {
  background: var(--vintage-brown);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 7px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 15px;
  margin-top: 13px;
}

.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  color: var(--vintage-coral);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: var(--vintage-red);
}

/* ------------------------------------------------------
  Footer
---------------------------------------------------------*/
footer {
  width: 100vw;
  background: var(--primary);
  color: #fff;
  padding: 37px 0 18px 0;
  position: relative;
  text-align: center;
  border-top: 7px dotted var(--secondary);
  font-size: 1.01rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 45px;
  margin-bottom: 6px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 7px;
  font-family: var(--font-display);
}
footer nav a {
  color: var(--secondary);
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--vintage-coral);
  text-decoration: underline wavy #F9C001 1.5px;
}
footer p {
  color: #e7e7e7;
  font-size: 0.97em;
  margin-top: 5px;
}

/* ------------------------------------------------------
  Utility Responsive Patterns
---------------------------------------------------------*/
@media (max-width: 968px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .section, main > section {
    padding: 26px 5px;
    margin-bottom: 37px;
  }
  .feature-grid, .category-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container, .content-grid { gap: 15px; }
}
@media (max-width: 630px) {
  .container {
    padding-left: 6px; padding-right: 6px;
  }
  .section, main > section {
    border-radius: 7px;
    padding: 13px 0px;
  }
  header nav > a img { height: 34px; }
  .feature-grid > div, .category-grid > li { min-width: 120px; }
}
@media (max-width: 670px) {
  .content-wrapper {
    gap: 12px;
  }
  .testimonial-card {
    padding: 13px 7px;
    min-width: 100px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.22rem;
  }
  h2 {
    font-size: 1.02rem;
  }
  .section, main > section {
    padding: 7px 0px;
    margin-bottom: 19px;
  }
  .testimonial-card {
    padding: 10px 4px;
    font-size: .95rem;
    border-radius: 6px;
  }
}

/* Flex direction for text-image sections on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* .card-content pattern for any complex cards */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Ensure no overlapping */
.section, .card, .feature-grid > div, .category-grid > li, .services-list li, .testimonial-card {
  margin-bottom: 20px;
}

/* Micro-interaction subtle fade animation */
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.6,0,0.36,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Scrollbar styling (vintage touch for desktop) */
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 10px;
    background: var(--vintage-brown);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 11px;
    border: 2.5px solid var(--vintage-brown);
  }
}

/* Retro Patterns & Decorative Accents */
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 9px; right: 27px;
  width: 49px; height: 18px;
  background: repeating-linear-gradient(135deg, var(--secondary), var(--secondary) 4px, transparent 4px, transparent 8px);
  opacity: 0.18;
  pointer-events: none;
}
.section:nth-child(even):after {
  left: 19px; right: auto;
}

/* ------------- End Of CSS ------------- */
