/* ========================
   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;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #21274a;
  background: #faf9f6;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ol, ul {
  list-style: none;
  padding-left: 0;
}

a {
  color: #21274a;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #b38e0f;
}

button, input[type="submit"] {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 32px 0;
}


/* ========================
   BRAND & TYPOGRAPHY
   ======================== */
:root {
  --primary: #21274a;
  --secondary: #f0b90b;
  --secondary-dark: #b38e0f;
  --accent: #ffffff;
  --muted: #f4f2e9;
  --grey: #ededed;
  --border: #e4e3de;
  --text-dark: #21274a;
  --text: #383d58;
  --text-light: #6d6c7a;
  --shadow: 0 3px 24px 0 rgba(33,39,74,0.09);
  --radius: 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.002em;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-top: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li, blockquote {
  font-family: 'Georgia', serif;
  font-size: 1.07rem;
  color: var(--text);
}
blockquote {
  font-style: italic;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--secondary);
  color: var(--primary);
  background: #faf9f3;
}

strong, b {
  font-weight: bold;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
}


/* ========================
   HEADER & NAVIGATION
   ======================== */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 2px 14px 0 rgba(33,39,74,0.06);
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 16px;
}

header img {
  height: 44px;
  max-width: 100%;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 3px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--muted);
  color: var(--secondary-dark);
}

.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Georgia', serif;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 1.07rem;
  font-weight: 600;
  margin-left: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px 0 rgba(240,185,11,0.13);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary-dark);
  color: var(--accent);
  box-shadow: 0 4px 16px 0 rgba(240,185,11,0.22);
}

.btn-secondary {
  display: inline-block;
  background: var(--primary);
  color: var(--accent);
  font-family: 'Georgia', serif;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 1.07rem;
  font-weight: 600;
  margin-left: 12px;
  border: none;
  text-align: center;
  transition: background 0.15s, color 0.14s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #17306e;
  color: var(--secondary);
}

/* Hamburger */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 5px;
  padding: 8px 13px;
  font-size: 1.65rem;
  border: 1px solid var(--border);
  margin-left: 12px;
  transition: background 0.18s, color 0.16s;
  z-index: 60;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary-dark);
  color: var(--accent);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  box-shadow: 0 8px 36px rgba(33,39,74,0.14);
  z-index: 120;
  padding: 30px 22px 22px 22px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.7,0,0.3,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.0rem;
  align-self: flex-end;
  border: none;
  margin-bottom: 12px;
  padding: 2px 11px;
  border-radius: 5px;
  transition: background 0.16s, color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--muted);
  color: var(--secondary-dark);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Georgia', serif;
  font-size: 1.13rem;
  color: var(--primary);
  padding: 14px 7px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--muted);
  color: var(--secondary-dark);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 15px;
  }
  header .container {
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 6px;
    padding: 12px 6px;
  }
  header img {
    height: 36px;
  }
}

/* ========================
   MAIN: HERO, FEATURES, CARDS, FLEX LAYOUTS
   ======================== */
/* Content-
   - Card container utilities
   - Card / Feature grid
   - Testimonials
   - FAQ
*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 22px;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 300px;
  background: var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s, border-color 0.18s;
}
@media (max-width: 1000px) {
  .feature-grid {
    gap: 20px;
  }
  .feature-grid > div {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    width: 100%;
    min-width: unset;
    max-width: 100%;
  }
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  margin-bottom: 6px;
}
.feature-grid a {
  color: var(--secondary-dark);
  margin-top: 8px;
  font-family: 'Georgia', serif;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.feature-grid a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 24px 0 rgba(33,39,74,0.13);
  border-color: var(--secondary);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 24px 0 rgba(33,39,74,0.10);
}

.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* ========================
   TESTIMONIALS
   ======================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--muted);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(33,39,74,0.06);
  position: relative;
  flex-wrap: wrap;
}
.testimonial-card blockquote {
  font-size: 1.11rem;
  color: var(--primary);
  border: none;
  background: transparent;
  padding-left: 0;
}
.testimonial-author {
  font-size: 1.01rem;
  font-family: 'Georgia', serif;
  color: #494f64;
  font-style: normal;
  margin-left: 10px;
  margin-right: 10px;
}
.testimonial-stars {
  font-size: 1.18rem;
  color: var(--secondary);
  font-family: 'Georgia', serif;
  margin-left: 8px;
}

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 7px;
  }
  .testimonial-author, .testimonial-stars {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ========================
   FAQ
   ======================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 26px;
}
.faq-item {
  background: var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-bottom: 4px;
  transition: box-shadow 0.16s;
}
.faq-item h3 {
  font-size: 1.09rem;
  margin-bottom: 8px;
  font-weight: bold;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 5px 20px 0 rgba(33,39,74,0.09);
}

/* ========================
   UL/OL/LIST STYLE
   ======================== */
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.7;
}
ul li::marker, ol li::marker {
  color: var(--secondary-dark);
}
ul li strong {
  color: var(--primary);
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 48px 0 24px 0;
  font-size: 1rem;
  letter-spacing: .01em;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
  align-items: center;
}
footer nav a {
  color: var(--accent);
  opacity: 0.90;
  font-family: 'Georgia', serif;
  padding: 5px 3px;
  transition: color 0.15s, opacity 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ede8d6;
}
.footer-contact img {
  height: 19px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
  margin-top: 6px;
}
.footer-legal a {
  color: #dbd4bc;
  font-size: .97rem;
  transition: color 0.13s;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: var(--secondary);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: #292f51;
  border-radius: 50%;
  padding: 7px;
  transition: background 0.17s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--secondary);
}
.footer-social img {
  height: 22px;
  width: 22px;
}
@media (max-width: 800px) {
  footer .container {
    gap: 18px;
  }
  .footer-contact, .footer-legal, .footer-social {
    gap: 11px;
  }
}
@media (max-width: 500px) {
  footer .container {
    gap: 8px;
    padding: 0 4px;
  }
  .footer-contact, .footer-legal, .footer-social {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}


/* ========================
   COOKIE CONSENT BANNER
   ======================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--primary);
  padding: 24px 16px 18px 16px;
  box-shadow: 0 -3px 20px 0 rgba(33,39,74, .08);
  border-top: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  animation: slideUpFadeIn .49s cubic-bezier(.51,0,.13,1);
}
@keyframes slideUpFadeIn {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
#cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--primary);
  flex: 1 1 180px;
}
.cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.11s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--secondary-dark);
  color: var(--accent);
}
.cookie-btn.reject {
  background: #edecec;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff7c6;
  color: var(--secondary-dark);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary-dark);
  border: 1px solid var(--secondary-dark);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide banner by default (show with JS if needed) */
#cookie-banner[hidden] {
  display: none !important;
}

/* COOKIE MODAL */
#cookie-modal-overlay {
  display: none;
  position: fixed; top:0; left:0; right:0; bottom:0;
  z-index: 210;
  background: rgba(33,39,74,0.58);
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.4s;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal-overlay.open {
  display: flex;
}
#cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 34px 22px 28px 22px;
  box-shadow: 0 10px 32px 0 rgba(33,39,74,0.21);
  width: 95%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popIn .32s cubic-bezier(0.52,1.8,0.25,1.01);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}
#cookie-modal h2 {
  font-size: 1.26rem;
  margin-bottom: 13px;
}
#cookie-modal label {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  margin-left: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}
.cookie-switch {
  accent-color: var(--secondary-dark);
  width: 20px;
  height: 20px;
}
#cookie-modal .modal-btns {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
#cookie-modal .modal-btns .cookie-btn {
  min-width: 100px;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  color: var(--primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 5px;
  transition: background 0.14s;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  background: var(--muted);
}


/* ========================
   UTILITIES & ANIMATIONS
   ======================== */
.gap20 { gap: 20px; }
.gap24 { gap: 24px; }
.gap32 { gap: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-bold { font-weight: bold; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.nowrap { white-space: nowrap; }


/* ========================
   MISC: FORM / BUTTONS
   ======================== */
input, textarea, select {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 9px 14px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--primary);
  transition: border-color 0.14s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px #f0b90b33;
}
label {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
  display: inline-block;
}


/* ========================
   MEDIA QUERIES
   ======================== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.56rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
  .section, .card, .feature-grid > div {
    padding: 14px 8px;
  }
}

/* ========================
   ELEGANT SPACING & CLASSIC PROPORTIONS
   ======================== */
main section + section {
  margin-top: 38px;
}

/* ========================
   CARD-SPECIFIC SPACING
   ======================== */
.card + .card, .testimonial-card + .testimonial-card, .faq-item + .faq-item {
  margin-top: 20px;
}


/* ========================
   ACCESSIBILITY
   ======================== */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ========================
   PRINT FIX
   ======================== */
@media print {
  header, footer, #cookie-banner, #cookie-modal-overlay {
    display: none !important;
  }
  .section, .container, .feature-grid > div, .card, .testimonial-card, .faq-item {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* ------- END ------- */
