/*-------------------------------------------------------------
 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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: var(--vintage-bg, #F3EFE7);
  color: var(--vintage-text, #3b3332);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  /* Subtle retro pattern background */
  background-color: #F3EFE7;
  background-image: repeating-linear-gradient(135deg,#f3efe7 0px, #f3efe7 15px,#f5deb6 16px, #f5deb6 20px);
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li+li {
  margin-top: 8px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { 
  color: var(--vintage-primary, #466575); 
  text-decoration: none; 
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #bc885f;
  outline: none;
}
button, [type="button"], [type="submit"] {
  font-family: inherit;
  cursor: pointer;
}
:root {
  --vintage-primary: #466575;
  --vintage-secondary: #BBCAC9;
  --vintage-accent: #F3EFE7;
  --vintage-bg: #F3EFE7;
  --vintage-highlight: #bc885f;
  --vintage-deep: #2E3A37;
  --vintage-card: #FCF8F3;
  --vintage-border: #e1cfa5;
  --vintage-text: #3b3332;
  --vintage-shadow: 0 4px 14px 0 rgba(68,55,24,0.09);
  --vintage-radius: 14px;
  --vintage-radius-sm: 8px;
  --vintage-cta-gradient: linear-gradient(90deg,#ab7e52 0,#ffeccb 100%);
}

/*-------------------------------------------------------------
 TYPOGRAPHY (RETRO/VINTAGE)
-------------------------------------------------------------*/
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--vintage-primary);
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.16;
}
h1 {
  font-size: 2.6rem;
  text-shadow: 1px 1px 0 #ffeccb, 2px 2px 0 #bc885f;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  text-shadow: 1px 1px 0 #ffeccb;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  text-shadow: 1px 1px 0 #ffeccb;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p, li {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--vintage-text);
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
  color: var(--vintage-primary);
}
em {
  font-style: italic;
}

/* Typo scale for vintage headlines */
@media (min-width: 768px){
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.25rem; }
  p, li { font-size: 1.1rem; }
}

/*-------------------------------------------------------------
 LAYOUT SPACING & CONTAINER
-------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .container { padding-left: 8px; padding-right: 8px; }
}

/*-------------------------------------------------------------
 FLEX LAYOUTS (MANDATORY)
-------------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--vintage-card);
  border: 2px solid var(--vintage-border);
  border-radius: var(--vintage-radius);
  box-shadow: var(--vintage-shadow);
  margin-bottom: 20px;
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(68,55,24,0.18);
  transform: translateY(-2px) scale(1.012);
}
.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){
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

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

.testimonial-card {
  background: #fffbe4;
  border: 2px solid #e1cfa5;
  border-radius: var(--vintage-radius-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px 0 rgba(70,101,117,0.06);
  color: #443523;
  font-style: italic;
  position: relative;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(188,136,95,0.12);
}
.testimonial-card p {
  margin-bottom: 6px;
  font-size: 1.08em;
  color: #3b3332;
}
.testimonial-card span {
  font-family: 'Lato', sans-serif;
  font-size: .95em;
  color: #947245;
  margin-left: 10px;
  font-style: normal;
}

/* Blog Snippets */
.blog-snippet {
  background: #fcf8ef;
  border-left: 5px solid var(--vintage-primary);
  border-radius: var(--vintage-radius-sm);
  padding: 18px 18px 15px 20px;
  margin-bottom: 18px;
  transition: background 0.20s;
}
.blog-snippet:hover {
  background: #f8ecd3;
}

/* Table Style Vintage */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 1rem;
  background: #F9F5E7;
  border-radius: var(--vintage-radius);
  overflow: hidden;
}
thead {
  background: #EDD2B7;
}
th, td {
  padding: 14px 14px;
  border-bottom: 1px solid #e1cfa5;
  text-align: left;
}
th {
  color: #463b23;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
tbody td {
  color: #554e32;
}
tr:last-child td {
  border-bottom: none;
}

/*-------------------------------------------------------------
 HEADER & NAVIGATION
-------------------------------------------------------------*/
header {
  background: #ede7dd;
  border-bottom: 4px solid #e1cfa5;
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 1.08em;
  padding: 4px 12px;
  border-radius: var(--vintage-radius-sm);
  color: #464336;
  position: relative;
  transition: color 0.15s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav .cta:hover {
  background: #ffeccb;
  color: var(--vintage-primary);
  outline: none;
}
.main-nav .cta {
  background: var(--vintage-primary);
  color: #fffefc;
  font-weight: 700;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(188,136,95,0.09);
  padding: 7px 25px;
  margin-left: 18px;
  font-size: 1.08em;
  letter-spacing: .025em;
  border: none;
  transition: background 0.18s,color 0.12s, box-shadow 0.20s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #ab7e52;
  color: #fff9ec;
  box-shadow: 0 4px 18px 0 rgba(188,136,95,0.12);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #466575;
  margin-left: 12px;
  z-index: 101;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #bc885f;
  outline: none;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e8e1d5ee;
  z-index: 1011;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.84,.02,.19,1.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #466575;
  z-index: 1222;
  transition: color 0.2s;
  cursor: pointer;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #bc885f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 88px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 1.32em;
  color: #3b3332;
  padding: 10px 18px 8px 6px;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #ffeccb;
  color: #466575;
  outline: none;
}
@media (max-width: 768px){
  .mobile-nav {
    margin-top: 66px;
    padding-left: 20px;
    gap: 20px;
  }
}

/*-------------------------------------------------------------
 HERO SECTIONS
-------------------------------------------------------------*/
.hero {
  padding: 46px 0 64px 0;
  min-height: 310px;
  background: linear-gradient(115deg, #F3EFE7 80%, #e8e1d5 100%);
  border-bottom: 4px dotted #e1cfa5;
  box-shadow: 0 6px 30px 0 rgba(244,232,215,0.36);
  margin-bottom: 64px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 700px;
  background: rgba(251,247,237,0.9);
  border-radius: 22px;
  box-shadow: 0 4px 36px 0 rgba(214,197,159,0.08);
  padding: 36px 32px;
  margin: 0 auto;
  align-items: flex-start;
}
.hero .cta {
  margin-top: 24px;
}
@media (max-width: 768px){
  .hero {
    padding: 24px 0 32px 0;
    min-height: unset;
  }
  .hero .content-wrapper {
    padding: 18px 10px;
    margin-bottom: 0;
  }
}

/*-------------------------------------------------------------
 CTA BUTTONS
-------------------------------------------------------------*/
.cta {
  font-family: 'Playfair Display', serif;
  font-size: 1.12em;
  font-weight: 600;
  letter-spacing: .048em;
  padding: 12px 34px;
  background: var(--vintage-cta-gradient);
  border: none;
  border-radius: 24px;
  text-shadow: 0 1px 0 #ffeccb;
  color: #562c1b;
  box-shadow: 0 3px 12px 0 rgba(141,97,63,0.08);
  cursor: pointer;
  transition: background .16s, color 0.16s, box-shadow .17s, transform 0.15s;
  border-bottom: 2px solid #c39b7b;
  margin-top: 4px;
  position: relative;
}
.cta:focus, .cta:hover {
  background: linear-gradient(90deg,#ffeccb 0,#bd966e 100%);
  color: #2e3a37;
  box-shadow: 0 10px 32px 0 rgba(188,136,95,0.16);
  outline: none;
  transform: translateY(-2px) scale(1.05);
}

/*-------------------------------------------------------------
 FOOTER
-------------------------------------------------------------*/
footer {
  background: #ede7dd;
  border-top: 3px solid #e1cfa5;
  margin-top: 80px;
  padding: 30px 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-section {
  flex: 1 1 150px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.footer-nav, .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a,
.footer-menu a {
  color: #77715f;
  font-size: .98em;
  transition: color 0.15s, text-decoration 0.2s;
  border-radius: 5px;
  padding: 2px 4px;
}
.footer-nav a:hover, .footer-menu a:hover {
  color: #466575;
  text-decoration: underline wavy #e1cfa5 2px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.social-links a {
  background: #ffeccb;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(196,172,114,0.08);
  border: 1.5px solid #e1cfa5;
  transition: transform 0.11s, box-shadow 0.15s;
}
.social-links a:hover { 
  background: #bc885f; 
  box-shadow: 0 4px 18px 0 rgba(188,136,95,0.16); 
  transform: rotate(-6deg) scale(1.1); 
}
footer p { font-size: .88em; color: #6b625d; margin-bottom: 4px; }
@media (max-width: 1024px){
  footer .container {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 10px;
  }
  .footer-section { align-items: flex-start; margin-bottom: 0; }
}

/*-------------------------------------------------------------
 COOKIE CONSENT BANNER & MODAL
-------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2222;
  background: #fcf5e3;
  color: #5a4d30;
  padding: 18px 24px 18px 24px;
  box-shadow: 0 -2px 22px 0 rgba(188,136,95,0.15);
  border-top: 3px solid #e1cfa5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  animation: cookieReveal 0.6s cubic-bezier(.63,-0.05,.26,1.21);
}
@keyframes cookieReveal {
  0% { transform: translateY(100%);} 
  100% { transform: translateY(0);}
}
.cookie-banner__text {
  flex: 1 1 320px;
  color: #43381d;
  font-size: 1em;
}
.cookie-banner__btns {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Playfair Display', serif;
  padding: 8px 20px;
  border-radius: 16px;
  border: none;
  font-size: 1.02em;
  background: #ede3c2;
  color: #443523;
  margin: 0;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 7px 0 rgba(188,136,95,0.07);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #bc885f;
  color: #fff9ee;
  outline: none;
}
.cookie-banner .accept {
  background: #ab7e52;
  color: #fff8e5;
  border-bottom: 2px solid #a3602c;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #a3602c;
  color: #fffefc;
}
.cookie-banner .reject {
  background: #c7bba1;
  color: #463b23;
}
.cookie-banner .settings {
  background: #fffbe4;
  color: #7e6744;
}
/* Cookie Banner Responsive */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 7px;
    gap: 11px;
  }
  .cookie-banner__btns {
    justify-content: flex-end;
    gap: 10px;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: rgba(73,65,51,0.27);
  z-index: 2333;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  animation: cookieModalReveal 0.33s cubic-bezier(.63,-0.05,.26,1.21);
}
@keyframes cookieModalReveal {
  0% { opacity: 0; transform: scale(0.97);} 
  100% { opacity: 1; transform: scale(1);}
}
.cookie-modal__dialog {
  background: #fcf8ef;
  border: 3px solid #e1cfa5;
  border-radius: 19px;
  padding: 29px 26px 22px 26px;
  min-width: 310px;
  max-width: 97vw;
  box-shadow: 0 8px 38px 0 rgba(188,136,95,0.18);
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #ab7e52;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.cookie-modal .category-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ede7dd;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  width: 34px;
  height: 20px;
  display: inline-block;
  background: #e1cfa5;
  border-radius: 10px;
  position: relative;
  transition: background .20s;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-modal .cookie-switch .slider {
  position: absolute; left: 2px; top: 2px;
  height: 16px;
  width: 16px;
  background: #fffbe4;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(110,100,45,0.07);
  transition: left .18s;
}
.cookie-modal .cookie-switch input:checked ~ .slider {
  left: 16px;
  background: #bc885f;
}
.cookie-modal__btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal__btns button {
  font-size: 1.08em;
  padding: 9px 24px;
  border-radius: 14px;
}
@media (max-width: 500px){
 .cookie-modal__dialog {
    padding: 12px 5vw;
    min-width: unset;
  }
}

/*-------------------------------------------------------------
 RESPONSIVE UTILITIES & EFFECTS
-------------------------------------------------------------*/
.hide-mobile { display: block; }
@media (max-width: 768px){
  .hide-mobile { display: none; }
}

/*-------------------------------------------------------------
 RETRO/VINTAGE STYLISTIC ELEMENTS
-------------------------------------------------------------*/
hr {
  border: none;
  border-top: 2px dotted #e1cfa5;
  margin: 40px 0 22px 0;
}
blockquote {
  border-left: 5px solid #ab7e52;
  padding-left: 16px;
  font-style: italic;
  color: #947245;
  background: #fffbe4;
  margin: 22px 0;
  border-radius: 9px;
}
::-webkit-selection { background: #ffeccb; }
::selection { background: #ffeccb; }

/*-------------------------------------------------------------
 FORMS
-------------------------------------------------------------*/
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1em;
  padding: 10px 12px;
  border: 2px solid #e1cfa5;
  border-radius: 11px;
  margin-bottom: 14px;
  background: #f9f3e6;
  color: #3b3332;
  transition: border-color 0.12s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #ab7e52;
  outline: 2px solid #ffeccb;
  background: #fffbe4;
}
label {
  display: block;
  font-family: 'Lato',sans-serif;
  margin-bottom: 7px;
  color: #7e6744;
  font-size: 1em;
}

/*-------------------------------------------------------------
 SPECIAL SPACING CLASSES (MANDATORY)
-------------------------------------------------------------*/
.mt-24 { margin-top: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/*-------------------------------------------------------------
 Z-INDEX FOR OVERLAYS
-------------------------------------------------------------*/
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1001;
}

/*-------------------------------------------------------------
 MICRO-ANIMATIONS & INTERACTIONS
-------------------------------------------------------------*/
.card,
.cta,
.mobile-menu-toggle,
.mobile-menu-close,
.social-links a,
.testimonial-card,
.blog-snippet {
  transition: box-shadow 0.18s, transform 0.14s, background 0.19s, color .14s;
}

.cta:active {
  transform: scale(.97);
}
.card:active {
  transform: scale(.98);
}
.mobile-menu-toggle:active {
  transform: scale(.96);
}

/*-------------------------------------------------------------
 PRINT STYLES BASICS
-------------------------------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner,.cookie-modal {display:none!important;}
  .container, .content-wrapper, .hero, .section {
    max-width: 100%!important; padding:0!important; margin:0!important;
  }
}
