/* RESET & VINTAGE RETRO BASE ================================== */
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;
}
body {
  line-height: 1.6;
  background: #fcf5e3;
  color: #362704;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
/* FONTS - VINTAGE/RETRO FEEL */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&family=DM+Serif+Display:wght@400&display=swap');
:root {
  --color-primary: #18407A;
  --color-secondary: #1CB486;
  --color-accent: #F5F6FA;
  --color-vintage1: #FAD77B;
  --color-vintage2: #B8551C;
  --color-vintage3: #A1C7B2;
  --color-vintage4: #F6AD8C;
  --color-bg: #fcf5e3;
  --color-card: #f7efdb;
  --color-title: #362704;
  --color-text: #43351b;
  --shadow-soft: 0 2px 12px rgba(63, 47, 19, 0.11);
  --shadow-card: 0 4px 24px rgba(36, 23, 3, 0.11), 0 0px 1.5px 0 #DBCC9B inset;
  --border-radius: 16px;
  --border-radius-btn: 24px;
  --font-headline: 'Montserrat', 'DM Serif Display', Georgia, serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
/* GENERIC VINTAGE PATTERNS for headers/cards */
.pattern-bg {
  background: repeating-linear-gradient(-45deg, #fad77b 0 16px, #fcf5e3 17px 32px);
}
.pattern-dots {
  background: radial-gradient(circle, #FAD77B 1.5px, transparent 1.5px), var(--color-card);
  background-size: 20px 20px;
}
/* BASIC TYPE & LAYOUT ========================================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 900;
  color: var(--color-title);
  letter-spacing: 1px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
p,li,span,em,strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}
a {
  color: var(--color-secondary);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-vintage2);
}
hr {
  border:none;
  border-bottom:1px solid #e4ddb6;
  margin:32px 0;
}
/* ============ CONTAINER & WRAPPERS =============================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* ========== HEADER & NAVIGATION ================================ */
header {
  background: var(--color-primary);
  color: #fff;
  padding: 0 0 0 0;
  box-shadow: 0 6px 26px rgba(24,64,122,0.06);
  border-bottom: 6px solid var(--color-vintage1);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}
header a {
  color: #fff;
  font-family: var(--font-headline);
  font-size: 1rem;
  margin-right: 20px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.16s;
}
header a.cta {
  background: var(--color-vintage2);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: var(--border-radius-btn);
  margin-left: 14px;
  box-shadow: 0 4px 12px rgba(184,85,28,0.13);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  border: none;
  text-shadow: 1px 1px 0 #a75c0e22;
}
header a.cta:hover { background: #a3461c; color: #fff; }
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
header img {
  height: 52px;
  max-height: 100%;
  margin-right: 32px;
}
/* Hide mobile menu elements on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px #1cb48633;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
}
@media (max-width: 1024px) {
  .container { padding-left: 8px; padding-right: 8px; }
  header .container { height: 65px; }
  header img { height: 40px; }
}
@media (max-width: 900px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
/* =================== MOBILE MENU ===================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 330px;
  max-width: 96vw;
  background: var(--color-vintage1);
  color: #52360b;
  z-index: 1005;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.63,-0.18,.77,1.17);
  box-shadow: -2px 0 24px 0 #c1872d1e;
  flex-direction: column;
  display: flex;
  padding: 32px 20px 24px 26px;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #a3461c;
  font-size: 2.1rem;
  border: none;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 3;
  outline: none;
}
.mobile-menu-close:focus, .mobile-menu-close:hover{ color: #fff; background: var(--color-vintage2); border-radius: 8px; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  text-decoration: none;
  color: #4d3311;
  font-size: 1.12rem;
  padding: 11px 0;
  border-radius: 6px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff7ea;
  color: var(--color-vintage2);
  text-decoration: underline;
}
.mobile-nav a.cta {
  background: var(--color-vintage2);
  color: #fff !important;
  text-align: center;
  font-weight: 900;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .mobile-menu { display: flex; }
}
@media (max-width: 600px) {
  .mobile-menu { width: 100vw; max-width: 100vw; padding: 28px 8vw 15px 12vw; }
  .mobile-nav a { font-size: 1.06rem; }
}
/* ============= MAIN & FLEX LAYOUTS =============================== */
main {
  padding-top: 20px;
  min-height: 60vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  min-width: 280px;
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 26px 28px 26px;
  transition: box-shadow .22s; /* micro interaction */
  position: relative;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 36px #b8551c42, 0 1.5px 2px #fad77b44 inset;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features, .feature_grid, .solutions_grid, .firm_service_list, .tips_cards_grid, .blog_post_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.feature_grid li, .solutions_grid ul li, .firm_service_list ul li {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 22px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.feature_grid img, .solutions_grid ul li img, .firm_service_list ul li img {
  height: 34px;
}
@media (max-width: 850px) {
  .feature_grid, .solutions_grid ul, .firm_service_list ul {
    flex-direction: column;
    gap: 18px;
  }
}
/* --- Blog and Tips Grids --- */
.tips_cards_grid, .blog_post_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.tips_cards_grid > div, .blog_post_grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 350px;
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 22px 16px 18px 16px;
  margin-bottom: 20px;
  transition: box-shadow .22s;
}
.tips_cards_grid > div:hover, .blog_post_grid > div:hover {
  box-shadow: 0 7px 28px #b8551c45, 0 0.5px 2px #fad77baa inset;
}
.categories_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0 0;
  font-size: 1rem;
}
.categories_filter a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  margin: 0 2px;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background .17s;
}
.categories_filter a:hover { background: #fad77b33; }
/* ============= TESTIMONIALS =================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe8;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  border-left: 7px solid var(--color-vintage2);
  font-size: 1.08rem;
  color: #232127;
  flex-direction: column;
  max-width: 600px;
  transition: box-shadow .19s;
}
.testimonial-card p {
  font-style: italic;
  color: #412905;
  font-size: 1.08rem;
  margin-bottom: 9px;
}
.testimonial-card span {
  font-family: var(--font-headline);
  font-size: 1.01rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #725624;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px #fad77b55, 0 0px 1.5px 0 #DBCC9B inset;
}
/* ============= BUTTONS & CALLS TO ACTION ====================== */
.cta, .button, button, input[type=submit], .mobile-nav a.cta {
  border: none;
  background: var(--color-vintage2);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1.2px;
  border-radius: var(--border-radius-btn);
  padding: 14px 36px;
  box-shadow: 0 2.5px 12px #b8551c23;
  transition: background 0.2s, color 0.2s, box-shadow .18s, transform .12s;
  cursor: pointer;
  outline: none;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 6px;
  text-align: center;
  text-decoration: none;
}
.cta:hover, .cta:focus, .button:hover, button:hover, .mobile-nav a.cta:hover {
  background: #a3461c;
  color: #fff !important;
  box-shadow: 0 6.5px 24px #b8551c56;
  transform: translateY(-2px) scale(1.025);
}
.cta:active { transform: scale(1) translateY(0); }
/* --- Cookie banner buttons --- */
.cookie-banner .cookie-btn,
.cookie-modal .cookie-btn {
  margin-right: 10px;
  margin-top: 10px;
  font-size: 1rem;
  padding: 10px 25px;
  border-radius: 16px;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-headline);
  border: none;
  box-shadow: 0 1.5px 8px #1CB48633;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-btn.accept { background: var(--color-vintage2); }
.cookie-banner .cookie-btn.accept:hover { background: #a3461c; }
.cookie-banner .cookie-btn.reject { background: #fff0e7; color: var(--color-vintage2); }
.cookie-banner .cookie-btn.reject:hover { background: var(--color-card); color: #fff; }
.cookie-banner .cookie-btn.settings { background: var(--color-primary); }
.cookie-banner .cookie-btn.settings:hover { background: #223e66; }
/* =============== CARDS/LISTS/STYLED ELEMENTS ================ */
ul,ol {
  margin-left: 20px;
  margin-bottom: 18px;
  list-style-type: disc;
}
ul li {
  margin-bottom: 12px;
}
.featured-tip {
  background: #f6ad8c1e;
  border-left: 6px solid var(--color-secondary);
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 700;
  color: #964312;
  margin-bottom: 20px;
}
.trust-badges, .credentials-certificates {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.trust-badges li, .credentials-certificates span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  background: #fff9eb;
  padding: 6px 14px;
  border-radius: 9px;
  font-family: var(--font-headline);
  box-shadow: 0 1.5px 3px #fad77baa;
}
/* ================== FOOTER =================================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 22px 0;
  border-top: 6px solid var(--color-vintage1);
}
footer .container {
  width: 100%;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex: 1 1 260px;
}
.footer-brand img {
  height: 44px;
  filter: drop-shadow(0 2px 2px #2c518d22);
}
.footer-brand span {
  color: #FFFBF8;
  font-family: var(--font-headline);
  font-size: 1rem;
  text-shadow: 1px 0.5px 0 #2c1e08;
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 270px;
  gap: 7px;
}
.footer-contact-info ul {
  list-style: none;
  padding: 0;
}
.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F8ECCC;
  font-size: 1rem;
}
.footer-contact-info img {
  height: 20px;
}
.footer-nav, .footer-menu-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 180px;
}
.footer-nav a, .footer-menu-links a {
  color: #fff;
  font-family: var(--font-headline);
  font-size: 1rem;
  text-decoration: none;
  transition: color .17s;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.footer-nav a:hover, .footer-menu-links a:hover {
  color: var(--color-vintage1);
}
.newsletter-signup {
  flex: 1 1 270px;
  background: var(--color-card);
  border-radius: 15px;
  box-shadow: 0 3px 13px #fad77b28;
  padding: 22px 14px 16px 14px;
  margin-top: 10px;
  color: #52360b;
}
.newsletter-signup h3 {
  margin: 0 0 7px 0;
  font-size: 1.16rem;
  color: #a3461c;
}
.newsletter-signup p { color: #43351b; font-size: 1rem;  margin-bottom: 0; }
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-brand, .footer-contact-info, .footer-nav, .footer-menu-links, .newsletter-signup {
    min-width: 0;
    flex-grow: 1;
  }
}
/* ==================== CONTACT PAGE ============================ */
.contact-info ul {
  list-style: none;
  margin-left: 0;
  padding: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.contact-info img {
  height: 23px;
}
.map-embed p {
  font-weight: bold;
  color: #684c12;
  background: #fff9eb;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 14px;
  box-shadow: 0 1px 6px #fad77b29;
}
/* ============= COOKIE CONSENT BANNER + MODAL =================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #fffbe8;
  color: #694312;
  box-shadow: 0 -2px 32px #fad77bcc;
  padding: 22px 26px 21px 26px;
  z-index: 1100;
  gap: 34px;
  font-size: 1.05rem;
  border-top: 5px solid var(--color-vintage2);
  animation: cookieBannerSlideIn 0.8s cubic-bezier(.12,.72,.39,1.04) 0s 1;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner__desc {
  max-width: 540px;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 17px 10vw 18px 6vw;
  }
}
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2000;
  background: rgba(62, 47, 12, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn .6s cubic-bezier(.15,.7,.38,1.08);
}
@keyframes cookieModalIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal-content {
  background: #fffbe8;
  border-radius: 16px;
  padding: 34px 22px 29px 32px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 8px 46px #fae2b2cc;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #964312;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  transition: color .16s;
}
.cookie-modal-close:hover { color: #fff; background:var(--color-vintage2); border-radius:7px;}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width:18px; height:18px;
}
.cookie-category label { font-size: 1.02rem; color: #81481a; font-family: var(--font-body); }
.cookie-category.essential label {
  font-weight: bold;
  color: #b8551c;
}
.cookie-category.essential input[type=checkbox] {
  display: none;
}
.cookie-modal h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: #964312;
  font-size: 1.2rem;
  margin-bottom: 3px;
}
/* ===================== UTILITIES & OVERRIDES =================== */
img {
  max-width: 100%;
  display: inline-block;
  border-radius: 6px;
}
input[type=text], input[type=email], textarea {
  padding: 9px 11px;
  border-radius: 6px;
  border: 1.5px solid #e2c994;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 17px;
  outline: none;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--color-secondary);
  background: #FFF9EC;
}
/* ============== RESPONSIVENESS ======================== */
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 0.97rem; }
  .section { padding: 24px 6px; margin-bottom: 38px; }
  main { padding-top: 7px; }
}
@media (max-width: 450px) {
  html { font-size: 13.8px; }
}
/* A11Y: VISUAL FOCUS STYLES ==================== */
:focus {
  outline: 2.5px dashed #B8551C;
  outline-offset: 2px;
}

/* =================== MICRO ANIMATIONS ===================== */
.card, .feature_grid li, .testimonial-card, .tips_cards_grid > div, .blog_post_grid > div {
  transition: box-shadow .22s, transform .12s;
}
.card:hover, .feature_grid li:hover, .testimonial-card:hover, .tips_cards_grid > div:hover, .blog_post_grid > div:hover {
  transform: translateY(-4px) scale(1.016);
}
.cta, .button, button, input[type=submit], .mobile-nav a.cta, .cookie-btn {
  transition: background .18s, color .18s, box-shadow .10s, transform .13s;
}
.cta:focus, .button:focus, button:focus, input[type=submit]:focus { outline: 2.5px dashed #1CB486; }

/* =================== PRINT STYLES ===================== */
@media print { .cookie-banner, .mobile-menu, .mobile-menu-toggle { display:none !important; } }
