/* --- CSS RESET & NORMALIZE --- */
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, menu, 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, main, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2E9E4;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* --- FONT FACE (GOOGLE FONTS)--- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:900,700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

:root {
  --color-primary: #22223B;
  --color-secondary: #4A4E69;
  --color-accent: #F2E9E4;
  --color-contrast: #fff;
  --color-link: #4A4E69;
  --color-link-hover: #22223B;
  --color-success: #18ab8f;
  --color-error: #e55039;
  --shadow-card: 0 4px 24px 0 rgba(34,34,59,0.09);
  --radius-medium: 16px;
}

body, html {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.2; }
h4 { font-size: 1.125rem; }

p, li, label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-secondary);
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}
hr {
  border: none;
  border-top: 1px solid #d6ccc2;
  margin: 32px 0;
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(34,34,59,0.15);
  transform: translateY(-4px) scale(1.03);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 500px;
}
.testimonial-card p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-secondary);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  min-width: 220px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2.5px solid transparent;
}
.feature-item:hover {
  box-shadow: 0 10px 36px rgba(34,34,59,0.15);
  border: 2.5px solid var(--color-secondary);
  transform: translateY(-4px) scale(1.02);
}
.feature-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* --- GEOMETRIC ACCENTS (Modern/Bold) --- */
.hero::before {
  content: '';
  display: block;
  position: absolute;
  left: -80px; top: -80px;
  width: 160px; height: 160px;
  background: var(--color-secondary);
  opacity: 0.13;
  border-radius: 32% 40% 35% 38%;
  z-index: 0;
  pointer-events: none;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 64px 64px / 0 0 32px 32px;
  padding: 60px 0 48px 0;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}
.hero .container {
  position: relative;
  z-index: 2;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(34,34,59,0.06);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header > a img {
  height: 48px;
  margin: 16px 0 16px 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 18px;
}
header nav a {
  color: var(--color-primary);
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a.active {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 20px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  z-index: 120;
  transition: background 0.15s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover {
  background: var(--color-primary);
}

/* --- MOBILE SLIDE MENU --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,59, 0.96);
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.77,0.2,0.05,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 32px;
  top: 24px;
  background: none;
  font-size: 2rem;
  color: #fff;
  border: none;
  z-index: 1101;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  transition: background 0.15s;
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 100px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.35rem;
  padding: 10px 0 10px 0;
  border-radius: 5px;
  transition: color 0.15s, background 0.12s;
  min-width: 140px;
}
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --- CALL TO ACTION BUTTONS --- */
.cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  border-radius: 40px;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.15rem;
  border: 2px solid var(--color-secondary);
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.13s;
  margin-bottom: 16px;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.05);
}
.cta.secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2.5px solid var(--color-secondary);
  transition: background 0.2s, color 0.2s;
}
.cta.secondary:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* --- FEATURES GRID (e.g. /) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 72px;
  box-shadow: 0 -2px 16px 0 rgba(34,34,59,0.10);
}
.footer-wrapper {
  display: flex;
  flex-direction: row;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 44px 0 24px 0;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 6px 0;
  opacity: 0.88;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--color-accent);
}
.contact-info p, .contact-info a {
  font-size: 1rem;
  letter-spacing: 0.1px;
  opacity: 0.92;
  color: #fff;
}
.footer-credit {
  width: 100%;
  background: var(--color-secondary);
  text-align: center;
  padding: 12px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-family: 'Roboto', sans-serif;
  opacity: 0.85;
}

.newsletter-signup p {
  color: #fff;
  opacity: 0.90;
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- LEGAL PAGES --- */
.legal h1, .legal h2 {
  color: var(--color-primary);
  font-family: 'Merriweather', serif;
  margin-bottom: 16px;
}
.legal ul {
  margin-left: 16px;
  margin-bottom: 24px;
}
.legal section, .legal .container, .legal .content-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* --- UTILITY SECTION (thanks.php) --- */
.utility .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
  background: #fff;
  padding: 44px 24px;
  border-radius: 32px;
  box-shadow: 0 2px 10px rgba(34,34,59,0.08);
}

/* --- SPECIAL --- */
.pricing-info, .pricing-table {
  font-size: 1.07rem;
  font-weight: 700;
  background: #f7ede2;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  color: var(--color-secondary);
  box-shadow: 0 2px 8px 0 rgba(34,34,59,0.04);
}

/* --- SPACING & GENERAL FLEX --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .features, .feature-grid, .content-grid, .footer-wrapper {
  gap: 24px;
}

/* --- FORM RESET (placeholder for newsletter/etc.) --- */
input, textarea {
  font: inherit;
  outline: none;
  border-radius: 8px;
  border: 1.5px solid #d6ccc2;
  padding: 10px 14px;
  background: #fff;
  color: var(--color-primary);
  margin-bottom: 20px;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
}

/* --- TABLES (e.g. e-books) --- */
table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
th, td {
  padding: 16px 14px;
  text-align: left;
}
thead {
  background: var(--color-secondary);
  color: #fff;
}
tfoot {
  background: #4a4e69cc;
  color: #fff;
}

/* --- COOKIES BANNER --- */
#cookie-banner {
  width: 100vw;
  position: fixed;
  left: 0;
  bottom: 0;
  background: #fff;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -2px 24px rgba(34,34,59,0.13);
  padding: 24px 20px 20px 20px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: cookieslidein 0.5s cubic-bezier(0.77,0.2,0.05,1);
}
@keyframes cookieslidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
#cookie-banner button {
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  margin-right: 0;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
#cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}
#cookie-banner .accept:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
#cookie-banner .reject {
  background: #fff;
  color: var(--color-error);
  border: 2px solid var(--color-error);
}
#cookie-banner .reject:hover {
  background: var(--color-error);
  color: #fff;
}
#cookie-banner .settings {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
#cookie-banner .settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* --- COOKIE MODAL --- */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,34,59,0.85);
  z-index: 13000;
  align-items: center;
  justify-content: center;
  animation: cookiemodalin 0.33s cubic-bezier(0.77,0.2,0.05,1);
}
#cookie-modal.open {
  display: flex;
}
@keyframes cookiemodalin {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 380px;
  min-width: 270px;
  width: 90vw;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookiepopin 0.32s cubic-bezier(0.77,0.2,0.05,1);
}
@keyframes cookiepopin {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h2 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.cookie-category label {
  font-weight: 500;
  color: #383853;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
}
.cookie-category input[disabled] {
  opacity: 0.35;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 10px;
  background: none;
  font-size: 1.4rem;
  color: var(--color-secondary);
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.12s;
}
.cookie-modal-close:hover {
  background: #f7f6f6;
}

/* --- MEDIA QUERIES for RESPONSIVENESS --- */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
  .hero::before {
    left: -30vw; top: -70px; width: 38vw; height: 120px;
  }
}

@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  section, .section {
    padding: 24px 5px;
  }
  .hero {
    padding: 36px 0 28px 0;
    border-radius: 0 0 46px 46px / 0 0 18px 18px;
  }
  .content-wrapper, .feature-grid, .footer-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header > a img {
    height: 40px;
    margin: 12px 0 12px 10px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .content-wrapper, .footer-wrapper, .feature-grid {
    gap: 12px;
  }
  .footer-credit {
    font-size: 0.85rem;
  }
  .testimonial-card, .feature-item, .card {
    padding: 15px 10px;
  }
  .cookie-modal-content {
    padding: 18px 5px;
  }
}

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px dotted var(--color-secondary);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #b9b4b4; opacity: 1; }
::-moz-placeholder { color: #b9b4b4; opacity: 1; }
:-ms-input-placeholder { color: #b9b4b4; opacity: 1; }
::placeholder { color: #b9b4b4; opacity: 1; }

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.13s;
}
a, .cta, .footer-nav a, .mobile-nav a {
  transition: color 0.15s, background 0.11s, box-shadow 0.14s, border-color 0.16s;
}

/***** END *****/
