/*
Theme Name: Westmere
Theme URI: https://westmere.example
Author: Westmere
Description: Westmere is a WordPress theme for a financial regulatory and licensing practice: a numbered register of practice areas, a jurisdiction table, a portrait-free team index, regulatory notes, a client file intake and a legal centre, with CRM-ready client forms. Nothing on the site is legal advice and forms run in demo mode until the CRM is enabled.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westmere
*/

:root {
  color-scheme: light;
  --wm-navy: #0c1420;
  --wm-ink: #141c28;
  --wm-paper: #f4f1ea;
  --wm-stone: #e9e5dc;
  --wm-line: #d6d0c4;
  --wm-slate: #5a6472;
  --wm-brass: #b08d3f;
}

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

body {
  background: var(--wm-paper);
  color: var(--wm-ink);
  text-rendering: optimizeLegibility;
}

.wm-kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.wm-hero {
  position: relative;
  isolation: isolate;
  background: var(--wm-stone);
}

.wm-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.wm-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(244, 241, 234, 0.97) 0%, rgba(244, 241, 234, 0.93) 38%, rgba(244, 241, 234, 0.55) 64%, rgba(244, 241, 234, 0.2) 100%),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.9) 0%, rgba(244, 241, 234, 0) 26%);
}

.wm-plate {
  position: relative;
  overflow: hidden;
  background: var(--wm-navy);
}

.wm-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
}

.wm-plate figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  color: var(--wm-stone);
  background: linear-gradient(to top, rgba(12, 20, 32, 0.9), rgba(12, 20, 32, 0));
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wm-numeral {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.02em;
}

.wm-brassrule {
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--wm-brass);
}

.wm-register > li {
  border-top: 1px solid var(--wm-line);
}

.wm-register > li:last-child {
  border-bottom: 1px solid var(--wm-line);
}

.wm-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.06em;
}

.wm-table {
  border-collapse: collapse;
  width: 100%;
}

.wm-table th,
.wm-table td {
  border-bottom: 1px solid var(--wm-line);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.wm-table thead th {
  border-bottom: 1px solid var(--wm-brass);
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--wm-slate);
  font-weight: 500;
  white-space: nowrap;
}

.wm-table tbody tr:last-child td {
  border-bottom: 0;
}

.wm-field label {
  display: block;
}

.wm-field input,
.wm-field select,
.wm-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--wm-line);
  padding: 0.75rem 0.875rem;
  color: var(--wm-ink);
  font-size: 0.9375rem;
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.wm-field input:focus,
.wm-field select:focus,
.wm-field textarea:focus {
  outline: none;
  border-color: var(--wm-brass);
}

.wm-field input::placeholder,
.wm-field textarea::placeholder {
  color: #9aa1ab;
}

.wm-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--wm-slate) 50%), linear-gradient(135deg, var(--wm-slate) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.wm-check input[type="checkbox"] {
  appearance: auto;
  width: 1rem;
  height: 1rem;
  accent-color: var(--wm-brass);
  flex: none;
  margin-top: 0.1875rem;
}

.wm-underline {
  background-image: linear-gradient(var(--wm-brass), var(--wm-brass));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
}

.wm-underline:hover {
  background-size: 100% 1px;
}

.wm-prose p { margin-bottom: 1rem; }
.wm-prose p:last-child { margin-bottom: 0; }
.wm-prose ul { margin: 0 0 1rem 1.125rem; list-style: disc; }
.wm-prose li { margin-bottom: 0.4375rem; }
.wm-prose strong { font-weight: 600; color: var(--wm-ink); }

.wm-dropcap::first-letter {
  float: left;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.82;
  font-weight: 600;
  padding: 0.25rem 0.625rem 0 0;
  color: var(--wm-brass);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
