/* Active Niuton – nowy styl: krem, terakota, miedź.
   Kolory w widżetach Elementora podmienia functions.php; tu są fonty, kształty i dekoracje. */

body.an-nowy {
  /* tokeny motywu nadrzędnego (na body, żeby wygrać z :root w Dodatkowym CSS) */
  --cream: #f1ece5;
  --paper: #f6f2ec;
  --blush: #c7674b;
  --blush-dark: #a9533a;
  --rose-pale: #efe2d6;
  --beige: #e3d9ce;
  --ink: #1b1716;
  --muted: #6e6560;
  --line: #e2d8cd;
  --olive: #b9845a;
  --radius: 26px;
  --shadow: 0 30px 70px -30px rgba(90, 55, 30, .35);

  /* nowe */
  --an-terra: #c7674b;
  --an-terra-dark: #a9533a;
  --an-copper: #b9845a;
  --an-sand: #e3c2a3;
  --an-ink: #1b1716;
  --an-dark: #241d1a;
  --an-display: "Inter Tight", "Arial Black", system-ui, sans-serif;
  --an-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --an-serif: "Cormorant Garamond", Georgia, serif;

  background: #f6f2ec;
  color: #4a423e;
  font-family: var(--an-body);
}

/* ---------- Typografia ---------- */
.an-nowy h1, .an-nowy h2, .an-nowy h3,
.an-nowy h1.elementor-heading-title,
.an-nowy h2.elementor-heading-title,
.an-nowy h3.elementor-heading-title {
  font-family: var(--an-display) !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}
.an-nowy h1.elementor-heading-title { line-height: 1 !important; }
.an-nowy h3, .an-nowy h3.elementor-heading-title { font-weight: 700 !important; letter-spacing: -.02em !important; }
.an-nowy .elementor-widget-text-editor,
.an-nowy .elementor-icon-list-text,
.an-nowy .elementor-icon-box-description { font-family: var(--an-body) !important; }
.an-nowy .elementor-icon-box-title { font-family: var(--an-display) !important; font-weight: 700 !important; letter-spacing: -.015em; }

/* Kolory wpisane w treść (np. <span style="color:#8E7468"> w nagłówkach) */
.an-nowy [style*="8E7468" i],
.an-nowy [style*="DDB3B1" i] { color: var(--an-terra) !important; }
.an-nowy [style*="B0807F" i] { color: var(--an-copper) !important; }
.an-nowy [style*="2F2B29" i] { color: var(--an-ink) !important; }

/* ---------- Nagłówek strony ---------- */
.an-nowy .site-header {
  background: rgba(241, 236, 229, .88);
  border-bottom: 1px solid rgba(185, 132, 90, .22);
}
.an-nowy .brand {
  font-family: var(--an-serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.an-nowy .brand small {
  font-family: var(--an-body);
  letter-spacing: .26em;
  color: var(--an-copper) !important;
  margin-top: 5px;
}
.an-nowy .site-header .main-nav a {
  font-family: var(--an-body);
  font-size: 11px !important;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.an-nowy .site-header .main-nav a:hover,
.an-nowy .site-header .main-nav .current-menu-item > a {
  color: var(--an-terra) !important;
  text-decoration: none;
}
.an-nowy .site-header .header-cta { background: var(--an-ink); }
.an-nowy .site-header .header-cta:hover { background: var(--an-terra); }
@media (max-width: 1100px) {
  .an-nowy .main-nav { background: #f1ece5 !important; }
  .an-nowy .main-nav li a { border-bottom-color: rgba(185, 132, 90, .2) !important; }
}

/* ---------- Przyciski: pigułki ---------- */
.an-nowy .elementor-button,
.an-nowy .button,
.an-nowy .wp-block-button__link {
  border-radius: 999px !important;
  font-family: var(--an-body) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  padding: 16px 30px !important;
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.an-nowy .elementor-button:hover { transform: translateY(-2px); }
.an-nowy .elementor-button { box-shadow: 0 16px 30px -14px rgba(199, 103, 75, .75); }
/* przycisk z przezroczystym tłem (np. „Zadzwoń” w hero) → obrys */
.an-nowy .an-hero .elementor-widget-button + .elementor-widget-button .elementor-button {
  box-shadow: none;
  border: 1px solid rgba(27, 23, 22, .35) !important;
  background: rgba(255, 255, 255, .3) !important;
}

/* ---------- Hero ---------- */
.an-nowy .an-hero { position: relative; overflow: hidden; }
.an-nowy .an-hero > .elementor-container { position: relative; z-index: 2; }
.an-nowy .an-hero::after,
.an-nowy .an-deco::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 120 C 260 30, 420 110, 600 60 S 1000 20, 1400 80' stroke='%23b9845a' stroke-opacity='.45' stroke-width='1.2'/%3E%3Cpath d='M0 690 C 220 600, 330 800, 560 780 S 900 660, 1060 720 S 1300 610, 1400 560' stroke='%23b9845a' stroke-opacity='.55' stroke-width='1.4'/%3E%3Ccircle cx='1060' cy='720' r='4' fill='%23b9845a'/%3E%3Ccircle cx='600' cy='60' r='3' fill='%23b9845a'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    radial-gradient(circle, rgba(185, 132, 90, .5) 1px, transparent 1.6px) 30px 40px / 190px 170px,
    radial-gradient(ellipse 40% 45% at 18% 85%, rgba(240, 175, 110, .28), transparent 70%);
}
/* etykieta nad nagłówkiem → ciemna pigułka ze ✦ */
.an-nowy .an-hero .elementor-widget-html + .elementor-widget-heading:not(.an-quote) .elementor-heading-title {
  display: inline-flex !important;
  align-items: center;
  gap: .6em;
  padding: .8em 1.4em !important;
  border-radius: 999px;
  background: var(--an-ink);
  color: #f6f2ec !important;
  font-family: var(--an-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  line-height: 1.2 !important;
}
.an-nowy .an-hero .elementor-widget-html + .elementor-widget-heading:not(.an-quote) .elementor-heading-title::before {
  content: "✦";
  color: var(--an-terra);
}
.an-nowy .an-hero .elementor-icon-list-icon svg { fill: var(--an-copper) !important; }
.an-nowy .an-hero .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:not(:last-child)::after { border-color: rgba(185, 132, 90, .5) !important; }
.an-nowy .an-quote .elementor-heading-title {
  font-family: var(--an-serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: var(--an-terra-dark) !important;
}

/* ---------- Ikony (pasek zaufania, kontakt) → miedziane kule ---------- */
.an-nowy .elementor-view-stacked .elementor-icon {
  background: radial-gradient(circle at 32% 28%, #ffe2c0, #d79a63 30%, #9c5f34 70%, #6b3e1f) !important;
  box-shadow: 0 10px 18px -8px rgba(90, 50, 20, .6);
  color: #fff !important;
  fill: #fff !important;
}
.an-nowy .elementor-view-stacked .elementor-icon svg { fill: #fff !important; }

/* ---------- Karty oferty: szklane ramki ---------- */
.an-nowy .an-card > .elementor-widget-wrap {
  background: linear-gradient(155deg, #f4efe9 0%, #e6ded6 55%, #d9d0c6 100%) !important;
  border: 1px solid rgba(255, 255, 255, .75) !important;
  border-radius: 26px !important;
  box-shadow: 0 30px 70px -30px rgba(90, 55, 30, .35) !important;
}
.an-nowy .an-card .elementor-widget-heading p.elementor-heading-title { color: var(--an-copper) !important; }

/* ---------- Zdjęcia ---------- */
.an-nowy .an-team img { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(90, 55, 30, .45); }
.an-nowy .an-pos-right img,
.an-nowy .an-pos-kobido img { border-radius: 22px; }

/* ---------- Kobido: jedyna ciemna sekcja ---------- */
.an-nowy .elementor-top-section:has(.an-pos-kobido) {
  background: var(--an-dark) !important;
  position: relative;
  overflow: hidden;
}
.an-nowy .elementor-top-section:has(.an-pos-kobido)::before {
  content: "";
  position: absolute;
  width: 520px; height: 380px;
  left: -160px; bottom: -180px;
  background: radial-gradient(closest-side, rgba(240, 175, 110, .3), transparent);
  pointer-events: none;
}
.an-nowy .elementor-top-section:has(.an-pos-kobido) .elementor-heading-title { color: #f6f2ec !important; }
.an-nowy .elementor-top-section:has(.an-pos-kobido) p.elementor-heading-title { color: var(--an-sand) !important; }
.an-nowy .elementor-top-section:has(.an-pos-kobido) .elementor-widget-text-editor,
.an-nowy .elementor-top-section:has(.an-pos-kobido) .elementor-widget-text-editor * { color: #d8ccc1 !important; }
.an-nowy .elementor-top-section:has(.an-pos-kobido) .elementor-button {
  background: linear-gradient(180deg, #edd5be, #dcb795) !important;
  color: var(--an-ink) !important;
  box-shadow: 0 14px 34px -12px rgba(220, 183, 149, .6) !important;
}

/* ---------- Zajęcia grupowe ---------- */
.an-nowy .an-class > .elementor-widget-wrap { border-top: 1px solid rgba(185, 132, 90, .45) !important; }
.an-nowy .an-class p.elementor-heading-title {
  font-family: var(--an-serif) !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  color: var(--an-terra) !important;
}

/* ---------- Stopka ---------- */
.an-nowy .site-footer { background: #1f1917; color: #b9aca1; }
.an-nowy .site-footer .brand,
.an-nowy .site-footer h1, .an-nowy .site-footer h2,
.an-nowy .site-footer h3, .an-nowy .site-footer h4,
.an-nowy .site-footer strong { color: #f6f2ec; }
.an-nowy .footer-grid p,
.an-nowy .footer-grid li,
.an-nowy .footer-bottom { color: #b9aca1; }
.an-nowy .site-footer a { color: var(--an-sand); }
.an-nowy .site-footer a:hover { color: #f6f2ec; }
.an-nowy .footer-bottom { border-top-color: rgba(227, 194, 163, .18); }

/* ---------- Podstrony motywu (bez Elementora) ---------- */
.an-nowy .page-hero { background: #f1ece5; }
.an-nowy .eyebrow { color: var(--an-terra); }
.an-nowy .service-card {
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 26px;
  background: linear-gradient(155deg, #f4efe9, #e1d8cf);
}
.an-nowy .trust-icon,
.an-nowy .round-arrow { background: var(--an-ink); color: #fff; }
.an-nowy .cta-band { background: linear-gradient(100deg, #efe2d6, #f6f2ec); }

@media (prefers-reduced-motion: reduce) {
  .an-nowy .elementor-button { transition: none; }
  .an-nowy .elementor-button:hover { transform: none; }
}
