/* ============================================================
   IUSTITIA LAW CHAMBERS LLP — Core stylesheet
   Edit colours/typography in :root. Layout overrides live in
   responsive.css; motion rules live in animations.css.
   ============================================================ */

:root {
  --black: #101010;
  --black-2: #181818;
  --black-3: #202020;
  --gold: #b08d57;
  --gold-light: #d0b27a;
  --gold-soft: rgba(176, 141, 87, 0.18);
  --text: #f5f2ec;
  --text-muted: #b8b2a8;
  --paper: #f5f2ec;
  --ink: #191919;
  --ink-muted: #5d574e;
  --line-dark: rgba(245, 242, 236, 0.12);
  --line-light: rgba(25, 25, 25, 0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 84px;
  --radius: 3px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: #101010;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(3rem, 6.4vw, 5.9rem);
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
}

h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.9;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.eyebrow--dark {
  color: var(--gold);
}

.section-intro {
  max-width: 660px;
}

.section-intro p {
  color: var(--text-muted);
}

.gold-rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 1.6rem 0;
}

.text-gold {
  color: var(--gold-light);
}

.muted {
  color: var(--text-muted);
}

.placeholder-note {
  display: inline-block;
  border: 1px dashed rgba(176, 141, 87, 0.6);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 2px;
}

.placeholder-note--dark {
  color: #7b5d2d;
  border-color: rgba(123, 93, 45, 0.5);
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - (var(--gutter) * 2), 1400px);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .section-intro p,
.section--paper p {
  color: var(--ink-muted);
}

.section--subtle {
  background: var(--black-2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}

.section-head .section-intro {
  max-width: 700px;
}

.section-head > a {
  flex: 0 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.8rem 1.7rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}

.btn--gold {
  background: var(--gold);
  color: #14110c;
}

.btn--gold::before {
  background: var(--gold-light);
}

.btn--ghost {
  color: var(--text);
  border-color: rgba(245, 242, 236, 0.35);
}

.btn--ghost::before {
  background: rgba(245, 242, 236, 0.1);
}

.btn--dark {
  color: var(--ink);
  border-color: rgba(25, 25, 25, 0.35);
}

.btn--dark::before {
  background: rgba(25, 25, 25, 0.08);
}

.btn--small {
  min-height: 42px;
  padding: 0.6rem 1.2rem;
  font-size: 0.67rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 0.25rem;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.text-link--dark {
  color: #896b3e;
}

.text-link .arrow {
  transition: transform 0.35s var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--gold);
  color: var(--black);
  padding: 0.7rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 16, 16, 0.92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
  transition: height 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(12, 12, 12, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - (var(--gutter) * 2), 1400px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand__sub {
  margin-top: 0.32rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.7vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav a.nav-contact {
  color: var(--gold-light);
  border: 1px solid rgba(176, 141, 87, 0.55);
  padding: 0.55rem 1.05rem;
  border-radius: 2px;
}

.primary-nav a.nav-contact::after {
  display: none;
}

.primary-nav a.nav-contact:hover {
  background: var(--gold-soft);
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(880px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0b0b0b;
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(12, 12, 12, 0.78) 48%, rgba(12, 12, 12, 0.52) 100%),
    linear-gradient(0deg, #101010 0%, rgba(16, 16, 16, 0) 32%),
    url("../assets/images/banners/hero-columns.svg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 75% 40%, rgba(176, 141, 87, 0.14), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.hero__content {
  max-width: 830px;
}

.hero__seal {
  width: 88px;
  height: 88px;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero h1 {
  max-width: 15ch;
  color: var(--text);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__intro {
  max-width: 610px;
  margin-top: 1.8rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__meta span:not(.dot) {
  white-space: nowrap;
}

.hero__meta .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll i {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold), transparent);
}

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background-color: var(--black-2);
  background-image:
    linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.78)),
    url("../assets/images/banners/inner-banner.svg");
  background-size: cover;
  background-position: center 40%;
  border-bottom: 1px solid var(--line-dark);
}

.page-banner__inner {
  position: relative;
  max-width: 780px;
}

.page-banner h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.8rem, 5.6vw, 4.7rem);
}

.page-banner p {
  margin-top: 1.3rem;
  color: var(--text-muted);
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb span[aria-hidden] {
  color: var(--gold);
}

/* ---------- Notice strip ---------- */
.notice-strip {
  background: var(--black-3);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 0.9rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.notice-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.notice-strip strong {
  color: var(--gold-light);
  font-weight: 600;
}

.notice-strip a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(1.6rem, 3vw, 2.35rem);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(176, 141, 87, 0.55);
  transform: translateY(-5px);
}

.card--paper {
  background: #fffdf9;
  border-color: var(--line-light);
}

.card--paper:hover {
  border-color: rgba(137, 107, 62, 0.6);
}

.card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.card h3 {
  margin-bottom: 0.85rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card--paper p {
  color: var(--ink-muted);
}

.card .text-link {
  margin-top: 1.5rem;
}

.card__index {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.55;
}

/* Portrait cards */
.person-card {
  border: 1px solid var(--line-dark);
  background: var(--black-2);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.person-card:hover {
  border-color: rgba(176, 141, 87, 0.55);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.person-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #151515;
}

.person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.person-card:hover .person-card__media img {
  transform: scale(1.045);
}

.person-card__badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  background: rgba(16, 16, 16, 0.85);
  border: 1px solid rgba(176, 141, 87, 0.5);
  color: var(--gold-light);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}

.person-card__body {
  padding: 1.6rem 1.5rem 1.75rem;
}

.person-card__role {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.person-card__body h3 {
  margin: 0.5rem 0 0.6rem;
  font-size: 1.5rem;
}

.person-card__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 2.8em;
}

.person-card__body .text-link {
  margin-top: 1.1rem;
}

/* ---------- Intro visual ---------- */
.visual-frame {
  position: relative;
  border: 1px solid rgba(176, 141, 87, 0.35);
  padding: 1rem;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(176, 141, 87, 0.16);
  pointer-events: none;
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-frame__caption {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
}

/* ---------- Values / why choose ---------- */
.value-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.value-list li:first-child {
  border-top: 1px solid var(--line-dark);
}

.value-list .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
}

.value-list h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.value-list p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Offices ---------- */
.office-card {
  border: 1px solid var(--line-dark);
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.015);
  height: 100%;
}

.office-card h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.office-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.office-card address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.office-card .text-link {
  font-size: 0.68rem;
}

.map-frame {
  border: 1px solid var(--line-dark);
  background: #1a1a1a;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) invert(0.92) brightness(0.86) contrast(0.92);
}

/* ---------- Publications ---------- */
.article-card {
  border-top: 1px solid var(--line-dark);
  padding-block: 2rem;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  align-items: start;
  transition: border-color 0.35s ease;
}

.article-card:hover {
  border-color: var(--gold);
}

.article-card__meta {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.article-card__meta span {
  display: block;
  margin-top: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.article-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.65rem;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

.article-card__arrow {
  font-size: 1.4rem;
  color: var(--gold);
  align-self: center;
}

/* ---------- Timeline / achievements ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(176, 141, 87, 0.05));
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0.55rem;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  background: var(--black);
  transform: rotate(45deg);
}

.timeline__label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.timeline__item h3 {
  margin-block: 0.7rem 0.6rem;
}

.timeline__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 68ch;
}

/* ---------- Profile / editorial ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.profile-portrait {
  position: relative;
  border: 1px solid rgba(176, 141, 87, 0.35);
  padding: 0.8rem;
  background: var(--black-2);
}

.profile-portrait::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(176, 141, 87, 0.14);
  pointer-events: none;
}

.profile-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-portrait figcaption {
  padding: 1rem 0.3rem 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
}

.profile-header h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.profile-header .role {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-block: 2.5rem;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.profile-facts div {
  background: var(--black);
  padding: 1.2rem 1.35rem;
}

.profile-facts dt {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.profile-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.profile-block {
  margin-top: 2.8rem;
}

.profile-block h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.profile-block p,
.profile-block li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.profile-block li {
  margin-bottom: 0.55rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-aside {
  border: 1px solid var(--line-dark);
  padding: 1.8rem;
  background: var(--black-2);
}

.detail-aside h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.detail-aside li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.form-card {
  border: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--black-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field label .req {
  color: var(--gold-light);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  background: #111;
  border: 1px solid rgba(245, 242, 236, 0.16);
  color: var(--text);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #151515;
}

.field [aria-invalid="true"] {
  border-color: #d98c7d;
}

.field .error {
  min-height: 1.1rem;
  font-size: 0.75rem;
  color: #e3a496;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
}

.form-status {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(176, 141, 87, 0.1);
  font-size: 0.85rem;
  color: var(--text);
}

.contact-aside h2 {
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
}

.contact-detail {
  border-bottom: 1px solid var(--line-dark);
  padding-block: 1.1rem;
}

.contact-detail span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.contact-detail p {
  font-size: 0.92rem;
  color: var(--text-muted);
  word-break: break-word;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(110deg, #16130e 0%, #101010 60%);
  border-top: 1px solid rgba(176, 141, 87, 0.25);
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.cta-band h2 {
  max-width: 800px;
  margin-inline: auto;
}

.cta-band p {
  margin: 1.2rem auto 2rem;
  max-width: 620px;
  color: var(--text-muted);
}

.cta-band .btn {
  margin-inline: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b0b0b;
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}

.footer-brand .brand {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 34ch;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-top: 1.5rem;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-col a,
.footer-col li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-col address {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-col address strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  max-width: 760px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #8e8880;
}

/* ---------- WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f9d55;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--black-3);
  border: 1px solid var(--line-dark);
  color: var(--text);
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 0.5rem 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- Misc ---------- */
.empty-state {
  border: 1px dashed var(--line-dark);
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line-dark);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  margin: 0 0.4rem 0.4rem 0;
}

.tag--gold {
  border-color: rgba(176, 141, 87, 0.5);
  color: var(--gold-light);
}

hr.divider {
  border: 0;
  border-top: 1px solid var(--line-dark);
  margin-block: 2.5rem;
}

hr.divider--dark {
  border-color: var(--line-light);
}
