/* abogado.uk — shared stylesheet
   Palette: the teal ink of Spanish Hacienda forms on office paper.
   Type:    Literata (reading) + Archivo (structure).
   Note:    self-host the fonts before going live; see README. */

:root {
  --paper:      #FCFCFA;
  --paper-sunk: #F2F2ED;
  --ink:        #161D1B;
  --ink-soft:   #4E5855;
  --seal:       #0E5349;
  --seal-deep:  #07332C;
  --wash:       #E4EDE9;
  --rule:       #D6D3C8;
  --rule-fine:  #E6E3DA;

  --measure: 34rem;
  --page:    72rem;

  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.125rem); }
h3 { font-size: 1.3125rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--seal); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--seal-deep); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 700; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.narrow { max-width: var(--measure); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 0;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 2rem;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--seal); }
.wordmark .tld { color: var(--seal); }
.masthead-line {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-right: auto;
}
.masthead nav {
  font-family: var(--sans);
  font-size: 0.9375rem;
  display: flex;
  gap: 1.5rem;
}
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--seal); text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- sections ---------- */

.band { padding: 4.5rem 0; border-bottom: 1px solid var(--rule-fine); }
.band--sunk { background: var(--paper-sunk); }
.band--tight { padding: 3rem 0; }

.lede { font-size: 1.3125rem; line-height: 1.55; color: var(--ink-soft); }

.hero { padding: 5rem 0 3.5rem; }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 1.5rem; }

/* trust strip — facts a nervous client checks first */
.checks {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60rem;
}
.checks b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- fee schedule ---------- */

.schedule { margin-top: 2.5rem; }
.schedule-group { margin-bottom: 3rem; }
.schedule-group > h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--seal);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--seal);
  margin-bottom: 0.25rem;
}

.fee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule-fine);
}
.fee-name { font-weight: 700; }
.fee-name a { color: var(--ink); text-decoration-color: var(--rule); }
.fee-name a:hover { color: var(--seal); text-decoration-color: currentColor; }
.fee-price {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.fee-note {
  grid-column: 1 / 2;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}
.fee-basis {
  grid-column: 2 / 3;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

/* ---------- steps (a real sequence, so numbered) ---------- */

.steps { counter-reset: step; margin-top: 2.5rem; display: grid; gap: 2rem; max-width: 58rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; }
.step::before {
  content: counter(step);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--seal);
  border-top: 2px solid var(--seal);
  padding-top: 0.45rem;
  font-variant-numeric: lining-nums;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { font-size: 1.0625rem; }

/* ---------- callout ---------- */

.callout {
  background: var(--wash);
  border-left: 3px solid var(--seal);
  padding: 1.75rem 1.75rem;
  margin: 2.25rem 0;
  max-width: 46rem;
}
.callout h3 { margin-bottom: 0.5rem; }
.callout p { font-size: 1.0625rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  background: var(--seal);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
}
.btn:hover { background: var(--seal-deep); color: #fff; }
.btn-note { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.8rem; max-width: 40ch; }

/* ---------- prose lists & tables ---------- */

.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.5rem; }

.qa { border-top: 1px solid var(--rule-fine); padding: 1.35rem 0; max-width: var(--measure); }
.qa h3 { margin-bottom: 0.4rem; }
.qa p { font-size: 1.0625rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--seal-deep);
  color: #C6D6D1;
  padding: 3.5rem 0 2.75rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.site-footer a { color: #fff; }
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.site-footer h4 { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; color: #fff; margin-bottom: 0.6rem; }
.site-footer p { max-width: 34rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.statement { padding-top: 2rem; font-size: 0.875rem; color: #A9BFB9; }
.statement p { max-width: 44rem; margin-bottom: 0.9em; }

@media (max-width: 40rem) {
  body { font-size: 1.125rem; }
  .band { padding: 3.25rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .fee { grid-template-columns: 1fr; }
  .fee-basis { grid-column: 1; grid-row: auto; text-align: left; }
  .fee-price { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .masthead nav, .btn { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* ---------- revisions ---------- */

/* phone in the masthead: this audience calls */
.nav-tel {
  font-variant-numeric: lining-nums;
  font-weight: 600;
  color: var(--seal) !important;
}

/* the two products that acquire clients carry visual weight */
.fee--lead {
  background: var(--wash);
  padding: 1.35rem 1.25rem;
  margin: 0.5rem 0;
  border-bottom: none;
  border-left: 3px solid var(--seal);
}
.fee--lead .fee-price { font-size: 1.25rem; }

/* what a fee does NOT cover — legally load-bearing, so legible */
.fee-excl {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--ink);
  border-left: 2px solid var(--rule);
  padding-left: 0.85rem;
}

/* deadline notice */
.callout--warn {
  background: #FBF3E7;
  border-left-color: #8A5A12;
}

/* basis labels were too small for a 55+ readership */
.fee-basis { font-size: 0.8125rem; }

/* footer statement carries the regulatory position: make it readable */
.statement { font-size: 0.9375rem; color: #BFD2CD; }

/* ---------- contact form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.enquiry { max-width: 38rem; }

.field { margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.enquiry label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}
.enquiry .opt {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.enquiry input,
.enquiry select,
.enquiry textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
}
.enquiry select { font-family: var(--sans); font-size: 1rem; }
.enquiry textarea { resize: vertical; min-height: 9rem; }

.enquiry input:focus,
.enquiry select:focus,
.enquiry textarea:focus {
  outline: 2px solid var(--seal);
  outline-offset: 1px;
  border-color: var(--seal);
}

.enquiry .hint {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  max-width: none;
}

/* honeypot: off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin: 1.75rem 0 1.5rem; }

.enquiry button.btn { border: 0; cursor: pointer; font-size: 1.125rem; }

.form-error {
  background: #FBF3E7;
  border-left: 3px solid #8A5A12;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  max-width: none;
}

.form-legal {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  max-width: none;
}

.contact-aside {
  background: var(--paper-sunk);
  padding: 1.75rem;
  border-top: 2px solid var(--seal);
}
.contact-aside h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.contact-aside h3 + p { margin-bottom: 1.6rem; }
.contact-aside p { font-size: 1rem; line-height: 1.6; max-width: none; }
.tel-big {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.375rem;
  font-variant-numeric: lining-nums;
  margin-bottom: 0.4rem !important;
}
.tel-big a { text-decoration: none; }

@media (max-width: 52rem) {
  .form-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- consent bar ---------- */

#consent-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--seal-deep);
  color: #D3E1DD;
  border-top: 3px solid var(--seal);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
.consent-inner {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.consent-text {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  flex: 1 1 24rem;
  max-width: 52rem;
}
.consent-text a { color: #fff; }
.consent-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Identical weight on both: declining must be as easy as accepting. */
.consent-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid #fff;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.consent-btn:hover { background: #fff; color: var(--seal-deep); }
.consent-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 34rem) {
  .consent-buttons { width: 100%; }
  .consent-btn { flex: 1; }
}

/* ---------- portrait ---------- */

.portrait-layout {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.portrait { margin: 0; position: sticky; top: 2rem; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  /* the navy backdrop and the navy jacket merge; a hairline gives the block an
     edge on near-white paper instead of letting it float */
  border: 1px solid var(--rule);
  border-bottom: 3px solid var(--seal);
}
.portrait figcaption {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.45;
  margin-top: 0.85rem;
  font-weight: 600;
}
.portrait figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }

.byline {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--paper-sunk);
  padding: 1.25rem;
  border-left: 3px solid var(--seal);
  margin: 2.75rem 0;
  max-width: none;
}
.byline img { width: 5.5rem; height: 5.5rem; display: block; border-radius: 50%; object-fit: cover; }
.byline b { font-family: var(--sans); font-size: 1rem; display: block; margin-bottom: 0.2rem; }
.byline span { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }

@media (max-width: 52rem) {
  .portrait-layout { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { position: static; max-width: 16rem; }
  .byline { flex-direction: column; align-items: flex-start; }
}

/* ---------- payment map table ---------- */

.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; max-width: none; }
table.paymap { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; }
table.paymap th {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  text-align: left; color: var(--seal);
  border-bottom: 2px solid var(--seal); padding: 0.5rem 0.9rem 0.5rem 0;
}
table.paymap td { border-bottom: 1px solid var(--rule-fine); padding: 0.75rem 0.9rem 0.75rem 0; vertical-align: top; line-height: 1.45; }
table.paymap tr td:first-child { font-weight: 600; }

/* placeholder awaiting a real value — visible on purpose */
.todo {
  background: #FBF3E7; border-left: 3px solid #8A5A12;
  padding: 0.9rem 1.1rem; font-family: var(--sans); font-size: 0.9375rem;
  color: #6B4610; max-width: none;
}

/* ---------- guides ---------- */

.guide-meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}
.guide .hero { padding-bottom: 2.5rem; }
.guide .prose h2 { margin-top: 3rem; }
.guide .prose p { font-size: 1.1875rem; }
.guide-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
