/* Frontera Capital Group — house style
   Font: Lato · Primary #5F1419 · Secondary boxes #F3F2E9 · Borders #AD9D74 · Text justified */

:root {
  --burgundy: #5F1419;
  --burgundy-deep: #2E0A0C;
  --cream: #F3F2E9;
  --gold: #AD9D74;
  --gold-soft: #D9CFB4;
  --ink: #1A1414;
  --muted: #5C5454;
  --line: #E6E1D6;
  --white: #FFFFFF;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose p, .justify { text-align: left; }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 20px; }
.intro { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.55; color: var(--ink); font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: .82rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* House-style bullets: ▪ first · • second · – third */
ul.house { list-style: none; padding-left: 1.3em; margin: 0 0 1em; }
ul.house > li { position: relative; margin-bottom: .45em; }
ul.house > li::before { content: "\25AA"; position: absolute; left: -1.2em; color: var(--burgundy); }

/* Header: transparent over the hero, solid once scrolled */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.solid, .no-hero .site-header { background: var(--burgundy); box-shadow: 0 1px 0 rgba(173,157,116,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; transition: height .35s var(--ease); }
.site-header.solid .wrap { height: 74px; }
.brand img { height: 54px; width: auto; transition: height .35s var(--ease); }
.site-header.solid .brand img { height: 46px; }
.nav { display: flex; gap: 36px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 700; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--white); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.6); color: var(--white); width: 46px; height: 42px; border-radius: 999px; cursor: pointer; font-size: 18px; }
.no-hero main { padding-top: 74px; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--burgundy-deep); color: var(--white); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,5,6,.55) 0%, rgba(20,5,6,0) 22%), linear-gradient(90deg, rgba(46,10,12,.85) 0%, rgba(46,10,12,.45) 55%, rgba(46,10,12,.1) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 160px; padding-bottom: clamp(72px, 12vh, 140px); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 0 36px; font-weight: 300; }
.hero .kicker { color: var(--gold-soft); }
.hero.page { min-height: 72vh; }
.hero.page h1 { max-width: 16ch; }

/* Buttons: pill with arrow */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid var(--burgundy); background: var(--burgundy); color: var(--white); cursor: pointer; font-family: inherit; transition: background .25s, color .25s, border-color .25s; }
.btn::after { content: "\2192"; transition: transform .25s var(--ease); }
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--white); }
.btn:hover::after { transform: translateX(4px); }
.btn.white { background: var(--white); border-color: var(--white); color: var(--burgundy); }
.btn.white:hover { background: var(--cream); border-color: var(--cream); color: var(--burgundy-deep); }
.btn.outline { background: transparent; color: var(--burgundy); }
.btn.outline:hover { background: var(--burgundy); color: var(--white); }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.text-link::after { content: "\2192"; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* Sections */
section { padding: clamp(80px, 11vw, 150px) 0; }
.tint { background: var(--cream); }
.dark { background: var(--burgundy-deep); color: rgba(255,255,255,.85); }
.dark h2, .dark h3 { color: var(--white); }
.dark .kicker { color: var(--gold); }
.wine { background: var(--burgundy); color: rgba(255,255,255,.88); }
.wine h2, .wine h3 { color: var(--white); }
.wine .kicker { color: var(--gold-soft); }

.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.lead-row h2 { margin: 0; }
.lead-row p { margin: 0; color: var(--muted); }
.dark .lead-row p, .wine .lead-row p { color: rgba(255,255,255,.75); }
.statement-row { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.statement-row h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.flip > :first-child { order: 2; }
.photo { margin: 0; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.photo.tall img { aspect-ratio: 4/5; }
.photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* Figures band */
.figures { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.fig .n { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--white); }
.fig .t { margin-top: 14px; font-size: .95rem; color: rgba(255,255,255,.72); line-height: 1.4; padding-top: 14px; border-top: 1px solid rgba(173,157,116,.5); }
.as-at { margin-top: 44px; font-size: .78rem; color: rgba(255,255,255,.5); }
.figures.four { grid-template-columns: repeat(4, 1fr); }
.light .fig .n { color: var(--burgundy); }
.light .fig .t { color: var(--muted); border-top-color: var(--gold); }

/* Capability cards (image + copy) */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.caps.three { grid-template-columns: repeat(3, 1fr); }
.cap { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); }
.cap .img { overflow: hidden; aspect-ratio: 16/10; background: var(--burgundy); }
.cap .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cap:hover .img img { transform: scale(1.05); }
.cap .body { padding: 30px 32px 34px; flex: 1; display: flex; flex-direction: column; }
.cap .kicker { margin-bottom: 12px; }
.cap h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.cap p { color: var(--muted); flex: 1; }
.cap .text-link { color: var(--burgundy); margin-top: 8px; }
.cap:hover { color: inherit; }

/* Plain feature columns */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature .num { font-size: .85rem; font-weight: 900; color: var(--gold); letter-spacing: .1em; margin-bottom: 14px; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }
.dark .feature p, .wine .feature p { color: rgba(255,255,255,.72); }

/* Quote */
.quote { max-width: 980px; }
.quote blockquote { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; color: var(--white); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); font-weight: 900; margin-bottom: 18px; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-weight: 700; color: var(--gold-soft); letter-spacing: .04em; }

/* Presence list */
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.places strong { font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; }
.places span { font-size: .85rem; color: var(--muted); text-align: right; }
.places small { display: block; font-size: .92rem; color: var(--muted); font-weight: 400; margin-top: 2px; letter-spacing: 0; }

/* Regulated entities */

/* People */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.person { display: flex; flex-direction: column; }
.portrait { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--cream), #E7E2D3); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 24px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.portrait .initials { font-size: 3.4rem; font-weight: 900; color: rgba(95,20,25,.18); letter-spacing: -.02em; }
.person h3 { margin-bottom: 4px; }
.person .role { font-size: .9rem; color: var(--burgundy); font-weight: 700; margin-bottom: 14px; }
.person .bio { font-size: .98rem; color: var(--muted); }
.person .bio .todo { display: block; margin-top: 12px; padding: 10px 14px; background: var(--cream); border-left: 3px solid var(--gold); font-size: .85rem; font-style: italic; }
.person .links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: .92rem; }
.person .links a { text-decoration: none; font-weight: 700; }

/* Notice (secondary text box) */
.notice { background: var(--cream); border-left: 3px solid var(--gold); padding: 22px 26px; font-size: .9rem; color: var(--muted); }
.notice p:last-child { margin: 0; }

/* CTA */
.cta { padding: clamp(80px, 10vw, 130px) 0; background: var(--burgundy) url("../img/emblem.png") no-repeat right -160px center / 560px; color: var(--white); }
.cta .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin: 0; max-width: 16ch; }
.cta p { margin: 14px 0 0; color: rgba(255,255,255,.75); }

/* Forms */
form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.enquiry .full { grid-column: 1 / -1; }
form.enquiry label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
input, select, textarea { width: 100%; padding: 14px 0; font: inherit; font-size: 1rem; color: var(--ink); border: 0; border-bottom: 1.5px solid var(--gold); background: transparent; border-radius: 0; }
select { padding-right: 24px; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--burgundy); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: auto; margin-top: 6px; }
form.enquiry .check label { font-weight: 400; color: var(--muted); font-size: .9rem; }
.hidden { display: none; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
.contact-block { margin-bottom: 36px; }
.contact-block h3 { margin-bottom: 4px; font-size: 1.1rem; }
.contact-block p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--burgundy-deep); color: rgba(255,255,255,.65); font-size: .92rem; padding: 88px 0 36px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(173,157,116,.3); }
.foot-grid h4 { color: var(--gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-logo { height: 56px; width: auto; margin-bottom: 22px; }
.legal { padding-top: 32px; font-size: .78rem; line-height: 1.65; color: rgba(255,255,255,.45); }
.legal p { margin-bottom: .8em; }
.legal a { color: rgba(255,255,255,.7); text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .figures { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .caps.three, .people { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--burgundy); padding: 8px var(--gutter) 24px; box-shadow: 0 1px 0 rgba(173,157,116,.35); }
  .nav.open { display: flex; }
  .site-header:has(.nav.open) { background: var(--burgundy); }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .lead-row, .statement-row, .split, .caps, .features, .features.two, .contact-grid { grid-template-columns: 1fr; }
  .lead-row { align-items: start; }
  .split.flip > :first-child { order: 0; }
  .figures.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .caps.three, .people, .foot-grid { grid-template-columns: 1fr; }
  .places li { grid-template-columns: 1fr; gap: 4px; }
  .places span { text-align: left; }
  form.enquiry { grid-template-columns: 1fr; }
  .site-header .wrap { height: 74px; }
  .brand img, .site-header.solid .brand img { height: 40px; }
  .hero::before { background: linear-gradient(180deg, rgba(20,5,6,.5) 0%, rgba(46,10,12,.55) 40%, rgba(46,10,12,.88) 100%); }
  .cap .body { padding: 24px 22px 28px; }
  .cta { background-size: 340px; background-position: right -170px center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero img.bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cap .img img, .btn::after, .text-link::after { transition: none; }
}

/* Refinements */
section.band { padding: clamp(64px, 7vw, 100px) 0; }
.tint .portrait { background: var(--white); }
.hero p { font-weight: 400; }
.fig { min-width: 0; }
@media (max-width: 640px) { .fig .n { font-size: clamp(1.7rem, 8.5vw, 2.3rem); } }

/* Team profiles: small portrait beside a full bio */
.profiles { border-top: 1px solid var(--line); }
.profile { display: grid; grid-template-columns: 168px 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(40px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.profile .portrait { aspect-ratio: 4/5; margin: 0; }
.profile .portrait .initials { font-size: 2.2rem; }
.profile-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 18px; }
.profile h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 0; }
.profile .role { font-size: .95rem; color: var(--burgundy); font-weight: 700; margin-top: 4px; }
.profile .links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .92rem; }
.profile .links a { text-decoration: none; font-weight: 700; }
.profile .bio { max-width: 760px; color: var(--muted); }
.profile .bio p:last-child { margin-bottom: 0; }
.profile .bio .lead { color: var(--ink); font-size: 1.08rem; }
.profile .todo { display: inline-block; margin-top: 14px; padding: 8px 14px; background: var(--cream); border-left: 3px solid var(--gold); font-size: .85rem; font-style: italic; color: var(--muted); }
@media (max-width: 640px) {
  .profile { grid-template-columns: 96px 1fr; gap: 20px; }
  .profile .portrait .initials { font-size: 1.5rem; }
  .profile .bio { grid-column: 1 / -1; text-align: left; }
  .profile-head { display: block; }
  .profile .links { margin-top: 10px; }
}
.profile .portrait { grid-row: span 2; }
.profile .bio { grid-column: 2; }
.profile-head { margin-bottom: 0; }
.profile .bio { margin-top: -8px; }
@media (max-width: 640px) {
  .profile .portrait { grid-row: auto; }
  .profile .bio { grid-column: 1 / -1; margin-top: 0; }
}
.profile { grid-template-rows: auto 1fr; }
.profile .bio { margin-top: 18px; }
@media (max-width: 640px) { .profile { grid-template-rows: auto auto; } .profile .bio { margin-top: 0; } }
/* Profile body wraps name + bio; on phones it dissolves so the bio can run full width */
.profile { grid-template-rows: auto; }
.profile .portrait { grid-row: auto; }
.profile .bio { grid-column: auto; margin-top: 18px; }
@media (max-width: 640px) {
  .profile-body { display: contents; }
  .profile .bio { grid-column: 1 / -1; margin-top: 0; }
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 28px 28px 0 0; border-top: 2px solid var(--burgundy); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 900; letter-spacing: .1em; color: var(--gold); margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.compare thead th.us { color: var(--white); background: var(--burgundy); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 16%; }
.compare td { color: var(--muted); }
.compare td.us { background: rgba(95,20,25,.05); color: var(--ink); font-weight: 700; }

/* Checklist and key stat */
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: "\25AA"; position: absolute; left: 4px; color: var(--burgundy); }
.keystat { background: var(--burgundy); color: var(--white); padding: clamp(32px, 4vw, 52px); }
.keystat .big { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.keystat .big span { color: var(--gold-soft); font-weight: 300; padding: 0 .2em; }
.keystat p { margin: 18px 0 0; color: rgba(255,255,255,.8); }
.keystat .small { color: rgba(255,255,255,.55); margin-top: 18px; }
.footnote { margin-top: 20px; font-size: .8rem; color: var(--muted); }

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
  .step::before { grid-row: span 2; margin: 2px 0 0; }
  .step:first-child { border-top: 2px solid var(--burgundy); }
}

/* Hero line allowed to run full width */
.hero p.wide { max-width: none; }

/* Spacing: tighter vertical rhythm between sections */
section { padding: clamp(64px, 7.5vw, 112px) 0; }
section.band { padding: clamp(52px, 5.5vw, 84px) 0; }
.cta { padding: clamp(60px, 7vw, 100px) 0; }
.lead-row { margin-bottom: clamp(36px, 4.5vw, 60px); }
.hero.page { min-height: 62vh; }
.hero .wrap { padding-bottom: clamp(56px, 9vh, 112px); }
.hero.page p:last-child { margin-bottom: 0; }
.site-footer { padding-top: 72px; }

/* Page banner without a photo: burgundy with the emblem */
.hero.plain { min-height: 0; background: var(--burgundy) url("../img/emblem.png") no-repeat right -120px center / 520px; }
.hero.plain::before { display: none; }
.hero.plain .wrap { padding-top: 172px; padding-bottom: clamp(56px, 7vw, 88px); }
@media (max-width: 640px) { .hero.plain { background-size: 320px; background-position: right -110px bottom -60px; } .hero.plain .wrap { padding-top: 132px; } }
/* Banners take their height from min-height and inner padding, not section padding */
.hero { padding: 0; }
/* Two consecutive white sections: one gap between them, not two */
section:not([class]) + section:not([class]) { padding-top: 0; }
/* Social icon link */
a.social { display: inline-flex; color: var(--burgundy); transition: color .25s; }
a.social:hover { color: var(--burgundy-deep); }


