/*
  FurrFinder.com — static multi-page site
  Goals: clean, modern, fast, accessible, SEO-friendly
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f9ff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand-900: #0b2545;
  --brand-700: #124c8a;
  --brand-600: #1d6fd6;
  --accent-600: #16a34a;
  --accent-500: #22c55e;
  --info: #0ea5e9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, 0.06);
  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--brand-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* Top banner (redirect transparency) */
.top-banner {
  background: linear-gradient(90deg, rgba(14,165,233,0.14), rgba(34,197,94,0.14));
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.top-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
}
.top-banner p { margin: 0; color: var(--brand-900); }
.top-banner .banner-actions { display: flex; gap: 10px; align-items: center; }

.btn-link {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-900);
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand .brand-name {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.nav-toggle {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-900);
  margin: 4px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-700);
  text-decoration: underline;
}

.nav-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--info), var(--accent-500));
  color: #071423;
}

.btn-primary:hover { filter: brightness(0.98); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--brand-900);
}

.btn-secondary:hover { border-color: rgba(18, 76, 138, 0.35); }

.micro-disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* Main */
main {
  padding: 28px 0 56px;
}

.hero {
  padding: 46px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  font-weight: 800;
  color: var(--brand-900);
  font-size: 13px;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
}

h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.hero-card img { border-radius: 12px; }

.section {
  padding: 44px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.9), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(226, 232, 240, 0.55);
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card p { margin: 0; color: var(--muted); }

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li { margin: 8px 0; }

.steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(14,165,233,0.14);
  color: var(--brand-900);
  border: 1px solid rgba(14,165,233,0.2);
  flex: 0 0 auto;
}

.callout {
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(18, 76, 138, 0.28);
  background: rgba(14, 165, 233, 0.06);
  color: var(--muted);
}

.page-intro {
  padding: 28px 0 6px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

.faq {
  margin-top: 14px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.faq details + details { margin-top: 10px; }

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p { margin: 10px 0 0; color: var(--muted); }

.cta-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Article typography */
.article {
  max-width: 820px;
}

.article p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article ul { color: var(--muted); }

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.toc h2 { font-size: 16px; margin: 0 0 10px; }
.toc a { color: var(--brand-700); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc ul { margin: 0; padding-left: 18px; }

/* Footer */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.86);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

.webrobur-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.webrobur-credit img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #000;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: none;
}

.cookie-banner .container {
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.84);
}

.cookie-banner a { color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-ctas { flex-direction: column; align-items: stretch; }

  .nav-toggle { display: inline-block; }

  body.nav-open .site-nav { display: flex; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .top-banner .container { flex-direction: column; align-items: flex-start; }
}

/* Footer helpers (matches markup) */
.footer-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #000;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.66);
}

/* WebRobur credit */
.webrobur {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.webrobur img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #000;
}

/* Buttons used as link-like controls */
.linklike {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  color: var(--brand-900);
  cursor: pointer;
}
.linklike:hover { box-shadow: var(--shadow-soft); }

/* Respect the hidden attribute for banners */
.cookie-banner[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Markup compatibility layer (HTML classes used in this build)
   This keeps the site consistent even if templates evolve.
---------------------------------------------------------------------------*/

/* Hero (homepage) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  font-weight: 800;
  color: var(--brand-900);
  font-size: 13px;
}

.hero-media {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.hero-media img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
.section-alt {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.9), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(226, 232, 240, 0.55);
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
}

/* Page header + breadcrumb */
.page-header {
  padding: 28px 0 6px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: rgba(71, 85, 105, 0.7);
}

/* Typography helpers */
.muted { color: var(--muted); }

.micro {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.prose {
  max-width: 820px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
}

.prose ul { color: var(--muted); }

/* CTA row */
.cta-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Checklist list */
.check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.check li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: var(--muted);
}

.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(34, 197, 94, 0.16);
  color: var(--accent-600);
}

/* Link cards */
.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.link-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.link-card h2, .link-card h3 {
  color: var(--brand-900);
}

/* Nav toggle (3 lines) */
.nav-toggle__lines {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-900);
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--brand-900);
}

.nav-toggle__lines::before { top: -6px; }
.nav-toggle__lines::after { top: 6px; }

/* Cookie banner should be visible until accepted (hidden via JS + [hidden]) */
.cookie-banner {
  display: block;
}

.cookie-banner[hidden] {
  display: none;
}

/* Responsive alignment for the homepage hero grid */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Card media helpers (used for SEO-friendly illustrative images) */
.card-media {
  margin-bottom: 12px;
}

.card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Keep the pet's face/eyes in frame on wide crops (used on /per-cani-e-gatti.html) */
.card-media--eyes img {
  object-position: 15% 25%;
}

@media (max-width: 560px) {
  .card-media img { height: 170px; }
}
