/*
  Design direction: no stock photography (there isn't any yet, and may never
  be) — typography and plain, concrete facts carry the page instead.
  Palette drawn from Halifax's own materials rather than a generic SaaS or
  "warm cream + terracotta" template look: harbour fog for the paper tone,
  deep slate-navy ink, and a brass accent echoing the hardware on the city's
  older South End rowhouses.
*/

:root {
  --paper: #eff1ec;
  --paper-deep: #e3e6df;
  --ink: #1e2b30;
  --ink-soft: #4a5a60;
  --brass: #ad7f35;
  --brass-deep: #8c6529;
  --harbour: #51707e;
  --line: rgba(30, 43, 48, 0.14);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 42rem;
  --wide-width: 60rem;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.25rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2rem);
  margin-top: 2.5em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

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

a {
  color: var(--harbour);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brass-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

/* Layout */

.site-nav,
.site-footer,
main > * {
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

main section,
main > article {
  max-width: var(--content-width);
}

main {
  display: block;
  padding-bottom: 3rem;
}

/* Nav */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

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

.site-nav nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav nav a:hover {
  color: var(--brass-deep);
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-bottom: 3px solid var(--brass);
  border-radius: 2px;
}

.button:hover {
  background: var(--harbour);
  color: var(--paper);
}

.button--compact {
  padding: 0.5em 1em;
  font-size: 0.95rem;
}

/* Sections */

.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 1rem;
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.section--shaded {
  background: var(--paper-deep);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin-top: 2.5rem;
}

.section--shaded > * {
  max-width: var(--content-width);
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li {
  padding-left: 1.4em;
  position: relative;
}

.plain-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--brass-deep);
}

/* Contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: var(--content-width);
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 600;
  margin-top: 0.8rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6em 0.75em;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 1px;
}

.contact-form .cf-turnstile {
  margin-top: 1rem;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

.contact-form-error {
  background: var(--paper-deep);
  border-left: 3px solid var(--brass-deep);
  padding: 0.75em 1em;
  margin: 1rem 0;
  max-width: var(--content-width);
}

/* Photo placeholders (no stock photography yet — reserves the spot without a generic grey box) */

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border: 1px dashed var(--harbour);
  border-radius: 2px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: var(--content-width);
}

/* Testimonials */

blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--brass);
  max-width: var(--content-width);
}

blockquote p {
  font-size: 1.1rem;
  color: var(--ink);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em 1.25em;
}

.site-footer a {
  color: var(--ink-soft);
}

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