/* paulhudsonassociates.co.uk: matches the old WordPress/Elementor one-pager (Coustard headings, Raleway text, grey band, light-blue accent). */

/* Self-hosted fonts (no Google requests); system fonts are the fallback. */
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Coustard"; src: url("/fonts/coustard-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Coustard"; src: url("/fonts/coustard-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --text: #7a7a7a;      /* Elementor kit "Text" */
  --band: #545252;      /* grey band behind the intro and logo */
  --soft: #f3f3f3;      /* testimonials band */
  --blue: #7fcefc;      /* "learn more" links */
  --quote: #6ec1e4;     /* kit "Primary": quote marks, mail icon */
  --button: #89bde0;    /* Send button, as rendered on the old site */
  --max: 1140px;
  --serif: "Coustard", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2 { margin: 0; font-weight: normal; }

/* hero photo strip */
.hero { height: 253px; background: #c24444 url("/media/hero.jpg") center 38% / cover no-repeat; }

/* grey band with a slanted bottom edge; the service cards overlap it */
.band { background: var(--band); color: #e0dcdc; padding: 2rem 0 9rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
.band-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.intro { max-width: 30rem; margin: 0; font-size: 1.2rem; font-weight: 500; line-height: 1.6; }
.brand { text-align: right; }
.brand img { width: 400px; margin-left: auto; }
.strap { margin: .3rem 0 0; font-family: var(--serif); font-size: 1.6rem; color: #fff; text-shadow: 0 0 10px rgba(0,0,0,.3); }

/* service cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: -8rem; position: relative; }
.service img { border: 3px solid #fff; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service h2 { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; margin: 1.2rem 0 .3rem; }
.service p { margin: 0 0 .6rem; font-size: 1.2rem; font-weight: 500; line-height: 1.6; }
.service ul { margin: 0 0 1rem; padding-left: 2.6rem; font-size: 1.1rem; line-height: 1.6; }
.more { background: none; border: 0; padding: 0 0 0 1.8rem; font: 600 1.1rem var(--sans); color: var(--blue); cursor: pointer; }
.more::after { content: " »"; font-weight: 900; }
.more:hover, .more:focus-visible { text-decoration: underline; }

/* testimonials on a light grey band with slanted edges */
.testimonials { background: var(--soft); margin-top: 3rem; padding: 5rem 0; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.quote { margin: 0; font-style: italic; font-size: 1.1rem; line-height: 1.75; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; }
.quote figcaption strong { font-weight: 700; }
.quote .mark { display: block; font: 900 8rem/1 Georgia, serif; font-style: normal; color: var(--quote); height: 5.5rem; }
.quote.first .mark { padding-left: 15rem; margin-bottom: 2.5rem; }
.quote.second .mark { padding-left: 15rem; margin-top: 1.5rem; }

/* clients */
.clients { text-align: center; padding: 4rem 1rem 2rem; }
.clients h2 { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; }
.clients-sub { font-weight: 600; font-size: 1.2rem; margin: 1.5rem 0 2rem; }
.client-list { list-style: none; padding: 0; margin: 0; columns: 3; font-size: 1.2rem; line-height: 1.65; }

/* contact */
.contact { max-width: 720px; padding-top: 4rem; padding-bottom: 6rem; text-align: center; }
.mail-icon { fill: var(--button); width: 84px; height: auto; margin: 0 auto 2.5rem; display: block; }
.contact form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.contact input, .contact textarea { font: 400 1.2rem var(--sans); color: #333; padding: .9rem 1rem; border: 1px solid #69727d; border-radius: 0; width: 100%; }
.contact button { font: 500 1.3rem var(--sans); color: #fff; background: var(--button); border: 0; border-radius: 3px; padding: .9rem; cursor: pointer; }
.contact button:hover { filter: brightness(.95); }

/* case-study dialogs */
dialog { width: min(960px, calc(100% - 2rem)); max-height: calc(100vh - 4rem); padding: 0; border: 3px solid #a7a7a7; border-radius: 4px; color: var(--text); }
dialog[open] { display: grid; grid-template-columns: 35% 1fr; }
dialog::backdrop { background: rgba(0,0,0,.8); }
.dialog-image { background-size: cover; background-position: center; min-height: 100%; }
.dialog-text { padding: 2rem 1.5rem 2rem 1rem; overflow-y: auto; max-height: calc(100vh - 4.5rem); font-size: 1.1rem; line-height: 1.75; }
.dialog-text h2 { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; margin-bottom: 1rem; }
.dialog-text p { margin: 0 0 1.5rem; }
.close { float: right; background: none; border: 0; font-size: 2.4rem; line-height: 1; color: #666; cursor: pointer; text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 900px) {
  .hero { display: none; }   /* the old site hid the photo strip on phones */
  .band { padding-bottom: 7rem; }
  .band-inner { flex-direction: column-reverse; }
  .brand { text-align: left; }
  .brand img { width: 300px; margin-left: 0; }
  .services { grid-template-columns: 1fr; margin-top: -5rem; }
  .quotes { grid-template-columns: 1fr; }
  .quote .mark, .quote.first .mark, .quote.second .mark { padding-left: 0; }
  .client-list { columns: 1; }
  dialog[open] { grid-template-columns: 1fr; }
  .dialog-image { min-height: 180px; }
}
/* deploy source: github.com/BusyPT/paulhudson */
