:root {
  color-scheme: light;
  --ink: #182434;
  --muted: #626b75;
  --gold: #8b652f;
  --line: #e2ded5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fafafa;
  color: var(--ink);
  font:
    16px/1.6 Arial,
    Helvetica,
    sans-serif;
  padding-bottom: 130px;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #a47c3d;
  outline-offset: 4px;
}
button {
  font: inherit;
}
[hidden] {
  display: none !important;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px max(20px, calc((100vw - 1080px) / 2));
}
.brand {
  font:
    700 20px Georgia,
    serif;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: var(--gold);
}
.back {
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.back:hover {
  text-decoration: underline;
}
.detail-main {
  max-width: 1080px;
  margin: auto;
  padding: 30px 20px;
}
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 8px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 {
  font-size: 38px;
  margin: 0 0 10px;
}
h2 {
  font-size: 26px;
  margin: 0 0 18px;
}
.intro {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}
.profile-heading {
  margin-bottom: 24px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.gallery {
  min-width: 0;
}
.gallery-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #e9ecef;
}
.gallery-full {
  display: block;
}
.gallery-image {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px;
}
.gallery-thumbs button {
  flex-shrink: 0;
  width: 60px;
  height: 68px;
  border: 2px solid transparent;
  padding: 2px;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.gallery-thumbs button[aria-pressed="true"] {
  border-color: var(--gold);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.photo-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.about-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.about-card p {
  margin-top: 0;
}
.about-card dl {
  margin: 22px 0;
}
.about-card dl > div {
  border-top: 1px solid #ece9e3;
  padding: 12px 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
}
dd {
  margin: 2px 0 0;
  font-size: 16px;
}
.sample-disclosure {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.contact-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffffff5;
  border-top: 1px solid #d6ccb9;
  box-shadow: 0 -4px 24px #18243409;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
}
.dock-inner {
  max-width: 1040px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dock-inner > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.dock-actions {
  display: flex;
  gap: 12px;
}
.dock-actions a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 26px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.dock-actions svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.dock-call {
  color: #eed7b0;
  background: #182434;
  border: 1px solid #ad8c56;
}
.dock-whatsapp {
  color: white;
  background: #176b46;
  border: 1px solid #176b46;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: white;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
@media (max-width: 680px) {
  body {
    padding-bottom: 125px;
  }
  .detail-header {
    padding: 8px 14px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 0.5px;
  }
  .back {
    font-size: 14px;
  }
  .detail-main {
    padding: 20px 14px;
  }
  .profile-heading {
    margin-bottom: 18px;
  }
  h1 {
    font-size: 28px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .gallery-image {
    height: min(100vw, 390px);
  }
  .gallery-stage {
    border-radius: 10px;
  }
  .about-card {
    padding: 18px;
    border-radius: 10px;
  }
  h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .contact-dock {
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .dock-inner {
    display: block;
  }
  .dock-inner > p {
    font-size: 12px;
    text-align: center;
    margin-bottom: 6px;
  }
  .dock-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dock-actions a {
    min-height: 46px;
    padding: 10px;
    font-size: 14px;
  }
  .dock-actions svg {
    width: 21px;
    height: 21px;
  }
}

/* Gentle entry when the automatic gallery changes photos. */
.gallery-full:not([hidden]) .gallery-image {
  animation: gallery-reveal 280ms ease-out;
}
@keyframes gallery-reveal {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-full:not([hidden]) .gallery-image {
    animation: none;
  }
}

.gallery-stage {
  touch-action: pan-y pinch-zoom;
}
.gallery-image {
  user-select: none;
  -webkit-user-drag: none;
}
