/* ===========================================================
   CSS RESET & NORMALIZE (modern-reset, vintage/retro base)
   =========================================================== */
html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
div, section, main, header, nav, footer,
a, button, input, select, textarea {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font: inherit;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F2E7;
  color: #352613;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: #18436B;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #2DA17D;
  outline: none;
}
ul, ol {
  list-style: none;
  margin-left: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* ==================================
   FONT-FACE for VINTAGE/RETRO FEEL
   ================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');


/* ==========================================
   COLOR PALETTE: VINTAGE/RETRO + BRAND
   ========================================== */
:root {
  --primary: #18436B;
  --secondary: #F0F3F7;
  --accent: #2DA17D;
  --retro-yellow: #DCAC3B;
  --retro-orange: #E97C30;
  --retro-blue: #8CA9C6;
  --retro-brown: #56413A;
  --retro-cream: #F7F2E7;
  --text-dark: #352613;
  --text-light: #fff8ee;
  --border-color: #e7dac2;
  --shadow-light: 0 3px 12px 0 rgba(56,38,18,0.10);
  --shadow-card: 0 2px 8px rgba(56,38,18,0.14);
  --btn-hover: #E97C30;
  --btn-active: #DCAC3B;
  --transition: 0.23s cubic-bezier(.7,.22,.34,1.11);
}


/* ===============================
   TYPOGRAPHY: VINTAGE SCALE
   =============================== */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: var(--retro-brown);
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  color: var(--retro-orange);
}
p {
  font-size: 1.06rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

em {
  font-style: italic;
  color: var(--retro-orange);
}

/* Vintage deco border for headings */
h1, h2, h3 {
  position: relative;
  padding-bottom: 0.10em;
}
h1:after, h2:after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--retro-yellow);
  border-radius: 3px;
  margin-top: 6px;
}

/* =======================================
   LAYOUT CONTAINERS & SECTIONS (Flexbox)
   ======================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  box-sizing: border-box;
}
.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 22px;
  box-shadow: var(--shadow-light);
}
.hero {
  background: linear-gradient(92deg, var(--secondary) 60%, var(--retro-yellow) 100%);
  box-shadow: var(--shadow-card);
  border-radius: 0 0 24px 24px;
  margin-bottom: 48px;
  padding: 48px 0 34px 0;
  min-height: 250px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.text-section {
  padding: 18px 0;
  border-left: 6px solid var(--retro-yellow);
  background: #faeed3;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(228,184,91,0.11);
}

.cta-section {
  background: var(--accent);
  color: var(--text-light);
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-light);
  margin-bottom: 0px !important;
  padding: 30px 20px;
}
.cta-section p {
  color: #fffbe6;
  margin-bottom: 18px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* ========================
   FLEX LAYOUT PATTERNS
   ======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF9EE;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 24px 18px;
  flex: 1 1 270px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 2.5px solid var(--border-color);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe7;
  border-left: 8px solid var(--accent);
  border-radius: 14px;
  margin: 0 0 24px 0;
  box-shadow: 0 1px 6px rgba(43,23,12,0.10);
  color: #41322A;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card .author {
  font-style: normal;
  font-weight: bold;
  color: var(--primary);
  margin-left: auto;
  border-left: 3px solid var(--retro-yellow);
  padding-left: 14px;
}

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

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}
.blog-grid li {
  flex: 1 1 260px;
  background: #fff5dd;
  border-radius: 15px;
  padding: 20px 18px;
  box-shadow: 0 1px 5px rgba(160,100,44,0.09);
  margin-bottom: 20px;
}

.pricing-overview ul {
  margin-left: 6px;
  margin-top: 10px;
  margin-bottom: 18px;
}
.pricing-overview li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-grid,
  .card-container,
  .blog-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card,
  .blog-grid li {
    min-width: unset;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-item {
    gap: 7px;
  }
}

/* ============================
   NAVIGATION & HEADER LAYOUTS
   ============================ */
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 3px 24px rgba(24,67,107,0.13);
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  margin-right: 26px;
  display: flex;
  align-items: center;
  height: 48px;
}
.logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 1px 1px #fff1ce81);
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-right: auto;
}
.main-nav a {
  color: #fff8ee;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.015em;
  transition: color var(--transition);
  padding: 6px 6px 4px 6px;
  border-radius: 4px;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
.cta.primary {
  margin-left: 18px;
  background: var(--accent);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 10px 26px 10px 26px;
  padding: 10px 22px;
  box-shadow: 0 1px 8px rgba(55, 113, 59, 0.18);
  border: 2px solid var(--accent);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
  outline: none;
  cursor: pointer;
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--btn-hover);
  color: #fffbe7;
  box-shadow: 0 2px 16px rgba(233,125,48,0.25);
  border-color: var(--btn-hover);
}
.cta {
  background: var(--primary);
  color: #fffbe7;
  border-radius: 10px 26px 10px 26px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(24,67,107,0.16);
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 6px;
  border: 2px solid var(--primary);
}
.cta:hover,
.cta:focus {
  background: var(--retro-yellow);
  border-color: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(220,172,59,0.19);
  outline: none;
}

/* Hide burger by default, show on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-yellow);
  color: var(--primary);
  font-size: 2.0rem;
  border-radius: 10px;
  padding: 7px 14px 7px 14px;
  margin-left: 20px;
  box-shadow: 0 3px 6px rgba(121,80,15,0.1);
  transition: background var(--transition), color var(--transition);
  z-index: 45;
  border: 2px solid var(--primary);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--retro-yellow);
  outline: none;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================
   MOBILE MENU OVERLAY
   ============================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(120deg, #F7F2E7 90%, #DCAC3B 100%);
  box-shadow: 0 10px 24px rgba(54,24,10,0.14);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.5, 1.3, .18, .8);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px 0 0 0;
  opacity: 1;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--retro-orange);
  color: #fffbe7;
  border-radius: 12px;
  padding: 6px 18px;
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 1201;
  border: 2px solid var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--btn-hover);
  color: #fffbe7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 70px 0 0 35px;
  width: calc(100% - 70px);
}
.mobile-nav a {
  color: var(--primary);
  background: #fffce7;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  padding: 12px 16px;
  border-radius: 9px;
  font-weight: 700;
  margin-bottom: 10px;
  box-shadow: 0 0.5px 4px rgba(70,40,7,0.08);
  border-left: 6px solid var(--retro-yellow);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fffbe7;
}

/* ============================
   FOOTER
============================ */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 36px 0 22px 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(24,67,107,0.16);
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fffbe7;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  transition: color var(--transition);
  margin-bottom: 2px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--retro-yellow);
  text-decoration: underline;
}
.contact-footer {
  flex: 2 1 320px;
  font-size: 1.05rem;
  align-self: flex-start;
  margin-bottom: 12px;
}
.brand-footer {
  flex: 1 0 120px;
  text-align: right;
}
.brand-footer img {
  height: 36px;
  filter: grayscale(0.3) brightness(1.16) drop-shadow(0 1px 1px #fff1ce81);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .brand-footer {
    text-align: left;
    margin-top: 12px;
  }
}

/* ========================================================
   VINTAGE/RETRO DECOR - BUTTONS, SECTIONS, MICRO-EFFECTS
   ======================================================== */
@media (min-width: 769px) {
  .section, main section {
    padding: 60px 36px;
  }
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
  list-style-type: disc;
}
ul li, ol li {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

/* Decorative pattern backgrounds */
.section, .testimonial-card, .blog-grid li, .card {
  background-image: repeating-linear-gradient(135deg, transparent, transparent 38px, #ECE1C5 40px, transparent 50px);
  background-size: 110px 110px;
  background-repeat: no-repeat;
  background-blend-mode: lighten;
}
.testimonial-card {
  background-image: repeating-linear-gradient(-30deg, transparent, transparent 30px, #F8E5BA 34px);
}

/* Subtle retro border effect */
.card, .blog-grid li {
  border-bottom: 5px solid var(--retro-yellow);
}

/* Card micro-interaction */
.card,
.blog-grid li {
  transition: box-shadow 0.23s cubic-bezier(.7,.2,.3,1), transform 0.18s;
}
.card:hover, .blog-grid li:hover {
  box-shadow: 0 8px 32px rgba(56,38,18,0.14);
  transform: translateY(-3px) scale(1.01);
}

/* Section headings underline on focus */
h2:focus {
  outline: none;
  background: #fff9d4;
  border-radius: 6px;
}

/* ========================
   FORM AND GENERIC STYLES
   ======================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 13px;
  border: 1.8px solid var(--retro-yellow);
  border-radius: 8px;
  background: #fffbe7;
  margin-bottom: 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 5px var(--accent)33;
  outline: none;
}

/* ===============
   MISC UTILITIES
   =============== */
.neutral {
  color: #776040 !important;
  font-style: italic;
}

/* =============
   SPACING RULES
   ============= */
.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============
   COOKIE CONSENT BANNER & MODAL
   ============= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 3000;
  background: linear-gradient(90deg, #F8E2B0 90%, #DCAC3B 100%);
  box-shadow: 0 -3px 24px rgba(108,74,28,0.08);
  padding: 26px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1.08rem;
  color: #483716;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: fadeInBottom 0.66s ease;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner .cb-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 18px;
  font-size: 1.05rem;
  border-radius: 9px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fffbe7;
  min-width: 160px;
  margin-bottom: 2px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-banner .cb-btn.primary {
  background: var(--accent);
  color: #fffbe7;
  border-color: var(--accent);
}
.cookie-banner .cb-btn.primary:hover,
.cookie-banner .cb-btn.primary:focus {
  background: var(--btn-hover);
  color: #fffbe7;
  border-color: var(--btn-hover);
}
.cookie-banner .cb-btn.settings {
  background: #fffbe7;
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-banner .cb-btn.settings:hover {
  background: var(--retro-yellow);
  color: var(--primary);
}
.cookie-banner .cb-btn.reject {
  background: var(--retro-orange);
  color: #fffbe7;
  border-color: var(--retro-orange);
}
.cookie-banner .cb-btn.reject:hover {
  background: #cb6a0a;
  border-color: #cb6a0a;
}
@media (max-width: 600px) {
  .cookie-banner {
    font-size: 0.99rem;
    flex-direction: column;
    align-items: stretch;
    padding-left: 6px;
    padding-right: 6px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 11px;
  }
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 4000;
  transform: translate(-50%, -50%);
  background: #fff8ec;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(54,28,10,0.18);
  min-width: 310px;
  max-width: 97vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px 28px 28px 28px;
  border: 3.6px solid var(--retro-yellow);
  animation: fadeInModal .35s ease;
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.cookie-modal label {
  flex: 1;
  font-size: 1.08rem;
  color: var(--primary);
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .category-essential {
  font-style: italic;
  font-weight: 700;
  color: #948223;
  opacity: 0.85;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .cb-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 16px;
  font-size: 1.03rem;
  border-radius: 9px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fffbe7;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .cb-btn.save {
  background: var(--accent);
  color: #fdf8ef;
  border-color: var(--accent);
}
.cookie-modal .cb-btn.save:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: #fffbe7;
}

/* ================
   ANIMATIONS
   ================ */
@keyframes fadeInBottom {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: scale(0.96) translate(-60px,-46px); }
  100% { opacity: 1; transform: scale(1) translate(0,0); }
}

/* ==============
   RESPONSIVE
   ============== */
@media (max-width: 550px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .hero, .section, main section { padding: 24px 3px; }
  .cta-section { padding: 16px 2px; }
  .footer-nav, .contact-footer, .brand-footer { font-size: 0.98rem; }
}

/* ==============
   SCROLLBAR VINTAGE
   ============== */
::-webkit-scrollbar { width: 9px; background: #F3E9CC; }
::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 7px;
}

/* =======
   MISC
   ======= */

::-moz-selection { background: #FFF8E6; color: var(--primary); }
::selection { background: #FFF8E6; color: var(--primary); }

/***************************
FOR JS: Helper Classes
***************************/
.mobile-menu { visibility: hidden;}
.mobile-menu.open { visibility: visible;}
.cookie-modal { visibility: hidden;}
.cookie-modal.open { visibility: visible;}

/*******************************
 ENSURE NO CSS GRID, FLEX ONLY
*******************************/
/* (see: all layout containers use display: flex, no grid used) */
