/* Dixons Private Client website stylesheet.
   One accent colour, plenty of white space, large readable type.
   To change the accent colour, edit --accent below. */

/* Self-hosted typefaces (SIL Open Font Licence; see assets/fonts/).
   Source Serif 4 for headings, Source Sans 3 for body text. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --accent: #1f4e5f;        /* deep slate blue-green */
  --accent-dark: #163a47;
  --text: #1c1c1c;
  --muted: #555;
  --rule: #e2e2e2;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --draft: #fff3cd;
  --draft-text: #5c4300;
  --error-bg: #fbe9e7;
  --error-text: #7a1f12;
  --ok-bg: #e8f3ee;
  --ok-text: #14503a;
  --measure: 42rem;
}

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

html { font-size: 112.5%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 10; }

/* Draft banner */
.draft-banner {
  background: var(--draft);
  color: var(--draft-text);
  text-align: center;
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  text-decoration: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.mark { display: inline-flex; flex-direction: column; align-items: center; }
.mark-label { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.15rem; }
.logo { height: 2.5rem; width: auto; }
blockquote {
  font-family: var(--serif);
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--accent);
  color: var(--text);
}

/* Photos. Shown only when the file exists in assets/. */
.photo { margin: 2rem 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.photo figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.photo-pair { display: flex; gap: 1.5rem; margin: 0 0 0.5rem; }
.photo-credit { font-size: 0.85rem; color: var(--muted); margin: 0 0 2rem; }
.photo-pair .photo { flex: 1 1 0; margin: 0; }
.photo-pair img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo--aside { float: right; width: 42%; margin: 0.25rem 0 1rem 1.5rem; }
h2 { clear: both; }
@media (max-width: 600px) {
  .photo-pair { gap: 0.75rem; }
  .brand { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .brand-name { order: 3; flex-basis: 100%; font-size: 1.3rem; }
  .logo { height: 2.25rem; }
  .photo--aside { float: none; width: 100%; margin: 1rem 0; }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-nav a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Main content */
main { padding: 2.5rem 1rem 4rem; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--accent-dark);
  font-weight: 700;
}
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
.intro {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
a { color: var(--accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* Buttons (used for Contact links in page text) */
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.button:focus { background: var(--accent-dark); color: #fff; }

/* Numbered steps on "How it works" and services list */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fees table */
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

/* Contact details line */
.contact-details { font-size: 1.05rem; }
.contact-details a { white-space: nowrap; }

/* Contact form */
.contact-form-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.required, .optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #8a8a8a;
  border-radius: 3px;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }
.form-row--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: 3px;
}
.form-notice { display: none; padding: 1rem; border-radius: 3px; margin-bottom: 1.5rem; }
.form-notice p { margin: 0; }
.form-notice--success { background: var(--ok-bg); color: var(--ok-text); }
.form-notice--error { background: var(--error-bg); color: var(--error-text); }
/* The email script sends people back to /contact/#sent or /contact/#error; show the matching message. */
.form-notice:target { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .footer-name { color: var(--text); font-weight: 600; }
.site-footer a { color: var(--muted); display: inline-block; padding: 0.4rem 0; }

/* Phones */
@media (max-width: 600px) {
  html { font-size: 106%; }
  h1 { font-size: 1.8rem; }
  main { padding-top: 1.75rem; }
}

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