/* =========================================================
   cockapoo.pl — redesign 2026 (paleta „sage")
   Design system: Newsreader (serif nagłówki) + Mulish (sans)
   ========================================================= */

:root {
  /* --- Paleta sage (wybrana) --- */
  --bg: #F7F3EA;
  --surface: #FFFFFF;
  --surface-alt: #EFE9DC;
  --ink: #29281F;
  --muted: #6B6657;
  --line: #E2DBCB;
  --accent: #5E7355;
  --accent-deep: #45563E;
  --accent-soft: #E8EADF;
  --gold: #BE9A5C;

  /* --- Aliasy zgodności (stare strony: galeria/artykuly/faq) --- */
  --primary: var(--accent);
  --primary-dark: var(--accent-deep);
  --secondary: var(--gold);
  --secondary-dark: var(--gold);
  --dark: var(--ink);
  --dark-light: #3a3930;
  --light: var(--bg);
  --white: var(--surface);
  --gray-100: #F8F9FA;
  --gray-200: var(--surface-alt);
  --gray-300: var(--line);
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: var(--muted);
  --gray-700: #495057;
  --gray-800: var(--ink);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: #ADB5BD;
  --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  --gradient-dark: linear-gradient(135deg, var(--ink) 0%, #3a3930 100%);
  --gradient-light: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);

  --shadow-sm: 0 2px 4px rgba(40, 38, 30, 0.05);
  --shadow-md: 0 4px 12px rgba(40, 38, 30, 0.08);
  --shadow-lg: 0 8px 24px rgba(40, 38, 30, 0.12);
  --shadow-xl: 0 18px 48px -18px rgba(40, 38, 30, 0.35);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.5s ease;

  --container: 1200px;
}

/* --- Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }

/* =========================================================
   Layout
   ========================================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  padding: 7px 14px; border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.eyebrow--pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.h-xl { font-size: clamp(38px, 6vw, 58px); line-height: 1.04; }
.h-lg { font-size: clamp(30px, 4.5vw, 42px); }
.h-md { font-size: clamp(26px, 3.5vw, 38px); }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.measure { max-width: 36em; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-full);
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  cursor: pointer; border: 1.5px solid transparent;
  transition: var(--transition-normal);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--light { background: #fff; color: var(--accent-deep); }
.btn--light:hover { transform: translateY(-1px); }
.btn--block { width: 100%; justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent-deep);
  transition: gap var(--transition-normal);
}
.textlink:hover { gap: 12px; }

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  max-width: var(--container); margin: 0 auto;
  padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: 'Newsreader', serif; font-size: 21px; font-weight: 600;
}
.logo-text { font-family: 'Newsreader', serif; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.logo-text .tld { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 26px;
  list-style: none; font-size: 14.5px; font-weight: 600;
}
.nav-links a { color: var(--muted); transition: color var(--transition-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { color: var(--accent-deep); }

.nav-cta {
  background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background var(--transition-fast);
}
.nav-cta:hover { background: var(--accent-deep); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--ink); cursor: pointer; padding: 6px;
}

/* =========================================================
   Cards / tiles / badges
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition-normal);
}
.card--link:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--feature { border: 2px solid var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-full);
}
.pill--accent { background: var(--accent); color: #fff; }
.pill--soft { background: var(--accent-soft); color: var(--accent-deep); }
.pill--muted { background: var(--surface-alt); color: var(--muted); }
.pill--gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }

.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }

/* Float info card on images */
.media { position: relative; }
.float-card {
  position: absolute;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 13px 18px;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 12px;
}
.float-card .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}

/* Image placeholders / real images */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   Grids
   ========================================================= */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.split--hero { grid-template-columns: 1.05fr 1fr; }
.split--rev { grid-template-columns: 1fr 1.1fr; }
.split--krycie { grid-template-columns: 1.1fr 1fr; align-items: start; }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.section-head--center { display: block; text-align: center; max-width: 40em; margin: 0 auto 40px; }

/* =========================================================
   Trust strip
   ========================================================= */
.trust {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust__item { padding: 22px 20px; text-align: center; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: none; }
.trust__lbl { font-size: 15px; font-weight: 800; color: var(--accent-deep); display: flex; align-items: center; justify-content: center; gap: 8px; }
.trust__lbl .ok { color: var(--accent); }
.trust__num { font-size: 26px; font-weight: 800; font-family: 'Newsreader', serif; color: var(--ink); }
.trust__sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 64px 0 40px; }

/* =========================================================
   Feature list (Rocky teaser, krycie)
   ========================================================= */
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { color: var(--accent); font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.feat strong { font-size: 15px; }
.feat .sub { font-size: 13.5px; color: var(--muted); }

.feat-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 20px;
}
.feat-row .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}

/* =========================================================
   Article cards (homepage)
   ========================================================= */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: block;
  transition: var(--transition-normal);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card-image { width: 100%; height: 180px; object-fit: cover; }
.article-card-content { padding: 20px; }
.article-card-badge { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.article-card-title { font-size: 20px; line-height: 1.2; }
.article-card-excerpt { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.article-card-link { margin-top: 12px; font-weight: 700; color: var(--accent-deep); font-size: 14px; }

/* =========================================================
   Hybryda tiles
   ========================================================= */
.hyb {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition-normal);
}
.hyb:hover { border-color: var(--accent); transform: translateY(-3px); }
.hyb--flag { border: 2px solid var(--accent); }
.hyb__img { width: 100%; height: 150px; object-fit: cover; background: var(--surface-alt); }
.hyb__body { padding: 16px 18px; }
.hyb__title { display: flex; align-items: center; gap: 8px; }
.hyb__sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.hyb__soon { min-height: 150px; display: grid; place-items: center; background: var(--surface-alt); color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }

/* =========================================================
   Spec sheet (Rocky)
   ========================================================= */
.spec {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 22px;
}
.spec__lbl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.spec__val { font-size: 20px; font-weight: 800; margin-top: 6px; font-family: 'Newsreader', serif; }

/* Testy genetyczne panel */
.panel-dark {
  background: var(--accent-deep); color: #fff;
  border-radius: 28px; padding: 52px 48px;
}
.panel-dark h2, .panel-dark h3 { color: #fff; }
.test-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md); padding: 18px;
}
.test-card.dashed { border-style: dashed; display: grid; place-items: center; text-align: center; }
.test-card__top { display: flex; align-items: center; justify-content: space-between; }
.test-card__name { font-size: 13px; opacity: .75; font-weight: 700; }
.test-card__ok { color: #9ED9A8; font-size: 18px; }
.test-card__val { font-family: 'Newsreader', serif; font-size: 22px; margin-top: 8px; }

/* =========================================================
   Photo mosaics
   ========================================================= */
.mosaic-rocky {
  display: grid; gap: 14px; height: 440px;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.mosaic-rocky > *:first-child { grid-row: span 2; }
.mosaic-rocky .frame { height: 100%; }

/* =========================================================
   Contact / forms
   ========================================================= */
.contact-shell {
  background: var(--accent-deep); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.contact-info { padding: 52px 48px; color: #fff; }
.contact-info h2 { color: #fff; }
.contact-info .row { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 14px; }
.contact-info .row:last-child { margin-bottom: 0; }
.contact-info .row .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; }
.contact-form-box { background: var(--surface); padding: 44px 40px; }

.form-group { margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hidden-field { display: none; }

/* Sticky stud form */
.stud-form {
  background: var(--accent-deep); color: #fff;
  border-radius: var(--radius-xl); padding: 40px 36px;
  position: sticky; top: 90px;
}
.stud-form h3 { color: #fff; }
.stud-form input, .stud-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border-radius: 12px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); color: #fff; font-family: inherit; font-size: 14px;
}
.stud-form input::placeholder, .stud-form textarea::placeholder { color: rgba(255,255,255,.6); }
.stud-form input:focus, .stud-form textarea:focus { outline: none; border-color: rgba(255,255,255,.5); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: #fff; }
.footer .container { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,.45); margin-bottom: 14px; font-family: 'Mulish', sans-serif; font-weight: 800; }
.footer p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 24em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer-links a { color: rgba(255,255,255,.78); transition: color var(--transition-fast); }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-size: 18px; transition: background var(--transition-fast); }
.social-link:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* =========================================================
   Back to top + reveal
   ========================================================= */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  box-shadow: var(--shadow-lg); transition: var(--transition-normal);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent-deep); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: none; }

.breadcrumb-back { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.breadcrumb-back:hover { color: var(--ink); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed; top: 63px; right: 0;
    width: min(280px, 80vw); height: calc(100vh - 63px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-left: 1px solid var(--line);
    padding: 24px; box-shadow: var(--shadow-xl); overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-cta { display: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; font-size: 16px; }
  .mobile-menu-btn { display: block; }

  .split, .split--hero, .split--rev, .split--krycie { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: none; }
  .trust__item:nth-child(1), .trust__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .contact-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .panel-dark { padding: 36px 26px; }
  .mosaic-rocky { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mosaic-rocky > *:first-child { grid-row: auto; grid-column: span 2; }
  .mosaic-rocky .frame { height: 200px; }
  .stud-form { position: static; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form-box { padding: 32px 24px; }
  .panel-dark { padding: 28px 20px; }
  .mosaic-rocky { grid-template-columns: 1fr; }
  .mosaic-rocky > *:first-child { grid-column: auto; }
  .mosaic-rocky .frame { height: 240px; }
  .section-head { display: block; }
  .section-head .textlink, .section-head .btn { margin-top: 14px; }
}
