/* RESET & BASELINE ------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
}
body {
  background: #FAF6F0;
  color: #2F2B23;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #225167;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #CE8644;
  text-decoration: underline dotted;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
button, [type="button"], [type="submit"] {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  background: #fffbe7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(49, 35, 5, 0.08);
}
thead {
  background: #CE8644;
  color: #fff;
}
th, td {
  padding: 16px 12px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
td {
  font-size: 1rem;
}
table tr:nth-child(even) {
  background: #f7f3e8;
}

/* TYPOGRAPHY ------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #225167;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem;
  color: #CE8644;
  margin-bottom: 18px;
  text-shadow: 1px 2px 0 #fffbe7, 2px 4px 0 #f9e1bb, 0 2px 12px #00000011;
  font-variant: small-caps;
}
h2 {
  font-size: 1.7rem;
  color: #225167;
}
h3 {
  font-size: 1.25rem;
  color: #CE8644;
}
h4, h5 {
  font-size: 1.1rem;
  color: #225167;
}
p, ul, ol, li, dl, dd, dt, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #432F20;
  margin-bottom: 1em;
}
dt {
  font-weight: bold;
  color: #225167;
  margin-top: 10px;
}
dd {
  margin-left: 14px;
  margin-bottom: 10px;
}
blockquote {
  font-size: 1.18rem;
  font-style: italic;
  background: #FFF6E2;
  border-left: 6px solid #CE8644;
  padding: 20px 22px;
  margin: 0 0 8px 0;
  color: #2F2B23;
  border-radius: 12px 20px 16px 5px;
  box-shadow: 0 2px 12px rgba(34,81,103,0.04);
}
cite {
  display: block;
  margin-left: 24px;
  font-size: 0.98rem;
  color: #225167;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
}
strong {
  font-weight: 700;
  color: #225167;
}

/* LAYOUT CONTAINERS / FLEX ------------------------- */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: #fffbe7;
  box-shadow: 0 2px 20px 0 #d8b5780d;
  border-radius: 20px 32px 12px 12px;
  padding: 35px 30px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffdf8;
  border: 2px solid #CE8644;
  border-radius: 16px 26px 9px 20px;
  box-shadow: 0 0 0 5px #f7ede0, 0 4px 12px #ce864418;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 22px;
  min-width: 240px;
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 0 0 8px #f9e7ca, 0 8px 32px #ce864431;
  border-color: #225167;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF6E2;
  box-shadow: 0 2px 14px #deb47d33;
  border-radius: 18px 28px 8px 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SPECIFIC FLEX LAYOUTS BY HTML ------------------------- */
.feature-grid, .service-list-grid, .article-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-grid div,
.service-list-grid > div,
.article-teasers > div {
  background: #fffdf7;
  border-radius: 13px 22px 7px 16px;
  border: 2px solid #CE8644;
  box-shadow: 0 2px 10px #ce864416;
  padding: 24px 18px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 220px;
  max-width: 320px;
  transition: border-color 0.18s, box-shadow 0.2s;
}
.feature-grid div:hover,
.service-list-grid > div:hover,
.article-teasers > div:hover {
  border-color: #225167;
  box-shadow: 0 4px 24px #22516718;
}

.article-teasers {
  gap: 24px;
}

.faq-list {
  margin-bottom: 0;
}

/* BUTTONS / CTA ------------------------- */
.cta-btn {
  background: #CE8644;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 24px 40px 18px 10px;
  box-shadow: 0 3px 0 #EBC68A, 0 8px 24px #ce864431;
  padding: 12px 34px;
  margin-top: 8px;
  display: inline-block;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
  border: none;
  letter-spacing: 0.04em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #225167;
  color: #fffbe7;
  text-decoration: none;
  box-shadow: 0 0 0 6px #f9e7ca, 0 10px 40px #22516733;
}

/* HEADER & NAVIGATION ------------------------- */
header {
  background: #fffbe7 url('../assets/pattern-vintage.svg') repeat-x bottom left;
  border-bottom: 6px solid #CE8644;
  box-shadow: 0 1px 12px #ce864415;
  position: relative;
  z-index: 1000;
}
header .container {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px 9px 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #225167;
  font-weight: 600;
  font-size: 1.01rem;
  padding: 7px 10px;
  border-radius: 16px 22px 6px 4px;
  transition: background 0.16s, color 0.16s;
}
header nav a.cta-btn {
  margin-left: 14px;
}
header nav a:hover,
header nav a:focus {
  background: #CE8644;
  color: #fff;
}

header img {
  height: 43px;
  width: auto;
  margin-right: 18px;
}

/* MOBILE NAVIGATION ------------------------- */
.mobile-menu-toggle {
  display: none;
}
/* Open on mobile */
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fffcf4ee;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(.5,1.4,.5,1), opacity 0.2s;
  transform: translateX(0);
  opacity: 1;
  overflow-y: auto;
}
.mobile-menu {
  transition: transform 0.35s cubic-bezier(.5,1.4,.5,1), opacity 0.2s;
  transform: translateX(-110%);
  opacity: 0;
}
.mobile-menu .mobile-menu-close {
  margin: 28px 0 20px 24px;
  background: #225167;
  color: #fff;
  font-size: 2.4rem;
  border-radius: 0 13px 36px 0;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  transition: background 0.2s;
  border: none;
}
.mobile-menu .mobile-menu-close:hover {
  background: #CE8644;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 34px;
  width: 100vw;
  max-width: 390px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #225167;
  font-size: 1.13rem;
  background: #FFF6E2;
  padding: 13px 18px;
  border-radius: 18px 30px 15px 9px;
  margin-bottom: 3px;
  transition: background 0.17s, color 0.17s;
  font-weight: 600;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #CE8644;
  color: #fff;
}

/* Main CTA buttons in the header navigation */
.mobile-nav a.cta-btn {
  background: #CE8644;
  color: #fff;
}
.mobile-nav a.cta-btn:hover {
  background: #225167;
  color: #fffbe7;
}

@media (max-width: 1020px) {
  .container {
    max-width: 94vw;
    padding: 0 9px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: #CE8644;
    color: #fff;
    font-size: 2.1rem;
    border-radius: 15px 32px 8px 0;
    padding: 6px 18px 5px 14px;
    margin-left: auto;
    transition: background 0.2s;
    z-index: 12001;
    border: 2px solid #225167;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: #225167;
    color: #fffbe7;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  header .container {
    gap: 9px;
    padding: 8px 5px 8px 5px;
  }
  .content-wrapper {
    padding: 23px 7px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 3px;
  }
}

/* FLEX RESPONSIVE RULES */
@media (max-width: 768px) {
  .feature-grid,
  .service-list-grid,
  .content-grid,
  .card-container,
  .article-teasers {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid div,
  .service-list-grid > div,
  .article-teasers > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-bottom: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
  }
}


/* FOOTER ------------------------- */
footer {
  background: #225167 url('../assets/pattern-vintage.svg') repeat-x top left;
  color: #fffbe7;
  padding: 50px 0 0 0;
  margin-top: 50px;
  position: relative;
  border-top: 6px solid #CE8644;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 44px;
  justify-content: space-between;
  padding-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 7px;
  width: 200px;
}
.footer-links a {
  color: #fffbe7;
  font-size: 1rem;
  opacity: 0.94;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 2px 0;
  border-radius: 8px 16px 7px 2px;
  transition: background 0.15s, color 0.15s;
}
.footer-links a:hover,
.footer-links a:focus {
  background: #fffbe7;
  color: #CE8644;
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.brand-footer img {
  height: 38px;
  margin-bottom: 6px;
}
.brand-footer span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #EBC68A;
  font-weight: 700;
  margin-bottom: 2px;
}
.brand-footer p {
  font-size: 1rem;
  color: #fffbe7;
}
.brand-footer img[alt*="Facebook"],
.brand-footer img[alt*="Instagram"] {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  vertical-align: middle;
  background: #fffbe7;
  border-radius: 6px;
  padding: 1px;
}
.footer-legal {
  width: 100%;
  text-align: right;
  font-size: 0.98rem;
  color: #8eb1c7;
  margin-top: 8px;
}
.footer-legal a {
  color: #fffbe7;
  opacity: 0.67;
  margin-left: 9px;
  font-size: 0.98rem;
}
.footer-legal a:hover,
.footer-legal a:focus {
  color: #CE8644;
  opacity: 1;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .footer-links, .brand-footer {
    width: 100%;
    align-items: flex-start;
  }
  .footer-legal {
    text-align: left;
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  footer {
    padding-top: 30px;
  }
}

/* CARD STYLES (for testimonials, etc.) ------------------------- */
.testimonial-card {
  background: #FFF6E2;
  border: 2px dashed #CE8644;
  color: #1D1C17;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 2px 12px #d1b99930;
  margin-bottom: 20px;
  border-radius: 18px 28px 8px 16px;
  transition: border-color 0.18s, box-shadow 0.22s;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  box-shadow: none;
}
.testimonial-card:hover {
  border-color: #225167;
  box-shadow: 0 6px 28px #22516717;
}

/* FORMS, ADDRESS STYLES ------------------------- */
address {
  font-style: normal;
  color: #225167;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
}
address p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Vintage/Nostalgic decorative pattern as border or background */
.section, .content-wrapper {
  border-top: 7px double #CE8644;
  border-bottom: 7px double #EBC68A;
  background-image: repeating-linear-gradient(135deg, #ffd7a2, #ffd7a2 2px, #fffbe7 2px, #fffbe7 20px);
  background-size: 100% 38px;
  background-repeat: no-repeat;
  background-position: bottom left;
}
@media (max-width:600px) {
  .section, .content-wrapper {
    background-size: 100% 17px;
    border-width: 4px;
  }
  .content-wrapper {
    border-radius: 14px 14px 8px 8px;
  }
}

/* COOKIE CONSENT BANNER & MODAL ------------------------- */
.cookie-banner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  background: #FFF6E2;
  border-top: 4px solid #CE8644;
  box-shadow: 0 -3px 24px #ce864413;
  color: #225167;
  font-size: 1rem;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 24px 18px;
  z-index: 13000;
  animation: cookie-slide-in 0.45s cubic-bezier(.48,1.6,.45,1);
}
.cookie-banner p {
  margin-bottom: 12px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #CE8644;
  color: #fff;
  border-radius: 17px 24px 12px 8px;
  border: none;
  padding: 9px 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: 5px;
  margin-bottom: 3px;
  box-shadow: 0 2px 10px #d1b99919;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #225167;
  color: #fffbe7;
}
.cookie-banner button.cookie-settings {
  background: #EBC68A;
  color: #225167;
}
.cookie-banner button.cookie-settings:hover {
  background: #CE8644;
  color: #fff;
}

@keyframes cookie-slide-in {
  from {transform: translateY(120%); opacity: 0;}
  to   {transform: translateY(0); opacity: 1;}
}

.cookie-modal {
  display: none;
  position: fixed;
  z-index: 14000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #0007;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal .modal-content {
  background: #fffbe7;
  border-radius: 18px 32px 12px 14px;
  padding: 38px 28px;
  min-width: 340px;
  max-width: 90vw;
  color: #432F20;
  box-shadow: 0 8px 56px #ce864437;
  position: relative;
  animation: bounceIn 0.41s cubic-bezier(.5,1.5,.5,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal .modal-content h2 {
  margin-top: 0;
  color: #CE8644;
  font-size: 1.4rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.09rem;
  margin-bottom: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #CE8644;
}
.cookie-modal .cookie-cat {
  font-weight: bold;
  color: #225167;
  font-size: 1.05rem;
  margin-right: 12px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #CE8644;
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  line-height: 38px;
  text-align: center;
  border: none;
  transition: background 0.2s;
}
.cookie-modal .cookie-close-btn:hover {
  background: #225167;
}
@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}
@keyframes bounceIn {
  0% {transform: scale(0.75);} 60% {transform: scale(1.07);} 90% {transform: scale(0.97);} 100% {transform: scale(1);}
}

@media (max-width: 600px) {
  .cookie-modal .modal-content {
    min-width: 0;
    padding: 16px 5px 22px 9px;
  }
}


/* MICROINTERACTIONS & EFFECTS ------------------------- */
a, button, .service-list-grid > div, .feature-grid div, .cta-btn {
  transition: all 0.17s cubic-bezier(.42,.77,.43,1);
}
.content-wrapper, .feature-grid div, .card, .testimonial-card {
  transition: box-shadow 0.21s, border 0.21s, background 0.19s;
}
.card:hover, .feature-grid div:hover, .service-list-grid > div:hover {
  transform: translateY(-3px) scale(1.021);
  box-shadow: 0 10px 34px #CE864420;
}

/* ICONS ------------------------- */
.content-wrapper img[alt*="icon"], .feature-grid img, .service-list-grid img, .brand-footer img[alt*="logo"] {
  max-height: 48px;
  min-width: 36px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 1px #CE864422);
}

/* VINTAGE/RETRO PATTERNS ------------------------- */
.section, .content-wrapper, .card, .testimonial-card, footer {
  background-blend-mode: lighten;
}
.section, .content-wrapper {
  /* subtle lined background using a pattern (SVG pattern as background is referenced above) */
}

/* MISC: FAQ/ARTICLES ------------------------- */
.faq-list {
  margin: 0 0 28px 0;
  font-size: 1.07rem;
}
.faq-list dt {
  color: #CE8644;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 19px;
  margin-bottom: 7px;
  font-size: 1.09rem;
}
.faq-list dd {
  margin-bottom: 9px;
  margin-left: 0px;
  color: #2f2b23;
}

/* TYPOGRAPHY SCALE MOBILE ADJUSTMENTS ------------------------- */
@media (max-width: 600px) {
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.15rem;}
  h3 {font-size: 1.05rem;}
  .content-wrapper, .section {padding: 12px 2px;}
}

/* ACCESSIBILITY: HIGH CONTRAST ON TESTIMONIAL TEXT ------------------------- */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #1D1C17;
  background: #FFF6E2;
}

/* UTILITY CLASSES (SPACING, ETC) ------------------------- */
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* ENSURE NO CONTENT OVERLAP ------------------------- */
.feature-grid > *,
.service-list-grid > *,
.article-teasers > *,
.card-container > *,
.content-grid > * {
  min-width: 0;
  margin-bottom: 20px;
}

/* END OF CSS */
