/* ============================================================
   KANCELARIA MROK & WSPÓLNICY — style.css
   Prawo rodzinne | Classical editorial
   Palette: off-white #F8F5F0 · bottle green #1A3A2A · gold #8B6914
   Type: EB Garamond 700 (headings) · DM Sans 400 (body)
   ============================================================ */

/* ---- Reset & tokens ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #F8F5F0;
  --bg-alt:   #F0EBE3;
  --green:    #1A3A2A;
  --green-lt: #2A5040;
  --gold:     #8B6914;
  --text:     #1A1410;
  --text-mid: #3D3028;
  --text-lt:  #6A6058;
  --border:   #DDD6CC;

  --ff-serif:  'EB Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans:   'DM Sans', system-ui, sans-serif;

  --radius:   1px;
  --max-w:    1100px;
  --col-text: 65ch;
  --section-gap: clamp(5rem, 9vw, 8rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  width: min(var(--max-w), 100% - 2 * clamp(1.25rem, 5vw, 3rem));
  margin-inline: auto;
}

img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

/* ---- Scroll-reveal ---- */
.reveal {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.reveal.visible { opacity: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-lt);
  border-color: var(--green-lt);
}

.btn--ghost {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn--ghost:hover {
  background: var(--green);
  color: var(--bg);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.nav__logo-mark {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--green);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  line-height: 1.4;
  white-space: nowrap;
}

.nav__logo-amp { font-style: italic; font-weight: 400; }

.nav__logo-text {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-lt);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: var(--radius);
}
.nav__link--cta:hover {
  background: var(--green);
  color: var(--bg);
}

/* ============================================================
   MOBILE CTA BUTTON (sticky phone)
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  background: var(--green);
  color: var(--bg);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 4px 16px rgba(26, 58, 42, 0.3);
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-cta:hover {
  background: var(--green-lt);
  box-shadow: 0 6px 20px rgba(26, 58, 42, 0.4);
}
.mobile-cta svg { flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0 var(--section-gap);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 1.5rem;
  font-family: var(--ff-sans);
}

.hero__heading {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__text-link {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text-lt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.hero__text-link:hover {
  color: var(--text);
  border-color: var(--border);
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 52ch;
}

.hero__image-wrap { position: relative; }

.hero__image {
  width: 100%;
  height: clamp(420px, 60vh, 620px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.hero__image-caption {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lt);
  text-align: right;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: var(--section-gap) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.faq .container { max-width: 760px; }

.faq__label {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--text-lt);
  margin-bottom: 0.75rem;
}

.faq__heading {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.4;
  color: var(--text-mid);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 55ch;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
}
.faq__item:last-of-type { border-bottom: 1px solid var(--border); }

.faq__question {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.faq__answer {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: var(--col-text);
}

.faq__cta {
  margin-top: clamp(3rem, 5vw, 4rem);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

.process__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.process__label {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 0.875rem;
}

.process__heading {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--text);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.process__step {
  padding: clamp(2rem, 3.5vw, 2.75rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process__step:nth-child(2n) { border-right: none; }
.process__step:nth-child(n+3) { border-bottom: none; }

.process__num {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.process__title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--text);
  margin-bottom: 0.875rem;
  line-height: 1.25;
}

.process__desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.process__meta {
  font-size: 0.8125rem;
  color: var(--gold);
  line-height: 1.6;
  font-style: italic;
  font-family: var(--ff-serif);
}

.process__note {
  font-size: 0.9375rem;
  color: var(--text-lt);
  line-height: 1.75;
  max-width: 68ch;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--green);
  background: rgba(26, 58, 42, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  padding: var(--section-gap) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.team__header {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.team__label {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 0.875rem;
}

.team__heading {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.team__intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 60ch;
}

.team__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}

.team-member {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.team-member--reversed {
  grid-template-columns: 1fr 320px;
}
.team-member--reversed .team-member__image-wrap { order: 2; }
.team-member--reversed .team-member__content    { order: 1; }

.team-member__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  border-radius: var(--radius);
}

.team-member__name {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 0.375rem;
  line-height: 1.2;
}

.team-member__spec {
  font-size: 0.875rem;
  color: var(--gold);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.team-member__text p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: var(--col-text);
}
.team-member__text p:last-child { margin-bottom: 0; }

.team-member__quote {
  margin: 1.75rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--green);
}

.team-member__quote p {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.75vw, 1.125rem);
  color: var(--text);
  line-height: 1.55;
  max-width: 52ch;
}

.team-member__creds {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.team-member__creds li {
  font-size: 0.8125rem;
  color: var(--text-lt);
  letter-spacing: 0.03em;
  padding-left: 1rem;
  position: relative;
}
.team-member__creds li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-gap) 0 clamp(4rem, 8vw, 7rem);
}

.contact__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.contact__label {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 0.875rem;
}

.contact__heading {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 52ch;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__confidential {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-lt);
  line-height: 1.65;
  font-style: italic;
  font-family: var(--ff-serif);
  max-width: 52ch;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact__detail-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lt);
}

.contact__detail-val {
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.6;
}
.contact__email { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact__email:hover { border-color: var(--text); }

.contact__detail-note {
  font-size: 0.75rem;
  color: var(--text-lt);
  line-height: 1.5;
}

.contact__consultation-box {
  padding: 1.5rem;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: rgba(26, 58, 42, 0.03);
}

.contact__consultation-price {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.contact__consultation-terms {
  font-family: var(--ff-serif);
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact__consultation-terms strong { font-weight: 600; }

.contact__consultation-note {
  font-size: 0.8125rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.map-placeholder svg { display: block; width: 100%; height: auto; }

.contact__map-note {
  font-size: 0.75rem;
  color: var(--text-lt);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.contact__urgent {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding: 1.25rem;
  background: rgba(139, 105, 20, 0.06);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.contact__urgent-link {
  color: var(--green);
  font-weight: 500;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}
.contact__urgent-link:hover { text-decoration-color: currentColor; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field__label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-lt);
  font-weight: 500;
}

.form-field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-lt);
  font-style: italic;
}

.form-field__input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

.form-field__input::placeholder { color: var(--text-lt); }

.form-field__input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.08);
}

.form-field__input.invalid { border-color: #A33; }

.form-field__textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.7;
}

.form-field__error {
  font-size: 0.75rem;
  color: #A33;
  min-height: 1em;
}

.form-field--checkbox { gap: 0.5rem; }

.form-field__checkbox-label {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  cursor: pointer;
}

.form-field__checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--green);
  cursor: pointer;
}

.form-field__checkbox-text {
  font-size: 0.8125rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.form-field__policy-link {
  color: var(--green);
  text-underline-offset: 2px;
}

.form-submit { align-self: flex-start; }

.form-success {
  font-size: 0.875rem;
  color: var(--green);
  padding: 1rem 1.25rem;
  background: rgba(26, 58, 42, 0.05);
  border-left: 2px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  background: var(--text);
  color: rgba(248, 245, 240, 0.55);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(248, 245, 240, 0.12);
}

.footer__logo-text {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--bg);
  display: block;
  margin-bottom: 0.375rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(248, 245, 240, 0.5);
  letter-spacing: 0.04em;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer__link {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: rgba(248, 245, 240, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--bg); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer__copy,
.footer__disclaimer,
.footer__demo {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(248, 245, 240, 0.4);
}

.footer__demo { font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__image-wrap { order: -1; }
  .hero__image { height: clamp(280px, 45vw, 440px); }

  .team-member,
  .team-member--reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .team-member--reversed .team-member__image-wrap,
  .team-member--reversed .team-member__content { order: unset; }
  .team-member__image { width: min(280px, 100%); aspect-ratio: 4/5; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process__grid {
    grid-template-columns: 1fr;
  }
  .process__step { border-right: none; }
  .process__step:nth-child(n+3) { border-bottom: 1px solid var(--border); }
  .process__step:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  .mobile-cta { display: flex; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    display: none;
    box-shadow: 0 8px 24px rgba(26, 20, 16, 0.1);
    z-index: 99;
  }
  .nav__menu.open { display: flex; }

  .nav__link {
    display: block;
    padding: 0.875rem 1.5rem;
    border-radius: 0;
  }
  .nav__link--cta {
    display: block;
    margin: 0.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
  }

  .footer__top {
    flex-direction: column;
  }
  .footer__nav { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn { font-size: 0.75rem; padding: 0.75rem 1.5rem; }
}
