/* Harbourline Advisory — professional services template
   Palette: navy / brass gold / paper / slate
   Type: Spectral (display, confident serif) · Source Sans 3 (body)
*/

:root {
  --navy: #0f2438;
  --navy-2: #16324c;
  --paper: #f6f4ee;
  --gold: #b28a4c;
  --gold-light: #d9b877;
  --slate: #5b6b78;

  --display: 'Spectral', Georgia, serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font-family: var(--body); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }

.kicker {
  font-family: var(--body); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 0.85rem;
}

.btn {
  display: inline-block; font-family: var(--body); font-weight: 600;
  font-size: 0.9375rem; padding: 0.9rem 1.7rem; text-decoration: none;
  border: 1px solid transparent; border-radius: 3px;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.demo-flag { background: var(--navy); color: var(--paper); font-size: 0.75rem; text-align: center; padding: 0.55rem 1rem; }
.demo-flag strong { color: var(--gold-light); }
.demo-flag a { margin-left: 0.75rem; text-decoration: underline; color: var(--paper); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 1.15rem; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.4rem; text-decoration: none; color: #fff; display: flex; flex-direction: column; line-height: 1.05; }
.brand span { font-family: var(--body); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: rgba(246,244,238,0.85); }
.nav-links a:hover { color: var(--gold-light); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: 0.6rem 1.25rem; border-radius: 3px; }
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; }

/* hero */
.hero { position: relative; min-height: min(88vh, 720px); display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,36,56,0.94) 0%, rgba(15,36,56,0.72) 50%, rgba(15,36,56,0.3) 100%); }
.hero-in { position: relative; max-width: 680px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; margin: 0 0 1.3rem; }
.hero .lead { font-size: 1.0625rem; max-width: 48ch; color: rgba(246,244,238,0.85); margin: 0 0 2rem; }

/* services */
.services { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-head { max-width: 560px; margin: 0 0 clamp(2.5rem, 6vw, 3.5rem); }
.section-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: rgba(15,36,56,0.12); border: 1px solid rgba(15,36,56,0.12); }
.service-card { background: var(--paper); padding: 2.25rem 1.75rem; }
.service-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; margin: 0 0 0.6rem; }
.service-card p { margin: 0; color: var(--slate); font-size: 0.9375rem; }

/* about */
.about { background: var(--navy); color: var(--paper); padding-block: clamp(4rem, 9vw, 6.5rem); }
.about-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-copy h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 0 0 1.1rem; color: #fff; }
.about-copy > p { max-width: 48ch; color: rgba(246,244,238,0.72); margin: 0 0 2rem; }
.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat-row b { display: block; font-family: var(--display); font-size: 1.75rem; color: var(--gold-light); }
.stat-row span { font-size: 0.8125rem; color: rgba(246,244,238,0.6); }
.about-photos { position: relative; height: clamp(320px, 40vw, 420px); }
.about-photo { position: absolute; background-size: cover; background-position: center; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.about-photo--a { width: 68%; height: 78%; top: 0; left: 0; }
.about-photo--b { width: 58%; height: 55%; bottom: 0; right: 0; border: 6px solid var(--navy); }

/* process */
.process { padding-block: clamp(4rem, 9vw, 6.5rem); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.process-step { border-top: 3px solid var(--gold); padding-top: 1.25rem; }
.process-step span { font-family: var(--display); font-size: 0.9375rem; color: var(--gold); font-weight: 600; }
.process-step h3 { font-family: var(--display); font-weight: 600; font-size: 1.375rem; margin: 0.4rem 0 0.5rem; }
.process-step p { margin: 0; color: var(--slate); font-size: 0.9375rem; }

/* trust band */
.trust-band { position: relative; background-size: cover; background-position: center; }
.trust-overlay { background: rgba(15,36,56,0.85); padding-block: clamp(4rem, 9vw, 6rem); color: #fff; }
.trust-band blockquote { margin: 0 0 1.25rem; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.45; max-width: 46ch; }
.trust-band cite { font-style: normal; font-size: 0.875rem; letter-spacing: 0.03em; color: var(--gold-light); }

/* portal plugin */
.portal-plugin { padding-block: clamp(4rem, 9vw, 6.5rem); }
.portal-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.portal-plugin h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 0 0 1.1rem; }
.portal-plugin > .wrap > div:first-child p { max-width: 44ch; color: var(--slate); }
.portal-mock { background: var(--navy); color: var(--paper); border-radius: 8px; padding: 1.5rem 1.6rem; box-shadow: 0 30px 60px -24px rgba(15,36,56,0.5); }
.portal-mock-head { display: flex; align-items: center; gap: 0.4rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(246,244,238,0.14); }
.portal-mock-head .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(246,244,238,0.25); }
.portal-mock-head b { margin-left: 0.6rem; font-size: 0.875rem; font-weight: 600; }
.portal-mock-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(246,244,238,0.08); font-size: 0.9375rem; }
.portal-mock-row em { font-style: normal; color: var(--gold-light); font-size: 0.8125rem; }
.portal-mock-row em.due { color: #e2a054; }
.portal-mock-btn { margin-top: 1.1rem; background: var(--gold); color: var(--navy); text-align: center; padding: 0.8rem; border-radius: 4px; font-weight: 700; font-size: 0.9375rem; }

/* cta */
.cta { background: var(--gold); background: linear-gradient(120deg, #efe3cd, var(--paper) 60%); padding-block: clamp(4rem, 9vw, 6rem); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 0.75rem; max-width: 18ch; }
.cta p { margin: 0; color: var(--slate); max-width: 42ch; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta .btn-ghost { border-color: var(--navy); color: var(--navy); }
.cta .btn-ghost:hover { background: var(--navy); color: #fff !important; }

/* footer */
.site-footer { background: #081420; color: rgba(246,244,238,0.55); }
.footer-in { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; font-size: 0.8125rem; }
.footer-credit a { color: var(--gold-light); text-decoration: underline; }

/* responsive */
@media (max-width: 900px) {
  .about-grid, .portal-in { grid-template-columns: 1fr; }
  .about-photos { order: -1; max-width: 380px; margin-inline: auto; }
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 64px 0 0 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; padding: 2rem var(--gutter);
    gap: 1.5rem; transform: translateX(100%); transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; width: 34px; height: 24px; position: relative; background: none; border: none; cursor: pointer; }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #fff; }
  .nav-toggle::before { top: 0; }
  .nav-toggle span { top: 11px; }
  .nav-toggle::after { bottom: 0; }
}
