/* === 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, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: #faf4eb;
  scroll-behavior: smooth;
}
body {
  background: #faf4eb;
  color: #38271b;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #17457C;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F2BB05;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}

/* === BRAND RETRO-VINTAGE COLORS & FONTS === */
:root {
  --primary: #17457C;
  --primary-light: #3965a2;
  --secondary: #E9EDF3;
  --secondary-light: #faf4eb;
  --accent: #F2BB05;
  --accent-dark: #ad9400;
  --brown: #38271b;
  --vintage-red: #e2725b;
  --vintage-green: #8db580;
  --vintage-blue: #7b9acc;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem; /* 44px */
  text-shadow: 1px 1px 0 #e5bd7d, 3px 3px 0 #fff4d4;
  margin-bottom: 20px;
}
h2 {
  font-size: 2.125rem; /* 34px */
  text-shadow: 1px 1px 0 #e5bd7d;
  margin-bottom: 15px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  color: var(--accent);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, .subheadline {
  color: var(--brown);
  margin-bottom: 14px;
  font-size: 1rem;
}
strong {
  color: var(--primary);
}
.short-bio, .confirmation-text, .next-steps {
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-style: italic;
  color: var(--vintage-green);
}

/* VINTAGE RETRO TEXT & DECORATIVE FONT DETAILS */
.brand-info p, .footer-nav a, .contact-info p {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(90deg, #faf4eb 85%, #e5bd7d 100%);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(41,31,15,0.07);
  border: 2px solid #e5bd7d;
}
@media (max-width: 1200px) {
  .section { padding: 32px 10px; }
}

/* === CONTAINER AND FLEX LAYOUTS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.header-flex, .footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-flex {
  align-items: flex-start;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 30px;
  border-top: 4px dotted #e5bd7d;
}
@media (max-width: 768px) {
  .footer-flex { flex-direction: column; gap: 24px; align-items: center; }
}

.content-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fffdfa;
  padding: 32px 20px;
  border-radius: 16px;
  border: 1px solid #e0c07d;
  box-shadow: 0 2px 10px 0 rgba(60,35,18,0.08);
  transition: box-shadow 0.15s, transform 0.18s;
  margin-bottom: 20px;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(107, 82, 36, 0.15);
  transform: translateY(-4px) scale(1.02);
  z-index: 1;
}

.content-grid, .blog-post-grid, .service-highlights, .benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid, .blog-post-grid, .service-highlights, .benefits-list { flex-direction: column; gap: 24px; }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === BUTTONS & CTA === */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #362610;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 100px;
  border: none;
  padding: 14px 38px;
  font-size: 1.15rem;
  margin: 18px 0 0 0;
  box-shadow: 0 2px 12px 0 rgba(103,87,29,0.11);
  transition: background 0.18s, color 0.14s, box-shadow 0.2s, transform 0.12s;
  cursor: pointer;
  text-shadow: 1px 1px 0 #fff8df;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-dark);
  color: #fff8df;
  box-shadow: 0 8px 28px 0 rgba(110,93,18,0.17);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fffdfa;
  border-bottom: 4px double #e5bd7d;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 50px;
  background: transparent;
  transition: background 0.18s, color 0.16s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--accent);
  color: #362610;
  text-shadow: 1px 1px 0 #fff8df;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 30px; right: 24px;
  z-index: 33;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #32250c;
  font-size: 2rem;
  border-radius: 12px;
  border: 2px solid #e5bd7d;
  box-shadow: 0 2px 6px 0 rgba(150,115,14,0.06);
}
@media (max-width: 996px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fffdfa;
  border-right: 8px solid #e5bd7d;
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(0.55,0.1,0.3,1.2);
  display: flex;
  flex-direction: column;
  padding: 0 18px 30px 36px;
  gap: 30px;
  box-shadow: 10px 0 34px 0 rgba(216,183,69,0.20);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-top: 32px;
  font-size: 2.2rem;
  background: var(--vintage-red);
  color: #fffdfa;
  border-radius: 7px;
  padding: 2px 12px;
  border: 2px solid #fff8df;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--accent-dark);
  color: #fff8df;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}
.mobile-nav a {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  padding: 14px 10px 14px 24px;
  border-radius: 8px;
  background: none;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: #362610;
}
@media (min-width: 997px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* === HERO/LEAD SECTIONS === */
.subheadline {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--brown);
  letter-spacing: 0.01em;
  font-size: 1.23rem;
  margin-bottom: 18px;
  background: rgba(255,255,240,0.5);
  border-left: 8px solid #e5bd7d;
  padding-left: 16px;
  font-style: italic;
  border-radius: 7px;
}

/* === HOMEPAGE === */
.features-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}
.features-list li {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffdfa;
  border-radius: 12px;
  border-left: 7px solid #F2BB05;
  padding: 18px 22px;
  font-size: 1.08rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 10px 0 rgba(150,115,14,0.07);
}
.features-list img {
  width: 36px;
  height: 36px;
  margin-right: 7px;
}
.service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.service-highlights > div {
  background: #fffefa;
  border: 2px dashed #7b9acc;
  border-radius: 16px;
  padding: 26px 22px;
  flex: 1 1 270px;
  box-shadow: 0 2px 8px 0 rgba(112,163,194,0.07);
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .service-highlights {
    flex-direction: column;
    gap: 18px;
  }
}
.brand-values {
  list-style: disc inside;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brown);
}

/* === TESTIMONIALS === */
.testimonials-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffdfa;
  border-radius: 14px;
  border: 2px solid #e5bd7d;
  box-shadow: 0 2px 12px 0 rgba(41,31,15,0.12);
  color: #362610;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 340px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px 0 rgba(103,87,29,0.14);
}
.testimonial-card p {
  color: #21457a;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-meta {
  color: #ad9400;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  text-align: right;
}
.star-rating-summary {
  margin-top: 10px;
  background: #fffdfa;
  color: var(--brown);
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(253,211,58,0.06);
  border-left: 8px solid #e2725b;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 650px) {
  .testimonial-list, .testimonials-slider { flex-direction: column; gap: 12px; }
  .testimonial-card { max-width: 100%; }
}

/* === BLOG === */
.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  justify-content: flex-start;
}
.blog-post {
  flex: 1 1 290px;
  background: #fffefa;
  border: 2px dotted #7b9acc;
  border-radius: 12px;
  padding: 22px 18px;
  margin-bottom: 18px;
  min-width: 220px;
  transition: background 0.13s, box-shadow 0.17s;
}
.blog-post:hover {
  background: #e9edf3;
  box-shadow: 0 4px 14px 0 rgba(123,154,204,0.08);
}
.category-filters {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brown);
  margin-bottom: 14px;
  font-size: 1rem;
}
.featured-post {
  background: #e9edf3;
  border-left: 9px solid #F2BB05;
  border-radius: 12px;
  padding: 24px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

/* === FAQ / ACCORDION === */
.faq-accordion h3 {
  font-size: 1.13rem;
  margin: 0 0 6px 0;
  cursor: pointer;
  background: #fffefa;
  border-radius: 7px;
  padding: 10px 16px;
  border-bottom: 2px solid #e5bd7d;
  transition: background 0.16s;
}
.faq-accordion h3:hover {
  background: #e9edf3;
}
.faq-accordion p {
  padding-left: 24px;
  background: #faf4eb;
  border-left: 4px solid #7b9acc;
  margin-bottom: 18px;
  border-radius: 4px;
}

/* === PROCESS STEPPER / DIAGRAMS === */
.process-stepper ol {
  list-style: decimal inside;
  background: #e9edf3;
  padding: 18px 18px 10px 24px;
  border-radius: 9px;
  border-left: 8px solid #7b9acc;
  margin-bottom: 18px;
}
.process-stepper li {
  margin-bottom: 9px;
  color: #17457C;
  font-weight: 600;
}
.process-diagram ul {
  list-style: disc inside;
  margin-bottom: 15px;
}
.process-diagram li {
  margin-bottom: 6px;
}

/* === FORMS / CONTACT INFO === */
.contact-information p {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.contact-information a {
  color: var(--primary);
  font-weight: 600;
}
.google-map {
  margin: 16px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ad9400;
}

/* === FOOTER === */
footer {
  background: #f4e8c2;
  border-top: 4px double #e5bd7d;
  font-size: 1rem;
}
.brand-info img {
  margin-bottom: 13px;
  width: 120px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #17457C;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-size: 1rem;
  transition: color 0.17s, text-shadow 0.17s;
}
.footer-nav a:hover {
  color: var(--vintage-red);
  text-shadow: 0 2px 7px #fed;
}
.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.contact-info a {
  color: var(--primary);
  font-weight: 600;
}

/* === GENERAL SPACING FOR ALL CARDS/SECTIONS === */
.card, .testimonial-card, .blog-post, .featured-post, .service-highlights > div {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-list, .features-list {
  gap: 20px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 768px) {
  .header-flex, .main-nav, .content-grid, .card-container, .service-highlights, .features-list, .footer-flex, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .section {
    padding: 28px 5px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .cta-btn { font-size: 1rem; width: 100%; text-align: center; }
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1004;
  width: 100vw;
  background: #faf4eb;
  border-top: 5px solid #F2BB05;
  box-shadow: 0 -3px 14px 0 rgba(92,65,16,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 23px 18px 18px 18px;
  gap: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: cookie-slidein 0.6s cubic-bezier(0.55,0.1,0.3,1.2);
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #362610;
  font-size: 1.04rem;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 40px;
  border: none;
  padding: 10px 22px;
  background: var(--accent);
  color: #32250c;
  box-shadow: 0 1px 8px 0 rgba(120,93,12,0.07);
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.12s, box-shadow 0.12s;
}
.cookie-btn.reject {
  background: var(--vintage-red);
  color: #fffdfa;
}
.cookie-btn.settings {
  background: var(--vintage-blue);
  color: #fffdfa;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--accent-dark);
  color: #fffbe8;
}
.cookie-btn.reject:focus, .cookie-btn.reject:hover { background: #a04e37; }
.cookie-btn.settings:focus, .cookie-btn.settings:hover { background: #3c529e; }
@media (max-width: 600px) {
  .cookie-banner { font-size: 0.94rem; padding-left: 8px; padding-right: 8px; gap: 14px; }
  .cookie-buttons { gap: 10px; }
}
/* === Cookie Modal Popup === */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 110%);
  width: 94vw;
  max-width: 410px;
  background: #fffdfa;
  border: 3px solid #e5bd7d;
  border-radius: 20px 20px 0 0;
  z-index: 1005;
  box-shadow: 1px 0 38px 0 rgba(65,53,16,0.22);
  padding: 32px 24px 20px 24px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.7,0.05,0.3,1.13), opacity 0.22s;
  font-family: 'Montserrat', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal.open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--accent);
  width: 22px; height: 22px;
}
.cookie-category.essential label {
  color: #A39364;
  font-style: italic;
  opacity: 0.65;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 4px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 1.6rem;
  background: none;
  color: #876e30;
  border-radius: 6px;
  border: none;
  z-index: 20;
  padding: 2px 7px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: var(--accent);
  color: #361700;
}

/* =============== SCROLLBARS, SHADOWS, PATTERNS =============== */
::-webkit-scrollbar {
  width: 9px;
  background: #e5bd7d;
}
::-webkit-scrollbar-thumb {
  background: #f2bb05;
  border-radius: 12px;
}

/* Subtle halftone retro dot pattern overlay (decorative only, not blocking content) */
body:before {
  content: '';
  position: fixed;
  z-index: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.11;
  background: repeating-radial-gradient(circle, #e5bd7d 1px, transparent 2px, transparent 24px);
}

/* Slight faded edges for vintage paper look */
.section, .card, .testimonial-card, .blog-post, .featured-post {
  box-shadow: 0 4px 24px 0 rgba(220,179,85,0.07), 0 4px 34px 0 rgba(174,120,17,0.07);
}

/* === MICRO-INTERACTIONS, ANIMATIONS === */
.cta-btn, .cookie-btn, .main-nav a, .mobile-nav a, .footer-nav a, .testimonial-card, .card {
  transition: box-shadow 0.16s, background-color 0.18s, color 0.15s, transform 0.11s;
}

/* === Misc fixes === */
@media (max-width: 430px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.07rem; }
}

/* === Z-INDEX BASE LAYERS === */
header, nav, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1000;
}

/* Hide element utility for JS */
.hide { display: none !important; }

/* === FOCUS VISIBLE === */
*:focus-visible {
  outline: 2.5px solid #e2725b;
  outline-offset: 2px;
}

/* === THANK YOU PAGE === */
.confirmation-text, .next-steps {
  background: #fdf8ec;
  border-left: 8px solid #8db580;
  padding: 16px 20px;
  border-radius: 7px;
  color: #274c22;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

/* === HELPER CLASSES === */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }