/* =========================================================
   Contact — page-specific styles only.
   Nav, buttons, footer, typography: css/site.css
   ========================================================= */

/* ---------------------------
   Page colour tokens
   --------------------------- */
:root{
  --ob-bg:     #061622;
  --ob-bg-2:   #03101c;
  --ob-card:   rgba(255,255,255,0.06);
  --ob-border: rgba(255,255,255,0.10);
  --ob-muted:  rgba(255,255,255,0.70);
  --ob-muted-2:rgba(255,255,255,0.55);
  --ob-radius: 28px;
}

/* ---------------------------
   Page background
   --------------------------- */
body{
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(var(--ob-bg), var(--ob-bg-2));
  color: rgba(255,255,255,0.92);
}

/* ---------------------------
   Hero image strip
   --------------------------- */
.ob-hero{
  position: relative;
  height: clamp(340px, 48vh, 560px);
  background-color: #0b1f2e;
  background-image: url("../img/hero-contact.jpg");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.ob-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.24) 38%, rgba(0,0,0,0.00) 76%),
    radial-gradient(900px 260px at 30% 0%, rgba(0,0,0,0.32), transparent 60%);
  pointer-events: none;
}

.ob-hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(6,22,34,0), rgba(6,22,34,0.95));
  pointer-events: none;
}

/* ---------------------------
   Shell — overlaps hero
   --------------------------- */
.ob-shell{
  max-width: 1120px;
  margin: -180px auto 0;
  position: relative;
  z-index: 1;
  padding: 0 24px 40px;
}

/* ---------------------------
   Intro text
   --------------------------- */
.ob-intro{ margin-bottom: 26px; }

/* Override site-title size — Contact uses a much larger display size */
.ob-h1{
  font-size: clamp(64px, 6.4vw, 110px);
  letter-spacing: -0.02em;
  text-align: left;
  margin-bottom: 10px;
}

.ob-sub{
  margin: 0;
  color: var(--ob-muted);
  font-size: 1.125rem;
  line-height: 1.35;
  max-width: 560px;
}

.ob-sub__gold{ color: var(--site-gold); }

/* ---------------------------
   Main row: left + portrait
   --------------------------- */
.ob-row{
  display: flex;
  gap: 28px;
  align-items: stretch;   /* both sides same height */
}

.ob-left{
  flex: 1 1 560px;
  min-width: 360px;
  display: flex;
  flex-direction: column;
}

/* Push cards to bottom — intro stays top */
.ob-left .ob-intro{ flex-shrink: 0; }
.ob-left .ob-card--identity{ margin-top: auto; }  /* spacer pushes cards down */

/* ---------------------------
   Contact card (iOS-style rows)
   --------------------------- */
.ob-card{
  background: var(--ob-card);
  border: 1px solid var(--ob-border);
  border-radius: var(--ob-radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ob-item{
  display: grid;
  grid-template-columns: 140px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ob-item:hover{ background: rgba(255,255,255,0.04); }

.ob-item:focus-visible{
  outline: 2px solid rgba(201,170,88,0.55);
  outline-offset: -2px;
}

.ob-item__label{
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ob-muted-2);
}

.ob-item__value{
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  justify-self: end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.ob-item__chev svg path{ fill: rgba(255,255,255,0.45); }
.ob-item--last{ border-bottom: none; }

/* Static (non-link) item — no hover, no chevron */
.ob-item--static{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Name-only row: no label column, full width */
.ob-item--name-only{
  grid-template-columns: 1fr;
  padding: 18px 18px;
}

/* Bold name value */
.ob-item__value--name{
  font-weight: 700;
  font-size: 1.25rem;   /* 2 steps up from base 1rem */
  justify-self: start;
}

/* ---------------------------
   Portrait
   --------------------------- */
.ob-portrait{
  flex: 0 0 420px;
  border-radius: var(--ob-radius);
  border: 1px solid var(--ob-border);
  background: linear-gradient(var(--ob-bg), var(--ob-bg-2));
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.ob-portrait picture{
  width: 100%;
  display: flex;
}

.ob-portrait img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
  transform-origin: center top;
}

/* ---------------------------
   Responsive
   --------------------------- */
@media (max-width: 980px){
  .ob-shell{ margin-top: -120px; }
  .ob-row{ flex-direction: column; align-items: stretch; }
  .ob-left{ min-width: 0; }
  .ob-portrait{
    flex: none;
    width: 100%;
    max-width: 560px;
  }
  .ob-item{ grid-template-columns: 120px 1fr 22px; }
}

@media (max-width: 640px){
  .ob-shell{ margin-top: -80px; }
  .ob-h1{ font-size: clamp(48px, 12vw, 72px); }
}

/* Name above contact card — no box, golden, pushed to bottom */
.ob-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--site-gold, #c8a45b);
  margin: 0 0 14px 0;
}

/* Push name + card to bottom of left column */
.ob-left .ob-name { margin-top: auto; }
