/* --- 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, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F1EAE3; /* Retro, off-white parchment */
  color: #333023;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 8px;
  text-align: left;
}

/* --- Vintage Retro Palette --- */
:root {
  --primary: #225182;
  --secondary: #F2F6FA;
  --accent: #6DBF42;
  --retro-bg: #F1EAE3;
  --retro-yellow: #FFE277;
  --retro-orange: #FFB472;
  --retro-brown: #88643C;
  --retro-red: #B95F48;
  --retro-blue: #6AA6C9;
  --text-base: #333023;
  --shadow: rgba(140,110,80,0.06);
  --white: #fff;
  --testimonial-bg: #fffbed;
  --testimonial-border: #EDD9A5;
}

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, dd {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-base);
}
strong {
  font-weight: 700;
  color: var(--retro-brown);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Header & Main Navigation --- */
header {
  width: 100%;
  background: var(--retro-yellow);
  border-bottom: 2px solid var(--retro-orange);
  box-shadow: 0 2px 9px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  min-height: 82px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 7px;
  position: relative;
  transition: background 0.22s, color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  outline: none;
}
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  border-radius: 24px;
  padding: 11px 34px 11px 36px;
  box-shadow: 0 3px 12px var(--shadow);
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  box-shadow: 0 5px 28px 0 rgba(20,32,55,0.18);
  outline: none;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}

/* --- Hamburger & Mobile Menu --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  display: none;
  cursor: pointer;
  z-index: 101;
  margin-left: 12px;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-yellow);
  box-shadow: 0 4px 32px var(--shadow);
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.88,.11,.75,1);
  z-index: 200;
  padding-top: 24px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-brown);
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-right: 22px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 44px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  padding: 7px 0;
  border-bottom: 1px dotted var(--retro-brown);
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-brown);
  outline: none;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  header img {
    height: 32px;
  }
}
@media (max-width: 920px) {
  header .container {
    gap: 11px;
  }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(90deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  padding: 58px 0 40px;
  border-bottom: 2px solid var(--retro-orange);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  font-family: 'Montserrat', cursive, sans-serif;
  font-size: 2.8rem;
  color: var(--retro-brown);
  text-shadow: 1px 1px 0 #ffeec6, 2px 2px 0 var(--retro-orange);
}
.hero p {
  max-width: 600px;
  font-size: 1.14rem;
  color: var(--text-base);
}
.hero .cta-button {
  margin-top: 18px;
}

/* --- Features (Home Index) --- */
.features {
  background: var(--retro-bg);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-top: 1px dashed var(--retro-yellow);
  border-bottom: 1px solid var(--retro-orange);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--retro-yellow);
  box-shadow: 0 3px 13px var(--shadow);
  padding: 28px 18px 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img {
  height: 39px;
  width: auto;
  filter: sepia(0.4) hue-rotate(350deg) brightness(1.05);
  margin-bottom: 10px;
}
.feature-grid h3 {
  color: var(--retro-brown);
  font-size: 1.15rem;
}
.feature-grid p {
  font-size: 0.98rem;
}

/* --- Services Preview --- */
.services-preview {
  background: #ffeec6;
  border-top: 1.5px solid var(--retro-brown);
  border-bottom: 1.5px solid var(--retro-brown);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.service-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.service-summaries li {
  background: var(--retro-bg);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 0.98rem;
  color: var(--retro-brown);
  font-weight: 600;
  box-shadow: 0 1px 6px var(--shadow);
}

/* --- Testimonials --- */
.testimonials {
  background: var(--testimonial-bg);
  padding: 40px 0;
}
.testimonials .content-wrapper {
  gap: 34px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  padding: 28px 28px 20px 34px;
  border-radius: 16px;
  border: 2px dashed var(--testimonial-border);
  box-shadow: 0 2px 13px 0 rgba(151,126,72,0.09);
  margin-bottom: 20px;
  max-width: 550px;
}
.testimonial-card p {
  color: #553c1c;
  font-family: 'Open Sans', serif;
  font-size: 1.03rem;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(90deg, var(--retro-yellow) 75%, #d9c71a 100%);
  padding: 45px 0;
  margin-bottom: 0;
  border-top: 2px solid var(--retro-orange);
}
.cta-banner .content-wrapper {
  align-items: center;
  gap: 13px;
}
.cta-banner h2 {
  color: var(--retro-brown);
  font-size: 1.7rem;
  font-family: 'Montserrat', cursive, sans-serif;
}

/* --- About, FAQ, GDRP, Legal Sections --- */
.section, .about, .team-overview, .brand-promise, .service-benefits, .additional-help, .privacy-policy, .gdpr, .cookies-policy, .terms-of-use, .thank-you-message, .contact-intro, .contact-details, .contact-prompt, .faqs, .process-overview, .assurance, .project-descriptions {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 16px;
  border: 1.2px solid var(--retro-yellow);
  box-shadow: 0 3px 13px var(--shadow);
}
.text-section h2, .text-section h3 {
  color: var(--retro-red);
  margin-top: 16px;
  margin-bottom: 10px;
}
.text-section ul, .text-section ol, .text-section dl {
  margin: 18px 0 18px 20px;
}
.text-section ul li, .text-section ol li, .text-section dd {
  color: var(--retro-brown);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 11px;
}
dt {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  margin-bottom: 3px;
}
 
/* --- Responsive Table (Services Page) --- */
table {
  width: 100%;
  background: var(--secondary);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  box-shadow: 0 2px 11px var(--shadow);
}
thead {
  background: var(--retro-yellow);
}
thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.06rem;
  color: var(--retro-brown);
}
tbody td {
  font-size: 0.98rem;
  border-bottom: 1px solid #e4dac3;
  color: var(--primary);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* --- Footer --- */
footer {
  background: var(--retro-yellow);
  border-top: 2px solid var(--retro-orange);
  padding: 33px 0 19px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: var(--retro-brown);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  opacity: .82;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}
footer small {
  font-size: 0.95rem;
  color: #77642B;
  opacity: .89;
}
footer img {
  height: 34px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-orange);
  color: #553c1c;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 -2px 24px var(--shadow);
  padding: 22px 0 22px 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.cookie-banner__text {
  max-width: 540px;
  font-size: 1.02rem;
}
.cookie-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 22px;
  padding: 10px 20px;
  margin-left: 7px;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 7px var(--shadow);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: 1.8px solid var(--accent);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  outline: none;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--retro-blue);
  color: var(--white);
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 42%;
  transform: translate(-50%, 0) scale(0.98);
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 38px 0 rgba(127,82,28,0.2);
  padding: 32px 26px 24px 26px;
  width: 92vw;
  max-width: 420px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in .46s cubic-bezier(.77,.1, .95, 1.12);
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%, 70px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-modal__header h3 {
  font-size: 1.23rem;
  color: var(--primary);
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--retro-brown);
  cursor: pointer;
  margin-left: 10px;
}
.cookie-modal__category {
  margin: 14px 0 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-modal__category label {
  font-size: 0.99rem;
  color: var(--retro-brown);
}
.cookie-modal__switch {
  position: relative;
  width: 42px;
  height: 22px;
}
.cookie-modal__switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal__slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-modal__switch input:checked + .cookie-modal__slider {
  background: var(--accent);
}
.cookie-modal__slider::before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--retro-brown);
  transition: 0.18s;
}
.cookie-modal__switch input:checked + .cookie-modal__slider::before {
  transform: translateX(18px);
  background: var(--retro-yellow);
}

.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}

.cookie-modal__category.always-on label {
  color: #999;
}
.cookie-modal__category.always-on .cookie-modal__switch {
  pointer-events: none;
  opacity: 0.6;
}

/* --- Responsive Layouts & Flex Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 9px var(--shadow);
  border: 1.2px solid var(--retro-yellow);
  padding: 26px 18px 22px 26px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .feature-grid, .service-summaries {
    flex-direction: column;
    gap: 16px;
  }
  .footer .container, .container {
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-grid, .card-container { gap: 14px; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 14px; }
  .footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .section, .about, .team-overview, .brand-promise, .service-benefits, .additional-help, .privacy-policy, .gdpr, .cookies-policy, .terms-of-use, .thank-you-message, .contact-intro, .contact-details, .contact-prompt, .faqs, .process-overview, .assurance, .project-descriptions {
    padding: 22px 4px;
    margin-bottom: 36px;
  }
  .hero {
    padding-top: 21px;
    padding-bottom: 20px;
  }
  .cta-banner {
    padding: 26px 0;
  }
  .footer { padding: 18px 0 8px 0; }
}

/* --- Accessibility Focus States --- */
a:focus, .cta-button:focus, .cookie-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2.5px dashed var(--primary);
  outline-offset: 2px;
}

/* --- Micro-Interactions & Subtle Animations --- */
.cta-button, .cookie-btn {
  transition: background .19s, color .19s, box-shadow .27s;
}
.card, .feature-grid li, .testimonial-card, .services-preview, .brand-promise, .service-benefits, .process-overview {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 5px 25px 0 rgba(54,44,35,0.11);
  transform: translateY(-3px) scale(1.013);
}

/* --- Vintage/Nostalgic Flourishes --- */
.hero h1, .cta-banner h2 {
  font-style: italic;
  letter-spacing: 0.045em;
  text-shadow: 1px 1px 2px #fffbe8, 0 2px 8px #FFE27777;
  border-bottom: 3.5px double var(--retro-orange);
  display: inline-block;
  padding-bottom: 0.18em;
}
.feature-grid li, .testimonial-card {
  background-image: repeating-linear-gradient(135deg,rgba(233,213,144,0.024) 0 20px,rgba(255,230,198,0.11) 21px 36px);
}
.section, .card, .service-summaries li {
  border-style: dashed;
  border-width: 1.5px;
}

/* --- Hide visually when not needed --- */
.cookie-modal { display: none; }
.cookie-modal.open { display: flex; }
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* --- Ensure gaps/margins between ALL cards/sections --- */
.section, .card-container > *, .feature-grid > *, .service-summaries > *, .testimonial-card, .content-wrapper > * {
  margin-bottom: 20px;
}
.content-wrapper > *:last-child, .section:last-child { margin-bottom: 0; }

/* --- Print fix for modern browsers --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #333; }
}
