/* ===== 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,
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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F4F0EA;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}


/* ===== Root Custom Properties: Vintage Retro Scheme ===== */
:root {
  --ve-green: #256D3C;
  --ve-white: #FFFFFF;
  --ve-yellow: #FFD966;
  --ve-dark: #2F2822;
  --ve-coral: #CE7360;
  --ve-blue: #7DD3CE;
  --ve-brown: #A27751;
  --ve-orange: #F4B277;
  --ve-paper: #FCF5E6;
  --ve-border: #D6C0A3;
  --ve-shadow: rgba(44, 34, 27, 0.12);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Georgia', serif;
}

/* ===== Typography: Vintage Fonts (w/ fallback) ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ve-dark);
  background: var(--ve-paper);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ve-green);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.75rem;
  color: var(--ve-coral);
  text-shadow: 2px 2px 0 var(--ve-yellow), 0 3px 7px var(--ve-shadow);
}
h2 {
  font-size: 2rem;
  color: var(--ve-green);
}
h3 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: var(--ve-brown);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--ve-brown);
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-style: italic;
  letter-spacing: 0.04em;
}
p, li {
  font-size: 1rem;
  color: var(--ve-dark);
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--ve-green);
}
.text-section p + p {
  margin-top: 8px;
}


/* ===== Layout Containers ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--ve-white);
  border-radius: 28px;
  box-shadow: 0 6px 28px -8px var(--ve-shadow);
  border: 1.5px solid var(--ve-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 720px;
}

/* Section Spacing */
section {
  margin-bottom: 60px;
}


/* ===== Navigation ===== */
header {
  background: var(--ve-yellow);
  border-bottom: 4px dotted var(--ve-brown);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--ve-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--ve-coral);
  color: var(--ve-white);
}
header nav .cta.primary {
  background: var(--ve-green);
  color: var(--ve-yellow);
  border-radius: 16px;
  font-size: 1.05rem;
  padding: 10px 26px 10px 22px;
  box-shadow: 0 5px 18px -7px var(--ve-shadow);
  border: 2px solid var(--ve-brown);
  margin-left: 8px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 var(--ve-brown);
  transition: background 0.22s, color 0.22s, border 0.17s;
  position: relative;
}
header nav .cta.primary:after {
  content: '▶';
  margin-left: 12px;
  font-size: 1.1em;
  color: var(--ve-yellow);
  vertical-align: middle;
}
header nav .cta.primary:hover,
header nav .cta.primary:focus {
  background: var(--ve-brown);
  color: var(--ve-yellow);
  border-color: var(--ve-coral);
}

.mobile-menu-toggle {
  display: none;
  background: var(--ve-coral);
  color: var(--ve-white);
  font-size: 1.7rem;
  border: none;
  border-radius: 10px;
  padding: 7px 16px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1020;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--ve-green);
  color: var(--ve-yellow);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--ve-yellow);
  box-shadow: 0 6px 40px -5px var(--ve-shadow);
  z-index: 2000;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.97,.21,.65,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--ve-coral);
  font-size: 2rem;
  margin: 28px 0 16px 22px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 2010;
  transition: color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--ve-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ve-dark);
  padding: 12px 0 12px 3px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--ve-coral);
  color: var(--ve-white);
}

@media (max-width: 1100px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 10px;
    padding-right: 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* When mobile menu is open: prevent body scroll */
body.menu-active {
  overflow: hidden;
  position: relative;
}


/* ====== Hero and Section Styles ====== */
section {
  margin-bottom: 60px;
  padding: 0;
  width: 100%;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--ve-white);
  border-radius: 28px;
  box-shadow: 0 6px 28px -8px var(--ve-shadow);
  border: 1.5px solid var(--ve-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 22px 4vw;
    border-radius: 18px;
  }
  section {
    margin-bottom: 40px;
  }
}

/* Section heading separator pattern */
h2::after {
  content: '';
  display: block;
  margin-top: 10px;
  width: 72px;
  height: 5px;
  border-radius: 4px;
  background: var(--ve-yellow);
  box-shadow: 0 2px 5px -2px var(--ve-coral);
}


/* ======= Card and Grid Layouts ======= */
.feature-grid, .team-list, .service-cards, .service-list, .blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 32px;
  justify-content: space-between;
}
.feature-grid > div,
.service-card,
.team-member,
.blog-post {
  background: var(--ve-paper);
  border-radius: 18px;
  border: 1.5px solid var(--ve-border);
  padding: 28px 18px 26px 18px;
  flex: 1 1 244px;
  min-width: 246px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px -7px var(--ve-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.20s;
}
.feature-grid > div:hover,
.service-card:hover,
.team-member:hover,
.blog-post:hover {
  box-shadow: 0 7px 26px -5px var(--ve-brown);
  transform: translateY(-6px) scale(1.03);
}

.service-cards, .service-list {
  width: 100%;
}
.service-card {
  border-left: 5px solid var(--ve-green);
  background: var(--ve-white);
  min-width: 225px;
  max-width: 340px;
  margin-right: 0;
}

@media (max-width: 1000px) {
  .feature-grid, .service-cards, .service-list, .blog-post-grid, .team-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-cards, .service-list, .blog-post-grid, .team-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-card, .team-member, .blog-post {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}


/* ====== Testimonial Card ====== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 32px;
  margin-bottom: 20px;
  background: var(--ve-yellow);
  border: 1.5px solid var(--ve-brown);
  border-radius: 22px;
  box-shadow: 0 4px 18px -7px var(--ve-shadow);
  font-family: var(--font-body);
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: var(--ve-dark);
  font-size: 1.13rem;
  line-height: 1.45;
  font-style: italic;
}
.testimonial-card div {
  font-size: 1.01rem;
  color: var(--ve-dark);
  font-weight: 700;
  letter-spacing:0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 25px -5px var(--ve-coral);
}
.testimonial-summary {
  margin-top: 18px;
  padding: 15px 26px;
  border-radius: 18px;
  background: var(--ve-brown);
  color: var(--ve-white);
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border: 1.5px solid var(--ve-coral);
  box-shadow: 0 3px 6px -3px var(--ve-dark);
}
.testimonial-summary strong {
  color: var(--ve-yellow);
  font-weight: 800;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 18px 8vw 18px 8vw;
    border-radius: 13px;
  }
  .testimonial-summary {
    padding: 15px 5vw;
    border-radius: 11px;
  }
}


/* ====== CTAs and Buttons ====== */
.cta,
button,
input[type=submit],
input[type=button] {
  font-family: var(--font-display);
  transition: background 0.15s, color 0.15s, border 0.13s, box-shadow 0.17s, transform 0.19s;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 13px 32px;
  font-size: 1.13rem;
  box-shadow: 0 4px 18px -4px var(--ve-shadow);
  margin-top: 14px;
  margin-bottom: 12px;
  text-shadow: 0 1px 0 var(--ve-border);
  background: var(--ve-coral);
  color: var(--ve-white);
  border: 2px solid var(--ve-brown);
}
.cta.primary,
button.primary {
  background: var(--ve-green);
  color: var(--ve-yellow);
  border: 2px solid var(--ve-brown);
}
.cta.primary:hover,
.cta.primary:focus,
button.primary:hover,
button.primary:focus {
  background: var(--ve-yellow);
  color: var(--ve-green);
  border-color: var(--ve-coral);
  transform: translateY(-2px) scale(1.04);
}
.cta:hover,
.cta:focus,
button:hover,
button:focus {
  background: var(--ve-orange);
  color: var(--ve-dark);
  border-color: var(--ve-coral);
  transform: translateY(-1px) scale(1.03);
}
input[type=submit],
input[type=button] {
  min-width: 150px;
}


/* ====== Footer Styles ====== */
footer {
  background: var(--ve-green);
  color: var(--ve-yellow);
  padding: 32px 0 24px 0;
  border-top: 5px dotted var(--ve-yellow);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  margin-right: 32px;
}
footer nav {
  display: flex;
  gap: 24px;
}
footer nav a {
  color: var(--ve-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0 8px;
  border-radius: 5px;
  transition: color 0.19s, background 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--ve-yellow);
  color: var(--ve-coral);
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social img {
  filter: grayscale(0.5) brightness(1.2) contrast(1.08);
  opacity: 0.8;
  width: 32px;
  transition: filter 0.19s, opacity 0.17s;
  cursor: pointer;
}
.footer-social img:hover {
  filter: none;
  opacity: 1;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-brand {
    margin-bottom: 16px;
  }
  footer nav {
    margin-bottom: 14px;
  }
}


/* ===== List Styles ===== */
ul, ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  font-size: 1rem;
}
ul li::before {
  content: '\25A0';
  color: var(--ve-orange);
  font-size: 0.85em;
  display: inline-block;
  margin-left: -16px;
  margin-right: 8px;
  vertical-align: middle;
}


/* ====== Tag/Topics ====== */
.topics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0 0;
}
.topics-tags span {
  background: var(--ve-brown);
  color: var(--ve-yellow);
  padding: 6px 16px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  opacity: 0.88;
  border: 1px solid var(--ve-orange);
}


/* ====== Contact & Details ====== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.08em;
}
.directions {
  margin-bottom: 20px;
}
.location-map {
  margin-top: 10px;
}
.location-map img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 3px 12px -3px var(--ve-shadow);
  border: 1.5px solid var(--ve-border);
}


/* ===== Qualifications & Misc ===== */
.qualifications-summary {
  margin-top: 24px;
  background: var(--ve-yellow);
  border-radius: 16px;
  padding: 19px 27px;
  font-family: var(--font-body);
  font-size: 1.07rem;
  color: var(--ve-dark);
  box-shadow: 0 2px 10px -3px var(--ve-shadow);
  border: 1.1px solid var(--ve-coral);
}


/* ===== Links ===== */
a {
  color: var(--ve-coral);
  transition: color 0.18s, text-decoration 0.13s;
}
a:hover, a:focus {
  color: var(--ve-green);
  text-decoration: underline;
}
.text-section a {
  font-weight: 700;
  text-decoration: underline;
}


/* ===== Responsive Flex Rules (Critical) ===== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ===== Animations & Micro Interactions ===== */
button, .cta, .service-card, .feature-grid > div, .blog-post, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s, background 0.16s, color 0.18s, border 0.15s, opacity 0.18s;
}

input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 9px;
  border: 1px solid var(--ve-brown);
  padding: 12px 17px;
  outline: none;
  margin-bottom: 15px;
  margin-top: 6px;
  background: var(--ve-paper);
  color: var(--ve-dark);
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--ve-green);
}


/* ======= COOKIE BANNER ======= */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: var(--ve-brown);
  color: var(--ve-yellow);
  padding: 24px 20px 30px 20px;
  border-top: 6px dotted var(--ve-yellow);
  box-shadow: 0 -6px 24px -2px var(--ve-shadow);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.36s, transform 0.33s;
}
#cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
button.cookie-accept, button.cookie-reject, button.cookie-settings {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  padding: 11px 32px;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px -2px var(--ve-shadow);
  transition: background 0.16s, color 0.16s;
}
button.cookie-accept {
  background: var(--ve-green);
  color: var(--ve-yellow);
}
button.cookie-accept:hover, button.cookie-accept:focus {
  background: var(--ve-yellow);
  color: var(--ve-green);
}
button.cookie-reject {
  background: var(--ve-coral);
  color: var(--ve-white);
}
button.cookie-reject:hover, button.cookie-reject:focus {
  background: var(--ve-yellow);
  color: var(--ve-coral);
}
button.cookie-settings {
  background: var(--ve-yellow);
  color: var(--ve-brown);
  border: 1px solid var(--ve-coral);
}
button.cookie-settings:hover, button.cookie-settings:focus {
  background: var(--ve-coral);
  color: var(--ve-yellow);
}

/* ===== Cookie Modal ===== */
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,34,27, 0.60);
  z-index: 3050;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
#cookie-modal-overlay.active {
  display: flex;
}
#cookie-modal {
  background: var(--ve-paper);
  border-radius: 22px;
  max-width: 420px;
  width: 88vw;
  box-shadow: 0 8px 40px -4px var(--ve-brown);
  border: 2.5px solid var(--ve-yellow);
  padding: 34px 35px 28px 35px;
  color: var(--ve-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  position: relative;
  animation: modalIn 0.33s;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#cookie-modal h2 {
  color: var(--ve-green);
  margin-bottom: 10px;
}
#cookie-modal .cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 13px 0;
}
#cookie-modal .cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 1.05rem;
}
#cookie-modal input[type=checkbox] {
  accent-color: var(--ve-green);
  width: 22px; height: 22px;
  margin: 0;
  border-radius: 5px;
}
.cookie-modal-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 16px;
}
#cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  color: var(--ve-coral);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.88;
  transition: color 0.15s, opacity 0.16s;
}
#cookie-modal .cookie-modal-close:hover {
  color: var(--ve-green);
  opacity: 1;
}


/* ===== Vintage Decorative Patterns & Effects ===== */
section, .content-wrapper {
  position: relative;
}
section:after {
  content: '';
  position: absolute;
  left: 8vw;
  bottom: -18px;
  width: 120px;
  height: 18px;
  z-index: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(135deg, var(--ve-yellow), var(--ve-yellow) 8px, transparent 8px, transparent 16px);
  border-radius: 50px;
  display: block;
  pointer-events: none;
}
@media (max-width: 768px) {
  section:after {
    width: 45vw;
    left: 2vw; bottom: -10px;
    height: 14px;
  }
}
.feature-grid > div:before {
  content: '';
  display: block;
  width: 38px; height: 4px;
  background: var(--ve-coral);
  border-radius: 2px;
  margin-bottom: 8px;
  opacity: 0.54;
}


/* ===== Utility Classes for Spacing ===== */
.mb-20 { margin-bottom: 20px!important; }
.mb-32 { margin-bottom: 32px!important; }
.mb-60 { margin-bottom: 60px!important; }
.mt-20 { margin-top: 20px!important; }
.mt-32 { margin-top: 32px!important; }
.pt-20 { padding-top: 20px!important; }
.pt-40 { padding-top: 40px!important; }


/* ======= Responsive Handling ======= */
@media (max-width: 600px) {
  .container {
    padding: 0 4vw;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.42rem;
  }
  .subheadline {
    font-size: 1.01rem;
  }
  .content-wrapper {
    border-radius: 10px;
    padding: 18px 4vw;
  }
}


/* ===== Accessibility & Focus Ring ===== */
a:focus, .cta:focus, button:focus {
  outline: 3px dashed var(--ve-coral);
  outline-offset: 2px;
  background: var(--ve-yellow);
  color: var(--ve-brown)!important;
}


/* ===== Misc Fixes ===== */
::-webkit-scrollbar {
  width: 12px;
  background: var(--ve-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--ve-yellow);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ve-coral);
}


/* ===== End of CSS ===== */
