/* ===========================
   CSS RESET & 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,
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 for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #183153;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
:focus {
  outline: 2px solid #183153;
  outline-offset: 2px;
}

/* =======================
   BRAND COLORS & FONTS
   ======================= */
:root {
  --brand-primary: #183153;
  --brand-secondary: #D4AF37;
  --brand-accent: #F5F7FA;
  --brand-primary-rgb: 24,49,83;
  --shadow-card: 0 2px 12px 0 rgba(24,49,83,0.09);
  --shadow-hover: 0 8px 24px 0 rgba(24,49,83,0.15);
  --radius-card: 20px;
}

/* Webfont fallbacks */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--brand-accent);
  color: var(--brand-primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #183153;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 1.5rem; line-height: 1.22; margin-bottom: 16px; }
h3 { font-size: 1.125rem; line-height: 1.24; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--brand-primary);
}
ul { padding-left: 20px; }
li { padding-left: 0; margin-bottom: 6px; }

strong, b { font-weight: bold; }

/* =======================
   CORE LAYOUT CONTAINERS
   ======================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
/* ========================
   SECTION LAYOUT & SPACING
   ======================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}
.section:not(:first-of-type) { margin-top: 30px; }

/* ======================
   FLEXBOX PATTERNS
   ====================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  min-width: 260px;
  flex: 1 1 calc(320px - 24px);
  transition: box-shadow .25s, transform .15s;
  padding: 28px 22px;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(24,49,83,0.08);
  position: relative;
  margin-bottom: 20px;
  min-width: 260px;
  font-size: 1.05rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================
   FEATURE/CARD-LIKE GRIDS
   ====================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F5F7FA;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px 0 rgba(24,49,83,0.06);
  flex: 1 1 270px;
  min-width: 210px;
  max-width: 340px;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .22s, transform .19s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.045) rotate(2deg);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  animation: playfulIcon 1.2s ease alternate infinite;
}
@keyframes playfulIcon {
  0% { transform: rotate(-7deg) scale(.97); }
  100% { transform: rotate(8deg) scale(1.05); }
}

/* ======================
   HEADER / NAVIGATION
   ====================== */
header {
  background: #fff;
  border-bottom: 2px solid #D4AF37;
  z-index: 30;
  position: relative;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
}
nav > a img {
  height: 41px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
nav ul li {
  margin: 0;
  padding: 0;
}
nav ul li a {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #183153;
  padding: 6px 14px 6px 8px;
  border-radius: 12px;
  transition: background .18s;
  position: relative;
}
nav ul li a:hover, nav ul li a:focus {
  background: #D4AF37;
  color: #fff;
}
.btn-primary {
  background: #D4AF37;
  color: #183153;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 34px;
  box-shadow: 0 4px 18px 0 rgba(212,175,55,0.13);
  margin-left: 16px;
  transition: background .17s, color .19s, box-shadow .24s, transform .13s;
  border: none;
  cursor: pointer;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #183153;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(24,49,83,0.17);
  transform: scale(1.05) rotate(-1deg);
}

/* =======================
   MOBILE NAVIGATION
   ======================= */
.mobile-menu-toggle {
  display: none;
  background: #D4AF37;
  color: #183153;
  font-size: 2.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  margin-left: auto;
  z-index: 101;
  transition: background .15s;
  line-height: 1;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #183153;
  color: #D4AF37;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.8,0,.23,1);
  z-index: 9999;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  box-shadow: -6px 0 26px 0 rgba(24,49,83,0.13);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: #D4AF37;
  color: #183153;
  font-size: 2.2rem;
  border: none;
  border-radius: 8px;
  margin: 19px 19px 0 22px;
  cursor: pointer;
  align-self: flex-end;
  transition: background .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #183153;
  color: #D4AF37;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 30px 34px 20px 34px;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #183153;
  padding: 14px 0;
  border-radius: 10px;
  transition: background .14s, color .13s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D4AF37;
  color: #fff;
}

@media (max-width: 1040px) {
  nav {
    flex-direction: row;
    gap: 12px;
  }
  nav ul {
    gap: 10px;
  }
}

@media (max-width: 950px) {
  nav ul { gap: 0px; }
  nav { gap: 6px; }
  .btn-primary { margin-left: 2px; padding: 8px 21px; font-size: .95rem; }
}
@media (max-width: 830px) {
  nav ul, .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
/* When mobile menu open, fix header below mobile menu */
.mobile-menu.open + header {
  z-index: -1;
}

/* ======================
   MAIN / CARDS / CTA
   ====================== */
main {
  padding-bottom: 40px;
  width: 100%;
  min-height: 70vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Fun, energetic separator for playful_dynamic sections */
section:not(:last-child)::after {
  content: '';
  display: block;
  margin: 36px auto 0 auto;
  width: 70px;
  height: 7px;
  border-radius: 4px;
  background: #D4AF37;
  opacity: 0.14;
}

/* Hero Buttons (Extra playful) */
section .btn-primary {
  margin-top: 8px;
  margin-bottom: 8px;
  animation: bounceIn 1.1s ease-in;
}
@keyframes bounceIn {
  0% { transform: scale(.8); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonial-card {
  background: #fff;
  border-left: 9px solid #D4AF37;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(24,49,83,0.08);
  margin-bottom: 20px;
  color: #183153;
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: box-shadow .16s, transform .13s;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 4px 25px 0 rgba(24,49,83,0.17);
  transform: scale(1.025) rotate(-2deg);
}
.testimonial-card p {
  color: #183153;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #D4AF37;
  font-size: 1.01rem;
  font-weight: 700;
  font-family: 'Playfair Display',serif;
  letter-spacing: .02em;
}

/* Ensure readable contrast for testimonials and reviews */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #183153 !important;
  background: #fff !important;
}

/* =========================
   LISTS, HEADINGS & TEXT
   ========================= */
h1,h2,h3 { margin-top: 0.3em; }
p { margin-bottom: 12px; }
ul,ol {
  margin-bottom: 16px;
}
ul li,ol li {
  margin-bottom: 4px;
  padding-left: 0px;
  position: relative;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #183153;
}
ul li::before {
  content: '•';
  color: #D4AF37;
  margin-right: 10px;
  font-weight: bold;
  font-size: 1.1em;
}
ol li {
  padding-left: 0px;
  font-weight: bold;
  color: #183153;
}

.feature-grid ul, .feature-grid ol {
  margin-bottom: 16px;
}

/* =========================
   ADDRESS STYLES
   ========================= */
address {
  font-style: normal;
  font-size: 0.95rem;
  color: #183153;
  margin-top: 9px;
  line-height: 1.5;
}
address a {
  color: #183153;
  text-decoration: underline;
  transition: color .17s;
}
address a:hover, address a:focus {
  color: #D4AF37;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #183153;
  color: #fff;
  padding: 40px 0 26px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: auto;
}
.footer-brand {
  margin-bottom: 15px;
}
.footer-brand img {
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 3px 9px 0 rgba(24,49,83,0.07);
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #D4AF37;
  font-size: .98rem;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: background .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #D4AF37;
  color: #183153;
}
footer address, footer address a {
  color: #D4AF37;
  font-weight: 700;
  letter-spacing: .01em;
}

/* =========================
   FORM ELEMENTS (if shown)
   ========================= */
input, select, textarea {
  width: 100%;
  padding: 10px 10px 10px 14px;
  border: 2px solid #D4AF37;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border-color .12s;
}
input:focus, select:focus, textarea:focus {
  border-color: #183153;
}
label { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; color: #183153; }

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #183153;
  color: #fff;
  z-index: 12100;
  box-shadow: 0 -4px 28px 0 rgba(24,49,83,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 18px 16px;
  font-size: 1rem;
  animation: slideUpFadeIn .5s;
}
@keyframes slideUpFadeIn {
  0% { transform: translateY(100px); opacity: 0; }
  85% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: #F5F7FA;
  margin: 0 10px 0 0;
  flex: 1 1 200px;
}
.cookie-banner button {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 9px;
  padding: 8px 18px;
  cursor: pointer;
  margin-right: 4px;
  margin-top: 4px;
  border: none;
  font-weight: bold;
  transition: background .22s, color .14s, transform .13s;
}
.cookie-banner .cookie-accept {
  background: #D4AF37;
  color: #183153;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #fff;
  color: #183153;
  transform: scale(1.05);
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #183153;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #D4AF37;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #D4AF37;
  border: 2px solid #D4AF37;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #D4AF37;
  color: #183153;
  transform: scale(1.05);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -58%) scale(1);
  background: #fff;
  color: #183153;
  z-index: 12120;
  box-shadow: 0 2px 32px 0 rgba(24,49,83,0.23);
  border-radius: 16px;
  padding: 35px 30px 24px 30px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: fadeScaleModal .35s;
}
@keyframes fadeScaleModal {
  0% { transform:translate(-50%,-70%) scale(0.85); opacity: 0; }
  100% { transform:translate(-50%,-58%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #183153;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.06rem;
  margin-bottom: 7px;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #D4AF37;
  margin-right: 12px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 22px;
  background: #D4AF37;
  color: #183153;
  font-size: 1.4rem;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  padding: 2px 11px 2px 11px;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #183153;
  color: #D4AF37;
}

/* =========================
   PLAYFUL_MICRO-ANIMATIONS/DECORATIONS
   ========================= */
.card::after, .feature-grid > div::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(212,175,55,0.18);
  border-radius: 50%;
  z-index: 1;
  animation: playfulBling 1.9s infinite alternate;
  pointer-events: none;
}
@keyframes playfulBling {
  from { transform: scale(0.95) rotate(-4deg); opacity: 0.5; }
  to { transform: scale(1.13) rotate(8deg); opacity: 0.81; }
}

.card {
  overflow: visible;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .content-wrapper { max-width: 99vw; }
  .feature-grid > div { flex: 1 1 250px; min-width: 180px; }
}
@media (max-width: 768px) {
  nav { flex-wrap: wrap; }
  .container { padding: 0 5vw; max-width: 100vw; }
  section, .section {
    padding: 24px 7px 28px 7px;
    margin-bottom: 38px;
    border-radius: 18px;
  }
  .content-grid, .card-container, .feature-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 140px;
    margin-bottom: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1.01rem; }
  .feature-grid > div,
  .card, .testimonial-card {
    padding: 14px 7px;
    border-radius: 10px;
  }
  .cookie-modal {
    padding: 20px 6vw;
    font-size: .97rem;
    max-width: 98vw;
    min-width: 0;
  }
}
@media (max-width:430px) {
  .btn-primary, .cookie-banner button {
    width: 90vw;
    max-width: 99vw;
    min-width: 0;
    padding: 10px 12px;
    font-size: 1rem;
  }
}

/* =========================
   PLAYFUL/DYNAMIC FONTS
   ========================= */
h1, h2, h3 {
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
  letter-spacing: .02em;
  color: #183153;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(212,175,55,.10);
  margin-bottom: 8px;
}
h1 {
  background: linear-gradient(90deg, #D4AF37 2%, #183153 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: playfulTitle .8s;
}
@keyframes playfulTitle {
  0% { opacity: 0; transform: translateY(30px) scale(.9) rotate(-4deg); }
  80% { opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}
h2 {
  color: #D4AF37;
}
h3 { color: #183153; }

/* =========================
   ACCESSIBILITY & VISUAL FOCUS
   ========================= */
a:focus, button:focus {
  outline: 2.5px solid #D4AF37;
  outline-offset: 2px;
}

/* =========================
   MISCELLANEOUS / DYNAMIC FEEL
   ========================= */
body {
  /* Playful dynamic effect */
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="420" height="420"><circle cx="320" cy="80" r="36" fill="%23D4AF37" fill-opacity=".09"/><circle cx="70" cy="140" r="28" fill="%23183153" fill-opacity=".055"/></svg>');
  background-repeat: repeat;
  background-size: 420px 420px;
}

/* Subtle hover effect for all interactive cards */
.card, .feature-grid > div {
  cursor: pointer;
  will-change: transform;
}

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

/* =========================
   END OF CSS
   ========================= */
