/* Harbour & Vale Solicitors — concept design by MJ Hub */

:root {
  --navy: #102a3a;
  --navy-2: #173a4f;
  --ink: #15212b;
  --slate: #4a5a66;
  --paper: #f3efe7;
  --white: #ffffff;
  --brass: #c19a5b;
  --brass-dark: #8c6a32;
  --line: rgba(21, 33, 43, 0.14);
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --banner: 2.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--banner) + 6rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--banner);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brass-dark); outline-offset: 3px; }
.hero :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible, .utility :focus-visible { outline-color: var(--brass); }

.wrap { width: min(100% - 2rem, 75rem); margin-inline: auto; }

/* Concept banner */
.concept-banner {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--banner);
  display: flex; align-items: center; justify-content: center;
  background: #111; color: #f2f2f2;
  font: 500 0.8125rem/1.2 system-ui, -apple-system, sans-serif;
  padding-inline: 1rem; text-align: center;
}
.concept-banner a { color: #fff; font-weight: 700; margin-left: 0.35rem; }
.concept-banner :focus-visible { outline-color: #fff; }
.shot .concept-banner { display: none; }
.shot body { padding-top: 0; }
.shot { --banner: 0px; }

/* Header */
.site-header { position: sticky; top: var(--banner); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.utility { background: var(--navy); color: #d5dde3; font-size: 0.85rem; }
.utility__inner { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.utility a { color: #fff; font-weight: 600; text-decoration: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }

.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--navy); }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.1rem;
  height: 2.75rem; padding: 0 0.55rem; white-space: nowrap;
  border: 1.5px solid var(--navy);
  font: 700 0.95rem/1 var(--serif); letter-spacing: 0.02em;
}
.brand__mark i { font-weight: 400; color: var(--brass-dark); }
.brand__text { font: 700 1.35rem/1 var(--serif); }
.brand__text small { display: block; margin-top: 0.3rem; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--slate); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.site-nav a:not(.btn):hover { color: var(--brass-dark); text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
  display: none; background: var(--navy); color: #fff; border: 0;
  font: 600 0.9rem var(--sans); padding: 0.6rem 1rem; border-radius: 4px; cursor: pointer;
}

@media (min-width: 960px) { .site-nav { display: flex; align-items: center; gap: 2.5rem; } }
@media (max-width: 959px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; margin-bottom: 1rem; }
  .site-nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .utility__inner p:first-child { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 0.975rem/1 var(--sans);
  text-decoration: none; padding: 1rem 1.5rem; border-radius: 4px; border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--brass { background: var(--brass); color: var(--navy); }
.btn--brass:hover { background: #d4b27a; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--full { width: 100%; }
.site-nav .btn { padding: 0.8rem 1.2rem; font-size: 0.925rem; }

.eyebrow {
  font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1.5px; background: currentColor; }
.eyebrow--dark { color: var(--brass-dark); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 4.5rem 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto 0 -2px; height: calc(6.5rem + 2px); background: var(--white);
}
.hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 700; }
.hero__lede { margin-top: 1.5rem; font-size: 1.15rem; color: #cfd9e0; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero__media { position: relative; margin: 0 0 0 1.25rem; }
.hero__media::before {
  content: ""; position: absolute; inset: -1.25rem auto auto -1.25rem; width: 60%; height: 60%;
  border-top: 2px solid var(--brass); border-left: 2px solid var(--brass);
}
.hero__media img { position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4.5rem; padding-bottom: 1rem; }
  .hero__copy { padding-bottom: 6.5rem; }
  .hero__media img { aspect-ratio: 4 / 4.2; max-height: 33rem; }
}
@media (max-width: 899px) {
  .hero { padding-top: 3rem; }
  .hero::before { height: 4rem; }
  .hero__media { margin-left: 1rem; }
  .hero__media img { aspect-ratio: 16 / 11; }
}

.assurances {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--brass);
}
.assurances li { padding: 1.25rem 1.5rem; color: var(--slate); font-size: 0.975rem; }
.assurances li + li { border-top: 1px solid var(--line); }
.assurances strong { color: var(--navy); font-family: var(--serif); font-size: 1.1rem; }
@media (min-width: 900px) {
  .hero__grid { margin-bottom: -3rem; }
  .assurances { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
  .assurances li + li { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .assurances { margin-top: 2.5rem; } }

/* Sections */
.section { padding: 5.5rem 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head h2, .fees h2, .about h2, .consult h2, .office h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-top: 1rem; color: var(--slate); font-size: 1.1rem; }

/* Practice areas */
.areas { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(4, 1fr); } }
.area {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 2rem 1.75rem; border: 1px solid var(--line); border-top: 3px solid var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.area:hover { border-top-color: var(--brass); box-shadow: 0 20px 40px -30px rgba(16, 42, 58, 0.5); }
.area__num { font: 700 0.85rem var(--serif); color: var(--brass-dark); }
.area h3 { font-size: 1.5rem; color: var(--navy); }
.area > p:not(.area__num) { color: var(--slate); font-size: 0.975rem; }
.area ul { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 0.925rem; }
.area li { padding: 0.5rem 0 0.5rem 1.25rem; border-top: 1px solid var(--line); position: relative; }
.area li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; background: var(--brass); }
.area__link { margin-top: auto; padding-top: 0.75rem; font-weight: 600; color: var(--navy); text-underline-offset: 4px; }

/* Fees */
.fees { display: grid; gap: 3rem; }
@media (min-width: 900px) { .fees { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; align-items: start; } }
.fees__intro > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--slate); }
.fees__intro .fees__small { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.fees__table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.fees__table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.fees__table caption { text-align: left; padding: 1.25rem 1.5rem; font: 700 1.2rem var(--serif); color: var(--navy); border-bottom: 3px solid var(--brass); }
.fees__table th, .fees__table td { padding: 0.95rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); }
.fees__table thead th { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); font-weight: 600; background: #faf8f4; }
.fees__table tbody th { font-weight: 600; }
.fees__table td:last-child, .fees__table th:last-child { text-align: right; }
.fees__table td:last-child { font: 700 1.1rem var(--serif); color: var(--navy); }
.fees__table td:nth-child(2) { color: var(--slate); }
@media (max-width: 559px) {
  .fees__table th, .fees__table td { padding: 0.85rem 1rem; }
  .fees__table thead th:nth-child(2), .fees__table td:nth-child(2) { display: none; }
}

/* About */
.about { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about__media { margin: 0; position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about__copy > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--slate); font-size: 1.1rem; }
.principles { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.principles div { padding-left: 1.25rem; border-left: 3px solid var(--brass); }
.principles dt { font: 700 1.15rem var(--serif); color: var(--navy); }
.principles dd { margin: 0.2rem 0 0; color: var(--slate); }

/* Consultation */
.consult { display: grid; gap: 3rem; }
@media (min-width: 900px) { .consult { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; } }
.consult__intro > p:not(.eyebrow) { margin-top: 1.25rem; color: #cfd9e0; font-size: 1.1rem; }
.consult__img { margin-top: 2.5rem; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: 0.92; }
.consult-form { background: var(--white); color: var(--ink); padding: 2.25rem; display: grid; gap: 1.1rem; border-top: 4px solid var(--brass); }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .radios legend { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--navy); }
.field label span { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fbfaf7; border: 1.5px solid #b9c2c9; border-radius: 4px; padding: 0.75rem 0.9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--brass); outline-offset: 1px; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.radios legend { width: 100%; padding: 0; }
.radios label, .consent { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.consent { align-items: flex-start; color: var(--slate); }
.radios input, .consent input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); flex: none; margin-top: 0.2rem; }
.form-note { font-size: 0.85rem; color: var(--slate); text-align: center; }

/* Office */
.office { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .office { grid-template-columns: 1fr 1.2fr; gap: 5rem; } }
.office address { font-style: normal; margin-top: 1.5rem; font-size: 1.15rem; }
.office__details { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .office__details { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.office__details div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.office__details dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.office__details dd { margin: 0.35rem 0 0; font-weight: 500; }
.office__details a { color: var(--navy); font-weight: 600; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: #0b1f2b; color: #b9c6cf; padding: 3.5rem 0 0; font-size: 0.925rem; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
.brand--footer { color: #fff; }
.brand--footer .brand__text small { color: #9fb0bc; }
.site-footer__reg { margin-top: 1.25rem; max-width: 34rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; align-content: start; }
.site-footer__links a { color: #fff; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.25rem 0; font-size: 0.85rem; }
.site-footer__bottom a { color: #fff; }

@media (max-width: 599px) {
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1.75rem; }
  .hero__title { font-size: 2.35rem; }
  .hero__lede { font-size: 1.05rem; }
  .consult-form { padding: 1.5rem; }
  .brand__text { font-size: 1.2rem; }
}
