/* =====================
   CSS RESET & BASELINE
   ===================== */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F6F3EC;
  color: #143352;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #143352;
  text-decoration: none;
  transition: color 0.20s;
}
a:focus,
a:hover {
  color: #B06414;
  outline: none;
}
ul, ol {
  margin-left: 28px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}
::selection {
  background: #DD9521;
  color: #143352;
}

/* ============================
   RETRO VINTAGE PALETTE + FONTS
   ============================ */
:root {
  --color-primary: #143352;
  --color-secondary: #F1F3F6;
  --color-accent: #DD9521;
  --color-bg-light: #F6F3EC;
  --color-cream: #FFEBC6;
  --color-orange: #F6A355;
  --color-dark-brown: #22211f;
  --color-blue-muted: #A5B9C7;
  --color-text: #143352;
  --color-text-dark: #22211f;
  --color-vintage-shadow: rgba(85,61,19,0.16);

  --font-display: 'Roboto Slab', 'Georgia', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.18rem; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.14rem; }
  .footer-contact address { font-size: 13px; }
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
p, address {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  font-size: 1rem;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  border-left: 4px solid var(--color-accent);
  padding-left: 18px;
  background: var(--color-cream);
  color: var(--color-dark-brown);
  margin-bottom: 12px;
  font-size: 1.18em;
}

/* ================
   VINTAGE PATTERNS & ACCENTS
   ================ */
body {
  background: repeating-linear-gradient(135deg,#FFEBC6 0 2px,transparent 2px 36px), var(--color-bg-light);
}
section {
  background: var(--color-secondary);
  border-radius: 16px;
  box-shadow: 0 5px 40px var(--color-vintage-shadow), 0 2px 4px #e4dcc8;
  margin-bottom: 60px;
  padding: 40px 20px;
  border: 1.5px solid #e8ded1;
  position: relative;
}
section:first-of-type {
  margin-top: 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: #FFF8E9;
  border-radius: 8px;
  padding: 32px 22px;
  border: 1.5px dashed #F6A355;
  margin-bottom: 32px;
}

/* ==========================
   HEADER & NAVIGATION STYLES
   ========================== */
header {
  width: 100%;
  background: var(--color-primary);
  padding: 0 0 0 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}
header .logo {
  display: flex;
  align-items: center;
  padding: 16px 34px 16px 16px;
  border-radius: 0 0 16px 0;
  background: var(--color-accent);
  box-shadow: 0 2px 8px 0 rgba(85,61,19,0.11);
  transition: background 0.19s;
}
header .logo img {
  display: block;
  max-height: 38px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-right: auto;
}
header nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.22s, border-bottom-color 0.19s;
}
header nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.23s cubic-bezier(0.45,1,0.43,1.05);
  position: absolute;
  left: 0; bottom: -2px;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
}
.cta.primary {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  border: none;
  padding: 10px 28px;
  border-radius: 40px 8px 40px 8px / 8px 24px 8px 24px;
  box-shadow: 0 2px 16px 0 var(--color-vintage-shadow);
  margin-left: 32px;
  cursor: pointer;
  transition: background 0.22s, color 0.19s, transform 0.11s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #B06414;
  color: #fff6e6;
  transform: translateY(-2px) scale(1.035);
}

/* ==========================
   MOBILE NAVIGATION
   ========================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 19px;
  font-size: 2rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  box-shadow: 0 0 7px var(--color-vintage-shadow);
  z-index: 2001;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #B06414;
  color: #FFEBC6;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #F6F3EC;
  z-index: 2100;
  padding: 0 0 0 0;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.82,0,0.23,1), opacity 0.18s;
  box-shadow: 6px 0 56px 0 var(--color-vintage-shadow);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  padding: 4px 16px;
  border: none;
  border-radius: 50%;
  margin: 18px auto 0 18px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 #daa54d96;
  transition: background 0.22s, color 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B06414;
  color: #fff6e6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 36px 24px 24px 34px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 10px 2px 10px 0;
  border-bottom: 1.5px dashed #E3C48B;
  background: transparent;
  border-radius: 0 8px 8px 0;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #FFEBC6;
  color: #B06414;
}

@media (max-width: 1050px) {
  nav { gap: 12px; }
}
@media (max-width: 920px) {
  nav { gap: 6px; }
  header .logo { padding-right: 15px; }
  .cta.primary { margin-left:10px; padding: 9px 18px; font-size: .95rem; }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 0;
    justify-content: flex-start;
    min-height: 56px;
  }
  header nav, .cta.primary {
    display: none !important;
  }
  header .logo { padding-top: 8px; padding-bottom: 8px; }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===========
   MAIN LAYOUT
   =========== */
main {
  width: 100%;
  min-height: 60vh;
  padding-bottom: 60px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 44px 0 var(--color-vintage-shadow), 0 1px 2px #e8ded1;
  overflow: hidden;
  background: var(--color-cream);
  position: relative;
}
.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: 850px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffbe9;
  border-radius: 14px;
  box-shadow: 0 3px 15px 0 rgba(230,195,112,.13);
  padding: 20px;
  border: 1.5px solid #F6A355;
  margin-bottom: 20px;
  max-width: 630px;
}
.testimonial-card blockquote {
  border-left-color: var(--color-orange);
  background: none;
  color: var(--color-dark-brown);
  font-size: 1.07em;
  margin-bottom: 0;
}
.testimonial-card p {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0;
  margin-left: 8px;
  font-size: 0.97em;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF7E1;
  border-radius: 12px;
  padding: 26px 22px 20px 22px;
  border: 1.5px solid #E3C48B;
  box-shadow: 0 2px 12px 0 #e8ded12e;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 260px;
  transition: transform 0.16s, box-shadow 0.20s;
}
.feature-item:hover,
.feature-item:focus-within {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 7px 36px 0 #e6c3703e, 0 2px 8px #dd95214a;
  z-index: 3;
}
.feature-item img {
  width: 48px;
  height: 48px;
  filter: grayscale(0.18) sepia(0.3) contrast(1.35);
}

/* Card & Section Utility Classes */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 1080px) {
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item {
    min-width: unset; max-width: 100%;
  }
}
@media (max-width: 600px) {
  section {
    padding: 25px 4vw;
  }
}

/* =====================
   BUTTONS & MICROACTIONS
   ===================== */
.cta {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 40px 8px 40px 8px / 8px 24px 8px 24px;
  border: none;
  font-weight: 700;
  transition: background 0.23s,color 0.12s,box-shadow 0.19s,transform 0.15s;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 var(--color-vintage-shadow);
  margin-top: 10px;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #B06414;
  color: #fff6e6;
  transform: translateY(-1.5px) scale(1.034);
  box-shadow: 0 4px 20px 0 #b064142f;
}

button {
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: box-shadow 0.13s, background 0.17s;
}

/* ==========================
   FOOTER STYLES
   ========================== */
footer {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 40px 0 24px 0;
  border-top: 6px double #E3C48B;
  box-shadow: 0 -1px 14px 0 #b0731a13;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-cream);
  font-size: 1rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
  border-bottom: 1px dotted #FFEBC6;
  width: fit-content;
  transition: color 0.18s, border-bottom 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.footer-contact img {
  max-height: 34px;
  margin-bottom: 14px;
}
.footer-contact address {
  color: #FFEBC6;
  font-style: normal;
  font-size: 0.99em;
  line-height: 1.7;
}
.footer-contact a {
  color: #FFEBC6;
  text-decoration: underline dotted #dd952188;
  transition: color 0.15s, text-decoration-color 0.18s;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact img { margin-bottom: 7px; }
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFF7E1;
  border-top: 2.5px solid #E3C48B;
  box-shadow: 0 -1px 40px 0 #b0731a15;
  padding: 22px 20px 18px 20px;
  z-index: 3100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  animation: cookieSlideIn 0.84s cubic-bezier(.7,0,.37,1);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-text-dark);
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 22px 7px 22px 7px /7px 18px 7px 18px;
  padding: 9px 18px;
  box-shadow: 0 2px 13px 0 #e6c3703a;
  font-weight: 600;
  letter-spacing: 0.025em;
  font-size: 1rem;
  transition: background 0.19s, color 0.13s, box-shadow 0.16s;
  cursor: pointer;
  margin-top: 0;
}
.cookie-btn.settings {
  background: #FFEBC6;
  color: var(--color-dark-brown);
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 1px 5px 0 #dd952129;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #B06414;
  color: #FFF6E6;
  box-shadow: 0 3px 15px 0 #dd952143;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-accent);
  color: #fff6e6;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  transition: background 0.22s;
  background: rgba(20,51,82,0.41);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.35s cubic-bezier(.7,0,.37,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF7E1;
  border-radius: 18px;
  max-width: 420px;
  width: 96vw;
  padding: 38px 30px 26px 30px;
  box-shadow: 0 6px 56px 0 #b0731a24, 0 2px 8px #dd952136;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-primary);
  margin-bottom: 4px;
  font-size: 1.26em;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-accent);
  transform: scale(1.20);
  margin-right: 7px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--color-text-dark);
}
.cookie-switch {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.cookie-modal .close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.8rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .close:hover { color: #B06414; }

/*
==================
    RESPONSIVE
==================
*/
@media (max-width: 600px) {
  .testimonial-card, .feature-item { padding: 14px 10px; }
  section{ padding:15px 3vw; }
  .cookie-modal { padding: 18px 6vw 12px 6vw; }
}
@media (max-width: 400px) {
  .feature-item {
    min-width: 0;
    max-width: 100%;
    padding: 10px 4vw;
  }
}

/*
==================
  FORM & UTILITY
==================
*/
input, textarea, select {
  font-family: var(--font-body);
  padding: 7px 12px;
  border-radius: 5px;
  border: 1.5px solid #ccb88a;
  margin-bottom: 18px;
  font-size: 16px;
  background: #fff;
  color: var(--color-text-dark);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 4px #dd952135;
}

/*
===============================
    RETRO DETAILS & NOSTALGIA
===============================
*/
section:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  top: -22px; left: 12px;
  width: 58px; height: 16px;
  background: repeating-linear-gradient(90deg, #F6A355 0 18px, #FFEBC6 18px 36px);
  opacity: 0.19;
  border-radius: 14px;
  pointer-events: none;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  bottom: -19px; right: 18px;
  width: 38px; height: 13px;
  background: repeating-linear-gradient(90deg, #A5B9C7 0 15px, #FFEBC6 15px 30px);
  opacity: 0.14;
  border-radius: 10px;
  pointer-events: none;
}
.feature-item:before {
  content: '';
  display: block;
  position: absolute;
  top: 11px; left: -10px;
  width: 15px; height: 55px;
  background: linear-gradient(90deg,#e3c48b70 40%,transparent 100%);
  border-radius: 8px;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

/* Hide section patterns on mobile for less clutter */
@media (max-width: 600px) {
  section:before, section:after, .feature-item:before { display: none; }
}

/* ======================
   ACCESSIBILITY UTILITIES
   ====================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* End of CSS */
