:root {
  color-scheme: light;
  --navy: #08152e;
  --navy-2: #13223d;
  --ink: #172238;
  --muted: #596579;
  --paper: #f7f8fb;
  --blue-wash: #e8edf6;
  --line: #d3d9e3;
  --gold: #d6bd83;
  --white: #fff;
  --wrap: 1168px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, select { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 50; left: -9999px; top: 8px; padding: 12px 16px; background: #fff; color: var(--navy); }
.skip-link:focus { left: 12px; }

.site-header { position: relative; z-index: 10; min-height: 96px; color: var(--white); background: var(--navy); }
.header-inner { position: relative; min-height: 96px; display: flex; align-items: center; gap: 38px; }
.brand, .footer-brand {
  display: block;
  height: auto;
  overflow: visible;
  background: transparent;
}
.brand { width: 260px; flex: 0 0 260px; }
.footer-brand { width: 230px; flex: 0 0 230px; }
.brand img, .footer-brand img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 46px); margin-left: auto; }
.main-nav a, .header-call, .footer-links a { text-decoration: none; }
.main-nav a { color: #f1f3f7; font-size: 14px; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold); }
.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid #8b93a1;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.header-call:hover, .header-call:focus-visible { border-color: var(--gold); color: var(--gold); }
.phone-icon { width: 17px; height: 17px; }
.menu-button { display: none; }

.hero-stage {
  min-height: 840px;
  display: flex;
  align-items: center;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(6, 17, 38, .93) 0%, rgba(6, 17, 38, .76) 44%, rgba(6, 17, 38, .18) 100%), url("assets/hero-background.webp");
  background-size: cover;
  background-position: center;
}
.hero { padding-block: 84px; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.rule { display: inline-block; width: 27px; height: 1px; background: currentColor; flex: 0 0 27px; }
.hero h1, .practice h2, .about h2, .consultation h2, .notice-title {
  margin: 20px 0 0;
  color: inherit;
  font-family: "STIX Two Text", "Times New Roman", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero h1 { max-width: 720px; font-size: clamp(64px, 7vw, 100px); line-height: .98; }
.hero h1 em, .practice h2 em, .about h2 em, .consultation h2 em { font-style: normal; }
.hero-pitch { max-width: 600px; margin-top: 26px; }
.hero-pitch p { margin: 0 0 17px; color: #dce1eb; line-height: 1.65; }
.hero-pitch .lead {
  max-width: 590px;
  margin-bottom: 17px;
  color: #fff;
  font-family: "STIX Two Text", "Times New Roman", Georgia, serif;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.27;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; text-decoration: none; font-size: 14px; font-weight: 700; }
.button.primary { color: var(--navy); background: #e6cc91; box-shadow: 0 5px 16px rgba(0, 0, 0, .14); transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.button.primary:hover, .button.primary:focus-visible { background: #f0dba8; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transform: translateY(-1px); }
.text-link { color: inherit; text-underline-offset: 4px; }
.hero .text-link { color: #fff; }

.language-band { padding: 17px 0; background: #e9edf5; border-top: 1px solid rgba(214, 189, 131, .6); border-bottom: 1px solid #d5dbe5; }
.language-inner { display: flex; align-items: center; justify-content: flex-start; gap: clamp(40px, 5vw, 70px); }
.language-inner > p { margin: 0; color: #24334b; font-size: 14px; font-weight: 700; }
.language-links { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: clamp(14px, 2vw, 27px); }
.language-links a { color: #344158; font-size: 14px; text-underline-offset: 4px; }
.language-links a:hover, .language-links a:focus-visible { color: #0b1a36; }

.practice { padding-block: 104px 112px; }
.practice h2, .about h2 { margin: 0 0 31px; color: var(--navy-2); font-size: clamp(46px, 5vw, 64px); line-height: 1.05; }
.practice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.practice-list article {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 25px 25px 20px;
  background: #fff;
  border: 1px solid #d6dbe3;
  border-top: 2px solid #465b7c;
  box-shadow: 0 6px 18px rgba(8, 21, 46, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}
.practice-list article:hover { border-top-color: var(--gold); box-shadow: 0 10px 24px rgba(8, 21, 46, .09); transform: translateY(-2px); }
.practice-list h3 {
  margin: 0 0 16px;
  color: #1c2b43;
  font-family: "STIX Two Text", "Times New Roman", Georgia, serif;
  font-size: clamp(24px, 2.1vw, 31px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.025em;
}
.practice-list article > p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.62; }
.practice-list details { margin-top: auto; border-top: 1px solid #d9dee6; }
.practice-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 8px;
  color: #26354e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.practice-list summary::-webkit-details-marker { display: none; }
.practice-list summary::after {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-inline-end: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.practice-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.practice-list summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.practice-list details p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.about { padding-block: 104px 100px; background: var(--blue-wash); }
.about-grid { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 1.25fr); align-items: center; gap: clamp(52px, 7vw, 96px); }
.about-portrait {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(140deg, #ddd9d214, #302e2e47),
    #aaa9a7 url("./assets/nivar-stone-background.webp") center / cover;
  background-blend-mode: normal, luminosity;
  outline: 1px solid #b9c6d7;
  outline-offset: 7px;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask: url("./assets/nivar-portrait-mask.png") center / 100% 100% no-repeat;
  mask: url("./assets/nivar-portrait-mask.png") center / 100% 100% no-repeat;
}
.about-portrait img,
.about-portrait::after {
  transform: scale(1.65) translateY(-2.2%);
}
/* Blend only the new iris colour over the original photo's eye detail. */
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("./assets/nivar-iris-colour.webp") 50.97% 39.70% / 13.955% 4.386% no-repeat;
  --iris-mask:
    radial-gradient(ellipse .59% .59% at 47.61% 40.11%, #000 76%, transparent),
    radial-gradient(ellipse .59% .59% at 53.83% 40.03%, #000 76%, transparent);
  -webkit-mask-image: var(--iris-mask);
  mask-image: var(--iris-mask);
  mix-blend-mode: color;
}
.about-copy h2 { margin-bottom: 23px; }
.about-copy p { margin: 0 0 20px; color: #4e5c70; font-size: 15px; line-height: 1.68; }
.about-copy .principal-title { margin: -12px 0 23px; color: #65748a; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.signature { display: block; width: min(245px, 75%); height: auto; margin-top: 24px; }

.consultation {
  margin-block: 66px;
  padding: 52px clamp(26px, 5vw, 68px) 58px;
  color: #fff;
  background: var(--navy);
}
.consult-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.consultation .eyebrow { color: #e2cf9d; }
.language-control { display: flex; align-items: center; gap: 11px; color: #e7eaf0; font-size: 14px; }
.language-control select { min-width: 170px; min-height: 42px; padding: 0 12px; color: #fff; background: #132645; border: 1px solid #6d7b92; border-radius: 0; }
.consult-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); gap: 40px; padding-top: 30px; }
.consult-grid > div { min-width: 0; }
.consultation h2 { margin: 0 0 23px; color: #fff; font-size: clamp(48px, 5.5vw, 70px); line-height: .98; }
.consult-summary { max-width: 610px; margin: 0; color: #dbe1ec; font-size: 15px; line-height: 1.65; }
.consult-phone { align-self: center; padding-inline-start: 19px; border-inline-start: 1px solid rgba(255, 255, 255, .35); }
.consult-phone p { margin: 0 0 14px; color: #e5e9f0; font-size: 14px; }
.number { display: inline-block; color: #fff; font-family: "STIX Two Text", "Times New Roman", Georgia, serif; font-size: clamp(27px, 3vw, 36px); line-height: 1.2; text-underline-offset: 5px; white-space: nowrap; }
.copy-number { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin: 14px 0 9px; padding: 0 11px; color: #f6f7fa; background: transparent; border: 1px solid #8691a3; cursor: pointer; font-size: 13px; }
.copy-number:hover, .copy-number:focus-visible { border-color: var(--gold); color: var(--gold); }
.copy-number svg { width: 17px; height: 17px; }
.copy-status { display: block; min-height: 18px; color: #dfd09f; font-size: 12px; }
.consult-phone .text-link { display: inline-block; margin-top: 7px; color: #f3f4f7; font-size: 14px; }

footer { color: #fff; background: #061126; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 25px; }
.footer-brand { width: 230px; height: auto; }
.footer-links { display: flex; align-items: center; gap: 26px; color: #dce1e9; font-size: 13px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }

.notice-page { min-height: 100vh; background: var(--paper); }
.notice-page .site-header { margin-bottom: 0; }
.notice-main { min-height: calc(100vh - 168px); padding-block: 82px; }
.notice-title { margin: 0 0 24px; color: var(--navy-2); font-size: clamp(44px, 5vw, 64px); }
.notice-copy { max-width: 800px; color: var(--muted); line-height: 1.75; }
.notice-copy p { margin: 0 0 18px; }
.notice-back { display: inline-block; margin-top: 20px; color: var(--navy); text-underline-offset: 4px; }

:focus-visible { outline: 3px solid #c6a557; outline-offset: 3px; }
@media (max-width: 900px) {
  .header-inner { gap: 24px; }
  .main-nav { gap: 20px; }
  .practice { padding-block: 76px 84px; }
  .practice-list article { padding: 22px 20px 18px; }
  .about { padding-block: 78px; }
  .about-grid { gap: 42px; }
}
@media (max-width: 700px) {
  .wrap { width: min(var(--wrap), calc(100% - 36px)); }
  .site-header, .header-inner { min-height: 78px; }
  .header-inner { gap: 12px; }
  .brand { width: 174px; flex-basis: 174px; }
  .main-nav { display: none; }
  .site-header.nav-open .main-nav {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: -18px;
    left: -18px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 16px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .17);
  }
  .main-nav a { padding: 12px 0; font-size: 15px; }
  .header-call { min-height: 40px; margin-left: auto; padding: 0 10px; font-size: 12px; }
  .header-call .phone-icon { width: 15px; }
  .menu-button {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: 1px solid #738097;
    cursor: pointer;
  }
  .menu-button span { width: 16px; height: 1px; background: #fff; }
  .hero-stage { min-height: min(760px, calc(100svh - 78px)); background-position: 78% center; }
  .hero { padding-block: 78px; }
  .hero-copy { max-width: 590px; }
  .hero h1 { font-size: clamp(56px, 14vw, 76px); }
  .hero-pitch .lead { font-size: 24px; }
  .hero-pitch p:not(.lead) { font-size: 14px; }
  .language-band { padding: 16px 0; }
  .language-inner { align-items: center; flex-direction: column; gap: 12px; }
  .language-links { width: 100%; justify-content: center; flex-wrap: nowrap; gap: clamp(16px, 4.2vw, 20px); }
  .language-links a { font-size: 13px; line-height: 1.2; white-space: nowrap; }
  .language-detail { display: none; }
  .practice { padding-block: 64px; }
  .practice h2, .about h2 { margin-bottom: 24px; font-size: 48px; }
  .practice-list { grid-template-columns: 1fr; gap: 14px; }
  .practice-list article { min-height: 0; padding: 23px 21px 18px; }
  .practice-list h3 { font-size: 27px; }
  .about { padding-block: 62px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-portrait { width: min(65%, 240px); }
  .about-copy p { font-size: 14px; }
  .consultation { width: calc(100% - 36px); margin-block: 35px; padding: 28px 22px 32px; }
  .consult-top { align-items: flex-start; flex-direction: column; gap: 17px; }
  .language-control { width: 100%; justify-content: space-between; }
  .language-control select { min-width: 0; width: min(60%, 220px); }
  .consult-grid { grid-template-columns: 1fr; gap: 27px; padding-top: 25px; }
  .consultation h2 { font-size: 52px; }
  .consult-phone { padding: 0; border: 0; }
  .number { font-size: 30px; }
  .footer-inner { align-items: center; flex-direction: column; gap: 10px; padding-block: 18px; }
  .footer-brand { width: 190px; flex: 0 0 auto; }
  .footer-links { justify-content: center; flex-wrap: nowrap; gap: 16px; }
  .notice-main { padding-block: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Contact and site language controls for the approved navy design. */
.phone-action { display: none !important; }
.language-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .27em; }
.language-links a { white-space: nowrap; }
.language-links a[dir="auto"] { unicode-bidi: isolate; }
.contact-more { display: grid; justify-items: start; gap: 15px; margin-block-start: 15px; min-width: 0; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 100%; }
.contact-links .text-link { margin: 0; overflow-wrap: anywhere; }
.whatsapp-button { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; max-width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid currentColor; border-radius: 2px; color: inherit; font-weight: 600; font-size: 14px; line-height: 1.5; text-decoration: none; }
.whatsapp-button bdi { white-space: nowrap; font-weight: 400; }
.whatsapp-button:hover, .whatsapp-button:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
html:not(.enhanced) .enhanced-control { display: none; }
html[dir="rtl"] .hero { direction: ltr; }
html[dir="rtl"] .hero-copy { direction: rtl; text-align: start; }
html[dir="rtl"] .main-nav { margin-left: 0; margin-inline-start: auto; }
html[dir="rtl"] .hero-copy h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .eyebrow { letter-spacing: normal; }
html[dir="rtl"] .hero-copy h1, html[dir="rtl"] .about h2, html[dir="rtl"] .practice h2, html[dir="rtl"] .consultation h2 { line-height: 1.22; }
html[dir="rtl"] em { font-style: normal; }
html[dir="rtl"] .about-copy p, html[dir="rtl"] .practice-list p, html[dir="rtl"] .consult-summary { text-align: start; line-height: 1.85; }
html[dir="rtl"] .number { display: inline-block; direction: ltr; }
@media (max-width: 700px) {
  .desktop-action { display: none !important; }
  .phone-action.button, .phone-action.header-call { display: inline-flex !important; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(6px, 2.6vw, 12px); }
  .brand { width: min(174px, 100%); }
  .header-call { margin-inline: 0; }
  .language-links { width: 100%; justify-content: center; gap: clamp(10px, 4.2vw, 20px); }
  .language-links a { font-size: clamp(12px, 3.5vw, 14px); }
  .site-header .main-nav { grid-column: 1 / -1; }
  html:not(.enhanced) .menu-button { display: none; }
  html:not(.enhanced) .main-nav { display: flex; position: static; flex-wrap: wrap; grid-row: 2; margin: 0; padding-bottom: 5px; }
  html:not(.enhanced) .header-inner { min-height: 78px; padding-top: 9px; row-gap: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip-link:not(:focus) { left: auto; inset-inline-start: 0; inline-size: 1px; block-size: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.notice-languages { margin-block-start: 30px; }
.notice-languages > p { font-size: 14px; color: var(--muted); margin: 0 0 9px; }
.notice-languages .language-links { width: auto; display: inline-flex; flex-wrap: wrap; }
html[dir="rtl"] .notice-copy { text-align: start; }
@media (min-width: 701px) and (max-width: 900px) {
  .header-inner { gap: clamp(12px, 2vw, 22px); }
  .brand { width: clamp(160px, 23vw, 220px); flex-basis: clamp(160px, 23vw, 220px); }
  .main-nav { gap: clamp(12px, 2vw, 20px); }
  .header-call { padding-inline: 12px; }
}
