/* ==========================================================================
   Infinity Legal — WordPress theme styles (ported from the static homepage)
   Palette: navy + silver. Fonts: Playfair Display (headings), Inter (text).
   Breakpoints: ≤1100px (tablet), ≤767px (mobile). Design width: 1440px / 390px.
   ========================================================================== */

:root {
  --navy: #0D1B2A;
  --navy-2: #152233;
  --navy-3: #08111B;
  --steel: #2E4A68;
  --silver: #A8B8C8;
  --silver-l: #D4DCE4;
  --light: #E3E6E9;
  --lighter: #F2F4F6;
  --white: #F7F8FA;
  --hero-bg: #D9DDE0;           /* matches the flat background of the hero photo */
  --text: #0D1B2A;
  --muted: rgba(13, 27, 42, .72);
  --muted-d: rgba(240, 244, 248, .68);
  --line: rgba(13, 27, 42, .14);
  --line-d: rgba(168, 184, 200, .2);
  --on-dark: #F0F4F8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 64px;
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--lighter); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-variant-numeric: lining-nums; font-weight: 700; letter-spacing: -.012em; }
h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.1; text-wrap: balance; }
h2 em, h1 em { font-style: italic; color: var(--steel); }
.sec--navy h2, .sec--navy2 h2 { color: var(--on-dark); }
.sec--navy h2 em, .sec--navy2 h2 em { color: var(--silver); }
.lead { font-size: 19px; line-height: 1.7; color: var(--muted); }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.sec--navy .eyebrow, .sec--navy2 .eyebrow { color: var(--silver); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 32px; font-size: 13px; font-weight: 500; letter-spacing: .05em; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: var(--sans); }
.btn .i { width: 16px; height: 16px; stroke-width: 1.8; }
.btn--primary { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.btn--primary:hover { background: var(--steel); border-color: var(--steel); }
.btn--ghost { color: var(--navy); border-color: rgba(13, 27, 42, .5); }
.btn--ghost:hover { background: var(--navy); color: var(--on-dark); }
.btn--silver { background: var(--silver); color: var(--navy); border-color: var(--silver); }
.btn--silver:hover { background: var(--silver-l); }
.btn--nav { padding: 10px 24px; font-size: 12px; background: var(--navy); color: var(--silver); border-color: rgba(168, 184, 200, .45); }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link .i { width: 15px; height: 15px; stroke-width: 1.8; }

/* ---------- Sections ---------- */
.sec { padding: 120px 0; position: relative; overflow: hidden; }
.sec--navy { background: var(--navy); color: var(--on-dark); }
.sec--navy2 { background: var(--navy-2); color: var(--on-dark); }
.sec--light { background: var(--light); }
.sec--lighter { background: var(--lighter); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 56px; }
.sec__head .eyebrow { margin-bottom: 22px; }
.sec__sub { max-width: 440px; font-size: 17px; line-height: 1.7; color: var(--muted-d); }
.sec--light .sec__sub, .sec--lighter .sec__sub { color: var(--muted); }

/* ==========================================================================
   LOGO
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.logo__mark { color: #24364A; }
.logo__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.logo__text b { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.logo__text small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }
.logo--lg .logo__text b { font-size: 17px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero { position: relative; min-height: 820px; background: var(--hero-bg); overflow: hidden; }
.hero__bg, .il-block .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.il-block .hero__bg img { object-fit: cover; object-position: right top; }

.nav { position: relative; z-index: 10; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a { font-size: 13px; font-weight: 500; color: rgba(13, 27, 42, .85); }
.nav__links a:hover { color: var(--steel); }
.nav__call, .nav__burger { display: none; }

.hero__content { position: relative; z-index: 5; padding-top: 156px; padding-bottom: 80px; }
.hero__text { max-width: 680px; }
.hero__rule { display: block; width: 48px; height: 2px; margin-bottom: 24px; background: linear-gradient(to right, var(--navy), rgba(13, 27, 42, .25)); }
.hero__eyebrow { font-size: 13px; font-weight: 500; color: #1F3A56; letter-spacing: .04em; margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 5.3vw, 76px); line-height: 1.07; letter-spacing: -.015em; margin-bottom: 24px; }
.hero__lead { max-width: 500px; font-size: 16px; line-height: 1.75; color: rgba(13, 27, 42, .8); margin-bottom: 44px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* floating glass benefit cards (positions are % of hero width so they follow the photo) */
.glass { position: absolute; z-index: 6; width: 170px; padding: 14px 18px 15px; background: rgba(13, 27, 42, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(168, 184, 200, .28); border-top: 2px solid var(--silver); box-shadow: 0 14px 36px rgba(7, 14, 24, .28); }
.glass strong { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--on-dark); }
.glass span { display: block; margin-top: 7px; font-size: 10px; line-height: 1.45; letter-spacing: .09em; text-transform: uppercase; color: var(--silver); }
.glass--1 { left: 57.2%; top: 204px; }
.glass--2 { left: 85.2%; top: 264px; }
.glass--3 { left: 55.5%; top: 470px; }
.glass--4 { left: 86.5%; top: 540px; }

/* ==========================================================================
   2. SERVICES
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: block; height: 500px; overflow: hidden; background: var(--navy-2); }
.il-block .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s ease; }
.il-block .tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 27, 42, 0) 35%, rgba(13, 27, 42, .92) 78%); }
.tile__icon { position: absolute; z-index: 2; left: 24px; top: 24px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--navy); border-top: 2px solid var(--silver); color: var(--silver); }
.tile__icon .i { width: 24px; height: 24px; stroke-width: 1.5; }
.tile__body { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 27px; line-height: 1.15; color: #fff; }
.tile p { font-size: 14.5px; line-height: 1.6; color: rgba(240, 244, 248, .82); }
.tile__more { display: inline-flex; align-items: center; gap: 10px; padding-top: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
.tile__more .i { width: 14px; height: 14px; stroke-width: 1.8; }

/* ==========================================================================
   3. HOW WE WORK
   ========================================================================== */
.how__circle { position: absolute; left: -200px; bottom: -240px; width: 640px; height: 640px; border-radius: 50%; background: var(--navy); }
.how__grid { position: relative; display: flex; gap: 96px; }
.how__left { width: 520px; flex-shrink: 0; }
.how__left h2 { margin-bottom: 28px; }
.il-block .how__photo { width: 100%; height: 320px; object-fit: cover; object-position: 50% 30%; margin: 12px 0 28px; }
.steps { flex: 1; padding-top: 8px; }
.steps li { position: relative; display: flex; gap: 36px; padding-bottom: 40px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 35px; top: 72px; bottom: -34px; width: 1px; background: var(--line-d); }
.steps__n { position: relative; z-index: 1; width: 72px; height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--silver); background: var(--navy-2); font-family: var(--serif); font-size: 26px; color: var(--silver); }
.steps h3 { padding-top: 6px; font-size: 32px; line-height: 1.2; color: var(--on-dark); }
.steps p { margin-top: 12px; max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--muted-d); }

/* ==========================================================================
   4. ABOUT
   ========================================================================== */
.about { display: flex; align-items: center; gap: 96px; }
.about__photo { position: relative; width: 540px; height: 660px; flex-shrink: 0; }
.about__photo::before { content: ""; position: absolute; left: -28px; bottom: -28px; width: 420px; height: 520px; background: var(--navy); }
.il-block .about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__badge { position: absolute; right: -28px; top: 44px; padding: 20px 26px; background: var(--navy); border-top: 2px solid var(--silver); }
.about__badge strong { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--on-dark); }
.about__badge span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.about__text { flex: 1; min-width: 0; max-width: 640px; }
.about__text h2 { margin-bottom: 26px; }
.about__role { margin-bottom: 26px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--steel); }
.about__text .lead { max-width: 600px; margin-bottom: 32px; }

/* ==========================================================================
   5. RESULTS
   ========================================================================== */
.results { display: flex; align-items: center; gap: 96px; }
.results__main { flex: 1.1; }
.results__main h2 { margin-bottom: 40px; }
.results__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.results__big { margin-top: 10px; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: clamp(60px, 7.6vw, 110px); font-weight: 700; line-height: 1; color: var(--on-dark); }
.results__text { max-width: 520px; margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--muted-d); }
.results__cases { flex: .9; }
.results__title { margin-bottom: 18px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.results__cases ul { border-bottom: 1px solid var(--line-d); }
.results__cases li { display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line-d); color: var(--silver); }
.results__cases .i { width: 26px; height: 26px; stroke-width: 1.5; }
.results__cases strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--on-dark); }
.results__cases span { display: block; margin-top: 6px; font-size: 14px; letter-spacing: .04em; color: var(--muted-d); }

/* ==========================================================================
   6. REVIEWS
   ========================================================================== */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.review { display: flex; align-items: center; gap: 30px; padding: 44px 44px 40px; background: var(--navy-2); border: 1px solid var(--line-d); }
.review__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.review__tag { align-self: flex-start; padding: 5px 9px; border: 1px dashed var(--silver); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.review__quote { display: block; height: 26px; font-family: var(--serif); font-size: 60px; line-height: .5; color: var(--silver); }
.review blockquote { font-size: 19px; line-height: 1.65; color: var(--on-dark); }
.review--empty blockquote { color: rgba(240, 244, 248, .4); }
.review figcaption b { display: block; font-family: var(--serif); font-size: 22px; color: var(--on-dark); }
.review figcaption span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted-d); }
.il-block .portrait { position: relative; width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 15px var(--steel); }   /* real photo: <img class="portrait" src="..." alt="Name"> 600×600 */
.il-block .portrait--empty { margin: 15px; width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: repeating-linear-gradient(135deg, #1A2B3E 0 12px, #152233 12px 24px); border: 1.5px dashed rgba(168, 184, 200, .5); color: var(--silver-l); font-size: 10px; line-height: 1.35; }
.portrait--empty .i { width: 26px; height: 26px; stroke-width: 1.4; }

/* ==========================================================================
   7. FAQ  (native <details>; remove the "open" attribute to start collapsed)
   ========================================================================== */
.faq { display: flex; gap: 96px; }
.faq__intro { width: 420px; flex-shrink: 0; }
.faq__intro h2 { margin-bottom: 36px; font-size: clamp(34px, 3.6vw, 52px); }
.faq__list { flex: 1; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 0; padding: 26px 0; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__n { width: 46px; flex-shrink: 0; font-family: var(--serif); font-size: 20px; color: var(--steel); }
.faq__q { flex: 1; font-size: 19px; font-weight: 600; line-height: 1.4; }
.faq__ic { position: relative; width: 38px; height: 38px; margin-left: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--steel); }
.faq details[open] .faq__ic { border-color: var(--navy); color: var(--navy); }
.faq .i--minus, .faq details[open] .i--plus { display: none; }
.faq details[open] .i--minus { display: block; }
.faq details p { padding: 0 62px 26px 46px; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* ==========================================================================
   8. CONTACT
   ========================================================================== */
.contact__circle { position: absolute; right: -160px; top: -200px; width: 620px; height: 620px; border-radius: 50%; background: var(--navy-2); }
.contact__grid { position: relative; display: flex; gap: 88px; align-items: flex-start; }
.contact__info { width: 560px; flex-shrink: 0; }
.contact__info h2 { margin-bottom: 26px; font-size: clamp(34px, 3.8vw, 54px); }
.contact__info .lead { max-width: 460px; color: var(--muted-d); margin-bottom: 36px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.55; }
.contact__list .i { width: 22px; height: 22px; color: var(--silver); stroke-width: 1.5; }
.contact__list a:hover { color: var(--silver); }

.form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 52px 48px 46px; background: var(--lighter); border-top: 3px solid var(--silver); color: var(--navy); }
.form h3 { font-size: 30px; }
.form label { display: flex; flex-direction: column; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form label i { display: inline; font-style: normal; color: var(--steel); }
.form input, .form textarea { width: 100%; padding: 0 16px; height: 58px; font: 400 16px var(--sans); color: var(--navy); background: #fff; border: 1px solid rgba(13, 27, 42, .22); border-radius: 0; }
.form textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.form__note .i { width: 16px; height: 16px; color: var(--steel); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-3); color: var(--on-dark); padding-top: 80px; }
.footer .logo { color: var(--on-dark); }
.footer .logo__mark { color: var(--silver); }
.footer__grid { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 64px; }
.footer__brand { width: 340px; display: flex; flex-direction: column; gap: 22px; }
.footer__brand p { max-width: 300px; font-size: 14px; line-height: 1.7; color: rgba(240, 244, 248, .62); }
.footer__col h4 { margin: 0 0 14px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.footer__col li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: rgba(240, 244, 248, .78); }
.footer__col li .i { width: 17px; height: 17px; color: var(--silver); }
.footer__col a:hover { color: #fff; }
.footer__links { gap: 14px; }
.lang { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(240, 244, 248, .55); }
.lang .is-active { color: var(--on-dark); border-bottom: 1px solid var(--silver); padding-bottom: 3px; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 30px; font-size: 13px; color: rgba(240, 244, 248, .5); }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-d); }

/* ==========================================================================
   TABLET  ≤ 1100px
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .sec { padding: 96px 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { height: 440px; }
  .how__grid, .about, .results, .faq, .contact__grid { flex-direction: column; align-items: stretch; gap: 56px; }
  .how__left, .contact__info, .faq__intro { width: auto; }
  .about__photo { width: min(540px, 100%); }
  .about__badge { right: 12px; }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { flex-wrap: wrap; }
  .footer__brand { width: 100%; }
}

/* ==========================================================================
   NAV + HERO stacked layout  ≤ 1023px (tablet portrait and phones)
   ========================================================================== */
@media (max-width: 1023px) {
  /* nav: logo + call + burger, links in a drop-down */
  .nav { height: 68px; }
  .logo__mark { width: 38px; height: 26px; }
  .btn--nav { display: none; }
  .nav__call { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; background: var(--navy); color: var(--on-dark); }
  .nav__call .i { width: 19px; height: 19px; stroke-width: 1.7; }
  .nav__burger { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding: 10px 0 10px 6px; background: none; border: 0; cursor: pointer; }
  .nav__burger span { display: block; width: 24px; height: 2px; background: var(--navy); }
  .nav__burger span:last-child { width: 16px; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--lighter); border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(7, 14, 24, .12); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 18px 20px; font-size: 15px; border-bottom: 1px solid var(--line); }

  /* hero: text first, photo underneath */
  .hero { min-height: 0; display: flex; flex-direction: column; }

  .hero__bg { position: relative; inset: auto; order: 3; height: 458px; margin-top: 18px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px); mask-image: linear-gradient(180deg, transparent 0, #000 36px); }
  .il-block .hero__bg img { object-position: 50% 0; }
  .hero__content { order: 2; padding-top: 98px; padding-bottom: 0; }
  .hero__rule { margin-bottom: 20px; }
  .hero__eyebrow { font-size: 12.5px; line-height: 1.5; margin-bottom: 20px; }
  .hero h1 { font-size: 48px; line-height: 1.1; margin-bottom: 20px; }
  .hero__lead { font-size: 15.5px; line-height: 1.7; margin-bottom: 26px; }
  .hero__cta { flex-direction: column; gap: 12px; }
  .hero__cta .btn { width: 100%; padding: 17px 20px; }
  .glass { width: 116px; padding: 10px 12px 11px; box-shadow: 0 10px 26px rgba(7, 14, 24, .26); }
  .glass strong { font-size: 26px; }
  .glass span { margin-top: 6px; font-size: 8.5px; line-height: 1.4; letter-spacing: .08em; }
  .glass--1 { left: 12px; top: auto; bottom: 310px; }
  .glass--2 { left: auto; right: 12px; top: auto; bottom: 340px; }
  .glass--3 { left: 12px; top: auto; bottom: 130px; }
  .glass--4 { left: auto; right: 12px; top: auto; bottom: 90px; }

}

/* ==========================================================================
   MOBILE  ≤ 767px
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .sec { padding: 64px 0; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .sec__sub { font-size: 15.5px; }
  h2 { font-size: 36px; }
  .lead { font-size: 16px; }
  .eyebrow { margin-bottom: 16px; }

  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { height: 400px; }
  .tile__icon { left: 20px; top: 20px; width: 50px; height: 50px; }
  .tile__body { left: 22px; right: 22px; bottom: 24px; }
  .tile h3 { font-size: 26px; }

  .how__grid { gap: 0; }
  .how__left { display: contents; }               /* lets the CTA button sit after the steps */
  .how__left .eyebrow { order: 1; } .how__left h2 { order: 2; margin-bottom: 32px; }
  .il-block .how__photo { order: 3; height: 220px; margin: 0 0 36px; }
  .steps { order: 4; padding-top: 0; }
  .how__left .btn { order: 5; margin-top: 36px; }
  .steps li { gap: 20px; padding-bottom: 28px; }
  .steps li:not(:last-child)::after { left: 27px; top: 56px; bottom: -26px; }
  .steps__n { width: 54px; height: 54px; font-size: 20px; }
  .steps h3 { padding-top: 3px; font-size: 24px; }
  .steps p { margin-top: 8px; font-size: 15px; line-height: 1.65; }

  .about { gap: 40px; }
  .about__photo { width: 100%; height: 440px; }
  .about__photo::before { left: -10px; bottom: -14px; width: 240px; height: 340px; }
  .about__badge { right: -6px; top: 24px; padding: 14px 18px; }
  .about__badge strong { font-size: 32px; }
  .about__badge span { margin-top: 6px; font-size: 9.5px; }
  .sec--lighter .container.about { padding-right: 26px; }
  .about__role { margin-bottom: 18px; font-size: 14px; }
  .about__text h2 { margin-bottom: 18px; font-size: 38px; }
  .about__text .lead { margin-bottom: 20px; }

  .results { gap: 40px; }
  .results__main h2 { margin-bottom: 32px; }
  .results__label { font-size: 11.5px; }
  .results__big { font-size: 62px; line-height: 1.05; }
  .results__text { margin-top: 12px; font-size: 16px; }
  .results__cases li { gap: 14px; padding: 20px 0; }
  .results__cases .i { width: 24px; height: 24px; }
  .results__cases strong { font-size: 16.5px; }
  .results__cases span { margin-top: 5px; font-size: 13px; }

  .reviews { gap: 16px; }
  .review { flex-direction: column-reverse; align-items: stretch; gap: 20px; padding: 28px 24px; }
  .review blockquote { font-size: 16.5px; }
  .review figcaption b { font-size: 20px; }
  .il-block .portrait { width: 96px; height: 96px; box-shadow: 0 0 0 10px var(--steel); }
  .il-block .portrait--empty { width: 76px; height: 76px; margin: 10px; gap: 3px; font-size: 9px; }
  .portrait--empty .i { width: 22px; height: 22px; }
  .portrait--empty span { display: none; }

  .faq { gap: 28px; }
  .faq__intro h2 { margin-bottom: 24px; font-size: 36px; }
  .faq summary { align-items: flex-start; padding: 22px 0; }
  .faq__n { width: 28px; padding-top: 2px; font-size: 16px; }
  .faq__q { font-size: 17px; }
  .faq__ic { width: 34px; height: 34px; margin-left: 16px; }
  .faq details p { padding: 0 0 22px 28px; font-size: 15px; line-height: 1.65; }

  .contact__grid { gap: 36px; }
  .contact__info h2 { margin-bottom: 20px; font-size: 36px; }
  .contact__info .lead { margin-bottom: 28px; }
  .contact__list { gap: 16px; padding-top: 22px; }
  .contact__list li { font-size: 16px; line-height: 1.5; gap: 14px; }
  .contact__list address, .contact__list a { word-break: break-word; min-width: 0; }
  .contact__list .i { width: 20px; height: 20px; }
  .form { padding: 30px 22px 26px; gap: 18px; }
  .form h3 { font-size: 26px; }
  .form label { font-size: 11.5px; }
  .form input { height: 54px; }
  .form .btn { padding: 17px 20px; }

  .footer { padding-top: 52px; }
  .footer__grid { flex-direction: column; gap: 36px; padding-bottom: 40px; }
  .footer__brand { gap: 16px; }
  .footer__col ul { gap: 12px; }
  .footer__links { gap: 4px; }
  .footer__links a { display: block; padding: 5px 0; font-size: 14.5px; }
  .footer__bottom { flex-direction: column; gap: 8px; padding-top: 22px; padding-bottom: 28px; font-size: 12.5px; }
}

/* phone-only hero sizes (tablet keeps the larger values above) */
@media (max-width: 767px) {
  .hero h1 { font-size: 36px; line-height: 1.1; margin-bottom: 20px; }
  .hero__bg { height: 458px; }
}

/* tablet portrait (768–1023): keep the photo at natural scale, centred, cards hugging the figure */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__bg { height: 560px; }
  .il-block .hero__bg img { inset: 0 auto 0 50%; width: auto; max-width: none; height: 100%; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
  .glass { width: 140px; }
  .glass--1 { left: calc(50% - 300px); bottom: 400px; }
  .glass--2 { right: calc(50% - 300px); bottom: 440px; }
  .glass--3 { left: calc(50% - 300px); bottom: 150px; }
  .glass--4 { right: calc(50% - 300px); bottom: 100px; }
  .hero__cta { flex-direction: row; }
  .hero__cta .btn { width: auto; padding: 16px 32px; }
}

/* ==========================================================================
   WORDPRESS / ELEMENTOR LAYER
   ========================================================================== */
/* Site header wrapper (header.php / Elementor Pro header location) */
.il-header { position: relative; z-index: 50; background: var(--lighter); border-bottom: 1px solid var(--line); }
.il-header--overlay { background: transparent; border-bottom-color: transparent; }
.site-header:has(.il-header--overlay),
[data-elementor-type="header"]:has(.il-header--overlay) { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.admin-bar .site-header:has(.il-header--overlay) { top: 0; }
.logo__img { display: block; max-height: 48px; width: auto; }
.nav__links .current-menu-item > a { color: var(--steel); }

/* Elementor wrappers around our blocks: no extra spacing */
.e-con.il-wrap { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.elementor-section.il-wrap > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }
.elementor-widget[class*="elementor-widget-il-"] { margin-bottom: 0 !important; }
.il-block, .il-block * { box-sizing: border-box; }


/* Contact form notices */
.form__notice { padding: 14px 16px; font-size: 15px; line-height: 1.5; border-left: 3px solid var(--steel); background: #fff; }
.form__notice--error { border-left-color: #B42318; color: #7A1A12; }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .wpcf7 form, .form .wpforms-form { display: flex; flex-direction: column; gap: 18px; }

/* Regular pages / posts (non-Elementor content) */
.page-shell { padding: 96px 0 120px; }
.page-shell__title { margin-bottom: 36px; font-size: clamp(34px, 4vw, 58px); line-height: 1.1; }
.entry-content { max-width: 820px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { color: var(--text); margin-top: 1.6em; }
.entry-content h2 { font-size: clamp(26px, 2.6vw, 34px); }
.entry-content h3 { font-size: 24px; }
.entry-content a { color: var(--steel); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { list-style: decimal; padding-left: 1.3em; }
.entry-content img { height: auto; }
.post-list { display: grid; gap: 40px; }
.post-list article h2 { font-size: 32px; margin-bottom: 10px; }
.post-list article h2 a:hover { color: var(--steel); }
.post-meta { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.pagination { margin-top: 56px; display: flex; gap: 10px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); }
.pagination .current { background: var(--navy); color: var(--on-dark); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

@media (max-width: 767px) {
  .page-shell { padding: 56px 0 72px; }
}
.about__text .lead p + p { margin-top: 1em; }
.results__cases strong a:hover { color: var(--silver); }
