/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, html {
  min-height: 100vh;
  background: #F6E9D5;
  color: #212226;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, ol {
  margin-left: 1.25em;
  padding-left: 0;
}
ul li {
  margin-bottom: 8px;
}

/* --- ROOT VARIABLES FOR VINTAGE RETRO COLORS --- */
:root {
  --primary: #212226;
  --secondary: #B59F78;
  --accent: #E5E8ED;
  --vintage-bg: #F6E9D5;
  --vintage-orange: #D98841;
  --vintage-turquoise: #47a88d;
  --vintage-red: #a95243;
  --vintage-light: #FFF9F3;
  --card-shadow: 0 4px 24px rgba(57,45,20,0.07), 0 1.5px 6px rgba(181,159,120,0.06);
  --card-radius: 18px;
  --pattern: repeating-linear-gradient(45deg, #e5e8ed 0px, #e5e8ed 8px, #f6e9d5 8px, #f6e9d5 16px);
}

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Montserrat:400,500,700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  background: var(--vintage-bg);
  color: var(--primary);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.7rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: 0.03em; }
h4 { font-size: 20px; }

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary);
}
strong {
  font-weight: bold;
}
a {
  color: var(--vintage-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
}
a:hover, .main-nav a.active, .mobile-nav a.active {
  color: var(--vintage-turquoise);
  text-decoration: underline;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 94%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  background: var(--vintage-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 60px;
  padding: 40px 24px;
  border: 2px solid var(--secondary);
  position: relative;
}

/* --- SECTION STYLES --- */
section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- FEATURE GRID & FLEX LAYOUTS --- */
.feature-grid, .pricing-table, .footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div, .pricing-table > div {
  flex: 1 1 250px;
  background: var(--vintage-light);
  border: 1.5px solid var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px 20px 24px 20px;
  position: relative;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow 0.24s;
}
.feature-grid > div:hover, .pricing-table > div:hover {
  box-shadow: 0 8px 40px rgba(80,60,30,0.13);
}

/* --- CUSTOM FLEX CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--vintage-light);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1.5px solid var(--secondary);
  padding: 24px;
  flex: 1 1 300px;
  min-width: 250px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(46,46,42,.15);
  transform: translateY(-3px) scale(1.008);
}
.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) {
  .feature-grid, .pricing-table, .footer-main, .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffaf1;
  border: 2px dashed var(--vintage-orange);
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 28px;
  box-shadow: 0 3px 14px rgba(109,83,37,0.08);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: #232113;
  position: relative;
  min-width: 220px;
  max-width: 630px;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  color: #332b18;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--vintage-red);
  font-size: 0.98rem;
  font-family: 'Playfair Display', serif;
}
.testimonial-card:before {
  content: '\201C';
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--secondary);
  position: absolute;
  left: 16px; top: 14px;
}

.overall-ratings {
  background: var(--vintage-bg);
  border: 2px solid var(--vintage-turquoise);
  border-radius: 10px;
  padding: 12px 18px;
  display: inline-block;
  margin: 10px 0 26px 0;
  font-size: 1.09rem;
  color: var(--primary);
}

/* --- BUTTONS & CTAs --- */
.cta-primary,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  background: var(--vintage-orange);
  color: #fffaf3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 12px 36px;
  box-shadow: 0 2px 8px rgba(60,43,22,0.08);
  cursor: pointer;
  letter-spacing: 0.045em;
  transition: background 0.17s, color 0.14s, box-shadow 0.24s, transform 0.13s;
  margin-top: 12px;
  margin-bottom: 20px;
  text-shadow: 0 2px 0 rgba(70,50,20,0.03);
  outline: none;
}
.cta-primary:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--vintage-turquoise);
  color: #fff8f3;
  box-shadow: 0 7px 30px 0 rgba(67,140,110,0.16);
  transform: translateY(-1px) scale(1.03);
}

/* Secondary button (for settings/reject, etc) */
.cta-secondary,
button.cta-secondary {
  background: #fff9e9;
  color: var(--vintage-orange);
  border: 2px solid var(--vintage-orange);
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 22px;
  font-weight: 500;
  margin-right: 12px;
}
.cta-secondary:hover {
  background: var(--vintage-red);
  color: #fff;
  border-color: var(--vintage-red);
}

/* --- NAVIGATION (DESKTOP & MOBILE) --- */
header {
  background: var(--pattern), var(--secondary);
  min-height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 2.5px solid var(--primary);
  z-index: 90;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.024em;
  transition: color 0.16s;
  padding: 7px 6px;
  border-radius: 7px;
}
.main-nav a.cta-primary {
  background: var(--vintage-orange);
  color: #fff;
  padding: 9px 22px;
  border-radius: 18px;
  font-weight: 700;
  margin-left: 24px;
  box-shadow: 0 2px 9px rgba(181,159,120,0.09);
}
.main-nav a.cta-primary:hover {
  background: var(--vintage-turquoise);
  color: #fffaf3;
}

.mobile-menu-toggle {
  display: none;
  margin-left: 30px;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 18px 8px 8px;
  z-index: 301;
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(90deg,#fffaf3 85%,#e5e8ed 100%) no-repeat;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.73,0.24,0.26,1.12);
  box-shadow: 0 8px 44px #825c335c, 0 0.5px 18px #B59F7855;
  overscroll-behavior: none;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.6rem;
  color: var(--vintage-red);
  position: absolute;
  top: 16px;
  right: 28px;
  cursor: pointer;
  z-index: 310;
  padding: 14px;
  transition: color 0.19s;
}
.mobile-menu-close:hover {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 27px;
  margin-top: 80px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 7px 38px;
  font-weight: 600;
  border-radius: 12px;
  display: block;
  width: 100%;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--vintage-orange);
  color: #fffaf3;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fffaf3;
  padding: 0 0 0 0;
  font-size: 1rem;
  margin-top: 26px;
  border-top: 2px solid var(--secondary);
}
footer .container {
  padding: 56px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 144px;
}
.footer-main nav a {
  color: #fffaf3;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 3px;
  padding: 3px 0;
  transition: color 0.13s;
}
.footer-main nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-main img {
  width: 50px;
  height: 50px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.footer-contact img {
  width: 23px;
  height: 23px;
}
.footer-social {
  display: flex;
  gap: 11px;
  margin: 7px 0 0 0;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  transition: transform 0.18s;
}
.footer-social a:hover img {
  transform: scale(1.13);
  filter: grayscale(0) brightness(1.33) sepia(0.29) saturate(1.23);
}
.footer-copy {
  color: #e5e8ed;
  font-size: 0.96rem;
  opacity: 0.88;
  margin-top: 10px;
  margin-bottom: 5px;
}
@media (max-width: 950px) {
  .footer-main {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- NOTE, HIGHLIGHT & TERMS BLOCKS --- */
.note,
.terms-highlight {
  background: #fff7ea;
  border-left: 5px solid var(--vintage-orange);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px #e2a87d2e;
}
.terms-highlight {
  border-left-color: var(--vintage-turquoise);
}

/* --- GENERAL FORM & LIST STYLES --- */
input, textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--accent);
  background: #fffaf3;
  transition: border 0.13s;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

li {
  margin-bottom: 9px;
}
ol {
  margin-left: 1.5em;
}

ul li strong { color: var(--vintage-orange); font-weight: bold; }

/* --- PATTERN BACKGROUNDS & DECOR (OPTIONAL) --- */
.pattern-bg {
  background: var(--pattern);
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.cta-primary, .card, .feature-grid > div, .pricing-table > div, .testimonial-card, .mobile-menu, button, .main-nav a, .mobile-nav a, a {
  transition: box-shadow 0.22s, background 0.14s, color 0.14s, transform 0.14s;
}

/* --- RESPONSIVE TYPOGRAPHY & GAPS --- */
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.37rem; }
  h3 { font-size: 1.02rem; }
  .content-wrapper, .text-section { padding: 25px 8px; }
  .testimonial-card { padding: 18px 12px; font-size: 0.97rem; }
}

/* --- SPECIAL UTILITY CLASSES --- */
.hide { display: none !important; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fdf3e5;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 22px #21222616;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 19px 19px 19px;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 1;
  transition: opacity 0.3s, transform 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner p {
  color: #333024;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-banner .cta-primary,
.cookie-banner .cta-secondary {
  margin: 0 3px;
  padding: 8px 25px;
  font-size: 0.99rem;
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,19,14,0.43);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--vintage-light);
  border-radius: 21px;
  border: 2px solid var(--vintage-orange);
  padding: 38px 27px 27px 27px;
  min-width: 312px;
  max-width: 94vw;
  color: var(--primary);
  box-shadow: 0 11px 42px #995b3919, 0 2px 13px #B59F7810;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal h2 {
  font-size: 1.27rem;
  margin-bottom: 14px;
  font-family: 'Playfair Display', serif;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #33291a;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--vintage-orange);
  transform: scale(1.2);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2.0rem;
  color: var(--vintage-red);
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close:hover {
  color: var(--primary);
}

/* --- HERO LIST HIGHLIGHTS --- */
ul > li > strong, li strong {
  color: var(--vintage-turquoise);
}

/* --- DECORATIVE ELEMENTS FOR RETRO --- */
section {
  position: relative;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px;
  left: 22px;
  width: 44px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--vintage-turquoise) 0px, var(--vintage-turquoise) 14px, transparent 14px, transparent 22px);
  opacity: 0.13;
  border-radius: 6px;
  z-index: 1;
}

/* Disable decorative ribbon for mobile view */
@media (max-width: 600px) {
  section:after {
    display: none;
  }
}

/* --- MOBILE GENERAL ADJUSTMENTS --- */
@media (max-width: 600px) {
  header {
    padding: 10px 0;
  }
  .container {
    padding: 0 6px;
  }
  .footer-main img { width: 36px; height: 36px; }
  .footer-contact img { width: 16px; height: 16px; }
  .footer-social a img { width: 27px; height: 27px; }
  .cookie-modal { padding: 24px 6px 18px 6px; }
}

/* --- PRINT FRIENDLY --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #222 !important; }
}
