/* Barons of Business Ltd. — site styles */

:root {
  /* Colours taken from the logo */
  --ink: #2b3d41;        /* logo lettering grey */
  --green: #00728c;      /* logo teal, darkened slightly so white text on buttons is easy to read */
  --green-deep: #0b4a59;
  --paper: #f5f9fa;
  --white: #ffffff;
  --rule: #d2e4e8;
  --brass: #3baec0;      /* logo ring teal, used for the ledger margin and accents */
  --muted: #546a6f;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-deep);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand { display: block; line-height: 0; }
.brand img { height: 116px; width: auto; }
@media (max-width: 40rem) { .brand img { height: 88px; } }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}

.site-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--brass); }

/* ---------- Ledger hero (the one bold element) ---------- */

.ledger {
  position: relative;
  background-color: var(--white);
  /* Ruled lines of an accounting pad */
  background-image: repeating-linear-gradient(180deg,
    transparent 0,
    transparent calc(2rem - 1px),
    var(--rule) calc(2rem - 1px),
    var(--rule) 2rem);
  border-bottom: 1px solid var(--rule);
}

.ledger .wrap {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: calc(var(--gutter) + 2.25rem);
}

/* The double margin rule, aligned with the content column */
.ledger .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 5px;
  border-left: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
}

.ledger p.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 44ch;
}

.ledger.ledger--short .wrap { padding-top: 3rem; padding-bottom: 2.5rem; }
.ledger.ledger--short h1 { margin-bottom: 0; }
.ledger.ledger--short p.lede { margin-top: 0.8rem; max-width: 52ch; }

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

.button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--green);
  border-radius: 2px;
  cursor: pointer;
}
.button:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

.button--outline { background: transparent; color: var(--green); }
.button--outline:hover { background: var(--green); color: var(--white); }

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

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--white { background: var(--white); }

/* Heading on the left, content on the right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 3rem;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 16rem minmax(0, 1fr); }
  .split > h2 { position: sticky; top: 1.5rem; align-self: start; }
}

/* Service summary rows on the home page */
.rows { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 2px solid var(--green); }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); }
@media (min-width: 40rem) {
  .rows li { grid-template-columns: 19rem minmax(0, 1fr); align-items: baseline; }
}

/* Bulleted service lists */
.ticks { list-style: none; margin: 0 0 1rem; padding: 0; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 1.6rem; border-bottom: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
}

.notice {
  background: var(--white);
  border-left: 4px solid var(--brass);
  padding: 1.5rem 1.75rem 0.6rem;
}

.closing {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 40ch;
}

.area {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  max-width: 40ch;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

.form { display: grid; gap: 1.2rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field .req { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #9fb8be;
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--green); }

.hidden { position: absolute; left: -9999px; }

address { font-style: normal; line-height: 1.7; }

.address-card {
  background: var(--white);
  border-top: 2px solid var(--green);
  padding: 1.5rem 1.75rem;
  align-self: start;
}
.address-card h2 { font-size: 1.3rem; }
.address-card p { color: var(--muted); margin-top: 1rem; margin-bottom: 0; }

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

.site-footer {
  background: var(--green-deep);
  color: #d6e8ec;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #ffffff; }
.site-footer :focus-visible { outline-color: #91ccd6; }
.footer-name { font-family: var(--serif); font-size: 1.1rem; color: #ffffff; }

.form-status { margin: 0; font-weight: 600; color: #a1260d; }
.button:disabled { opacity: 0.7; cursor: wait; }
