:root {
  --navy: #071f36;
  --navy-light: #0d304f;
  --gold: #c79a4a;
  --gold-soft: #f7ead4;
  --ivory: #fffaf2;
  --white: #fffdf8;
  --ink: #0b2035;
  --muted: #66717c;
  --line: #eadcc3;
  --line-dark: rgba(247, 234, 212, 0.24);
  --identity-bg: var(--ivory);
  --surface-ink: var(--navy);
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Arial, Helvetica, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6ebef;
  --muted: #adb8c1;
  --gold: #c49b56;
  --gold-soft: #d9c395;
  --line: #354b5d;
  --line-dark: rgba(230, 235, 239, 0.16);
  --identity-bg: #102a40;
  --surface-ink: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font-family: var(--body);
  line-height: 1.55;
}

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

.contact-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(430px, 1fr);
}

.identity-panel,
.details-panel {
  padding: clamp(38px, 7vw, 92px);
}

.identity-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 72px;
  color: var(--ink);
  background: var(--identity-bg);
}

.contact-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--surface-ink);
  font-weight: 800;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--identity-bg);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(199, 154, 74, 0.3);
  outline-offset: 2px;
}

.card-theme-toggle {
  position: absolute;
  top: clamp(38px, 5vw, 66px);
  right: clamp(38px, 5vw, 66px);
}

.theme-toggle-icon {
  grid-area: 1 / 1;
  font-size: 19px;
  line-height: 1;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.theme-toggle-sun {
  opacity: 0;
  transform: scale(0.72);
}

html[data-theme="dark"] .theme-toggle-moon {
  opacity: 0;
  transform: scale(0.72);
}

html[data-theme="dark"] .theme-toggle-sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .contact-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.contact-logo {
  width: 66px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.contact-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-3px) scale(1.72);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-photo {
  position: relative;
  width: 190px;
  height: 228px;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid var(--gold);
  background: var(--navy-light);
  overflow: hidden;
}

.profile-photo::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(247, 234, 212, 0.26);
}

.profile-photo span {
  position: relative;
  z-index: 1;
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.2);
  transform-origin: center top;
}

.identity-main {
  text-align: center;
}

.identity-main .eyebrow {
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.identity-main h1,
.identity-main .role {
  margin-right: auto;
  margin-left: auto;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: 104px;
  line-height: 0.92;
}

h2 {
  font-size: 48px;
  line-height: 1.04;
}

.role {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.firm-note {
  max-width: 470px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.firm-note-centered {
  text-align: center;
}

.details-panel {
  display: grid;
  align-content: center;
  color: var(--white);
  background: var(--navy);
}

.details-inner {
  width: min(100%, 720px);
  margin: 0 auto;
}

.details-heading {
  width: 100%;
  display: grid;
  justify-items: center;
  margin-bottom: 34px;
  text-align: center;
}

.details-heading .eyebrow {
  width: 100%;
  text-align: center;
}

.details-heading h2 {
  width: 100%;
  text-align: center;
}

.contact-list {
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.contact-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  transition:
    color 180ms ease,
    padding-left 180ms ease;
}

.contact-row:hover {
  padding-left: 8px;
  color: var(--gold);
}

.contact-label {
  grid-column: 1;
  grid-row: 1;
  color: #9f6f28;
  font-size: 13px;
  font-weight: 800;
  justify-self: start;
  text-align: left;
  text-transform: uppercase;
}

.contact-icon {
  grid-column: 3;
  grid-row: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 131, 50, 0.72);
  color: #b78332;
  justify-self: end;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row strong,
.contact-row address {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 18px;
  font-style: normal;
  text-align: center;
}

.contact-row:hover strong,
.contact-row:hover address {
  color: var(--gold-soft);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.contact-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-weight: 850;
  text-align: center;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.contact-action:hover {
  transform: translateY(-2px);
}

.contact-action.primary {
  color: var(--white);
  background: #177a4b;
  border-color: #177a4b;
}

.contact-action.primary:hover {
  background: #11673e;
  border-color: #11673e;
}

.contact-action.secondary {
  min-height: 62px;
  color: var(--white);
  background: transparent;
  border-width: 2px;
  font-size: 17px;
}

.contact-action.facebook {
  color: var(--white);
  background: #1877f2;
  border-color: #1877f2;
}

.contact-action.facebook:hover {
  background: #1464cc;
  border-color: #1464cc;
}

.contact-action.linkedin {
  color: var(--white);
  background: #0a66c2;
  border-color: #0a66c2;
}

.contact-action.linkedin:hover {
  background: #084f96;
  border-color: #084f96;
}

.contact-action.appointment {
  grid-column: 1 / -1;
  min-height: 58px;
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  font-size: 17px;
}

.contact-action.appointment:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

@media (max-width: 860px) {
  .contact-page {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    min-height: 62vh;
    gap: 54px;
  }

  h1 {
    font-size: 64px;
  }
}

@media (max-width: 560px) {
  .identity-panel,
  .details-panel {
    padding: 30px 22px;
  }

  .identity-panel {
    min-height: 720px;
  }

  .card-theme-toggle {
    top: 30px;
    right: 22px;
  }

  .profile-photo {
    width: 168px;
    height: 202px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }

  .contact-row {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 5px 12px;
  }

  .contact-icon {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .contact-label,
  .contact-row strong,
  .contact-row address {
    grid-column: 2;
  }

  .contact-label {
    grid-row: 1;
  }

  .contact-row strong,
  .contact-row address {
    grid-row: 2;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
