/* ========================================================
   CSS RESET & BASELINE NORMALIZATION (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: 6px;
  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: #F2F4F8;
  color: #134074;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: inherit; }
img {max-width: 100%; height: auto; display: block;}
a {text-decoration: none; color: inherit;transition: color 0.2s;}
ul, ol {list-style: none;}
button,input,select,textarea {font-family: inherit; font-size: inherit; background: none; border: none; outline: none;}

/* ========================================================
   VINTAGE _RETRO THEME MIXINS & FONTS
   ======================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:300,400,600,700&display=swap');
:root {
  --primary: #134074;
  --secondary: #F2F4F8;
  --accent: #B04B20;
  --vintage-yellow: #F7E5A3;
  --vintage-blue: #7B9EB0;
  --vintage-green: #B8B367;
  --vintage-orange: #FFB36A;
  --vintage-cream: #FDF6EC;
  --white: #FFFFFF;
  --black: #181818;
  --shadow: 0 4px 16px rgba(32,20,0,0.09), 0 2px 8px rgba(208,128,64,0.06);
  --border-radius: 18px;
  --border: 2px solid #e4c080;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--secondary);
  color: var(--primary);
}

h1, h2, h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: 14px;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }

p {
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
  color: var(--accent);
}

/* Special retro/vintage pattern backgrounds for hero, sections */
.hero, .about-section, .cta-section, .newsletter-cta, .legal-section, .contact-section, .thank-you-section {
  background: repeating-linear-gradient(135deg, var(--vintage-cream), var(--vintage-orange) 2px, var(--vintage-cream) 30px, var(--vintage-yellow) 80px);
  border-bottom: var(--border);
}

/* =====================
   LAYOUT CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1172px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
  position: relative;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding-top: 22px;
  padding-bottom: 22px;
}

/* ===============
   HEADER STYLING
   =============== */
header {
  width: 100%;
  background: var(--vintage-cream);
  border-bottom: var(--border);
  box-shadow: 0 3px 10px rgba(176, 75, 32, 0.06);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.logo img {
  display: block;
  height: 46px;
  width: auto;
  filter: grayscale(0.10) contrast(1.08) drop-shadow(0 2px 2px #EEE2DF77);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 12px;
  transition: background 0.18s, color 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--vintage-cream);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 9px 26px 9px 26px;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(176,75,32,.13);
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.16s;
  margin-left: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--vintage-cream);
  box-shadow: 0 4px 16px rgba(19,64,116,0.11);
}

/* =====================
   MOBILE NAV FUNCTION
   ===================== */
.mobile-menu-toggle {
  background: var(--accent);
  border-radius: 8px;
  color: var(--white);
  font-size: 2rem;
  padding: 5px 14px;
  margin-left: 18px;
  border: none;
  display: flex;
  align-items: center;
  transition: background .19s;
  z-index: 99;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 64, 116, 0.96);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.7,.23,.32,1.07);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  color: var(--vintage-yellow);
  font-size: 2.2rem;
  margin: 24px 24px 8px 24px;
  align-self: flex-end;
  border-radius: 8px;
  border: none;
  padding: 2px 10px;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(243, 196, 104, .17);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding: 10px 34px 28px 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  padding: 13px 0;
  border-bottom: 1.5px dashed #e4c08033;
  width: 100%;
  transition: background .17s, color .12s;
  border-radius: 0;
  font-weight: 700;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--vintage-orange);
  color: var(--primary);
}

@media (min-width: 1100px) {
  .main-nav {
    gap: 32px;
  }
}

@media (max-width: 1023px) {
  header .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =====================
   HERO STYLING
   ===================== */
.hero {
  display: flex;
  align-items: center;
  min-height: 300px;
  border-bottom: var(--border);
  background-blend-mode: lighten;
  background-size: cover;
  padding-top: 24px;
  padding-bottom: 14px;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 18px;
  min-height: 220px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
  text-shadow: 1px 2px 0 #f7e5a3be;
}
.hero p {
  color: var(--black);
  font-size: 1.1rem;
}

/* =========================
   SECTION SPACING PATTERNS
   ========================= */
.section, .about-section, .features, .feature-articles, .services-section, .tools-section, .newsletter-cta, .cta-section, .article-list, .thank-you-section, .contact-section, .legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section, .about-section, .features, .feature-articles, .services-section, .tools-section, .newsletter-cta, .cta-section, .article-list, .thank-you-section, .contact-section, .legal-section {
    padding: 22px 8px;
    margin-bottom: 38px;
  }
}

/* =====================
   FLEX CONTAINER PATTERNS
   ===================== */
.card-container, .featured-articles-grid, .feature-grid, .article-highlights, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 16px;
}
.article-highlights {
  gap: 24px;
}
.feature-grid {
  gap: 23px;
}
.feature-item, .article-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 22px 22px;
  min-width: min(260px, 100%);
  max-width: 355px;
}
.feature-item img {
  height: 38px;
  width: auto;
  margin-bottom: 8px;
  filter: sepia(0.37) contrast(1.09);
}
.feature-item h3 {
  color: var(--accent);
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.article-card a {
  margin-top: 5px;
  font-weight: bold;
  color: var(--accent);
}
.article-card a:hover, .article-card a:focus {
  text-decoration: underline;
  color: var(--primary);
}

.content-grid, .footer-contact, .main-footer-menu {
  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;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid, .featured-articles-grid, .card-grid, .footer-contact, .main-footer-menu, .article-highlights {
    flex-direction: column;
    gap: 18px;
  }
}

/* General card styling */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 26px;
}

/* ==============
   TESTIMONIALS
   ============== */
.testimonials .content-wrapper {
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--vintage-cream);
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 2px 7px #F5E2B330;
  border: 1.5px solid #ddbfa7;
  min-width: 0;
  flex: 1 1 100%;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
}
.testimonial-meta strong {
  color: var(--primary);
  font-size: 1.08em;
  font-weight: bold;
}
.stars {
  color: #e5a403;
  font-size: 1.14em;
  font-family: inherit;
  letter-spacing: 2px;
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .testimonial-meta {
    min-width: 98px;
  }
}

/* ==============
   CTA SECTIONS
   ============== */
.cta-section, .newsletter-cta {
  background: var(--vintage-yellow);
  border-radius: 24px;
  border: var(--border);
  box-shadow: 0 2px 11px #F7E5A3AA, 0 1px 3px #FCBB6D33;
  text-align: left;
}
.cta-section .btn-primary, .newsletter-cta .btn-primary {
  margin-top: 10px;
}

/* ==============
   FOOTER
   ============== */
footer {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  margin-top: 64px;
  border-top: 7px double #ecd7b7;
  padding: 0 0 24px 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 19px 0 19px;
}
.main-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.main-footer-menu a {
  color: var(--vintage-yellow);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.16s, text-decoration 0.18s;
  margin-bottom: 16px;
}
.main-footer-menu a:hover, .main-footer-menu a:focus {
  color: var(--accent);
  text-decoration: underline dotted;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1rem;
  color: var(--white);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  margin-bottom: 0;
}
.footer-contact img {
  height: 18px;
  width: auto;
  filter: invert(1) sepia(13%) saturate(5%) hue-rotate(-17deg);
  margin-right: 3px;
}

@media (max-width: 768px) {
  footer .container {
    padding: 18px 8px 0 8px;
    gap: 14px;
  }
}

/* ===============
   ARTICLE FILTER MENU
   =============== */
.article-filter-menu {
  display: flex;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  margin-top: 3px;
}
.article-filter-menu a {
  color: var(--accent);
  font-weight: bold;
}
.article-filter-menu a:hover, .article-filter-menu a:focus {
  color: var(--primary);
  text-decoration: underline wavy;
}

/* ===============
   LEGAL AND TEXT SECTIONS
   =============== */
.legal-section .text-section, .text-section {
  margin-bottom: 32px;
}
.legal-section .text-section h2, .text-section h2 {
  font-size: 1.18rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin-bottom: 7px;
}
.legal-section ul, .text-section ul {
  margin: 12px 0 15px 26px;
  list-style-type: disc;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===============
   CONTACT PAGE
   =============== */
.contact-info p { margin-bottom: 7px; }
.location-map {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.location-map img {
  height: 32px;
  filter: sepia(.42) contrast(1.34);
}
.cta-contact, .cta-return { margin-top: 18px; }

/* ===============
   THANK YOU PAGE
   =============== */
.thank-you-section .cta-return a {
  margin-top: 11px;
}

/* ===============
   HABIT/FOCUS/MINDFULNESS LISTS
   =============== */
.quick-tips-list ul, .habit-building-tips ul, .focus-exercises-list ul, .mindfulness-tips ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: #2e1602;
  font-size: 1rem;
}
.quick-tips-list li, .habit-building-tips li, .focus-exercises-list li, .mindfulness-tips li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}
.quick-tips-list li::before, .habit-building-tips li::before, .focus-exercises-list li::before, .mindfulness-tips li::before {
  content: '\2605';
  color: var(--vintage-orange);
  margin-right: 4px;
  font-size: 0.95em;
  position: absolute;
  left: 0;
}

/* ===========
   BUTTONS GENERAL
   =========== */
button, .btn-primary {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
button:disabled, .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===============
   COOKIE BANNER
   =============== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--vintage-yellow);
  color: var(--primary);
  border-top: 5px double #ecd7b7;
  box-shadow: 0 -2px 16px #E37E6055;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  z-index: 3000;
  padding: 24px 6vw 20px 6vw;
  font-size: 1rem;
  animation: cookieslidein .8s cubic-bezier(.77,-.2,.58,1.16);
}
@keyframes cookieslidein {
  from { transform: translateY(160px); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-consent-banner p {
  margin: 0;
  font-size: 1.05rem;
  flex: 2 1 50%;
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
#cookie-consent-banner button {
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  padding: 8px 22px;
  margin: 0 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: background .18s, color .13s;
}
#cookie-consent-banner .accept {
  background: var(--accent);
  color: var(--white);
}
#cookie-consent-banner .accept:hover, #cookie-consent-banner .accept:focus {
  background: var(--primary);
}
#cookie-consent-banner .reject {
  background: var(--white);
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
#cookie-consent-banner .reject:hover, #cookie-consent-banner .reject:focus {
  background: var(--accent);
  color: var(--vintage-yellow);
}
#cookie-consent-banner .settings {
  background: var(--vintage-orange);
  color: var(--primary);
}
#cookie-consent-banner .settings:hover, #cookie-consent-banner .settings:focus {
  background: var(--primary);
  color: var(--vintage-yellow);
}
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    gap: 15px;
    padding: 12px 7vw 10px 7vw;
    font-size: 0.98rem;
  }
  #cookie-consent-banner .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* COOKIE MODAL OVERLAY */
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(19,64,116,0.86);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.active {
  display: flex;
}
#cookie-modal {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 8px 32px #B04B2060, 0 2px 8px #cab788;
  padding: 38px 32px 24px 32px;
  width: 98%;
  max-width: 420px;
  animation: cookiemodalpop .6s cubic-bezier(.75,-0.1,.3,1.29);
  position: relative;
}
@keyframes cookiemodalpop {
  from {transform: scale(0.87) translateY(80px); opacity: 0.25;}
  to {transform: scale(1) translateY(0); opacity:1;}
}
#cookie-modal h2 {
  font-size: 1.33rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
}
.cookie-category {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--accent);
}
.cookie-category label {
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  accent-color: var(--accent);
  transform: scale(1.15);
  margin-right: 5px;
}
#cookie-modal .cookie-category .always-on {
  color: var(--primary);
  font-size: 0.98em;
  font-weight: bold;
  margin-left: 2px;
}
#cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
#cookie-modal .close-modal {
  background: transparent;
  color: var(--primary);
  font-size: 1.72rem;
  border: none;
  position: absolute;
  top: 10px;
  right: 18px;
  border-radius: 8px;
  padding: 0 6px;
  transition: background .16s;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  background: #f2f2ca;
}

@media (max-width: 480px) {
  #cookie-modal {
    padding: 21px 8px 13px 14px;
    max-width: 98vw;
  }
}

/* ==============
   RESPONSIVE DESIGN
   ============== */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 5px;
  }
  .content-wrapper {
    padding-top: 10px;
    padding-bottom: 15px;
    gap: 18px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
}
/* =====================
   SMALL ELEMENTS & MICROS
   ===================== */
::-webkit-input-placeholder { color:#b49060; }
::-moz-placeholder { color:#b49060; }
:-ms-input-placeholder { color:#b49060; }
::placeholder { color: #b49060; }

a, button, .btn-primary {
  transition: background 0.19s, color 0.13s, box-shadow 0.18s;
}
.card, .feature-item, .testimonial-card, .article-card {
  transition: box-shadow .19s, transform .16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .article-card:hover {
  box-shadow: 0 4px 18px #13407422, 0 2px 5px #b04b2020;
  transform: translateY(-3px) scale(1.02);
}

/* RETRO EFFECTS */
.feature-item, .testimonial-card, .article-card {
  border-style: dashed;
  border-color: #bfa06c;
}
.card, .feature-item, .testimonial-card, .article-card {
  border-width: 2.5px;
}

/* DECORATIVE CORNER PATCH FOR CARD
   (Not content, only decoration, ok for absolute) */
.card::after, .feature-item::after, .testimonial-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 44px;
  height: 26px;
  background: url('data:image/svg+xml;utf8,<svg width="44" height="26" xmlns="http://www.w3.org/2000/svg"><path d="M0 26 Q12 0 44 0 V26 Z" fill="%23F7E5A3"/></svg>') no-repeat;
  background-size: cover;
  opacity: 0.25;
  pointer-events: none;
  z-index: 2;
}

/* ================
   UTILITY CLASSES
   ================ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 20px !important; }

/* DEBUG: NO GRID, NO COLUMNS! Only flex layouts used everywhere as required */
