@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary:      #8B7CC8;
  --primary-dark: #4B3F72;
  --accent:       #E8C4A0;
  --highlight:    #7EC8C8;
  --bg:           #F9F7FF;
  --bg-card:      #FFFFFF;
  --text:         #2C2C3E;
  --text-muted:   #6B6480;
  --border:       #DDD5F0;
  --shadow:       rgba(75,63,114,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--primary-dark);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ── */
#main-nav {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #6B5BA8 50%, var(--primary) 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 760px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  min-height: 48px;
  min-width: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }

.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 2px 16px var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
}

.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}
.card-excerpt { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ── TOOLS SECTION ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.tool-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #6B5BA8 100%);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px var(--shadow);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(75,63,114,0.25); }
.tool-icon { font-size: 2.5rem; }
.tool-card h3 { color: #fff; font-size: 1.3rem; }
.tool-card p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.tool-card .btn-tool {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  align-self: flex-start;
  transition: transform 0.2s;
}
.tool-card .btn-tool:hover { transform: translateY(-2px); text-decoration: none; }

/* ── TOOL FORM PAGE ── */
.tool-page { padding: 3rem 0 4rem; }
.tool-header { text-align: center; margin-bottom: 2.5rem; }
.tool-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tool-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 0.5rem; }

.tool-form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px var(--shadow);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { min-height: 110px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.btn-submit {
  background: var(--primary-dark);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: #3a2f5e; transform: translateY(-2px); }

.cf-turnstile { margin-bottom: 1.25rem; }

.result-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px var(--shadow);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  border-left: 4px solid var(--primary);
}
.result-box h2 { color: var(--primary-dark); margin-bottom: 1rem; font-size: 1.4rem; }
.result-box h3 { color: var(--primary-dark); margin: 1.25rem 0 0.5rem; font-size: 1.1rem; }
.result-box ul { padding-left: 1.4rem; margin-bottom: 0.75rem; }
.result-box li { margin-bottom: 0.4rem; }
.result-box p { margin-bottom: 0.75rem; }

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin: 0 auto 1.25rem;
  border: 4px solid;
}
.score-good   { background: #e8faf0; color: #1a7a4a; border-color: #1a7a4a; }
.score-fair   { background: #fff8e8; color: #b07a00; border-color: #e6a800; }
.score-poor   { background: #fdecea; color: #c0392b; border-color: #e74c3c; }

/* ── AFFILIATE BOX ── */
.affiliate-box {
  background: linear-gradient(135deg, #f5f0ff 0%, #e8f8f8 100%);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.affiliate-box h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--primary-dark); }
.affiliate-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.affiliate-link-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.affiliate-link-btn:hover { transform: translateY(-2px); text-decoration: none; }
.aff-derila  { background: var(--primary); color: #fff; }
.aff-puffy   { background: var(--highlight); color: var(--primary-dark); }
.aff-amazon  { background: #FF9900; color: #111; }

/* ── ABOUT TEASER ── */
.about-teaser {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--primary);
  background: var(--border);
}
.about-text h2 { text-align: left; margin-bottom: 0.6rem; }
.about-text p  { color: var(--text-muted); }

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.blog-categories { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-tag {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--border);
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cat-tag:hover, .cat-tag.active {
  background: var(--primary);
  color: #fff;
}

/* ── ARTICLE ── */
.article-wrap { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.article-body h2 { font-size: 1.55rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }
.article-body p  { margin-bottom: 1.2rem; }
.article-body ul,
.article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a  { color: var(--primary); font-weight: 600; }

.amazon-disclosure {
  background: #fff8e8;
  border: 1px solid #e6d58a;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.86rem;
  color: #5a4a00;
  margin: 2rem 0;
}

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.4rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-top: 3px solid var(--primary);
}
.news-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.news-card p  { font-size: 0.9rem; color: var(--text-muted); }
.news-source  { font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-top: 0.6rem; }

/* ── CONTACT / FORMS ── */
.contact-wrap { max-width: 720px; margin: 3rem auto; padding: 0 1.5rem; }
.contact-intro {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--highlight);
  box-shadow: 0 2px 12px var(--shadow);
}
.contact-intro h3 { margin-bottom: 0.6rem; }
.contact-intro ul { padding-left: 1.25rem; color: var(--text-muted); }
.contact-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px var(--shadow);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.alert-success { background: #e8faf0; color: #1a7a4a; border: 1px solid #a8e6c4; }
.alert-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5b7b1; }

/* ── FOOTER ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-about h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.footer-about p { font-size: 0.92rem; line-height: 1.7; }

.footer-links h4,
.footer-legal h4 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-links ul,
.footer-legal ul { list-style: none; }
.footer-links li,
.footer-legal li { margin-bottom: 0.4rem; }
.footer-links a,
.footer-legal a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-legal a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--accent); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary-dark);
  color: #f0ecff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
#cookie-banner p { margin: 0; font-size: 0.92rem; }
#cookie-banner a { color: var(--accent); text-decoration: underline; }
#cookie-accept {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  #cookie-banner { flex-direction: column; text-align: center; gap: 0.75rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-about   { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .about-teaser { flex-direction: column; text-align: center; }
  .about-text h2 { text-align: center; }
}

@media (max-width: 600px) {
  .footer-content { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 2.5rem 0; }
  .tool-form-card, .result-box, .contact-form-card { padding: 1.5rem; }
}
