/* =======================================
   CSS RESET & NORMALIZE (Mobile First)
   ======================================= */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  scroll-behavior: smooth;
}
body {
  background: #FCF7ED;
  color: #223265;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #223265;
  text-decoration: none;
  transition: color 0.18s;
  cursor: pointer;
}
a:focus, a:hover {
  color: #C9B89A;
  outline: none;
}
strong {
  font-weight: bold;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 16px 0;
  background: #fff5df;
  font-size: 16px;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px 16px;
}
th {
  background: #C9B89A;
  color: #223265;
  font-weight: 600;
}
td {
  border-top: 1px solid #e1dbc8;
}
tr:last-child td {
  border-bottom: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Times, serif;
  color: #223265;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #223265;
}
.text-section h2, .text-section h3 {
  color: #836B3D;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FCF7ED;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(143,126,93,.10);
  border: 2px solid #f0ead5;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
/* ==========================
   HEADER
   ========================== */
header {
  background: #223265;
  color: #FCF7ED;
  width: 100%;
  box-shadow: 0 2px 8px 0 rgba(44,44,44,0.06);
  z-index: 98;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 80px;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #FCF7ED;
  letter-spacing: 0.025em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
header nav a:hover, header nav a:focus {
  background: #C9B89A;
  color: #223265;
}
header .button.primary {
  background: #C9B89A;
  color: #223265;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 10px 26px;
  border-radius: 30px;
  margin-left: 12px;
  box-shadow: 0 2px 8px 0 rgba(139, 115, 65, 0.11);
  border: 2px solid #b9a47d;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
header .button.primary:hover, header .button.primary:focus {
  background: #fff5df;
  color: #836B3D;
  box-shadow: 0 4px 16px 0 rgba(105, 85, 40, .11);
}
header img {
  height: 48px;
  width: auto;
  margin-right: 16px;
}

/* =========
   BURGER MENU (Mobile)
   ========= */
.mobile-menu-toggle {
  display: none;
  background: #C9B89A;
  color: #223265;
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 24px;
  top: 15px;
  z-index: 101;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #223265;
  color: #C9B89A;
  box-shadow: 0 2px 10px 0 rgba(34,50,101,0.09);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #f6ecd7;
  box-shadow: 0 0 45px 0 rgba(19,24,54,.22);
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(.87,.01,.51,1), box-shadow 0.2s;
  z-index: 103;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 22px 28px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 65px 0 rgba(48,36,5,0.21);
}
.mobile-menu-close {
  background: #223265;
  color: #C9B89A;
  border: none;
  font-size: 2rem;
  border-radius: 16px;
  width: 46px;
  height: 46px;
  position: absolute;
  right: 21px;
  top: 17px;
  z-index:  104;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C9B89A;
  color: #223265;
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 85px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: #223265;
  background: #fff1d0;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 6px;
  transition: background 0.13s, color 0.13s;
  border: 2px solid #e1dbc8;
  box-shadow: 0 2px 12px 0 rgba(155, 137, 90, .05);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #C9B89A;
  color: #1e202c;
}

/*
========================
   COMMON LAYOUTS
======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff5df;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(111,96,46,.08);
  padding: 36px 24px 27px 24px;
  margin-bottom: 20px;
  position: relative;
  border: 1.5px solid #e1dbc8;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.content-grid, .feature-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;
}
/*
========================
   FLEX VISUAL SECTIONS
======================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff9f1;
  border-radius: 14px;
  margin-bottom: 22px;
  border-left: 7px solid #C9B89A;
  box-shadow: 0 3px 15px 0 rgba(44,44,44,0.07);
  color: #223265;
  position: relative;
  min-width: 275px;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.12rem;
  flex: 1;
}
.testimonial-card span {
  font-weight: 600;
  font-size: 1rem;
  color: #836B3D;
  font-family: 'Playfair Display', serif;
  margin-left: 14px;
}

/* ===========
    BUTTONS
   =========== */
.button,
.button.primary {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  background: #C9B89A;
  color: #223265;
  padding: 10px 30px;
  font-size: 1.12rem;
  border-radius: 28px;
  border: 2px solid #b9a47d;
  margin-top: 12px;
  box-shadow: 0 2px 11px 0 rgba(154,120,61,0.11);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.13s;
  cursor: pointer;
  text-align: center;
}
.button:hover,
.button:focus {
  background: #223265;
  color: #fff5df;
  box-shadow: 0 4px 22px 0 rgba(34,50,101,0.10);
  transform: translateY(-2px) scale(1.028);
}
.button.secondary {
  background: #223265;
  color: #C9B89A;
  border: 2px solid #223265;
}
.button.secondary:hover,
.button.secondary:focus {
  background: #C9B89A;
  color: #223265;
}

/* ==========
   PATTERNS & NOSTALGIA
   ========== */
body {
  background-color: #FCF7ED;
  background-image:
    repeating-linear-gradient(135deg, rgba(201,184,154,0.028) 0, rgba(201,184,154,0.08) 5px, transparent 12px, transparent 30px);
}
.section {
  box-shadow: 0 2px 24px 0 rgba(111,96,46,.05);
  position: relative;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #C9B89A 0, #DCCFB2 10px, transparent 12px, transparent 20px);
  opacity: 0.22;
  z-index: 1;
  border-radius: 7px;
}
.card:before {
  content: '';
  display: block;
  position: absolute;
  top: -17px; left: 17px;
  width: 38px; height: 10px;
  background: repeating-linear-gradient(90deg, #FCF7ED 0, #E3DDCA 9px, transparent 13px, transparent 19px);
  opacity: 0.17;
  border-radius: 7px;
  z-index: 1;
}

/* ===========
   FOOTER
   =========== */
footer {
  background: #223265;
  color: #FCF7ED;
  padding: 40px 0 26px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: #C9B89A;
  font-size: 1.02rem;
  transition: color 0.14s;
  font-family: 'Playfair Display', serif;
}
footer nav a:hover, footer nav a:focus {
  color: #fff5df;
}
footer img {
  width: 56px;
  margin-bottom: 11px;
}
footer p, footer span {
  color: #ede2c7;
  font-size: 0.99rem;
  line-height: 1.5;
  margin-top: 7px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
/* ================
   FORMS (minimal, if used)
   ================ */
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #C9B89A;
  padding: 12px 16px;
  background: #fffaf3;
  outline: none;
  margin-bottom: 17px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #223265;
  background: #FAF6ED;
}
label {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #223265;
  margin-bottom: 7px;
  display: block;
}
/* ==========================
   VINTAGE RETRO DECORATIVE ELEMENTS
   ========================== */
.section h2 {
  position: relative;
  z-index: 5;
}
.section h2:after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  background: url('../assets/icons/deco-arch.svg') no-repeat center center;
  background-size: 18px 18px;
  width: 18px;
  height: 18px;
  opacity: 0.23;
}
/* If the SVG doesn't exist, fallback to border below: */
.section h2 {
  border-bottom: 2.2px dashed #dfc393;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 18px;
  background: none;
}

/* ==============
   MICROINTERACTIONS & TRANSITIONS
   ==============
*/
.card, .testimonial-card, .button, .mobile-nav a {
  transition: box-shadow 0.22s, transform 0.18s, background 0.16s, color 0.13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(99,97,74,0.13);
  transform: translateY(-5px) scale(1.009);
}
.testimonial-card:active, .button:active {
  transform: scale(0.97);
}

/* ===========
   RESPONSIVE DESIGN & LAYOUT ADJUSTMENTS
   =========== */
@media (max-width: 900px) {
  .feature-grid, .content-grid {
    gap: 14px;
  }
  .header nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding: 0 5px;
    height: 68px;
  }
  header .content-wrapper nav {
    display: none;
  }
  header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 6px;
  }
  .content-wrapper,
  .feature-grid,
  .content-grid {
    flex-direction: column;
    gap: 16px !important;
    align-items: stretch;
  }
  .section {
    padding: 32px 6px;
    margin-bottom: 45px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .card {
    padding: 20px 12px 14px 12px;
    min-width: 90%;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.04rem; }
  .section {
    padding: 16px 2px;
  }
}

/* ================
   COOKIE BANNER & MODAL
   ================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FCF7ED;
  color: #223265;
  border-top: 3.5px solid #C9B89A;
  box-shadow: 0 -2px 12px 0 rgba(44,44,44,.11);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 22px 14px 22px 14px;
  font-size: 1rem;
  animation: banner-fade-in .6s;
}
@keyframes banner-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  margin-bottom: 0;
  font-size: 1.01rem;
  text-align: center;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}
.cookie-banner .button {
  padding: 9px 18px;
  font-size: 0.99rem;
  border-radius: 21px;
  margin-top: 0;
  border: 1.5px solid #C9B89A;
  background: #fff5df;
  color: #223265;
}
.cookie-banner .button.accept {
  background: #C9B89A;
  color: #223265;
  border: 1.5px solid #b9a47d;
}
.cookie-banner .button.reject {
  background: #eee3c6;
  color: #836B3D;
  border: 1px dashed #C9B89A;
}
.cookie-banner .button.settings {
  background: #223265;
  color: #FCF7ED;
  border: 1.5px solid #b9a47d;
}
.cookie-banner .button:hover,.cookie-banner .button:focus {
  background: #C9B89A;
  color: #223265;
}
@media (max-width: 600px) {
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,50,101,.22);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in .5s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FCF7ED;
  border-radius: 20px;
  border: 2.5px solid #C9B89A;
  box-shadow: 0 6px 40px 0 rgba(44,44,44,0.11);
  max-width: 100vw;
  width: 360px;
  padding: 32px 22px 26px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2310;
}
.cookie-modal h3 {
  color: #223265;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #C9B89A;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal .button {
  padding: 8px 18px;
  font-size: 1rem;
  min-width: 90px;
  border-radius: 20px;
}
.cookie-modal .button.save {
  background: #C9B89A;
  color: #223265;
}
.cookie-modal .button.cancel {
  background: #eee3c6;
  color: #836B3D;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #223265;
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.5rem;
  border-radius: 999px;
  transition: color 0.15s;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #C9B89A;
}

/* =============
   GOOGLE FONTS
   ============= */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

/*
  UTILITIES
*/
.hidden { display: none !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.center { text-align: center !important; align-items: center !important; justify-content: center !important; }
.w-100 { width: 100% !important; }

/*
===============================
    RETRO-INSPIRED DETAILS
=============================== */
.card, .testimonial-card {
  border: 2px solid #e2d6be;
}
.card h3, .feature-grid h3 {
  color: #223265;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}
.card p, .feature-item p, .feature-grid p {
  color: #594725;
}
.card img, .feature-grid img {
  width: 52px;
  height: 52px;
  background: #e1dbc8;
  padding: 8px;
  border-radius: 11px;
  margin-bottom: 7px;
  box-shadow: 0 1px 8px 0 rgba(111,96,46,.13);
}
.feature-grid > div {
  background: #fff5df;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(155, 137, 90, .07);
  border: 1px solid #e1dbc8;
  padding: 24px 20px;
  min-width: 245px;
  flex: 1;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .feature-grid > div {
    min-width: 94%;
    padding: 16px 8px;
  }
}

/* ============
   PRINT / ACCESSIBILITY
   ============ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .mobile-menu-toggle { display: none !important; }
  .section, .card, .testimonial-card { box-shadow: none !important; background: #fff !important; color:#000 !important; }
  body, html { background: #fff !important; }
  a { color: #403630 !important; }
}
