/* Canisa Dog Cosmino: culori inspirate de blana negru-roșcat a rasei */
:root {
  --ink: #1d1a16;
  --ink-soft: #4a433a;
  --muted: #776d60;
  --paper: #faf6ef;
  --paper-alt: #f1e9dc;
  --line: #e2d7c5;
  --tan: #b9772a;
  --tan-dark: #8f5918;
  --tan-light: #d39a45;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(29 26 22 / 6%), 0 8px 24px rgb(29 26 22 / 8%);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  /* Footer lipit jos chiar dacă pagina are puțin conținut */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tan-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tan-light); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.25rem; }
.brand-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.nav-call { white-space: nowrap; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.site-nav a:not(.btn):hover { background: var(--paper-alt); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--tan-dark); background: var(--paper-alt); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px 16px 20px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
  .nav-call { text-align: center; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--ink); transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--tan-dark); border-color: var(--tan-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { overflow-x: clip; padding: clamp(40px, 7vw, 96px) 0; background: radial-gradient(circle at 85% 20%, #f3dfbd 0, transparent 55%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--tan-dark); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.hero-photo { margin: 0; position: relative; isolation: isolate; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--tan-light); border-radius: 28px; z-index: -1; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 440px; }
}

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--paper-alt); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 2vw, 16px); }
.note { color: var(--muted); font-size: .95rem; margin-top: 20px; }

.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features li::before { content: ""; display: block; width: 36px; height: 4px; background: var(--tan); border-radius: 2px; margin-bottom: 16px; }
.features p { color: var(--ink-soft); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pair img:last-child { margin-top: 40px; }
.photo-pair img, .photo-stack img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.photo-stack { display: grid; gap: 12px; }
.photo-stack img { aspect-ratio: 4 / 3; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); background: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s, opacity .4s; opacity: .9; }
.card:hover img { transform: scale(1.04); opacity: 1; }
.card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / 70%)); }
.card:hover { color: #fff; }

.logos { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.logos li { background: #fff; border-radius: 10px; padding: 10px 16px; border: 1px solid var(--line); }
.logos img { height: 44px; width: auto; }

.cta { background: var(--ink); color: #fff; text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.cta p { color: #d9cfbf; }

/* Prose */
.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--radius); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--tan); color: #fff; font-size: .8rem; display: grid; place-items: center; margin-top: 3px; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.standard { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.standard h2 { font-size: 1.4rem; }
.standard dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 20px; font-size: .95rem; }
.standard dt { color: var(--muted); }
.standard dd { margin: 0; font-weight: 500; }
.standard ul { padding-left: 1.2em; margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .standard { position: static; } }

/* Dogs */
.dogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.dog { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dog img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dog-body { padding: 20px; }
.dog-body p { margin-bottom: .5em; color: var(--ink-soft); }
.badge { display: inline-block; background: var(--paper-alt); color: var(--tan-dark) !important; font-weight: 600; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }

.table-wrap { overflow-x: auto; }
.matings { width: 100%; max-width: 640px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.matings th, .matings td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.matings th { background: var(--paper-alt); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.matings tr:last-child td { border-bottom: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 40px; }
.gallery-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--paper-alt); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 800px; border-radius: var(--radius); overflow: hidden; background: #000; margin: 20px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgb(15 13 10 / 88%); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; margin: auto; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink-soft); text-decoration: none; transition: border-color .15s, transform .15s; }
a.contact-card:hover { border-color: var(--tan); transform: translateY(-2px); color: var(--ink-soft); }
.contact-card strong { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-label { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 600; color: var(--tan-dark); }

/* Footer */
.site-footer { background: var(--ink); color: #cfc4b3; padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #f0d6aa; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-title { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 600; color: #fff; }
.assoc { display: flex; gap: 12px; }
.assoc img { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 40px; padding: 20px 0; font-size: .85rem; color: #9d9282; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
