/* --- Twilight Hut CSS Reset | Normalize | Variables --- */
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, ul, ol, 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: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  background: #FFF;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #263238;
  background: #FFF;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style-position: inside;
  margin-left: 1em;
}
strong, b {
  font-weight: bold;
}
a {
  color: #4EB0A7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #263238;
  text-decoration: underline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}

/* Root variables for colors and fonts */
:root {
  --color-primary: #263238;
  --color-secondary: #4EB0A7;
  --color-accent: #F5F5F5;
  --color-warm-peach: #FFECDF;
  --color-warm-orange: #FFAD7B;
  --color-card-bg: #FFF9F4;
  --color-shadow: rgba(38, 50, 56, 0.12);
  --color-testimonial-bg: #FFFAF4;
  --color-btn-text: #fff;
  --font-display: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* --- Layout & Spacing --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 32px var(--color-shadow);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
}
.card:hover,
.card:focus {
  box-shadow: 0 8px 36px rgba(38,50,56,0.18);
  transform: translateY(-4px) scale(1.01);
}
.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;
  background: var(--color-testimonial-bg);
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(38, 50, 56, 0.10);
  font-size: 1.06em;
  color: #263238;
  transition: box-shadow 0.2s;
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.1em;
}
.testimonial-card cite {
  color: #4EB0A7;
  font-size: 0.93em;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Core Design: Warm Friendly --- */
header, footer {
  background: var(--color-accent);
  box-shadow: 0 2px 12px var(--color-shadow);
}
header .container,
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
header nav,
footer nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
header img, footer img {
  height: 44px;
  border-radius: 14px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 8px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 24px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
p, ul, ol, blockquote {
  color: #374147;
  font-size: 1.08rem;
  margin-bottom: 5px;
}
blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 16px;
  color: #263238;
}
ul, ol {
  line-height: 1.8;
  margin-bottom: 12px;
}
.price {
  color: var(--color-warm-orange);
  font-weight: bold;
  font-size: 1.1em;
  margin-left: 8px;
}

/* --- Buttons & Calls to Action --- */
.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--color-secondary);
  color: var(--color-btn-text);
  padding: 0.85em 2.6em;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-align: center;
  font-size: 1.10em;
  cursor: pointer;
  outline: none;
  transition: background 0.23s, box-shadow 0.2s, transform 0.17s;
  margin-top: 12px;
}
.cta.primary {
  background: var(--color-warm-orange);
  color: var(--color-primary);
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(38,50,56,0.14);
  transform: translateY(-2px) scale(1.03);
}

button, .faq button, .cookie-btn {
  font-family: var(--font-display);
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 7px var(--color-shadow);
  background: var(--color-warm-orange);
  color: var(--color-primary);
  padding: 0.6em 1.5em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.25s, box-shadow 0.2s, transform 0.13s;
}
button:hover, button:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* --- Feature Grids and Cards --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: var(--color-card-bg);
  border-radius: 22px;
  box-shadow: 0 2px 12px var(--color-shadow);
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 340px;
  padding: 24px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover,
.feature-grid > div:focus {
  box-shadow: 0 8px 32px rgba(38,50,56,0.16);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--color-warm-peach);
  padding: 4px;
}

/* --- Blog Article Grid & Newsletter --- */
.blog-article-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-article-grid > div {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px 18px;
  max-width: 340px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-article-grid a {
  font-weight: 600;
  color: var(--color-secondary);
  transition: color 0.2s;
}
.blog-article-grid a:hover,
.blog-article-grid a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

.blog-categories {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 1.06em;
  margin-bottom: 8px;
}
.blog-categories span {
  background: var(--color-warm-peach);
  color: var(--color-primary);
  padding: 5px 15px;
  border-radius: 18px;
  font-size: 0.98em;
}

.author-highlights {
  display: flex;
  gap: 12px;
  flex-direction: column;
  margin-bottom: 16px;
}
.newsletter-signup {
  margin-top: 14px;
  background: var(--color-warm-peach);
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stat-highlights {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
  flex-direction: row;
}
.stat-highlights > div {
  background: var(--color-warm-peach);
  color: var(--color-primary);
  border-radius: 16px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 1.08em;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.faq > div {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 15px 17px;
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 1020;
  box-shadow: none;
  padding: 0.2em 0.6em;
  transition: color 0.16s, background 0.18s;
}
.mobile-menu-toggle:focus {
  background: var(--color-warm-peach);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 40px rgba(38,50,56,0.13);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.7,0,0.3,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  color: var(--color-secondary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.19s;
  z-index: 1201;
}
.mobile-menu-close:focus {
  background: var(--color-warm-peach);
  border-radius: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}
.mobile-nav a {
  color: var(--color-primary);
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-radius: 7px;
  background: transparent;
  transition: background 0.18s, color 0.2s;
  width: 100%;
  display: block;
  text-align: left;
  font-weight: 500;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-warm-peach);
  color: var(--color-secondary);
}

/* Hide nav and cta on mobile, show burger */
@media (max-width: 900px) {
  header nav, header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  background: var(--color-warm-peach);
  color: var(--color-primary);
  padding: 22px 18px 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -2px 24px rgba(38, 50, 56, 0.08);
  font-size: 1rem;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.29s;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin-left: 12px;
  margin-top: 7px;
  min-width: 120px;
  font-size: 1em;
  font-weight: 600;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-banner .cookie-btn.reject:hover {
  color: #fff;
  background: var(--color-secondary);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,50,56,0.12);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 46px rgba(38,50,56,0.18);
  max-width: 440px;
  padding: 36px 28px 30px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 2100;
  animation: cookies-fade-in 0.34s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookies-fade-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96);} 
  to { opacity: 1; transform: translateY(0) scale(1);}
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 7px;
}
.cookie-modal label {
  font-size: 1.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-modal .toggle {
  width: 38px; height: 20px;
  border-radius: 14px;
  background: var(--color-warm-peach);
  border: 1px solid #E8DED4;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .toggle.checked {
  background: var(--color-secondary);
}
.cookie-modal .toggle-inner {
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.22s;
}
.cookie-modal .toggle.checked .toggle-inner {
  left: 20px;
}
.cookie-modal .donetext {
  color: var(--color-secondary);
}
.cookie-modal .cookie-btn {
  margin-top: 7px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  color: var(--color-secondary);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-primary);
}

/* --- Footer --- */
footer {
  margin-top: 60px;
  padding: 36px 0 18px 0;
  border-top: 2px solid var(--color-accent);
}
footer nav {
  gap: 20px;
}
footer .social-links a img {
  background: var(--color-warm-peach);
  padding: 6px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.16s;
}
footer .social-links a img:hover,
footer .social-links a img:focus {
  background: var(--color-secondary);
}
footer .container {
  align-items: flex-end;
}

/* --- Responsive Design (Mobile First) --- */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid {
    gap: 14px;
    justify-content: center;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 1em;
  }
  .stat-highlights {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.12rem; }
  .feature-grid > div,
  .blog-article-grid > div {
    min-width: 170px;
    padding: 13px 11px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    font-size: 0.97em;
    padding: 13px 10px;
    border-radius: 13px;
  }
  .content-wrapper, .text-section {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .feature-grid,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .author-highlights { flex-direction: column; }
  .stat-highlights { gap: 9px; }
}

/* --- Micro-interactions & Subtle Animations --- */
.cta, .cookie-btn, .card, .feature-grid > div, .blog-article-grid > div {
  will-change: box-shadow, transform;
}

/* --- Utility classes (if needed in HTML) --- */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center; }

/* --- END Twilight Hut Warm Friendly CSS --- */
