:root {
  --cream: #fff8ed;
  --paper: #ffffff;
  --coral: #ef6f61;
  --coral-dark: #c84d42;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --ink: #2f2a3d;
  --muted: #6c6578;
  --sage: #e8f3ea;
  --line: #eadfce;
  --gold: #f4c95d;
  --shadow: 0 18px 45px rgba(69, 50, 36, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.64;
}
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 248, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo img { display: block; width: 205px; height: auto; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .back-link, .inline-back {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.1;
}
.nav a:hover, .back-link:hover, .inline-back:hover { color: var(--teal); background: var(--sage); border-color: #d7e9db; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 13px; font-weight: 900; }
.hero {
  background:
    radial-gradient(circle at 14% 20%, rgba(244, 201, 93, .58), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(20, 184, 166, .28), transparent 25%),
    linear-gradient(135deg, #fff3d6 0%, #f8d8cf 46%, #dceee8 100%);
  padding: 96px 0 88px;
}
.hero-inner { max-width: 920px; }
.eyebrow { color: var(--teal); font-weight: 950; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 66px); line-height: 1.03; margin: 0 0 16px; max-width: 980px; }
.hero p { color: #524a5f; font-size: 21px; max-width: 760px; margin: 0 0 34px; }
.search-strip { background: var(--teal); padding: 24px 0; }
.search-form { display: flex; gap: 14px; max-width: 920px; }
.search-form input {
  flex: 1; min-width: 0; height: 52px; border-radius: 12px; border: 1px solid #dbcdb9;
  padding: 0 18px; font-size: 16px; color: var(--ink); background: var(--paper);
}
.search-form button {
  min-width: 174px; height: 52px; border-radius: 12px; border: 0; background: var(--coral);
  color: #fff; font-weight: 950; font-size: 16px; cursor: pointer;
}
.hero-search button { background: var(--teal); }
.featured { padding: 44px 0 20px; background: var(--paper); }
.section-title, .az-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-size: 30px; }
.section-title a, .az-head a { color: var(--coral-dark); font-weight: 900; text-decoration: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  position: relative; display: block; border-radius: 8px; overflow: hidden; min-height: 210px;
  box-shadow: var(--shadow); color: #fff; text-decoration: none; background: var(--teal);
}
.feature-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card span {
  position: absolute; left: 16px; bottom: 16px; background: rgba(47,42,61,.82);
  border-radius: 999px; padding: 8px 13px; font-weight: 950;
}
.az { padding: 42px 0 68px; background: var(--cream); }
.az-head { border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.az-head b { letter-spacing: 8px; color: var(--teal); }
.cat-grid {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px 34px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 30px; box-shadow: var(--shadow);
}
.cat-grid a {
  display: block; padding: 17px 0 17px 24px; border-bottom: 1px solid #eadfce;
  color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 850; position: relative;
}
.cat-grid a::before { content: "›"; position: absolute; left: 0; color: var(--coral); font-size: 24px; top: 11px; }
.page { padding: 50px 0 86px; }
.topic-head { max-width: 820px; margin-bottom: 24px; }
.topic-head h1, .search-hero h1, .legal h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; margin: 0 0 12px; }
.topic-head p, .search-info { color: var(--muted); font-weight: 750; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card, .result-card {
  display: block; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .result-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(69,50,36,.16); }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.card-body { padding: 22px 24px 24px; }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--sage);
  color: var(--teal); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .04em;
}
.card h2, .card h3 { font-size: 22px; line-height: 1.25; margin: 13px 0 8px; color: var(--ink); }
.card p { color: var(--muted); margin: 0 0 12px; }
.read-more { color: var(--coral-dark); text-decoration: none; font-weight: 950; }
.search-hero { background: #fff3e6; border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.search-form-large { margin: 0; max-width: 900px; }
.search-tools { margin-bottom: 22px; }
.quick-searches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-weight: 850; }
.quick-searches a { color: var(--teal); text-decoration: none; background: var(--sage); border: 1px solid #d7e9db; border-radius: 999px; padding: 7px 11px; }
.empty-state { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 340px; gap: 48px; align-items: start; }
.article, .legal { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.article h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.13; margin: 0 0 18px; }
.article h2 { font-size: 29px; line-height: 1.18; margin: 34px 0 10px; }
.main-img, .side-img { width: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); height: auto; }
.guide-box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fffaf3; margin: 28px 0; }
.guide-row { display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; margin: 10px 0; background: var(--paper); }
.guide-icon { color: var(--coral); font-size: 26px; line-height: 1; font-weight: 950; }
.cta-list { margin: 28px 0; }
.cta-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--teal);
  color: #fff; text-decoration: none; border-radius: 8px; margin: 12px 0; padding: 16px 18px; font-size: 18px; font-weight: 900;
}
.yellow-btn { display: block; text-align: center; background: var(--gold); color: var(--ink); text-decoration: none; border-radius: 8px; padding: 13px; font-weight: 950; }
.comparison { border-collapse: collapse; width: 100%; margin: 16px 0; background: #fff; }
.comparison th { background: var(--ink); color: #fff; }
.comparison th, .comparison td { border: 1px solid var(--line); padding: 9px; text-align: left; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 20px; position: sticky; top: 100px; }
.side-card h2 { font-size: 24px; margin: 0 0 18px; border-bottom: 4px solid var(--coral); padding-bottom: 8px; }
.side-card a { display: block; color: var(--ink); text-decoration: none; font-weight: 850; margin: 16px 0; padding-left: 22px; position: relative; }
.side-card a::before { content: "•"; position: absolute; left: 0; color: var(--coral); top: 0; }
.rsoc-slot { min-height: 160px; border: 1px dashed var(--line); background: #fffaf3; border-radius: 8px; }
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 18px; background: var(--ink); color: #fff;
  padding: 16px; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.3); display: none; z-index: 40;
}
.cookie p { margin: 0 0 10px; }
.cookie button { padding: 9px 16px; border-radius: 8px; border: 0; margin-right: 8px; font-weight: 900; cursor: pointer; }
#cookie-accept { background: var(--gold); color: var(--ink); }
#cookie-reject { background: #f1e8da; color: var(--ink); }
.site-footer { background: var(--ink); color: #efe8dc; padding: 34px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-brand img { display: block; width: 210px; height: auto; background: #fff8ed; border-radius: 8px; padding: 5px; }
.footer-brand p { margin: 14px 0 0; color: #d8cab8; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.foot-links a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 750; }
.foot-links a:hover { color: var(--gold); }
.footer-copy { border-top: 1px solid rgba(255,255,255,.14); margin-top: 24px; padding-top: 18px; text-align: center; color: #d8cab8; font-size: 14px; }
@media (max-width: 960px) {
  .logo img { width: 200px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 12px; justify-content: flex-start; }
  .nav.is-open { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); padding: 22px; }
  .cards, .feature-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .logo img { width: 180px; }
  .search-form { flex-direction: column; }
  .search-form button { width: 100%; }
  .hero { padding: 66px 0; }
  .cards, .feature-grid, .cat-grid, .foot-links { grid-template-columns: 1fr; }
  .article, .legal { padding: 22px; }
}

/* SERP-style search page */
.serp-body {
  background: #fff;
}
.serp-search-strip {
  background: #2f2a3d;
  padding: 18px 0;
}
.serp-search-form {
  width: min(1138px, calc(100% - 32px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin: 0 auto;
}
.serp-search-form input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cbb9a4;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.serp-search-form button {
  height: 44px;
  min-width: 0;
  border-radius: 12px;
  border: 2px solid #f1c6bb;
  background: #fff3e6;
  color: #b74d42;
  font-weight: 500;
}
.serp-page {
  min-height: 660px;
  padding: 48px 0 72px;
  background: #fff;
}
.serp-container {
  width: min(1110px, calc(100% - 32px));
  margin: 0 auto;
}
.serp-info {
  color: #4b5563;
  font-size: 14px;
  margin: 0 0 18px;
}
.serp-ad {
  margin: 0 0 20px;
  overflow: hidden;
}
.serp-ad:empty {
  display: none;
}
.serp-ad-label {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}
.serp-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 8px;
  overflow: hidden;
  max-width: 100%;
}
.serp-product {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  color: #1a0dab;
  text-decoration: none;
  min-height: 176px;
  background: #fff;
}
.serp-product img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}
.serp-product-title {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  max-height: 50px;
  overflow: hidden;
}
.serp-product-meta {
  display: block;
  margin-top: 6px;
  color: #4b5563;
  font-size: 12px;
}
.serp-results {
  max-width: 1040px;
}
.serp-result {
  margin: 0 0 24px;
}
.serp-title {
  color: #1a0dab;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: underline;
}
.serp-url {
  color: #008000;
  font-size: 14px;
  margin: 3px 0 5px;
}
.serp-result p {
  color: #111827;
  max-width: 980px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.serp-empty {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px;
  max-width: 680px;
  background: #fff;
}
.serp-empty p {
  margin: 6px 0 0;
  color: #4b5563;
}
.serp-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.serp-popular a {
  color: #1a0dab;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 14px;
}
@media (max-width: 760px) {
  .serp-search-form {
    grid-template-columns: 1fr;
  }
  .serp-products {
    grid-auto-columns: 138px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .serp-page {
    padding-top: 30px;
  }
}


.serp-ad-slot {
  min-height: 8px;
  margin: 0 0 8px;
}
.serp-ad-slot:empty {
  display: block;
}

/* Polished contact and legal pages */
.contact-page {
  padding: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 201, 93, 0.2), transparent 28%),
    linear-gradient(180deg, #fff8ed 0%, #ffffff 44%, #fff8ed 100%);
}
.contact-hero {
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 20%, rgba(20, 184, 166, 0.18), transparent 27%),
    radial-gradient(circle at 82% 8%, rgba(239, 111, 97, 0.16), transparent 25%),
    linear-gradient(135deg, #fff8ed 0%, #fff1df 58%, #eaf6ef 100%);
}
.contact-hero h1 {
  max-width: 940px;
  margin: 4px 0 14px;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 820px;
  margin: 0;
  color: #574f63;
  font-size: 19px;
  font-weight: 650;
}
.contact-grid-section {
  padding: 34px 0 82px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.contact-card,
.contact-info,
.contact-form,
.faq-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(69, 50, 36, 0.1);
}
.contact-card {
  min-height: 230px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: #d7e9db;
  box-shadow: 0 22px 44px rgba(69, 50, 36, 0.14);
}
.contact-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--sage), #fff3d6);
  color: var(--teal);
  border: 1px solid #d7e9db;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}
.contact-card h2,
.contact-info h2,
.contact-form h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}
.contact-card p,
.contact-info p,
.faq-box p {
  margin: 0 0 12px;
  color: var(--muted);
}
.contact-card a {
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: break-word;
}
.contact-card a:hover {
  text-decoration: underline;
}
.contact-form-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}
.contact-info,
.contact-form {
  padding: 26px;
}
.contact-info ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.contact-info li {
  position: relative;
  margin: 11px 0;
  padding-left: 28px;
  color: #4d4558;
  font-weight: 700;
}
.contact-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 5px #fff1df;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dbcdb9;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input,
.field select {
  min-height: 48px;
}
.field textarea {
  resize: vertical;
  min-height: 150px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-2);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}
.btn-contact {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #fff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.22);
}
.btn-contact:hover {
  filter: brightness(1.04);
}
.contact-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.faq-box {
  padding: 22px;
  border-top: 4px solid var(--gold);
}
.faq-box h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}
.faq-box p {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-form-wrapper,
  .contact-bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .contact-hero {
    padding: 42px 0 32px;
  }
  .hero-lead {
    font-size: 17px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info,
  .contact-form,
  .contact-card,
  .faq-box {
    padding: 20px;
  }
}
