/* ==================== 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.4;
  background: #F6E9D0;
  color: #4A320F;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .22s;
}
a:focus {
  outline: 2px dashed #A13B17;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
*:focus-visible {
  outline: 2px solid #A13B17;
  outline-offset: 2px;
}

/* ==================== VINTAGE RETRO STYLE & THEME ======================== */
:root {
  --color-primary: #6C4F1A;
  --color-primary-dark: #4A320F;
  --color-secondary: #F6E9D0;
  --color-accent: #A13B17;
  --color-accent-light: #C5451D;
  --color-neutral: #fff;
  --color-grey: #F2DCA2;

  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  /* Vintage paper texture simulated by background pattern */
  background-image: repeating-linear-gradient(135deg, #f6e9d0 0 20px, #ebd4b0 21px 40px);
}

.container {
  width: 92%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

header {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-bottom: 7px double #F2DCA2;
  font-family: var(--font-display);
  letter-spacing: 1px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.logo img {
  height: 52px;
  width: auto;
  margin-right: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.7px;
  font-size: 17px;
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}
.main-nav a:not(.cta-primary):hover {
  color: var(--color-grey);
  text-shadow: 0 1px 0 #F2DCA2;
}
.main-nav .cta-primary {
  background: var(--color-accent);
  color: #fff;
  border-radius: 32px;
  padding: 9px 24px;
  font-size: 16px;
  margin-left: 14px;
  box-shadow: 2px 4px 0 #4A320F;
  border: 2px solid #A13B17;
  font-family: var(--font-display);
  transition: background 0.18s, box-shadow 0.16s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #C5451D;
  color: #fff3e8;
  box-shadow: 2px 2px 0 #A13B17;
}

.mobile-menu-toggle {
  background: var(--color-accent);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  border-radius: 6px;
  padding: 7px 15px 5px 15px;
  display: none;
  margin-left: 20px;
  box-shadow: 0 3px 0 #6C4F1A;
  border: 1.5px solid #A13B17;
  transition: background .20s;
  z-index: 20;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #C5451D;
}

/* ==================== MOBILE MENU ======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #F6E9D0 50%, #ebd4b0 100%);
  box-shadow: 2px 0 16px 0 rgba(76,48,18,0.14);
  z-index: 400;
  display: flex;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(0.85,0,0.15,1);
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: #A13B17;
  color: #fff;
  font-size: 30px;
  border-radius: 4px;
  padding: 4px 13px 4px 13px;
  z-index: 1;
  border: 2px solid #6C4F1A;
  box-shadow: 0 2px 0 #C5451D;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #C5451D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 90px;
  width: 100vw;
  align-items: center;
}
.mobile-nav a {
  font-size: 22px;
  color: #4A320F;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 0;
  transition: color 0.16s, background 0.15s;
  width: 90vw;
  border-radius: 8px;
  text-align: center;
  min-height: 40px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent-light);
  color: #fff;
}


/* ================= MAIN CONTENT SECTIONS, VINTAGE CARD/PATTERNS =============== */
main {
  flex: 1 1 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(250,246,235,0.68);
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(76,48,18,0.06);
  border: 1.5px solid #EAD1A1;
  position: relative;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =================== TYPOGRAPHY VINTAGE HIERARCHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  text-shadow: 0 2px 0 #F2DCA2, 1px 1px 0 #e2b97c;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  letter-spacing: 1.6px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: 1.1px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.subheadline {
  font-size: 1.18rem;
  font-family: var(--font-body);
  color: #A13B17;
  margin-bottom: 12px;
  font-style: italic;
  letter-spacing: .5px;
}
p, li, span, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #4A320F;
  line-height: 1.62;
}
strong {
  color: #6C4F1A;
  font-weight: 800;
  letter-spacing: .09em;
}

ul {
  margin-bottom: 0;
}
ul li, .content-wrapper > ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
ul li img {
  width: 27px;
  height: 27px;
  filter: sepia(0.45) contrast(1.2) brightness(0.92);
}

/* =================== BUTTON & CTA ==================== */
.cta-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  padding: 12px 34px;
  border-radius: 35px 38px 34px 35px/38px 34px 36px 34px;
  border: 2.5px solid #A13B17;
  box-shadow: 3px 5px 0 #4A320F;
  transition: background 0.19s, box-shadow 0.17s, transform .11s;
  margin-top: 10px;
  letter-spacing: 0.4px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #C5451D;
  color: #FFF7ED;
  transform: translateY(-2px);
  box-shadow: 1px 3px 0 #A13B17;
}

/* =================== FLEX LAYOUTS, CARDS, AND SECTIONS =================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  padding: 24px 18px;
  background: linear-gradient(135deg, #fff9ea 85%, #F2DCA2 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(76,48,18,0.08);
  position: relative;
  border: 1.2px dashed #EAD1A1;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  background: #fff7ed;
  border: 1.5px solid #EAD1A1;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(106,84,58,0.07);
  gap: 20px;
  padding: 20px;
  min-width: 230px;
  margin-bottom: 20px;
  max-width: 500px;
  font-size: 1.05rem;
  position: relative;
  z-index: 0;
  margin-right: 18px;
}
/* Quotes/speechbubble pattern: */
.testimonial-card::before {
  content: '“';
  font-size: 3.9rem;
  color: #EAD1A1;
  position: absolute;
  top: -13px; left: 10px;
  z-index: 0;
  font-family: var(--font-display);
}
.testimonial-card p {
  color: #4A320F;
  font-style: italic;
  font-size: 1.08rem;
  z-index: 10;
  text-shadow: 0 1px 0 #fff9ea;
}
.testimonial-card span {
  color: #A13B17;
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-top: 2px;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =================== FOOTER =================== */
footer {
  background: #F2DCA2;
  border-top: 6px double #A13B17;
  margin-top: 80px;
  font-family: var(--font-display);
  color: #4A320F;
  padding: 0 0 20px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding-top: 42px;
  padding-bottom: 12px;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1.07rem;
  align-items: flex-start;
}
.footer-branding img {
  height: 42px;
  margin-bottom: 5px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.footer-nav a {
  color: #4A320F;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 3px 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A13B17;
  text-decoration: underline wavy 1.8px #A13B17;
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #F2DCA2;
  border-top: 3.5px solid #A13B17;
  color: #4A320F;
  font-family: var(--font-body);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 20px 12px;
  z-index: 1000;
  box-shadow: 0 -2px 20px rgba(76,48,18,0.07);
  gap: 18px;
  animation: fadeInBanner 0.7s;
}
@keyframes fadeInBanner {
  from {opacity: 0; transform: translateY(80px);}
  to {opacity: 1; transform: translateY(0);}
}
.cookie-banner p {
  font-size: 1.04rem;
  margin: 0 18px 0 0;
}
.cookie-options {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: #A13B17;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 22px;
  margin: 0;
  transition: background .16s, color .15s, box-shadow .16s;
  box-shadow: 0 2px 0 #C5451D;
}
.cookie-btn:hover, .cookie-settings-btn:hover, .cookie-btn:focus {
  background: #C5451D;
  color: #fff7ed;
}
.cookie-btn.reject {
  background: #97948C;
  color: #fff7ed;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #827c6f;
}

.cookie-modal-overlay {
  z-index: 2000;
  background: rgba(90, 52, 14, 0.62);
  width: 100vw; height: 100vh;
  top: 0; left: 0;
  position: fixed;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInBanner 0.43s;
}
.cookie-modal {
  background: #fff9ea;
  border: 3px solid #EAD1A1;
  border-radius: 21px 21px 6px 6px;
  box-shadow: 0 8px 48px rgba(76,48,18,0.18);
  width: 98vw; max-width: 420px;
  padding: 34px 20px 22px 20px;
  margin-bottom: 10vh;
  position: relative;
  animation: dropBanner 0.47s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
@keyframes dropBanner {
  from {opacity: 0; transform:translateY(160px);}
  to {opacity: 1; transform:translateY(0);}
}
.cookie-modal h2 {
  font-family: var(--font-display);
  color: #A13B17;
  font-size: 1.36rem;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.cookie-switch {
  width: 38px;
  height: 21px;
  border-radius: 15px;
  background: #EAD1A1;
  position: relative;
  margin-left: 10px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch span {
  display: block;
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 17px;
  background: #A13B17;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-switch input:checked + span {
  left: 18px;
  background: #C5451D;
}
.cookie-modal .cookie-btn {
  margin-right: 11px;
  margin-top: 8px;
}
.cookie-modal .close-modal-btn {
  position: absolute; top: 14px; right: 14px;
  background: #A13B17;
  color: #fff; font-size: 23px;
  border-radius: 50%; width: 31px; height: 31px;
  text-align: center;
  border: none; box-shadow: 0 1px 0 #C5451D;
  transition: background .17s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  background: #C5451D;
  color: #fff9ea;
}

/* =================== RESPONSIVENESS =================== */
@media (max-width: 1100px) {
  .container {
    max-width: 94vw;
  }
  .footer-branding {
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
  .container {
    padding: 0 2vw;
  }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .container {
    max-width: 99vw;
    width: 99vw;
    padding: 0 1vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav {
    align-items: flex-start;
    gap: 8px;
  }
  .footer-nav a {
    font-size: 0.99rem;
  }
  .footer-branding {
    font-size: 0.97rem;
    gap: 4px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 96vw;
    min-width: 0;
    margin-right: 0;
  }
  section {
    padding: 28px 7px;
    border-radius: 17px;
    margin-bottom: 46px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; margin-bottom: 9px; }
}
@media (max-width: 570px) {
  .logo img, .footer-branding img {
    height: 37px;
  }
  section { padding: 18px 3px; }
  .cta-primary { padding: 10px 16px; font-size: .98rem; }
}

/* =================== MICRO-INTERACTIONS =================== */
.card, .testimonial-card, .cookie-btn, .cta-primary {
  transition: box-shadow 0.19s, transform .13s, background .19s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(106,84,58,0.13);
  transform: translateY(-2px) scale(1.018);
}

/* ============== VINTAGE & RETRO NOSTALGIC ELEMENTS ============= */
section {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 52px, #efd4aa 53px 55px);
  background-size: 110px 110px;
}
.card, .testimonial-card {
  background-image: repeating-linear-gradient(0deg,rgba(250,246,235,0.15),rgba(250,246,235,0.15) 42px,#ffeac6 43px 44px);
  background-size: 120px 120px;
}

/* ============ SCROLLBAR RETRO STYLES =========== */
::-webkit-scrollbar {
  width: 12px;
  background: #ebd4b0;
}
::-webkit-scrollbar-thumb {
  background: #C5451D;
  border-radius: 8px;
  border: 3px solid #ebd4b0;
}

/* =================== STACKING AND Z-INDEX =============== */
header, .mobile-menu { z-index: 100; }

/* =================== MISC =================== */
input, textarea, select {
  border-radius: 8px;
  border: 1.1px solid #EAD1A1;
  padding: 7px 11px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #FFF7ED;
  margin-bottom: 14px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #C5451D;
  outline: none;
}

/* =================== RETRO ICONS & BADGES =================== */
ul li img {
  filter: sepia(.4) contrast(1.14) brightness(0.98);
  border-radius: 5px;
  box-shadow: 2px 2px 0 #EAD1A1;
}

/* ========== FORM SUBMIT LOADING (VINTAGE ANIMATED BREAD) ========== */
.form-loading-bread {
  width: 54px; height: 37px;
  background: url('../assets/icons/icon-bread.svg') no-repeat center center/contain;
  animation: breadRoll 0.7s linear infinite alternate;
  margin: 0 auto;
}
@keyframes breadRoll {
  from {transform: translateY(0);}
  to {transform: translateY(5px) scale(1.06);}
}

/* =================== END =================== */
