/* AMZA Agency — shared stylesheet, v3
   Bold editorial system: deep navy + brand gold, big geometric display
   type (Archivo Black) for headlines, Work Sans for everything else.
   Palette and type are both defined once below — any future refinement
   is a one-block edit. */

:root {
  --paper: #FAFAF8;          /* page background — light sections */
  --paper-raised: #F1EEE6;   /* panels: team cards, contact card */
  --header-bg: #FFFFFF;      /* header/footer-on-light, input fields */
  --gold: #AA8800;           /* exact brand gold, sampled from the emblem — links, buttons on light bg */
  --gold-bright: #E7C25E;    /* brighter gold for use on navy — eyebrows, numerals */
  --navy: #10162E;           /* brand navy (matches the emblem's dark variant) — dark section bg + body ink */
  --navy-2: #1B2547;         /* lighted navy — card/divider tone on dark sections */
  --ink: #10162E;            /* body text on light bg — reuses navy for a unified palette */
  --muted: #5C6170;          /* secondary text on light bg */
  --muted-on-navy: #AEB4C7;  /* secondary text on navy bg */
  --line: rgba(16, 22, 46, 0.14);       /* hairline rules on light bg */
  --line-on-navy: rgba(255, 255, 255, 0.16); /* hairline rules on navy bg */
  --max-w: 760px;
  --max-w-wide: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type system ---------- */

h1, h2, .display {
  font-family: "Archivo Black", "Work Sans", sans-serif;
  font-weight: 400; /* Archivo Black only ships one (black) weight */
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h3 {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

a { color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #8a6f04; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

img, svg { max-width: 100%; }

.wrap { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 28px; }
.prose { max-width: var(--max-w); }

/* Eyebrow label — dash + small caps, used above every section headline */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.on-navy .eyebrow, .eyebrow.on-navy {
  color: var(--gold-bright);
}
.on-navy .eyebrow::before, .eyebrow.on-navy::before {
  background: var(--gold-bright);
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.wordmark img { height: 46px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--gold);
}
.nav-links li.nav-cta a {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
}
.nav-links li.nav-cta a:hover {
  background: #1B2547;
  color: #fff;
}

/* ---------- Buttons (pill) ---------- */

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  white-space: nowrap;
  border: 2px solid var(--navy);
}
.button:hover { background: #1B2547; border-color: #1B2547; color: #fff; }

.button.outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.button.outline:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.on-navy .button.outline, .button.outline.on-navy {
  color: #fff;
  border-color: var(--line-on-navy);
}
.on-navy .button.outline:hover, .button.outline.on-navy:hover {
  border-color: #fff;
  color: #fff;
}

.button.gold {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- Hero (gold, decorative) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #F7E7B8 0%, #EFCB5C 55%, #E4B93E 100%);
  padding: 30px 0 90px;
}
.hero-rings {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: 0.55;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .brand-mark {
  height: 88px;
  width: auto;
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 21ch;
  color: var(--navy);
}
.hero p.lede {
  margin: 24px 0 0;
  max-width: 54ch;
  color: #3A3312;
  font-size: 1.15rem;
  line-height: 1.65;
}
.hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero .hero-actions .button.outline {
  border-color: rgba(16,22,46,0.35);
  color: var(--navy);
}
.hero .hero-actions .button.outline:hover { border-color: var(--navy); }

.trust-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(16,22,46,0.18);
}
.trust-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}
.trust-row span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

/* Simpler page hero used on subpages (Email / Social media / Strony WWW / Kontakt) */
.page-hero {
  background: var(--paper);
  padding: 62px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  max-width: 20ch;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  line-height: 1.05;
}
.page-hero p {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Split intro used under a page-hero h1: bold statement on the left,
   supporting copy + CTAs on the right (Doradztwo marketingowe / sprzedażowe). */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 44px;
  align-items: start;
}
.hero-split-left p {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ink);
  max-width: none;
}
.hero-split-right p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: none;
}
.hero-split-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
@media (max-width: 760px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
}

/* Arrow list used under a page-hero h1: a short stack of pain-point lines,
   each led by a small diagonal arrow (Analityka i automatyzacja / Konsultacje reklamowe). */
.arrow-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
}
.arrow-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: start;
}
.arrow-item .arrow-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.arrow-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  max-width: none;
}
.arrow-outro {
  margin-top: 32px !important;
  max-width: 680px;
}
.page-hero .hero-split-actions,
.page-hero .arrow-list-actions {
  margin-top: 34px;
}

/* ---------- Sections ---------- */

section.on-paper { padding: 74px 0; background: var(--paper); }
section.on-paper + section.on-paper { padding-top: 0; }

section.on-navy { padding: 80px 0; background: var(--navy); color: #fff; }
section.on-navy h1, section.on-navy h2, section.on-navy .display { color: #fff; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}
.section-lede {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 46px;
  font-size: 1.05rem;
}
.on-navy .section-lede { color: var(--muted-on-navy); }

/* ---------- Numbered divided list (values / non-negotiables / services) ---------- */

.divided-list {
  border-top: 1px solid var(--line);
  counter-reset: item;
}
.divided-item {
  counter-increment: item;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 24px;
  row-gap: 10px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.divided-item::before {
  content: counter(item, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: "Archivo Black", sans-serif;
  color: var(--gold);
  font-size: 1.05rem;
  padding-top: 2px;
}
.divided-item h3 { grid-column: 2; grid-row: 1; font-size: 1.4rem; }
.divided-item .item-body { grid-column: 2; grid-row: 2; }
.divided-item .item-body p { margin: 0; color: var(--ink); }
.divided-item .item-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.98rem;
}

.on-navy .divided-list { border-top-color: var(--line-on-navy); }
.on-navy .divided-item { border-bottom-color: var(--line-on-navy); }
.on-navy .divided-item::before { color: var(--gold-bright); }
.on-navy .divided-item h3 { color: #fff; }
.on-navy .divided-item .item-body p { color: var(--muted-on-navy); }

@media (max-width: 620px) {
  .divided-item { grid-template-columns: 40px 1fr; gap: 14px; }
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.team-card {
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.team-card .photo-slot {
  aspect-ratio: 4 / 5;
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.team-card .photo-slot.no-pad { padding: 0; overflow: hidden; }
.team-card .photo-slot.no-pad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .who { padding: 20px 22px 24px; }
.team-card .who .name {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.team-card .who .role {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ---------- Closing CTA (gold card) ---------- */

.cta-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #F7E7B8 0%, #EFCB5C 60%, #E4B93E 100%);
  border-radius: 28px;
  padding: 64px 50px;
}
.cta-gold .sunburst {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  opacity: 0.45;
  pointer-events: none;
}
.cta-gold .inner { position: relative; z-index: 1; max-width: 640px; }
.cta-gold h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--navy);
  max-width: 16ch;
}
.cta-gold .button { margin-top: 28px; }

/* Simple two-column closing band used on subpages */
.cta-band {
  background: var(--paper-raised);
  padding: 58px 0;
  border-top: 1px solid var(--line);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.55rem; max-width: 26ch; font-family: "Archivo Black", sans-serif; font-weight: 400; line-height: 1.1; }
.cta-band p { color: var(--muted); margin: 8px 0 0; max-width: 42ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--header-bg);
  color: var(--muted);
  padding: 34px 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

.site-footer.on-navy {
  background: var(--navy);
  color: var(--muted-on-navy);
  border-top: none;
}
.site-footer.on-navy a { color: var(--muted-on-navy); }
.site-footer.on-navy a:hover { color: var(--gold-bright); }
.site-footer.on-navy .foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.site-footer.on-navy .foot-brand img { height: 34px; width: auto; }
.site-footer.on-navy .foot-brand span {
  font-family: "Archivo Black", sans-serif;
  color: #fff;
  font-size: 1.05rem;
}
.site-footer.on-navy .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line-on-navy);
}
.site-footer.on-navy .foot-tagline { max-width: 42ch; }
.site-footer.on-navy .foot-contact a { display: block; color: #fff; font-weight: 600; margin-bottom: 6px; }

/* ---------- Contact page ---------- */

.contact-block {
  padding: 72px 0 96px;
  background: var(--paper);
}
.contact-block .prose { margin: 0 auto; text-align: left; }
.contact-block h1 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  line-height: 1.05;
}
.contact-block p.lede {
  font-size: 1.15rem;
  color: var(--ink);
}
.contact-card {
  margin-top: 34px;
  padding: 30px 32px;
  background: var(--paper-raised);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.contact-card .label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.contact-card .email-link {
  font-family: "Work Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

/* Contact form */

.contact-form {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.92rem;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-form .submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form button.button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-status { font-size: 0.95rem; margin: 0; }
.form-status[data-state="ok"] { color: #3f7a3f; }
.form-status[data-state="err"] { color: #a3402a; }

.direct-contact {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.direct-contact .field-block .label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.direct-contact .field-block a {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
}

@media (max-width: 560px) {
  .contact-form .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, a { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
  .divided-item { transition: background-color .2s ease; }
  .divided-item:hover { background-color: rgba(170, 136, 0, 0.055); }
  .on-navy .divided-item:hover { background-color: rgba(255,255,255,0.04); }
  .team-card { transition: transform .2s ease; }
  .team-card:hover { transform: translateY(-4px); }
}

/* ---------- Motion ---------- */

.hero .brand-mark, .hero h1, .hero p.lede, .hero .hero-actions, .hero .trust-row {
  opacity: 0;
  animation: rise .7s ease forwards;
}
.hero .brand-mark { animation-delay: .05s; }
.hero h1 { animation-delay: .16s; }
.hero p.lede { animation-delay: .3s; }
.hero .hero-actions { animation-delay: .44s; }
.hero .trust-row { animation-delay: .56s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal.is-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-ready:nth-child(2) { transition-delay: .08s; }
.reveal.is-ready:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .hero .brand-mark, .hero h1, .hero p.lede, .hero .hero-actions, .hero .trust-row { animation: none; opacity: 1; }
  .reveal.is-ready { opacity: 1; transform: none; transition: none; }
  .team-card:hover { transform: none; }
}
