/* =========================================================
   DEXVALON | Vintage Retro Financial CSS UI Framework
   Author: Dexvalon Frontend
   Brand Style: Vintage Retro, Modern UK, Clean, Trustworthy
   ========================================================= */

/* ============== CSS RESET & NORMALIZE ============== */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*,*:before,*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #f8f6ee;
  color: #2E1B06;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul,ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============== VARS: COLORS & TYPOGRAPHY ============== */
:root {
  --clr-primary: #183153;
  --clr-secondary: #EEF2F5;
  --clr-accent: #FFB200;
  --clr-bg-main: #f8f6ee;
  --clr-bg-hero: #fcf3da;
  --clr-bg-card: #fff8ea;
  --clr-bg-footer: #e7dab8;
  --clr-text-main: #2E1B06;
  --clr-text-heading: #232323;
  --clr-text-accent: #a86a13;
  --clr-border: #e1ceaa;
  --clr-shadow: rgba(40,18,3,0.08);

  /* Typography */
  --font-display: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/* ============== GLOBAL LAYOUT CONTAINERS ============== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--clr-text-heading);
  text-shadow: 0 2px 0 #FFB20022;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}
p, ul, ol {
  font-family: var(--font-body);
  color: var(--clr-text-main);
  font-size: 1rem;
}
.hero-subheadline {
  font-size: 1.2rem;
  color: var(--clr-text-accent);
  max-width: 700px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.text-section { margin-bottom: 24px; font-size: 1.1rem; }
strong { font-weight: 700; color: var(--clr-text-accent); }
cite { font-style: italic; color: var(--clr-primary); font-size: 1rem; }

/* ============== HEADER/NAVIGATION ============== */
header {
  background: var(--clr-bg-main);
  border-bottom: 3px solid var(--clr-accent);
  box-shadow: 0 4px 12px var(--clr-shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--clr-primary);
  letter-spacing: 0.08em;
  padding: 7px 15px;
  border-radius: 6px;
  transition: background 0.2s, color 0.22s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--clr-accent);
  color: #232323;
}
.cta-btn {
  font-family: var(--font-display);
  background: var(--clr-accent);
  color: #2E1B06;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 10px 38px;
  margin-left: 24px;
  font-size: 1.08rem;
  box-shadow: 0 3px 14px var(--clr-shadow);
  transition: background 0.15s, box-shadow 0.23s, transform 0.17s;
  cursor: pointer;
  text-shadow: 0 1px 0 #fffbe7c5;
  outline: none;
  border: 2px solid transparent;
  letter-spacing: 0.08em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffce5c;
  color: #604703;
  box-shadow: 0 7px 24px #e3bc63ad;
  border: 2px solid #ffb20066;
  transform: translateY(-2px) scale(1.03);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: var(--clr-primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.24s;
  z-index: 31;
}
.mobile-menu-toggle:focus {
  color: var(--clr-accent);
}

/* ============== MOBILE MENU ============== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f5ecd1ee;
  box-shadow: 0 4px 32px #0002;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 18px;
  padding-right: 0;
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(0.5,0,0.4,1), opacity 0.19s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--clr-primary);
  margin: 16px 30px 0 0;
  z-index: 101;
  cursor: pointer;
  transition: color 0.24s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--clr-accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--clr-primary);
  width: 100%;
  padding: 18px 42px 13px 38px;
  border-bottom: 1px solid #e4c788;
  background: none;
  transition: background 0.15s, color 0.18s, font-size 0.19s;
  outline: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-accent);
  color: #2E1B06;
  font-weight: 700;
  font-size: 1.23rem;
}

/* ============== HERO & SECTIONS ============== */
.hero {
  background: var(--clr-bg-hero);
  margin-bottom: 60px;
  padding: 48px 0 40px 0;
  border-bottom: 3px dashed var(--clr-accent);
  box-shadow: 0 6px 24px #edc74a22;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-bg-card);
  border-radius: 23px;
  box-shadow: 0 3px 18px var(--clr-shadow);
}
.cta {
  background: var(--clr-accent);
  margin-bottom: 0;
  padding: 40px 20px 56px 20px;
  border-radius: 36px 36px 0 0;
  text-align: center;
  box-shadow: 0 -1px 12px #ebc96c4d;
}
.cta h2, .cta p { color: #2E1B06; }
.cta .cta-btn { background: var(--clr-primary); color: #fcf3da; border: 2px solid #ffcf69; }
.cta .cta-btn:hover { background: #ffcf69; color: var(--clr-primary); border-color: #ffb200; }

/* ============== FLEXBOX LAYOUT UTILITIES (MANDATED) ============== */
.features-grid, .hack-list, .method-list, .strategy-list, .topics-list, .services-list, .mindset-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  margin-top: 16px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.features-grid {
  gap: 30px 32px;
}
.features-grid .feature {
  background: #ffeecc;
  border: 2px solid #d8b96d;
  border-radius: 14px;
  padding: 24px 18px 20px 18px;
  width: calc( 20% - 20px );
  min-width: 210px;
  max-width: 252px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 3px 14px #d3a54729;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.features-grid .feature:hover {
  box-shadow: 0 8px 28px #d3983b36;
  transform: translateY(-3px) scale(1.025);
}
.features-grid .feature img {
  width: 42px;
  margin-bottom: 8px;
}
.services-list, .hack-list, .method-list, .strategy-list, .topics-list, .mindset-tips {
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.services-list li, .hack-list li, .method-list li, .strategy-list li, .topics-list li, .mindset-tips li {
  background: #f9eec6;
  border: 1px solid #e8d494;
  padding: 16px 20px;
  border-radius: 11px;
  font-size: 1rem;
  line-height: 1.8;
}
.services-list span {
  font-style: italic;
  font-size: 0.98rem;
  color: #3b2b20;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f7ecd5;
  border-radius: 15px;
  box-shadow: 0 2px 14px #e0c59169;
  min-width: 285px;
  max-width: 370px;
  border: 2px dashed #FFB200;
  margin-bottom: 20px;
  color: #232323;
}
.testimonial-card p {
  color: #232323;
}
.testimonial-card cite {
  color: var(--clr-primary);
  font-size: 1.1rem;
}

.cta-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 22px;
}

/contact-info {
  background: #fff8ea;
  border-radius: 13px;
  padding: 22px 24px;
  margin: 16px 0 22px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2c2312;
  box-shadow: 0 1.5px 9px #ffbb0031;
}
.contact-info a {
  color: var(--clr-accent);
  font-style: normal;
}

/* ============== CARDS (for potential future) ============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff6e5;
  border: 1.5px solid #d9c598;
  border-radius: 13px;
  box-shadow: 0 2px 10px #b8904429;
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.content-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;
}

/* ============== FOOTER ============== */
footer {
  background: var(--clr-bg-footer);
  border-top: 2px solid var(--clr-accent);
  padding: 37px 0 34px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 1150px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--clr-primary);
  padding: 6px 11px;
  border-radius: 6px;
  transition: background 0.16s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--clr-accent);
  color: #2E1B06;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  color: #866216;
  font-weight: 500;
}
.footer-brand img {
  width: 40px;
  margin-right: 8px;
}

/* ============== COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #faeed1;
  border-top: 2.5px solid #fbd465;
  color: #4b3000;
  font-size: 1rem;
  box-shadow: 0 -4px 32px #ae90000b;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 18px 16px;
  gap: 12px;
  animation: cookieBannerIn 0.44s cubic-bezier(0.6,0,0.4,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(220px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 2px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 8.5px 22px;
  margin: 2px 0;
  border-radius: 19px;
  border: 2px solid #eed48f;
  background: #FFB200;
  color: #3c2b06;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.13s, color 0.16s, border-color 0.19s, transform 0.16s;
  box-shadow: 0 2px 8px #ffbf0055;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffce5c;
  border-color: #fac857;
  color: #655004;
  transform: translateY(-1.5px) scale(1.03);
}
.cookie-btn.secondary {
  background: #ffe7b5;
  color: #855e0a;
  font-weight: 600;
  border: 2px solid #f4cd87;
}
.cookie-btn.secondary:hover { background: #fcf9f2; color: #a86a13; }

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 210;
  background: rgba(36,21,0,0.23);
  animation: fadeInModal 0.19s cubic-bezier(0.5,0,0.7,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100%{ opacity: 1; }
}
.cookie-modal__panel {
  background: #fff1d6;
  border-radius: 18px;
  padding: 34px 26px 30px 26px;
  min-width: 340px;
  max-width: 99vw;
  box-shadow: 0 12px 44px #c6a44a44;
  border: 2.5px solid #e6c485;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: #56420a;
}
.cookie-category input[type="checkbox"] {
  accent-color: #FFB200;
  width: 18px;
  height: 18px;
}
.cookie-category.disabled label {
  color: #b9a169;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 5px;
}

/* ============== MICRO-INTERACTIONS & TRANSITIONS ============== */
button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .13s, filter .13s, box-shadow .18s, color .16s, border-color .18s, transform .14s;
  outline: none;
}
main a:not(.cta-btn):hover, main a:not(.cta-btn):focus {
  color: var(--clr-accent);
  text-decoration: underline;
}

/* Card, Testimonial, Feature Shadows */
.card, .testimonial-card, .feature {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .testimonial-card:hover, .feature:hover {
  box-shadow: 0 8px 28px #eab30328;
  transform: scale(1.016) translateY(-3px);
}

/* ============== RESPONSIVE DESIGN (MOBILE-FIRST) ============== */
@media (max-width: 1000px) {
  .features-grid {
    gap: 22px;
  }
  .features-grid .feature {
    width: calc(50% - 18px);
    min-width: 170px;
    max-width: 99vw;
    padding: 18px 10px;
  }
  .footer-nav { gap: 18px; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  header .container {
    padding: 0 8px;
    gap: 6px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 4px;
    font-size: 1rem;
    padding: 10px 18px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero, .section, .cta {
    padding: 24px 4px;
  }
  .features-grid {
    gap: 13px;
  }
  .features-grid .feature {
    width: 100%;
    min-width: 0;
    padding: 16px 5px;
  }
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 18px 8px;
    margin-bottom: 12px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-brand { flex-direction: column; gap: 7px; }
  .cta-wrapper { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 550px) {
  .container { padding: 0 2vw; }
  h1 { font-size: 1.63rem; }
  h2 { font-size: 1.22rem; }
  .hero-subheadline { font-size: 1rem; }
  .footer-brand img { width: 30px; }
  .cookie-modal__panel {
    min-width: 0; width: 95vw;
    padding: 15vw 7vw 10vw 7vw;
  }
}

/* ============== RETRO/VINTAGE ACCENTS & DETAILS ============== */
section, .section, .card, .testimonial-card, .feature {
  border-radius: 13px;
  border-style: solid;
  border-width: 2px;
  border-color: #f8e7ba;
  box-shadow: 0 3.5px 12px #edc26633;
  background: repeating-linear-gradient(135deg,#ffedbc 0 8px,#fff8ea 8px 16px);
}
.hero {
  border-width: 0 0 4px 0;
  border-style: none none dashed none;
  border-radius: 0 0 28px 28px;
  background: repeating-linear-gradient(-55deg,#f7dac0 0 20px,#fff7e6 20px 40px);
}
footer {
  border-radius: 23px 23px 0 0;
  border-width: 2.5px 0 0 0;
  background: repeating-linear-gradient(45deg,#ebd09c 0 16px,#e7dab8 16px 32px);
}
.cta {
  box-shadow: 0 -5px 25px #ffe49661;
  border-width: 0 0 0 0;
}


/* Add subtle polka dot overlay for retro touch */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(#ffecb644 1px, transparent 1.7px) 0 0/ 35px 35px repeat;
  z-index: 0;
  opacity: 0.10;
  mix-blend-mode: multiply;
}

/* Vintage Shadows/Decorative effects */
.card, .testimonial-card, .feature {
  /* already set above */
}

/* ============== SCROLLBAR (Retro Accent) ============== */
::-webkit-scrollbar {
  width: 14px;
  background: #E1B74A;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #FFB200;
  border-radius: 11px;
  border: 3px solid #f8f6ee;
}

/* ============== HELPER CLASSES ============== */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-30 { margin-top: 30px !important; }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============== ACCESSIBILITY FOCUS ============== */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2.5px dashed #f9b614;
  outline-offset: 3px;
  background: #fffadc !important;
}

/* ============== END: Dexvalon CSS ============== */
