/* ===== Toolmato Reviews: main stylesheet ===== */
:root {
  --tomato: #ff5a3c;
  --tomato-dark: #e8432a;
  --tomato-soft: #ffe9e4;
  --ink: #1b1b2f;
  --ink-soft: #4a4a63;
  --cream: #fff8f3;
  --white: #ffffff;
  --leaf: #2e9e6b;
  --sun: #ffb830;
  --line: #f0e3db;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 27, 47, 0.08);
  --shadow-hover: 0 18px 40px rgba(255, 90, 60, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.muted { color: var(--ink-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.3rem; }
.logo-mark { font-size: 1.6rem; }
.logo-text em { font-style: normal; color: var(--tomato); }
.main-nav { display: flex; gap: 28px; font-weight: 500; font-size: 0.95rem; }
.main-nav a { position: relative; color: var(--ink-soft); transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--tomato); transition: width .25s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; width: 24px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 90, 60, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 184, 48, 0.2), transparent 40%),
    var(--cream);
  padding: 80px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block; background: var(--tomato-soft); color: var(--tomato-dark);
  padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 800px; margin: 0 auto 18px; }
.hl { color: var(--tomato); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(255, 184, 48, 0.45); z-index: -1; border-radius: 6px;
}
.hero-sub { max-width: 560px; margin: 0 auto 32px; color: var(--ink-soft); font-size: 1.1rem; }

.search {
  display: flex; max-width: 620px; margin: 0 auto 22px;
  background: var(--white); border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.search input { flex: 1; border: 0; outline: 0; padding: 12px 20px; font: inherit; background: transparent; min-width: 0; }
.search button, .newsletter button {
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--tomato); color: var(--white);
  padding: 12px 26px; border-radius: 999px; transition: background .2s, transform .2s;
}
.search button:hover, .newsletter button:hover { background: var(--tomato-dark); transform: translateY(-1px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500;
  transition: .2s;
}
.chip:hover { border-color: var(--tomato); color: var(--tomato); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.stats { display: flex; justify-content: center; gap: 48px; list-style: none; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: "Fraunces", serif; font-size: 1.7rem; color: var(--tomato); }
.stats span { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2, .two-col h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); }

/* ===== Categories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--tomato); }
.cat-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font-size: 1.6rem; margin-bottom: 14px; background: var(--tomato-soft);
}
.c2 .cat-icon { background: #fff3d6; }
.c3 .cat-icon { background: #e6f5ee; }
.c4 .cat-icon { background: #e8ecff; }
.c5 .cat-icon { background: #f3e8ff; }
.c6 .cat-icon { background: #e1f4f7; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.cat-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Review cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card.hide { display: none; }
.card-thumb {
  position: relative; height: 150px; display: grid; place-items: center; font-size: 3.4rem;
}
.t1 { background: linear-gradient(135deg, #ffd9cf, #ffb4a1); }
.t2 { background: linear-gradient(135deg, #e0d4ff, #bda9ff); }
.t3 { background: linear-gradient(135deg, #ffefc2, #ffd36e); }
.t4 { background: linear-gradient(135deg, #cdeede, #8fd8b4); }
.t5 { background: linear-gradient(135deg, #d2e0ff, #9db9ff); }
.t6 { background: linear-gradient(135deg, #ffd4ea, #ff9fcf); }
.badge {
  position: absolute; top: 12px; left: 12px; font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 600;
  background: var(--white); padding: 4px 12px; border-radius: 999px;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1rem; margin-bottom: 6px; }
.stars small { color: var(--ink-soft); letter-spacing: 0; font-size: 0.82rem; margin-left: 6px; font-weight: 600; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card h3 a:hover { color: var(--tomato); }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--ink-soft); }
.verdict { color: var(--leaf); font-weight: 600; }
.no-results { text-align: center; margin-top: 30px; color: var(--ink-soft); }

/* ===== Top rated + newsletter ===== */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.rank-list { list-style: none; margin-top: 22px; }
.rank-list li {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; transition: .2s;
}
.rank-list li:hover { border-color: var(--tomato); transform: translateX(4px); }
.rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tomato-soft); color: var(--tomato-dark); font-weight: 700; }
.rank-list li:first-child .rank { background: var(--sun); color: var(--ink); }
.rank-list a { flex: 1; font-weight: 600; }
.score { font-weight: 700; color: var(--leaf); }

.newsletter {
  background: var(--ink); color: var(--white); border-radius: 24px; padding: 36px;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px;
  background: var(--tomato); opacity: 0.35; border-radius: 50%;
}
.newsletter > * { position: relative; }
.newsletter h3 { font-size: 1.5rem; margin-bottom: 8px; }
.newsletter p { color: #c9c9df; margin-bottom: 20px; }
.newsletter form { display: flex; gap: 8px; background: var(--white); padding: 6px; border-radius: 999px; }
.newsletter input { flex: 1; border: 0; outline: 0; padding: 10px 16px; font: inherit; border-radius: 999px; min-width: 0; }
.newsletter small { display: block; margin-top: 12px; min-height: 1.2em; color: var(--sun); }

/* ===== How we review ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 28px 22px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--tomato); color: var(--white); font-weight: 700; margin-bottom: 14px; font-family: "Fraunces", serif; font-size: 1.2rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ===== About ===== */
.about { max-width: 720px; text-align: center; }
.about h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.about p { color: var(--ink-soft); }
.about a { color: var(--tomato); font-weight: 600; text-decoration: underline; }

/* ===== Footer (normal flow, not fixed) ===== */
.site-footer { background: var(--ink); color: #c9c9df; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.site-footer .logo { color: var(--white); margin-bottom: 10px; }
.f-links h4 { color: var(--white); font-family: "Inter", sans-serif; font-size: 0.95rem; margin-bottom: 12px; }
.f-links a { display: block; font-size: 0.9rem; margin-bottom: 8px; transition: color .2s; }
.f-links a:hover { color: var(--tomato); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cat-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav a { padding: 14px 4%; border-top: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 56px 0 44px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cat-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search { flex-direction: column; border-radius: 22px; }
  .search button { width: 100%; }
  .stats { gap: 28px; }
}
