/* Dr. Jessica E. Metcalfe — shared styles. Tokens follow the design system (JEM). */

:root {
  --teal: #0F4C5C;
  --coral: #A8492F;
  --peach: #F0C4B0;
  --apricot: #E8A589;
  --shell: #F6E7DC;
  --white: #FFFFFF;
  --ink: #1D3139;
  --ink-soft: #354951;
  --ink-muted: #47636F;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Mulish, 'Helvetica Neue', Arial, sans-serif;

  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --radius: 8px;
  --wrap: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 27px;
}

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

a { color: var(--coral); font-weight: 700; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--s4); }

/* ---- Type ---- */

.display { font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 54px; text-wrap: balance; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--coral); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 44px; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 38px; text-wrap: balance; }
.h3 { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 28px; }
.small { font-size: 15px; line-height: 24px; }
.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.measure { max-width: 640px; }

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--shell);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: #963F28; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; }

/* ---- Header ---- */

.site-header { background: var(--shell); border-bottom: 1px solid var(--peach); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s3); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); font-weight: 400; }
.brand img { width: 96px; height: auto; }
/* The hub's full lockup: as tall as the sub-brand lockups in their headers (220px wide at 389 × 209). */
.brand img.lockup { width: 246px; }
.brand span { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 28px; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a { color: var(--ink-soft); font-weight: 400; font-size: 16px; line-height: 24px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--peach); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a.btn { color: var(--shell); font-weight: 700; padding: 8px 20px; text-decoration: none; }
.menu { display: none; }

/* ---- Sections ---- */

.section { padding-block: var(--s6); }
.section + .section { border-top: 1px solid var(--peach); }
.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--s5); }
.section-head.split p { max-width: 480px; }
.on-white { background: var(--white); }
.on-teal { background: var(--teal); color: var(--shell); }
.on-teal .label, .on-teal .soft { color: var(--shell); }
.on-teal .display em, .on-teal .h1 em, .on-teal .h2 em { color: var(--peach); }
.on-teal a:not(.btn) { color: var(--shell); }
.on-peach { background: var(--peach); }
.on-peach .label { color: var(--ink-soft); }
.on-peach .h1 em, .on-peach .h2 em { color: var(--teal); }

.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s4); }

/* ---- Hero ---- */

.hero { position: relative; background: var(--teal); color: var(--shell); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 22%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,76,92,0.94) 0%, rgba(15,76,92,0.78) 38%, rgba(15,76,92,0) 66%); }
.hero .wrap { position: relative; z-index: 1; min-height: 620px; display: flex; align-items: center; padding-block: var(--s6); }
.hero-copy { max-width: 560px; display: flex; flex-direction: column; gap: var(--s4); }
.hero .label { color: var(--shell); }
.hero .display { font-size: 76px; line-height: 70px; }
.hero .display em { color: var(--peach); }
.hero p { font-size: 20px; line-height: 30px; max-width: 480px; }
.hero a:not(.btn) { color: var(--shell); }

.page-head { padding-block: var(--s6); }
.page-head .wrap { display: flex; flex-direction: column; gap: var(--s3); }
.page-head p { max-width: 640px; }

/* ---- Cards ---- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }

.card { background: var(--white); border: 1px solid var(--peach); border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.card.tight { padding: var(--s4); }
.card.teal { background: var(--teal); border-color: var(--teal); color: var(--shell); }
.card.teal .label, .card.teal .soft { color: var(--shell); }
.card.teal a { color: var(--shell); }
.card.peach { background: var(--peach); }
.card.peach .label { color: var(--ink-soft); }
.card.shell { background: var(--shell); }
.card .push { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--peach); }
.card.teal .push { border-top-color: rgba(246,231,220,0.35); }
.card.peach .push { border-top-color: var(--apricot); }

.property { text-decoration: none; font-weight: 400; color: inherit; }
.property:hover .h1 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* The property cards lead with each sub-brand's own logo and colour (brand book, 2026-10-14). */
.property-logo { width: 200px; height: 108px; object-fit: contain; object-position: left center; margin-bottom: var(--s2); }
.card.harbour { background: #1E4A6E; border-color: #1E4A6E; color: #F6E7DC; }
.card.harbour .label, .card.harbour .soft { color: #F6E7DC; }
.card.harbour .push { border-top-color: #7C9CC4; }
.card.mulberry { background: #6B2D4A; border-color: #6B2D4A; color: #F7E4E4; }
.card.mulberry .label, .card.mulberry .soft { color: #F7E4E4; }
.card.mulberry .push { border-top-color: #C47A8A; }
.card.mist { background: #E3EBF2; border-color: #C9D7E3; color: #1D3139; }
.card.mist .label { color: #1E4A6E; }
.card.mist .push { border-top-color: #7C9CC4; }
.property .domain { font-size: 15px; line-height: 24px; font-weight: 700; overflow-wrap: anywhere; }

/* ---- Split (photo + text) ---- */

.split-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); align-items: center; }
.split-block.narrow-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--teal); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.photo.wide img { aspect-ratio: 4 / 3; }

/* ---- Lists ---- */

.ticks { display: flex; flex-direction: column; gap: var(--s2); }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--peach); border-radius: 50%; }
.on-teal .ticks li::before, .card.teal .ticks li::before { background: var(--apricot); }

.rows { border-top: 1px solid var(--peach); }
.rows > li, .rows > a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); padding-block: var(--s4); border-bottom: 1px solid var(--peach); }
.rows a.row-link { text-decoration: none; color: inherit; font-weight: 400; }

.names { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 36px; }
.names li:not(:last-child)::after { content: "·"; margin-left: var(--s4); color: var(--apricot); }

/* ---- Quotes ---- */

.quote { display: flex; flex-direction: column; gap: var(--s4); justify-content: space-between; }
.quote blockquote { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 32px; }
.quote .who { font-size: 15px; line-height: 24px; }
.quote .who strong { display: block; }

.belief { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 32px; line-height: 38px; }

/* ---- Topics ---- */

.topic { border-top: 1px solid var(--peach); padding-block: var(--s5); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); }
.topic:last-child { border-bottom: 1px solid var(--peach); }
.topic .pillars { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.pill { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); background: var(--peach); border-radius: var(--radius); padding: 4px 12px; }
details { border-top: 1px solid var(--peach); margin-top: var(--s3); padding-top: var(--s3); }
summary { cursor: pointer; font-weight: 700; color: var(--coral); font-size: 16px; line-height: 24px; }
details[open] summary { margin-bottom: var(--s3); }

/* ---- Forms ---- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field label { font-size: 15px; line-height: 24px; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 18px; line-height: 27px; color: var(--ink);
  background: var(--white); border: 1px solid var(--ink-muted); border-radius: var(--radius);
  padding: 10px 14px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: 15px; line-height: 24px; color: var(--ink-soft); }
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */

.site-footer { background: var(--teal); color: var(--shell); padding-block: var(--s6) var(--s5); border-top: 1px solid rgba(246,231,220,0.35); }
.site-footer a { color: var(--shell); font-weight: 400; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--s5); padding-bottom: var(--s5); }
.footer-top img { width: 260px; height: auto; margin: -28px 0 0 -36px; }
.footer-col { display: flex; flex-direction: column; gap: var(--s2); font-size: 15px; line-height: 24px; }
.footer-col .label { color: var(--shell); margin-bottom: var(--s2); }
.footer-bottom { border-top: 1px solid rgba(246,231,220,0.35); padding-top: var(--s4); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 15px; line-height: 24px; }

/* ---- Responsive ---- */

@media (max-width: 1000px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; color: var(--ink); border: 1px solid var(--ink-muted); border-radius: var(--radius); padding: 8px 16px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu, .menu[open] summary { margin: 0; padding-top: 0; border-top: 0; }
  .menu[open] summary { margin-bottom: 0; }
  .menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; background: var(--white); border: 1px solid var(--peach); border-radius: var(--radius); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s3); min-width: 240px; }
  .menu nav a { color: var(--ink); font-weight: 400; text-decoration: none; }
  .menu nav a.btn { color: var(--shell); font-weight: 700; text-align: center; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-block, .split-block.narrow-photo { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: var(--s3); }
}

@media (max-width: 700px) {
  .wrap { padding-inline: var(--s3); }
  .brand img { width: 72px; }
  .brand img.lockup { width: 188px; }
  .brand span { font-size: 20px; line-height: 24px; }
  .display { font-size: 44px; line-height: 44px; }
  .hero .display { font-size: 50px; line-height: 48px; }
  .hero .wrap { min-height: 0; padding-block: var(--s5) 320px; align-items: flex-start; }
  .hero-photo { object-position: 74% 12%; top: auto; height: 340px; }
  .hero::after { background: linear-gradient(180deg, rgba(15,76,92,1) 0%, rgba(15,76,92,1) calc(100% - 340px), rgba(15,76,92,0) calc(100% - 250px)); }
  .h1 { font-size: 34px; line-height: 38px; }
  .grid-2, .grid-3, .grid-4, .form { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--s4); }
  .section, .page-head { padding-block: var(--s5); }
  .rows > li, .rows > a, .topic { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .topic { gap: var(--s3); }
  .names { font-size: 24px; line-height: 32px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .belief { font-size: 28px; line-height: 34px; }
}
