:root {
  --primary-dark:  #0D1B3E;
  --primary:       #1A3A6B;
  --accent:        #E8A020;
  --highlight:     #4FC3F7;
  --bg:            #F5F7FA;
  --text:          #1A1A2E;
  --text-light:    #4A5568;
  --card-bg:       #FFFFFF;
  --border:        #DDE3ED;
  --radius:        8px;
  --shadow:        0 2px 12px rgba(13,27,62,0.10);
  --shadow-hover:  0 6px 24px rgba(13,27,62,0.18);
}

*, *::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,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--primary-dark);
}

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

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

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

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

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.brand span { color: var(--accent); }
.brand:hover { color: #fff; }

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: #d4911a !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(79,195,247,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { max-width: 780px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(232,160,32,0.35);
}
.btn-primary:hover { background: #d4911a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.45); color: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }

.btn-secondary {
  background: var(--primary);
  color: #fff;
}
.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: #fff; }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-dark h2 { color: #fff; }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

.accent-line {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

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

.card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--text-light); flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
}
.card-link:hover { color: var(--accent); }

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

.tool-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.tool-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

.tool-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.tool-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.2rem; }
.tool-card p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-bottom: 1.25rem; }

/* ── TOOL FORM PAGES ─────────────────────────────────────────── */
.tool-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.tool-hero p  { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

.tool-form-wrap {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

input[type=text], input[type=email], textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

textarea { resize: vertical; min-height: 100px; }

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

.btn-full { width: 100%; justify-content: center; }

.result-box {
  margin-top: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
}
.result-box h2 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary-dark); }
.result-content { line-height: 1.8; }
.result-content h2 { font-size: 1.2rem; margin: 1.25rem 0 0.4rem; }
.result-content h3 { font-size: 1.05rem; margin: 1rem 0 0.3rem; }
.result-content ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.result-content li { margin-bottom: 0.3rem; }
.result-content strong { color: var(--primary-dark); }

.affiliate-box {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.affiliate-box h4 { font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.affiliate-box p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; }

.error-msg { color: #c0392b; background: #fdf0ef; border: 1px solid #f5c6cb; border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.92rem; }

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

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.cat-tag {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tag:hover, .cat-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.article-body { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-body h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.5rem; }
.article-meta { color: var(--text-light); font-size: 0.88rem; margin-bottom: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.article-body p  { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 0.75rem 0 1.1rem; }
.article-body li { margin-bottom: 0.35rem; }
.article-body a  { color: var(--primary); border-bottom: 1px solid rgba(26,58,107,0.3); }
.article-body a:hover { color: var(--accent); border-color: var(--accent); }

.amazon-disclosure {
  background: #f9f9f9;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── AUTHOR BOX ──────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}
.author-box h4 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--primary-dark); }
.author-box p  { font-size: 0.88rem; color: var(--text-light); }

/* ── ABOUT / STATIC PAGES ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: rgba(255,255,255,0.8); margin-top: 0.5rem; }

.page-body { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; }
.page-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--primary-dark); }
.page-body h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }
.page-body p  { margin-bottom: 1rem; }
.page-body ul { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
.page-body li { margin-bottom: 0.35rem; }
.page-body a  { color: var(--primary); }
.page-body a:hover { color: var(--accent); }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.contact-info p  { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0.5rem; }
.contact-info ul { list-style: none; margin-top: 1rem; }
.contact-info li { font-size: 0.9rem; color: var(--text-light); padding: 0.3rem 0; }

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 2rem 1.5rem;
}
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}
.stat-item strong { display: block; font-size: 2rem; font-family: 'Playfair Display', serif; color: var(--accent); }
.stat-item span   { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ── NEWSLETTER CTA ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #d4911a 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--primary-dark);
}
.cta-section h2 { color: var(--primary-dark); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.cta-section p  { color: rgba(13,27,62,0.75); margin-bottom: 1.5rem; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: 0.75rem; }
.footer-brand span { color: var(--accent); }
.footer-about { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 0.4rem; }
.footer-col a   { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ── NEWS PAGE ───────────────────────────────────────────────── */
.news-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.news-item:last-child { border-bottom: none; }
.news-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.news-item h3 a { color: var(--primary-dark); }
.news-item h3 a:hover { color: var(--accent); }
.news-item p  { font-size: 0.9rem; color: var(--text-light); }
.news-source { font-size: 0.78rem; color: var(--highlight); font-weight: 700; }

/* ── TIMER (tracker) ─────────────────────────────────────────── */
.timer-display {
  font-size: 5rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
  text-align: center;
  margin: 2rem 0 1rem;
  letter-spacing: 4px;
}
.timer-controls { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

/* ── COOKIE BANNER ───────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  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-banner button {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  min-height: 38px;
  white-space: nowrap;
}
#cookie-banner button:hover { background: #d4911a; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-2  { margin-bottom: 1rem; }
.highlight-tag {
  display: inline-block;
  background: rgba(79,195,247,0.12);
  color: var(--primary);
  border: 1px solid rgba(79,195,247,0.35);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

@media (max-width: 700px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem 0 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    gap: 0.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 1.5rem; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .cards-grid, .blog-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .author-box { flex-direction: column; }
  .stats-inner { gap: 1.5rem; }
  .timer-display { font-size: 3.5rem; }
}

@media (max-width: 480px) {
  #cookie-banner { flex-direction: column; text-align: center; gap: 0.75rem; }
  .form-card { padding: 1.25rem 1rem; }
  .result-box { padding: 1.25rem 1rem; }
}

input, textarea, select { font-size: 16px !important; }

a, button { min-height: 44px; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
