/* =========================================================
   CSS RESET & VINTAGE RETRO BASE STYLES
========================================================= */
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,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{box-sizing:border-box;}
*,*:before,*:after{box-sizing:inherit;}
a{text-decoration:none;color:inherit;}
img,svg{vertical-align:middle;max-width:100%;height:auto;border:0;}
ol,ul{
  list-style:none;
  padding-left:0;
}
h1,h2,h3,h4,h5,h6,strong{font-weight:700;}
input,button,textarea,select{
  font:inherit;
  background:none;
  outline:none;
  border:none;
}
button{cursor:pointer;}

/* =========================================================
   FONT IMPORTS & BRAND COLORS (Vintage/Retro)
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Archivo+Black&family=Open+Sans:wght@400;600&display=swap');
:root{
  --color-primary: #17444F;
  --color-secondary: #F7F7F5;
  --color-accent: #A5A2A0;
  --color-vintage-yellow: #FFD479;
  --color-vintage-cream: #FFF8E4;
  --color-vintage-bg: #F7F3ED;
  --color-vintage-brown: #8C8681;
  --color-vintage-blue: #3C4957;
  --color-retro-red: #C45C5C;
  --color-dark: #291C16;
  --shadow-retro: 0 4px 16px rgba(138,121,95,.11), 0 1.5px 3px rgba(44,31,18,0.08);
  --border-radius-card: 18px;
  --border-radius-btn: 28px;
  --transition: .28s cubic-bezier(.47,1.64,.41,.8);
  --font-display: 'Archivo Black','Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-vintage-bg);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* VINTAGE RETRO TYPOGRAPHY */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: .03em;
}
h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 #FFF8E4;
}
h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-retro-red);
}
h3 {
  font-size: 1.16rem;
  font-weight: bold;
  color: var(--color-vintage-brown);
  margin-bottom: 7px;
}
h4 {
  font-size: 1rem;
  color: var(--color-vintage-blue);
  margin-bottom: 5px;
}
p,li,blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}
blockquote {
  font-size: 1.14rem;
  font-style: italic;
  background: var(--color-vintage-cream);
  border-left: 6px solid var(--color-vintage-yellow);
  padding: 18px 22px 18px 18px;
  border-radius: 12px;
  margin: 0 0 8px 0;
}
cite {
  font-size: 0.96rem;
  font-family: var(--font-display);
  color: var(--color-vintage-brown);
  letter-spacing: .02em;
  display: block;
  margin-top: 7px;
}

strong {color: var(--color-primary);font-weight: 700;}

ul,ol {margin-left: 20px;margin-bottom: 10px;}
ul li::before {
  content: '\25A0';
  color: var(--color-vintage-brown);
  font-size: 14px;
  margin-right: 7px;
  display: inline-block;
}
ol li {margin-bottom: 4px;}

/*==========================================================
  HEADER & NAV
==========================================================*/
header {
  background: var(--color-primary);
  color: #fff;
  position: relative;
  box-shadow: 0 2px 14px rgba(45, 35, 18, 0.08);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
}
.logo img {
  height: 40px;
  max-width: 140px;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  font-size: 1.02rem;
  transition: color var(--transition);
  position: relative;
  padding: 3px 0;
}
nav a:not(.cta-btn):hover, nav a:not(.cta-btn):focus {
  color: var(--color-vintage-yellow);
}

.cta-btn {
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
  font-family: var(--font-display);
  border-radius: var(--border-radius-btn);
  font-weight: bold;
  font-size: 1.06rem;
  padding: 11px 28px 11px 28px;
  margin-left: 16px;
  box-shadow: 0 1.5px 10px rgba(238, 174, 93, 0.11);
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid var(--color-vintage-yellow);
  outline: none;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover,.cta-btn:focus {
  background: var(--color-retro-red);
  color: #fff;
  border-color: var(--color-retro-red);
  box-shadow: 0 5px 24px 0 rgba(196,92,92,0.11);
}

/* =====================
 MOBILE MENU BUTTON
======================*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 13px;
  right: 18px;
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
  border: none;
  border-radius: 9px;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  z-index: 1001;
  box-shadow: 0 4px 16px rgba(244,195,65, .10);
  transition: background .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-retro-red);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-secondary);
  box-shadow: 0 8px 30px rgba(44,20,21,.23);
  transition: transform .36s cubic-bezier(.48,1.22,.22,1), opacity .21s;
  transform: translateX(100vw);
  opacity: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 21px 21px 0 0;
  background: var(--color-retro-red);
  color: #fff;
  border-radius: 7px;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  line-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(196,92,92,0.11);
  transition: background .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus  {
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding: 38px 32px 0 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--color-primary);
  letter-spacing: .02em;
  padding: 4px 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
  display: block;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-retro-red);
  border-bottom: 2px solid var(--color-retro-red);
  background: var(--color-vintage-cream);
}

@media (max-width: 1024px) {
  header .container nav, header .container .cta-btn {display: none;}
  .mobile-menu-toggle {display: block;}
}
@media (min-width: 1025px) {
  .mobile-menu {display: none!important;}
  .mobile-menu-toggle {display: none!important;}
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  background: repeating-linear-gradient(135deg, var(--color-vintage-cream), var(--color-vintage-bg) 28px, var(--color-vintage-yellow) 44px, var(--color-vintage-cream) 56px);
  padding: 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 26px rgba(196,92,92,0.04);
  margin-bottom: 60px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero .content-wrapper h1 {
  font-size: 2.5rem;
  color: var(--color-retro-red);
  letter-spacing: .041em;
}
.hero .content-wrapper p {
  font-size: 1.18rem;
  color: var(--color-dark);
  margin-bottom: 21px;
}
.hero .cta-btn {
  margin-top: 16px;
  font-size: 1.12rem;
}

/* =========================================================
   FLEX & SPACING - VINTAGE
========================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-vintage-cream);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-retro);
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--border-radius-card);
  background: #fffbe7;
  box-shadow: 0 4px 16px 0 rgba(196,92,92,0.09), 0 2px 24px 0 rgba(138,121,95,.07);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 780px;
  word-break: break-word;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .content-grid, .feature-grid, .features-grid, .card-container {gap:16px;}
}

@media (max-width: 768px) {
  .section{padding: 28px 7px;margin-bottom:36px;}
  .hero .container {padding-top: 32px; padding-bottom: 32px;}
  .content-wrapper{padding: 0 6px;}
  .text-image-section {flex-direction: column;align-items: flex-start;gap:18px;}
}

@media (max-width: 540px) {
  .hero .content-wrapper h1 {font-size:1.45rem;}
  h1{font-size:1.32rem;}
  h2{font-size:1.06rem;}
  h3{font-size:1rem;}
}

/* ================
 FEATURE GRIDS & CARDS
===================== */
.feature-grid, .features-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 13px;
  margin-bottom: 7px;
}
.feature-grid > div, .features-grid > div {
  background: var(--color-vintage-cream);
  border: 2px dashed var(--color-accent);
  border-radius: 15px;
  padding: 18px 23px 19px 18px;
  min-width: 185px;
  flex: 1 1 220px;
  max-width: 330px;
  box-shadow: 0 3px 13px 0 rgba(208,190,101,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 12px;
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.feature-grid > div:hover, .features-grid > div:hover {
  border-color: var(--color-retro-red);
  box-shadow: 0 7px 21px 0 rgba(196,92,92,0.11);
}
.feature-grid img, .features-grid img {
  width: 41px;
  height: 41px;
  margin-bottom: 5px;
  filter: sepia(0.47) brightness(0.92) contrast(1.17);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* Testimonials - readable contrast */
.testimonial-card blockquote {
  color: #2D2521;
  background: none;
  border-left: 0;
  padding: 0;
  margin: 0;
}
.testimonial-card cite {
  color: var(--color-retro-red);
  font-size:1rem;
  margin-left:4px;
}

@media (max-width: 640px) {
  .feature-grid, .features-grid {gap: 10px;}
  .feature-grid > div, .features-grid > div {padding:10px 12px;}
  .testimonial-card{padding:12px;gap:10px;}
}

/* Blog post lists and featured posts */
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.post-list article {
  flex: 1 1 240px;
  background: var(--color-vintage-cream);
  border-radius: 14px;
  padding: 19px 17px 21px 17px;
  box-shadow: var(--shadow-retro);
  margin-bottom: 12px;
  min-width: 170px;
  max-width: 340px;
}
.featured-posts {
  background: var(--color-vintage-yellow);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.06rem;
  margin-top: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(245,202,54,0.11);
}

/* =========================================================
   COOKIE BANNER & MODAL
========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-vintage-cream);
  color: var(--color-primary);
  font-family: var(--font-body);
  box-shadow: 0 -2px 16px rgba(138,121,95,0.10);
  z-index: 3300;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 21px 18px;
  gap: 38px;
  transition: transform .3s, opacity .22s;
}
.cookie-banner.hide { opacity: 0; transform: translateY(110%); pointer-events: none; }
.cookie-banner__content {
  font-size: 1rem;
  max-width: 570px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
.cookie-btn, .cookie-btn-settings {
  font-family: var(--font-display);
  border-radius: 32px;
  border: 2px solid var(--color-primary);
  padding: 8px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
  margin-left: 7px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-retro-red);
  color: #fff;
  border-color: var(--color-retro-red);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  z-index: 3500;
  background: #fffbe7;
  border-radius: 22px;
  box-shadow: 0 8px 48px 0 rgba(138,121,95,.21);
  padding: 28px 28px 18px 28px;
  min-width: 320px; max-width: 90vw;
  width: 450px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal__header {
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
  letter-spacing: .03em;
}
.cookie-category {
  margin-bottom: 13px;
}
.cookie-category label {
  font-size:1rem;
  color: var(--color-retro-red);
  font-family: var(--font-body);
}
.cookie-category input[type='checkbox'] {
  margin-right: 8px;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 17px;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: var(--color-vintage-yellow);
  border: none;
  color: var(--color-primary);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 19px 6px 22px 6px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
  padding: 34px 0 0 0;
  border-top: 4px dotted var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 38px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 0;
  padding-bottom: 23px;
}
footer .logo img {
  height: 36px;
  margin-right: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.045rem;
  letter-spacing: .02em;
  transition: color var(--transition);
}
footer nav a:hover,footer nav a:focus {
  color: var(--color-retro-red);
}
.footer-contact {
  color: var(--color-dark);
  font-size: 0.98rem;
  font-family: var(--font-body);
}
.footer-contact a {color: var(--color-retro-red);text-decoration: underline;}
.footer-contact a:hover, .footer-contact a:focus {color: var(--color-primary);}

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

@media (max-width: 540px) {
  footer .container {padding-bottom:18px;}
  .footer-contact {font-size:0.92rem;}
}

/* =========================================================
   BUTTONS, FORMS, MICRO-INTERACTIONS
========================================================= */
button, .cta-btn, a.cta-btn {
  transition: all var(--transition);
}
button:active, .cta-btn:active, a.cta-btn:active {
  transform: scale(0.975);
}

input, textarea, select {
  background: var(--color-vintage-cream);
  border: 1.5px solid var(--color-accent);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: border-color .19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-retro-red);
}
::placeholder {color: var(--color-vintage-brown); opacity: 0.77;}

/* =========================================================
   ACCESSIBILITY: FOCUS & VISUAL
========================================================= */
:focus-visible {
  outline: 2.5px dashed var(--color-retro-red);
  outline-offset: 2px;
}

/* =========================================================
   RETRO DECORATIVE ELEMENTS & PATTERNS
========================================================= */
.section {
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-retro);
  border: 2px solid var(--color-vintage-cream);
  position: relative;
}
.section:before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--color-vintage-yellow), var(--color-vintage-yellow) 14px, transparent 14px, transparent 24px);
  border-radius: 18px 18px 0 0;
  opacity: 0.19;
  pointer-events: none;
}

.card {
  border: 2px solid var(--color-accent);
  background: var(--color-secondary);
}
.card:after {
  content: '';
  position: absolute;
  right: 0; top: 0; width: 46px; height: 46px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23FFD479" xmlns="http://www.w3.org/2000/svg" width="46" height="46"><circle cx="23" cy="23" r="23" fill="%23FFD479" opacity=".24"/></svg>') no-repeat center center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.33;
}

/* =========================================================
   RESPONSIVE - GENERAL
========================================================= */
@media (max-width: 540px) {
  .container{padding-left:3px;padding-right:3px;}
  .section{padding-left:2px;padding-right:2px;}
}

/* =========================================================
   UTILITIES
========================================================= */
.mt-32{margin-top:32px;}
.mt-16{margin-top:16px;}
.mb-16{margin-bottom:16px;}
.mb-32{margin-bottom:32px;}
.gap-10{gap:10px;}
.text-center {text-align:center;}
.text-right{text-align:right;}
.text-left{text-align:left;}
.rounded-full{border-radius:99em;}
.flex {display: flex;}
.flex-col {flex-direction: column;}
.flex-row {flex-direction: row;}
.justify-center {justify-content: center;}
.align-center{align-items: center;}

/* =========================================================
   PRINT
========================================================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu {display:none!important;}
  main, section, .container, .content-wrapper {background: #fff!important; color: #000!important;}
}
