/*
 * =============================================================================
 * PW CONSULTANTS — Main Stylesheet
 * =============================================================================
 * Site    : pwconsultants.co.uk
 * Author  : PW Consultants
 * =============================================================================
 *
 * TABLE OF CONTENTS
 *  0.  Self-hosted webfonts (Inter + Source Serif 4)
 *  1.  CSS Custom Properties (colours, type, spacing)
 *  2.  Reset & Base
 *  3.  Container & Layout helpers
 *  4.  Header & Navigation
 *  5.  Hero Banner Image (Mutton's Mill)
 *  6.  Hero Copy block
 *  7.  Sections (titles, ledes)
 *  8.  Two-column grid (About / Why us)
 *  9.  Website cards grid
 * 10.  People card (with portrait photo)
 * 11.  Contact box
 * 12.  Article pages (cookies, privacy)
 * 13.  Buttons
 * 14.  Footer
 * 15.  Responsive
 * =============================================================================
 */


/* ─── 0. SELF-HOSTED WEBFONTS ──────────────────────────────────── */
/* Fonts are served from /fonts/ on this server — nothing leaves
   the visitor's browser to Google or any third party. The browser
   only downloads the latin-ext file if it encounters a character
   that needs it (£, é, smart quotes, em-dash, etc).               */

/* Inter — 4 weights × 2 subsets */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Serif 4 — variable font, covers all weights in one file */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ─── 1. VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Soft pastel professional palette
     Pulled from the Mutton's Mill image — misty marsh blues + winter sand */
  --white:         #ffffff;
  --paper:         #fafbfc;   /* page background */
  --pale:          #e8eef5;   /* pale pastel band (slightly richer than before) */
  --mist:          #f4f7fb;   /* hover backgrounds */
  --rule:          #d4dde8;   /* hairline borders */
  --rule-soft:     #e8edf3;

  --ink:           #1f2d3d;   /* main text — deep slate */
  --ink-soft:      #4a5a6e;   /* secondary text */
  --ink-light:     #6e7d92;   /* muted text */

  --blue:          #3a6b9a;   /* primary brand blue (soft, restrained) */
  --blue-deep:     #2c5478;
  --blue-tint:     #d1dfee;   /* tag background */
  --marsh:         #5a7a8e;   /* a moodier blue-grey from the photo */
  --accent:        #b88a5c;   /* warm pastel accent (sand) */
  --accent-deep:   #9a6f43;

  /* Type */
  --serif:  'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 8vw, 6rem);

  /* Radius & shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(31,45,61,0.04), 0 1px 3px rgba(31,45,61,0.04);
  --shadow-md: 0 4px 12px rgba(31,45,61,0.06), 0 2px 4px rgba(31,45,61,0.04);
  --shadow-lg: 0 12px 32px rgba(31,45,61,0.08), 0 4px 8px rgba(31,45,61,0.04);
}


/* ─── 2. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
p { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-deep); }


/* ─── 3. CONTAINER & LAYOUT ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 720px; }

.section { padding: var(--section-pad) 0; }
.section-pale { background: var(--pale); }

.centered { text-align: center; }


/* ─── 4. HEADER ────────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand-sub  { font-size: 0.75rem; color: var(--ink-light); margin-top: 2px; letter-spacing: 0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }


/* ─── 5. HERO BANNER IMAGE ─────────────────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--pale);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  object-position: center 40%;
}
.hero-banner-caption {
  position: absolute;
  bottom: 0; right: 0;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top-left-radius: var(--r-sm);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-style: italic;
}


/* ─── 6. HERO COPY ─────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(184,138,92,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(58,107,154,0.08) 0%, transparent 60%),
    var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule-soft);
}

.hero-inner {
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.5rem;
}
.eyebrow.centered { display: block; }

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── 7. SECTION TITLES ────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-footer {
  margin-top: 3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}


/* ─── 8. TWO-COLUMN GRID ───────────────────────────────────────── */
.grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.grid-2 { grid-template-columns: 1fr 1fr; }


/* ─── 9. WEBSITE CARDS GRID ────────────────────────────────────── */
.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.4rem;
  color: var(--ink);
  /* Stronger resting drop shadow — gives the cards proper presence */
  box-shadow:
    0 6px 14px rgba(31,45,61,0.10),
    0 2px 4px rgba(31,45,61,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.site-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  opacity: 0;
  transition: opacity .2s ease;
}
.site-card:hover {
  transform: translateY(-4px);
  /* Pronounced lift on hover */
  box-shadow:
    0 18px 38px rgba(31,45,61,0.16),
    0 6px 12px rgba(31,45,61,0.08);
  border-color: var(--blue-tint);
  color: var(--ink);
}
.site-card:hover::before { opacity: 1; }

.site-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-tint);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.site-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  flex: 1;
}

.site-url {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.01em;
}


/* ─── 10. PEOPLE CARD ──────────────────────────────────────────── */
.people-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

img.people-photo {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pale);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--rule), var(--shadow-sm);
}

.people-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}
.people-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.8rem;
}


/* ─── 11. CONTACT BOX ──────────────────────────────────────────── */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.contact-line {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-top: 1.25rem;
}


/* ─── 12. ARTICLE PAGES (cookies, privacy) ─────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  background: var(--white);
  padding: 1rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.article-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.article-body .lede {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.article-subhead {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}


/* ─── 13. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--blue-tint);
  color: var(--blue-deep);
}


/* ─── 14. FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-light);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--ink-light);
  margin: 0 0.4rem;
}
.footer-links a:hover { color: var(--blue); }


/* ─── 15. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .brand-sub { display: none; }
  .main-nav { gap: 1.25rem; }
  .main-nav a { font-size: 0.85rem; }

  .grid-2 { grid-template-columns: 1fr; }

  .people-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.75rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .article-image {
    max-width: 240px;
    margin: 0 auto;
  }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .main-nav a:not(:first-child):not(:last-child) { display: none; }
  .hero h1 br { display: none; }
  .hero-banner img { height: 180px; }
}
