/* ==========================================================================
   Centar Integra — custom stylesheet
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Gilroy"; src: url("../fonts/Gilroy-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --ink: #161616;
  --white: #fff;
  --gray-200: #d4d4d4;
  --line: rgba(22, 22, 22, .12);
  --blue: #374daa;
  --light-blue: #e4e9ff;
  --lavender: #e6e0ee;
  --hl-green: #cae7bb;
  --hl-purple: #ac91d5;

  /* Fonts */
  --serif: "Noto Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --brand: "Gilroy", "Helvetica Neue", Arial, sans-serif;   /* logo only */

  /* Fluid type scale (mobile → desktop) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.4vw, 3.875rem);   /* 40 → 62 */
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);        /* 28 → 44 */
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);         /* 22 → 28 */
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.4375rem);       /* 18 → 23 */
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);        /* 16 → 17 */
  --fs-small: .9375rem;                                      /* 15 */
  --fs-xs: .8125rem;                                         /* 13 */

  /* Spacing scale — base 8px */
  --space-2xs: .5rem;   /*  8 */
  --space-xs: .75rem;   /* 12 */
  --space-s: 1rem;      /* 16 */
  --space-m: 1.5rem;    /* 24 */
  --space-l: 2rem;      /* 32 */
  --space-xl: 3rem;     /* 48 */
  --space-2xl: 4rem;    /* 64 */

  /* Fluid layout spacing */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);           /* page side padding 16 → 40 */
  --section: clamp(4rem, 2.5rem + 5vw, 7rem);              /* between sections 64 → 112 */
  --box-pad: clamp(1.5rem, .75rem + 4vw, 4rem);            /* inside colored boxes 24 → 64 */
  --gap: clamp(2rem, 1rem + 3vw, 4rem);                    /* between columns 32 → 64 */

  --radius: clamp(20px, 12px + 1.4vw, 30px);
  --radius-s: clamp(14px, 10px + .6vw, 20px);
  --container: 1130px;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
body.menu-open { overflow: hidden; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page rhythm ----------
   Every direct child of <main> is a block. Blocks never carry their own outer
   vertical padding; the space between them is always exactly --section. */
main { display: block; padding-block: var(--space-s) var(--section); }
main > * + * { margin-top: var(--section); }
main > .page-top { padding-top: clamp(1.5rem, 4vw, 3.5rem); }

/* ---------- Typography ---------- */
/* DM Sans is optical-size aware: small text gets sturdier shapes, large text finer ones */
.display { font-size: var(--fs-display); line-height: 1.05; margin-bottom: var(--space-m); }
.heading { font-size: var(--fs-h2); line-height: 1.25; }
.heading + p, .heading + .text { margin-top: var(--space-m); }
.text { max-width: 32rem; }
.text--wide { max-width: none; }
.section-head { text-align: center; max-width: 40rem; margin-inline: auto; }
.section-head p { margin-top: var(--space-s); opacity: .75; }

.highlight {
  --hl: var(--hl-purple);
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat; background-position: 0 50%; background-size: 0% 100%;
  border-radius: 15px; padding-inline: .5rem;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.8s cubic-bezier(.65, 0, .35, 1) .6s;
}
.highlight--green { --hl: var(--hl-green); margin-right: .2rem; }
.highlight.is-visible, html:not(.js) .highlight { background-size: 100% 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 9rem; padding: 1rem 1.75rem;
  border: 2px solid transparent; border-radius: 100rem;
  background: var(--ink); color: var(--white);
  font: 500 clamp(.9375rem, .9rem + .2vw, 1.0625rem)/1 var(--sans); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: all .25s var(--ease);
}
/* Hover fill adapts to the background the button sits on:
   on colored boxes → white; on white surfaces → soft lavender (white would vanish). */
.btn:hover { background: var(--btn-hover-bg, var(--lavender)); color: var(--ink); border-color: transparent; }
.hero__inner, .box, .cta__box, .contact-box { --btn-hover-bg: var(--white); }
.form-card { --btn-hover-bg: var(--lavender); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); margin-top: var(--space-l); }
.btn-row--center { justify-content: center; }
.after-content { margin-top: var(--space-xl); display: flex; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header { position: relative; z-index: 100; padding-block: var(--space-s); background: var(--white); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; z-index: 102; display: flex; align-items: center; gap: var(--space-s); text-decoration: none; color: #1a1a1f; transition: color .4s; }
.brand img { width: clamp(36px, 30px + 1.5vw, 44px); }
.brand span { font: 500 clamp(18px, 16px + .5vw, 22px)/15px var(--brand); letter-spacing: 3px; }
.brand small { display: block; font-size: 10px; line-height: 15px; }

.menu-toggle {
  position: relative; z-index: 102;
  width: clamp(36px, 28px + 2vw, 56px); height: 20px; padding: 0;
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; width: 100%; background: #1a1a1f; transition: transform .4s var(--ease), opacity .3s, background .4s; transform-origin: center; }
.menu-open .menu-toggle span { background: var(--white); }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menu-open .brand { color: var(--white); }
.menu-open .brand img { filter: brightness(0) invert(1); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 101;
  background: var(--blue);
  transform: translateX(100%);
  transition: transform .6s cubic-bezier(.55, .055, .675, .19);
  overflow-y: auto;
}
.menu-open .menu-overlay { transform: none; transition-timing-function: cubic-bezier(.165, .84, .44, 1); }
.menu-overlay nav { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(6rem, 14vh, 11rem) var(--space-2xl); }
.menu-link {
  display: flex; align-items: baseline; gap: var(--space-s);
  padding-block: clamp(.75rem, 1.5vh, 1.25rem);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: var(--white); text-decoration: none;
  font: 300 clamp(2rem, 1.2rem + 3.6vw, 3.4375rem)/1.15 var(--serif);
  opacity: 0; transform: translateY(30px);
  transition: opacity .25s var(--ease), transform .5s var(--ease);
}
.menu-open .menu-link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.menu-link .num { font-size: .55em; opacity: .5; transition: opacity .3s, color .3s; }
.menu-link .label { display: inline-flex; align-items: center; gap: .3em; transition: transform .5s var(--ease-soft); }

/* Active page: full white, lavender number + small dot */
.menu-link[aria-current="page"] .num { opacity: 1; color: var(--lavender); }
.menu-link[aria-current="page"] .label::after {
  content: ""; width: .18em; height: .18em; border-radius: 50%; background: var(--lavender); margin-left: .15em;
}

/* Hover: the others fade back, the hovered one stays bright and drifts right */
@media (hover: hover) {
  .menu-open .menu-overlay nav:hover .menu-link { opacity: .35; transition-delay: 0s; }
  .menu-open .menu-overlay nav .menu-link:hover { opacity: 1; }
  .menu-link:hover .label { transform: translateX(.35em); }
  .menu-link:hover .num { opacity: 1; }
}
.menu-settled .menu-link { transition: opacity .2s ease-out, transform .5s var(--ease); transition-delay: 0s; }
.menu-link:focus-visible { outline: 2px solid var(--lavender); outline-offset: 6px; border-radius: 4px; }

/* ---------- Colored boxes (shared) ---------- */
.box { border-radius: var(--radius); padding: var(--box-pad); }
.box--lavender { background: var(--lavender); }
.box--blue { background: var(--light-blue); }

/* ---------- Home hero ---------- */
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--gap);
  background: var(--lavender); border-radius: var(--radius);
  padding-left: var(--box-pad);
}
.hero__content { padding-block: var(--box-pad); }
.hero__image { width: 100%; height: min(80vh, 760px); object-fit: cover; object-position: 80% 50%; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Two-column text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.split__body { padding-top: .35rem; } /* optically aligns first text line with the heading's cap height */

/* ---------- Team block ---------- */
.team-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.team-block__grid > img { border-radius: var(--radius-s); }

/* ---------- Accordion ---------- */
.accordion { --acc-num: calc(var(--fs-lead) * 2.4); margin-top: var(--space-xl); border-top: 1px solid var(--gray-200); }
.accordion__item { border-bottom: 1px solid var(--gray-200); }
.accordion__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-s);
  padding-block: var(--space-m); background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 var(--fs-lead)/1.3 var(--sans); color: var(--ink);
}
.accordion__q > span:first-child { display: flex; align-items: baseline; }
.accordion__q .num { flex: none; width: var(--acc-num); font: 300 1.5em/1 var(--serif); }
.plus { flex: none; position: relative; width: 2rem; height: 2rem; border: 1.5px solid var(--ink); border-radius: 50%; }
.plus::before, .plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink); border-radius: 1px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.plus::before { width: .75rem; height: 2px; }
.plus::after { width: 2px; height: .75rem; }
.accordion__item.is-open .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__a { height: 0; overflow: hidden; transition: height .5s var(--ease); }
.accordion__a p { padding: 0 0 var(--space-l) var(--acc-num); margin: 0; max-width: calc(46rem + var(--acc-num)); }

/* ---------- Quote ---------- */
.quote { display: grid; justify-items: center; gap: var(--space-l); }
.quote__line { width: clamp(8rem, 20vw, 17rem); }
.quote__text { font-size: clamp(1.875rem, .9rem + 3.9vw, 3.875rem); line-height: 1.2; text-align: center; color: var(--gray-200); transition: color 1s cubic-bezier(.645, .045, .355, 1); margin: 0; }
.quote__text.is-visible { color: var(--ink); }

/* ---------- Blog cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl) var(--space-l); }
.section-head + .cards { margin-top: var(--space-xl); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s); background: var(--lavender); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.card__link:hover .card__img img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: var(--space-m); }
.card__date { font-size: var(--fs-xs); line-height: 1.4; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; opacity: .5; margin-bottom: var(--space-2xs); }
.card__title { font-size: var(--fs-h3); line-height: 1.3; margin-bottom: var(--space-xs); }
.card__excerpt {
  font-size: var(--fs-small); line-height: 1.6; opacity: .72; margin: 0 0 var(--space-m);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more { margin-top: auto; font-size: var(--fs-small); font-weight: 500; }
.card__more span { display: inline-block; transition: transform .5s var(--ease-soft); }
.card__link:hover .card__more span { transform: translateX(5px); }

/* ---------- CTA ---------- */
.cta__box { background: var(--lavender); border-radius: var(--radius); padding: var(--box-pad); text-align: center; }
.cta__box p { max-width: 34rem; margin: var(--space-s) auto 0; }
.cta__box .btn-row { margin-top: var(--space-l); }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: var(--space-l); }
.footer__top { display: grid; grid-template-columns: 1fr auto; gap: var(--space-l) var(--gap); align-items: center; }
.footer__logo { display: block; width: clamp(160px, 140px + 5vw, 215px); margin-bottom: var(--space-m); }
.footer__about { max-width: 22rem; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); list-style: none; margin: 0; padding: 0; }
.footer__links a { display: block; white-space: nowrap; padding-block: var(--space-2xs); text-decoration: none; font: 300 clamp(1.25rem, 1rem + .9vw, 1.75rem)/1.3 var(--serif); transition: opacity .3s; }
.footer__links a:hover { opacity: .5; }
.footer__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-m); margin-top: var(--space-xl); padding-top: var(--space-l); border-top: 1px solid var(--gray-200); font-size: .875rem; font-weight: 500; line-height: 1.5; }
.socials { display: flex; gap: var(--space-m); }
.socials a { transition: opacity .3s; }
.socials a:hover { opacity: .5; }
.socials img { width: 1.5rem; height: 1.5rem; }

/* ---------- Page intro (O nama / Usluge) ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.intro__media img { border-radius: var(--radius); filter: saturate(95%); width: 100%; }
.intro .h3 { font-size: var(--fs-h2); line-height: 1.2; }
.intro__role { margin-top: var(--space-2xs); margin-bottom: var(--space-m); opacity: .7; }

/* ---------- Services (sticky menu) ---------- */
.services__inner { display: flex; gap: var(--gap); }
.services__menu { flex: 0 0 30%; position: sticky; top: var(--space-xl); align-self: flex-start; }
.services__menu nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
.services__menu a {
  display: flex; align-items: center; gap: var(--space-s); padding-block: var(--space-s);
  color: rgba(32, 32, 36, .4); text-decoration: none;
  font: 500 var(--fs-lead)/1.3 var(--sans); transition: color .3s;
}
.services__menu a .num { font: 300 1.75em/1 var(--serif); }
.services__menu a.is-active, .services__menu a:hover { color: #3c3d49; }
.services__body { flex: 1; min-width: 0; }
.services__row { padding-block: var(--space-2xl); border-bottom: 1px solid var(--gray-200); scroll-margin-top: var(--space-l); }
.services__row:first-child { padding-top: var(--space-s); }

/* ---------- Kontakt ---------- */
.contact-box {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--gap); align-items: start;
  background: var(--lavender); border-radius: var(--radius); padding: var(--box-pad);
}
.contact-info .text { margin-bottom: var(--space-xl); }

.contact-person { display: flex; align-items: center; gap: var(--space-s); margin-bottom: var(--space-l); }
.contact-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.contact-person strong { display: block; font: 300 1.5rem/1.3 var(--serif); letter-spacing: 0; }
.contact-person span { font-size: var(--fs-small); opacity: .7; }

.contact-list { list-style: none; margin: 0 0 var(--space-xl); padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; align-items: center; gap: var(--space-s); padding-block: var(--space-s); border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: var(--fs-xs); line-height: 1.4; text-transform: uppercase; letter-spacing: 1.5px; opacity: .55; }
.contact-list a, .contact-list div > span { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); }
.contact-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.consult-note { background: rgba(255, 255, 255, .55); border-radius: var(--radius-s); padding: var(--space-m); }
.consult-note p { font-size: var(--fs-small); line-height: 1.55; margin-bottom: var(--space-m); }
.consult-note strong { font: 300 1.375rem/1.4 var(--serif); letter-spacing: 0; }

.form-card { background: var(--white); border-radius: var(--radius-s); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); box-shadow: 0 30px 60px -30px rgba(55, 77, 170, .25); }
.form-card h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); line-height: 1.2; }
.form-card__lead { font-size: var(--fs-small); opacity: .7; margin: var(--space-2xs) 0 var(--space-l); }

.form { display: grid; gap: var(--space-m); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.field { min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.form label:not(.pill), .form legend { display: block; margin-bottom: var(--space-2xs); padding: 0; font-size: var(--fs-small); font-weight: 500; line-height: 1.4; }
.optional { font-weight: 400; opacity: .55; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--white); color: var(--ink);
  border: 1px solid #dcdcde; border-radius: 12px;
  font: 1rem/1.5 var(--sans);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.form textarea { min-height: 9.5rem; resize: vertical; }
.form ::placeholder { color: #a3a3a8; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 22, 22, .06); }
.form .is-invalid { border-color: #d98a8a !important; }

.pills { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: .55rem 1rem; border-radius: 100rem;
  border: 1px solid #dcdcde; background: var(--white);
  font-size: var(--fs-small); line-height: 1.3; transition: all .2s;
}
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 22, 22, .15); }
.other-field { margin-top: var(--space-s); }

.form .btn { width: 100%; margin-top: var(--space-2xs); }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form-note { text-align: center; font-size: .875rem; opacity: .55; margin: calc(var(--space-xs) * -1) 0 0; }
.form-error { margin: 0; padding: var(--space-s) 1.25rem; border-radius: 12px; background: #fbeeee; color: #9b3b3b; font-size: var(--fs-small); line-height: 1.5; }
.form-error a { font-weight: 600; }
.hp { position: absolute !important; left: -9999px; }
.form-success { text-align: center; padding: var(--space-xl) var(--space-s); }
.form-success h3 { font-size: 2rem; line-height: 1.3; margin-bottom: var(--space-xs); }

/* ---------- Blog post ---------- */
.post { display: flex; flex-direction: column; align-items: center; }
.post h1 { max-width: 52rem; text-align: center; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem); line-height: 1.15; }
.post__date { margin-top: var(--space-m); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; opacity: .55; }
.post__hero { width: 100%; max-width: 56rem; margin-top: var(--space-xl); }
.post__hero img { width: 100%; border-radius: var(--radius); }
/* Article typography — one rhythm: paragraphs 1.25em apart, sections clearly separated */
.post__body {
  width: 100%; max-width: 40rem;             /* ~65–70 characters per line */
  margin-top: var(--space-2xl);
  font-size: clamp(1.0625rem, 1.02rem + .2vw, 1.125rem);   /* 17 → 18 */
  line-height: 1.75;
  color: #2b2b2e;
}
.post__body > * { margin: 0; }
.post__body > * + * { margin-top: 1.25em; }
.post__body .lead { font-size: 1.15em; line-height: 1.6; color: var(--ink); }
.post__body h2 {
  margin-top: 2.4em; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); line-height: 1.3; color: var(--ink);
}
.post__body h3 {
  margin-top: 2em; font: 600 1em/1.4 var(--sans); color: var(--ink);
  display: flex; align-items: center; gap: .6em;
}
.post__body h3::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--hl-purple); flex: none; }
.post__body h2 + *, .post__body h3 + * { margin-top: .6em; }
.post__body strong { font-weight: 600; color: var(--ink); }
.post__body ul { padding: 0; list-style: none; display: grid; gap: .75em; }
.post__body li { position: relative; padding-left: 1.6em; }
.post__body li::before { content: ""; position: absolute; left: .2em; top: .7em; width: .5em; height: .5em; border-radius: 50%; background: var(--hl-green); }
.post__body blockquote {
  margin-block: 2em; padding: 1.4em 1.6em; border-radius: var(--radius-s);
  background: var(--lavender);
  font: 300 italic clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.45 var(--serif); color: var(--ink); letter-spacing: 0;
}
.post__body > :last-child { margin-bottom: 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity 1.4s var(--ease-soft), transform 1.6s var(--ease-soft);
  transition-delay: var(--d, 0s);
}
.js .reveal--soft { transform: translate3d(0, 12px, 0); transition-duration: 1.8s, 2s; }
.js .reveal--img { transform: scale(1.035); transition-duration: 1.8s, 2.4s; }
.js .quote .quote__line { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(.65, 0, .35, 1) .2s; }
.js .quote .quote__line:last-child { transition-delay: 1s; }
.js .quote.is-visible .quote__line { clip-path: inset(0 0 0 0); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .quote .quote__line { clip-path: none; }
  .highlight { background-size: 100% 100%; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ==========================================================================
   Tablet  (≤ 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding: var(--box-pad); }
  .hero__content { padding-block: 0 var(--space-xl); }
  .hero__content .text { max-width: 36rem; }
  .hero__image { height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius-s); }

  .split { grid-template-columns: 1fr; gap: var(--space-m); }
  .split__body { padding-top: 0; }

  .team-block__grid { grid-template-columns: 1fr; }
  .team-block__grid > img { max-width: 30rem; width: 100%; justify-self: center; }

  .cards { grid-template-columns: 1fr 1fr; }
  .cards > :nth-child(3):last-child { display: none; } /* homepage: show 2 cards on tablet, never 1 orphan */

  .footer__top { grid-template-columns: 1fr; }

  .services__inner { flex-direction: column; gap: var(--space-l); }
  .services__menu {
    position: sticky; top: var(--space-s); z-index: 50; flex: none; width: 100%;
    background: var(--white); border-radius: 100rem; padding: var(--space-2xs);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .15), 0 0 0 1px var(--line);
  }
  .services__menu nav { flex-direction: row; gap: var(--space-2xs); overflow-x: auto; scrollbar-width: none; }
  .services__menu nav::-webkit-scrollbar { display: none; }
  .services__menu a { flex: none; white-space: nowrap; padding: .6rem 1.1rem; border-radius: 100rem; font-size: var(--fs-small); gap: var(--space-2xs); }
  .services__menu a.is-active { background: var(--lavender); }
  .services__menu a .num { font-size: 1.2em; }
  .services__menu a br { display: none; }
  .services__row { padding-block: var(--space-xl); scroll-margin-top: 6rem; }
  .services__row:first-child { padding-top: 0; }

  .contact-box { grid-template-columns: 1fr; }
  .contact-info .text { max-width: 36rem; }
}

/* ==========================================================================
   Mobile landscape / small tablet  (≤ 767px)
   ========================================================================== */
@media (max-width: 767px) {
  /* Hero photo: square, bleeding to the box edges */
  .hero__inner { overflow: hidden; padding-bottom: 0; }
  .hero__media { margin-inline: calc(var(--box-pad) * -1); }
  .hero__image { aspect-ratio: 1 / 1; border-radius: 0; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }

  .team-block__content { order: -1; }

  .intro { grid-template-columns: 1fr; }
  .intro__media { order: -1; }

  .cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .cards > :nth-child(3):last-child { display: block; }

  .footer__bottom { flex-direction: column-reverse; }

  /* ---- Phone text alignment: headings & paragraphs centered ----
     Stay left: FAQ, article body, form fields, contact list (readability/usability). */
  .hero__content, .split, .team-block__content, .intro__content,
  .services__row, .cards, .contact-info, .section-head, .cta__box { text-align: center; }
  .text, .hero__content .text, .contact-info .text { margin-inline: auto; }
  .contact-person { justify-content: center; text-align: left; }
  .contact-list { text-align: left; }
  .footer__top { justify-items: center; text-align: center; }
  .footer__logo, .footer__about { margin-inline: auto; }
  .footer__links { justify-content: center; }
  .footer__bottom { align-items: center; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Phone  (≤ 479px)
   ========================================================================== */
@media (max-width: 479px) {
  .hero .btn-row { margin-top: var(--space-m); }

  .accordion__q .num { display: none; }
  .accordion { --acc-num: 0px; }
  .accordion { margin-top: var(--space-l); }

  .contact-icon { width: 40px; height: 40px; }
}
