/* ========== CSS RESET & NORMALIZE ========== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; outline: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; background: #FAF9F6; color: #36322f; }
img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 6px; }
a { text-decoration: none; color: inherit; transition: color .25s; }

/* ========== BRAND COLOR PALETTE ========== */
:root {
  --color-primary: #243B5A;
  --color-secondary: #E7B041;
  --color-accent: #FAF9F6;
  --color-dark: #232220;
  --color-mid: #a48762;
  --color-muted: #f7f2e3;
  --color-error: #b7410e;
  --color-link: #243B5A;
  --color-link-hover: #B89338;
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background-color: var(--color-accent);
  color: var(--color-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 1px 2px 0 #FFF4C2, 2px 1px 0 #F5DEB3;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-mid);
  margin-bottom: 22px;
}

/* Vintage/Retro Accent Fonts and Effects */
.hero h1, section h1, section h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ========== LAYOUT STRUCTURE & CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(72, 60, 25, 0.04);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ========== HEADER ========== */
header {
  background: #F6EBCC;
  border-bottom: 4px solid var(--color-secondary);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 12px 18px;
}
header img {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .5px;
  padding: 4px 2px;
  border-radius: 5px;
  transition: background .18s, color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #B56029;
  background: var(--color-secondary);
  text-shadow: 0 1px 0 #fff5dd;
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 11px 30px;
  border-radius: 9px;
  border: 2px solid #C29C2C;
  box-shadow: 0 3px 7px 0 rgba(47, 43, 0, .09), 0 0px 0 #daddbb;
  margin-left: 12px;
  transition: background .2s, color .2s, box-shadow .2s;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 2px;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD95A;
  color: #8C6C17;
  box-shadow: 0 4px 14px 0 rgba(47, 43, 0, .14);
}

/* ========== MOBILE NAV BURGER ========== */
.mobile-menu-toggle {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  margin-left: 8px;
  cursor: pointer;
  display: none;
  transition: background .2s, color .2s;
  box-shadow: 0 1px 3px 0 rgba(65, 44, 0, 0.07);
  z-index: 1202;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFD95A;
  color: #905300;
}
/* ========== MOBILE MENU (Overlay) ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F8F5F0ee;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.8,-0.01,.19,1.05);
  z-index: 1201 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-primary);
  font-size: 2rem;
  align-self: flex-start;
  margin: 0 0 14px 22px;
  cursor: pointer;
  border: none;
  z-index: 1202;
  transition: color .22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #c45300;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: 1px;
  padding: 8px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  width: max-content;
  transition: color .18s, border .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #C08224;
  border-bottom: 2px solid var(--color-secondary);
}
@media (max-width: 950px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}

@media (min-width: 951px) {
  .mobile-menu { display: none !important; }
}

/* ========== HERO SECTION STYLES ========== */
.hero {
  background-color: #EDD793;
  background-image: repeating-linear-gradient(135deg, #fdf6cf 0, #EDD793 42px, #fdf6cf 72px);
  border-bottom: 5px solid #E7B041;
  box-shadow: 0 2px 34px 0 rgba(37,31,24,.08);
  min-height: 330px;
  padding: 48px 0 32px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 14px;
    min-height: unset;
  }
}

/* ========== FLEX LAYOUTS FOR FEATURES & CARDS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: flex-start;
}
.feature {
  background: #FFFDF6;
  border: 2.5px dashed #C29C2C;
  border-radius: 15px;
  box-shadow: 0 3px 12px 0 rgba(44,40,19, 0.06);
  padding: 28px 25px 21px 25px;
  flex: 1 1 270px;
  min-width: 235px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .18s, transform .18s, border-color .17s;
  margin-bottom: 20px;
  position: relative;
}
.feature:hover {
  border-color: #EDD793;
  box-shadow: 0 8px 32px 0 rgba(34,25,2, 0.14);
  transform: translateY(-4px) scale(1.028);
  z-index: 2;
}
.feature img {
  height: 40px;
  width: 40px;
  margin-bottom: 7px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fffefb;
  border-radius: 15px;
  border: 2px solid #C29C2C;
  margin-bottom: 20px;
  padding: 20px 22px;
  box-shadow: 0 2px 15px 0 rgba(77, 67, 38, 0.08);
  max-width: 490px;
  position: relative;
  font-size: 1.07rem;
  color: #232220;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1.01rem;
}
.testimonial-card p {
  margin-bottom: 4px;
}
.star-rating {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
}
.testimonial-card .star-rating img {
  height: 22px;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  margin-bottom: 60px;
  background: #DF9143;
  background-image: repeating-linear-gradient(-45deg, #DFC59A 0, #DF9143 60px, #DFC59A 120px);
  color: var(--color-primary);
  border-radius: 22px;
  box-shadow: 0 3px 21px 0 rgba(58, 36, 1, 0.10);
}
.cta-banner h2, .cta-banner p {
  color: var(--color-primary);
  text-shadow: 0 2px 0 #FCF1CF;
}
.cta-banner .cta-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  margin-top: 12px;
}
.cta-banner .cta-btn:hover, .cta-banner .cta-btn:focus {
  background: #20293f;
  color: #FFD95A;
  border-color: #FFD95A;
}

/* ========== TEXT/IMAGE SECTION FLEX LAYOUTS ========== */
.text-image-section, .text-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section, .text-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========== FOOTER ========== */
footer {
  background: #2C2420;
  color: #FFF9E7;
  padding: 0 0 0 0;
  font-size: 0.96em;
  box-shadow: 0 -3px 22px 0 rgba(67,43,6,.09);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-logo img {
  height: 42px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #FFE6A6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02em;
  font-weight: 700;
  transition: color .16s;
}
.footer-nav a:hover,.footer-nav a:focus {
  color: #FFD95A;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #FFE6A6;
  font-size: 0.98em;
}
.footer-contact img { height: 17px; width: auto; }

@media (max-width: 880px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========== CARDS & FLEX LAYOUTS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #f9f7f1;
  border-radius: 13px;
  border: 1.5px solid #e3c67e;
  box-shadow: 0 2px 14px 0 rgba(44, 35, 2, 0.04);
  padding: 22px 19px;
  flex: 1 1 300px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== OL, UL, LI FOR VINTAGE LOOK ========== */
ul, ol {
  margin-top: 5px;
  margin-bottom: 14px;
  padding-left: 1.2em;
}
ul li, ol li {
  position: relative;
  line-height: 1.7;
  font-size: 1em;
}
ul li::before {
  content: '\2022';
  color: #D09B23;
  font-size: 1.1em;
  display: inline-block;
  width: 16px;
  margin-left: -18px;
}
ol li {
  margin-left: 4px;
}

/* ========== LINKS, BUTTONS, INTERACTIONS ========== */
a {
  color: var(--color-link);
  text-decoration: underline dotted 2px #c1a251;
  transition: color .15s, background .18s;
}
a:hover, a:focus {
  color: #B89338;
  text-decoration: underline solid 2.5px #DF9143;
}
button, .cta-btn {
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: background .18s, color .16s, box-shadow .15s;
}
/* ========== NEWSLETTER BENEFITS ========== */
.newsletter-benefits ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-left: 14px;
  margin-bottom: 12px;
  list-style-type: square;
  font-size: 1em;
}

/* ========== RESPONSIVE QUERIES ========== */
@media (max-width: 650px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .section, .cta-banner {
    padding: 20px 8px;
  }
  .feature {
    min-width: 98vw;
    max-width: 99vw;
    padding: 18px 9px 16px 9px;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 16px 6px;
  }
  .footer-logo img {
    height: 36px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    min-height: 70px;
    gap: 8px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .cta-banner h2 { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.10rem; }
  .feature, .testimonial-card, .cta-banner, .section {
    border-radius: 8px;
  }
}

/* ========== MICRO-INTERACTIONS & TRANSITIONS ========== */
.section, .feature, .testimonial-card, .cta-banner {
  transition: box-shadow .18s, border-color .13s, background .15s;
}

/* ========== COOKIE CONSENT BANNER STYLES ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #F7E9C1;
  color: #2A2107;
  border-top: 2.5px solid #C29C2C;
  box-shadow: 0 -3px 16px 0 rgba(44,37,4,.10);
  z-index: 1600;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 19px;
  padding: 24px 19vw 20px 30px;
  font-size: 1.01em;
  min-width: 208px;
}
.cookie-banner__text {
  flex: 1 1 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  border-radius: 7px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  margin-right: 7px;
  border: 2px solid #EDD793;
  background: #FAF2DF;
  color: #1E1502;
  transition: background .15s, color .14s, box-shadow .14s;
  box-shadow: 0 1px 4px 0 rgba(71,61,18,.06);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #E7B041;
  color: #352300;
}
.cookie-btn--accept {
  background: #EDD793;
  color: #614a12;
}
.cookie-btn--accept:hover {
  background: #DF9143;
  color: #FFF;
}
.cookie-btn--settings {
  background: transparent;
  color: #245B67;
  border: 2px solid #C29C2C;
}
.cookie-btn--settings:hover { background: #FFEEC6; }
@media (max-width: 940px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 16px 11vw 14px 13px;
    font-size: .99em;
  }
}
@media (max-width: 540px){
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    font-size: .96em;
    padding: 17px 8px 15px 8px;
  }
}

/* ========== COOKIE PREFERENCES MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1610;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(44,35,2,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #FAF2DF;
  border-radius: 18px;
  box-shadow: 0 13px 56px 0 rgba(87, 71, 9, .18);
  min-width: 290px;
  max-width: 99vw;
  min-height: 180px;
  padding: 36px 28px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.cookie-modal ul {
  margin-left: 0;
  margin-bottom: 12px;
}
.cookie-modal li {
  margin-bottom: 7px;
  font-size: .99em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EDD793;
  border-radius: 11px;
  transition: .17s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #DF9143;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  height: 17px; width: 17px;
  left: 3px; bottom: 2.5px;
  background: #fff6dc;
  border-radius: 50%;
  transition: .17s;
  box-shadow: 0 1px 3px 0 rgba(66,54,4,.08);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: #FFD95A;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 17px;
}
.cookie-modal-close {
  position: absolute;
  right: 17px; top: 16px;
  background: none;
  border: none;
  color: #C29C2C;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 1615;
  transition: color .14s;
}
.cookie-modal-close:hover {
  color: #CF6B00;
}
@media (max-width: 600px) {
  .cookie-modal { padding: 19px 7vw 17px 7vw; }
}

/* ========== Z-INDEX SAFETY & SPACING ========== */
header, .mobile-menu, footer, .cookie-banner, .cookie-modal-overlay { z-index: auto; }

/* ========== VINTAGE PATTERN & NOSTALGIC ELEMENTS ========== */
.section, .card, .feature, .testimonial-card, .cta-banner {
  background-image: repeating-linear-gradient(138deg, rgba(255,246,220,0.19) 0, rgba(255,246,220,.03) 29px);
}

.feature, .testimonial-card {
  box-shadow: 0 3px 21px 0 rgba(163, 137, 67, 0.05);
}

/* ========== GENERAL SPACING ========== */
.section, .cta-banner {
  margin-bottom: 60px;
  min-width: 100px;
}
.card, .feature, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper, .feature-grid, .card-container, .content-grid {
  gap: 24px;
}
.text-image-section {
  gap: 30px;
}

/* ========== FORM INPUTS (for contact, etc.) ========== */
input, textarea {
  padding: 8px 13px;
  border-radius: 6px;
  border: 2px solid #E7B041;
  background: #FFFDF7;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 1px 3px 0 rgba(171,151,54,0.05);
  margin-bottom: 16px;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: #DF9143;
  outline: none;
}

/* ========== MISCELLANEOUS ========== */
::-webkit-scrollbar {
  width: 11px;
  background: #f8f5ed;
}
::-webkit-scrollbar-thumb {
  background: #E7B041;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover { background: #DF9143; }

/* ========== VISUAL ACCESSIBILITY IMPROVEMENTS ========== */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #24201b;
  background: transparent;
  text-shadow: none;
}
@media (max-width: 420px) {
  .hero h1, h1 { font-size: 1.12rem; }
  .cta-btn, .cookie-btn { font-size: .96em; padding: 8px 11px; }
  .feature, .testimonial-card { min-width: unset; }
}
