/* ==========================================================
   COSS Consultancy – site stylesheet
   One heading font (Montserrat) and one body font (Source Sans 3)
   are set here and inherited by every element, including forms.
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --charcoal: #23272A;
  --charcoal-deep: #1B1E20;
  --slate: #5A6169;
  --soft-grey: #D9DDE1;
  --mid-grey: #B9BFC5;
  --warm-white: #F7F6F2;
  --white: #FFFFFF;
  --gold: #C8A46B;        /* lines, numbers, buttons on dark */
  --gold-text: #8A6A33;   /* small labels on light backgrounds (passes contrast) */
  --line-dark: #3A4046;

  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --max: 1240px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Browsers don't pass the page font to form controls by default */
input, select, textarea, button { font: inherit; color: inherit; }

h1, h2, h3, .heading { font-family: var(--font-heading); margin: 0; }
h1 { font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.3; }
p { margin: 0; }

a { color: var(--charcoal); }
a:hover { color: var(--gold-text); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 112px; padding-bottom: 112px; }
.section--white { background: var(--white); border-top: 1px solid var(--soft-grey); }
.section--light { background: var(--warm-white); border-top: 1px solid var(--soft-grey); }
.section--dark { background: var(--charcoal); color: var(--warm-white); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 16px;
}
.section--dark .eyebrow, .panel-dark .eyebrow { color: var(--gold); }

.lead { font-size: 21px; color: var(--slate); max-width: 580px; }
.muted { color: var(--slate); }
.section--dark .muted { color: var(--mid-grey); }

.intro { max-width: 760px; margin-bottom: 56px; }
.intro h2 { margin-bottom: 24px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--soft-grey); background: var(--warm-white); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; padding-bottom: 22px;
}
.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--charcoal); }
.wordmark:hover { color: var(--charcoal); }
.wordmark__coss { font-family: var(--font-heading); font-weight: 700; font-size: 22px; letter-spacing: 0.14em; }
.wordmark__bar { width: 2px; height: 24px; background: var(--gold); }
.wordmark__name { font-family: var(--font-heading); font-weight: 500; font-size: 18px; letter-spacing: 0.04em; color: var(--slate); }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--font-heading); font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn--dark { background: var(--charcoal); color: var(--warm-white); border-color: var(--charcoal); }
.btn--dark:hover { background: var(--charcoal-deep); color: var(--warm-white); }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--warm-white); }
.btn--gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); font-weight: 700; }
.btn--gold:hover { background: #D6B581; color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__text h1 { margin-bottom: 28px; }
.hero__text .lead { margin-bottom: 40px; }
.hero--simple { padding-bottom: 72px; }
.hero--simple .hero__text { flex-basis: 100%; max-width: 820px; }

.panel-dark { flex: 1 1 420px; min-width: 0; background: var(--charcoal); color: var(--warm-white); padding: 48px 44px; }
.panel-dark__title { font-family: var(--font-heading); font-size: 24px; font-weight: 600; line-height: 1.3; margin-bottom: 36px; }
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { display: flex; gap: 20px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.journey li:last-child { border-bottom: 1px solid var(--line-dark); }
.journey__num { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--gold); min-width: 28px; padding-top: 3px; }
.journey__title { font-weight: 600; font-size: 18px; }
.journey__sub { font-size: 16px; color: var(--mid-grey); }

/* ---------- Audience strip ---------- */
.audience { background: var(--white); border-top: 1px solid var(--soft-grey); border-bottom: 1px solid var(--soft-grey); }
.audience .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-top: 28px; padding-bottom: 28px; }
.audience__label { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }
.audience__item { font-family: var(--font-heading); font-weight: 600; font-size: 17px; }

/* ---------- Split layout ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.split__side { flex: 1 1 360px; min-width: 0; }
.split__main { flex: 1.4 1 520px; min-width: 0; }
.split__side h2 { margin-bottom: 24px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--soft-grey); padding: 32px 28px; }
.card__rule { width: 32px; height: 3px; background: var(--gold); margin-bottom: 24px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 17px; color: var(--slate); }

/* ---------- Levels of support ---------- */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.stage { display: flex; flex-direction: column; border-top: 3px solid var(--gold); background: var(--warm-white); padding: 32px 28px; }
.section--light .stage { background: var(--white); }
.stage__num { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--gold-text); letter-spacing: 0.1em; }
.stage h3 { font-size: 22px; margin: 12px 0 4px; }
.stage__when { font-size: 16px; color: var(--slate); margin-bottom: 20px; }
.stage ul { margin: 0 0 28px; padding-left: 20px; font-size: 17px; display: flex; flex-direction: column; gap: 10px; }
.stage__get { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--soft-grey); }
.label-small { font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.stage__get p { font-weight: 600; font-size: 17px; }

.full-support { margin-top: 24px; background: var(--charcoal); color: var(--warm-white); padding: 40px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.full-support__text { flex: 1 1 520px; min-width: 0; }
.full-support__text .eyebrow { color: var(--gold); margin-bottom: 8px; }
.full-support__text p:last-child { font-family: var(--font-heading); font-size: 24px; font-weight: 600; line-height: 1.35; }

/* ---------- Quote ---------- */
.quote { max-width: 1000px; margin: 0 auto; padding: 120px var(--gutter); text-align: center; }
.quote__rule { width: 48px; height: 3px; background: var(--gold); margin: 0 auto 36px; }
.quote p { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- Numbered list (services) ---------- */
.numbered { list-style: none; margin: 0; padding: 0; }
.numbered li { display: flex; gap: 28px; padding: 28px 0; border-top: 1px solid var(--soft-grey); }
.numbered li:last-child { border-bottom: 1px solid var(--soft-grey); }
.numbered__num { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--gold-text); min-width: 32px; padding-top: 2px; }
.numbered h3 { margin-bottom: 8px; }
.numbered p { color: var(--slate); }
.numbered p + p { margin-top: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--soft-grey); padding: 6px 14px; font-size: 15px; background: var(--white); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.steps__num { font-family: var(--font-heading); font-weight: 700; font-size: 48px; line-height: 1; color: var(--gold); margin-bottom: 20px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--slate); }

/* ---------- Prose (About / Privacy) ---------- */
.prose p { color: var(--slate); }
.prose p + p { margin-top: 20px; }
.prose h2 { margin: 56px 0 20px; font-size: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--slate); padding-left: 22px; }

/* ---------- Contact CTA ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-end; }
.cta__text { flex: 1.3 1 520px; min-width: 0; }
.cta__text h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 24px; }
.cta__contact { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cta__phone { color: var(--warm-white); text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 26px; }
.cta__email { color: var(--warm-white); text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 20px; overflow-wrap: anywhere; }
.cta__phone:hover, .cta__email:hover { color: var(--gold); }
.cta__contact .btn { align-self: flex-start; margin-top: 8px; }
.cta__note { font-size: 15px; color: var(--mid-grey); }

/* ---------- Contact page ---------- */
.contact-layout { padding-top: 88px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.contact-intro { flex: 1 1 400px; min-width: 0; }
.contact-intro h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; margin-bottom: 28px; }
.contact-intro .lead { font-size: 20px; margin-bottom: 40px; }
.contact-detail { display: flex; flex-direction: column; gap: 4px; padding: 28px 0; border-top: 1px solid var(--soft-grey); }
.contact-detail:last-of-type { border-bottom: 1px solid var(--soft-grey); }
.contact-detail a { text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 22px; overflow-wrap: anywhere; }
.contact-note { margin-top: 28px; font-size: 16px; color: var(--slate); }

.enquiry-form { flex: 1.25 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--soft-grey); border-top: 3px solid var(--gold); padding: 44px 40px; display: flex; flex-direction: column; gap: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 16px; }
.field .optional { font-weight: 400; color: var(--slate); }
.field .hint { font-size: 15px; color: var(--slate); }
.field input, .field select, .field textarea {
  min-height: 50px; padding: 0 14px;
  border: 1px solid var(--mid-grey); border-radius: 0;
  background: var(--warm-white);
  width: 100%;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--charcoal); }
.form-divider { height: 1px; background: var(--soft-grey); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form-foot p { flex: 1 1 280px; font-size: 15px; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: var(--mid-grey); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.site-footer .wordmark { color: var(--warm-white); gap: 12px; }
.site-footer .wordmark__coss { font-size: 17px; }
.site-footer .wordmark__bar { height: 18px; }
.site-footer .wordmark__name { font-size: 14px; color: var(--mid-grey); }
.footer-details { flex: 1 1 520px; min-width: 0; text-align: right; line-height: 1.7; }
.footer-details a { color: var(--warm-white); }
.footer-contact a { text-decoration: none; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .panel-dark, .full-support { padding: 32px 24px; }
  .enquiry-form { padding: 28px 20px; }
  .quote { padding-top: 80px; padding-bottom: 80px; }
  .footer-details { text-align: left; }
}

/* ---------- Form status + spam trap ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 16px 18px; font-weight: 600; border-left: 3px solid var(--gold); background: var(--warm-white); }
.form-status.is-error { border-left-color: #B3261E; }
.field input:invalid.touched, .field textarea:invalid.touched { border-color: #B3261E; }
.enquiry-form { position: relative; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Digital card (/john) ---------- */
.card-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--charcoal); }
.dcard { width: 100%; max-width: 420px; background: var(--warm-white); padding: 44px 32px; border-top: 3px solid var(--gold); }
.dcard .wordmark { margin-bottom: 40px; }
.dcard h1 { font-size: 34px; margin-bottom: 6px; }
.dcard__role { color: var(--slate); margin-bottom: 32px; }
.dcard__links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.dcard__link { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border: 1px solid var(--soft-grey); background: var(--white); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.dcard__link:hover { border-color: var(--charcoal); color: var(--charcoal); }
.dcard .btn { width: 100%; }
.dcard__foot { margin-top: 28px; font-size: 14px; color: var(--slate); }

/* ---------- Photos ---------- */
.hero--with-photo { padding-bottom: 48px; }
.photo-wrap { padding-bottom: 96px; }
.photo-wrap--tight { padding-bottom: 72px; }
.photo-band { margin: 0; }
.photo-band img { width: 100%; height: clamp(240px, 40vw, 500px); object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { margin-top: 12px; font-size: 15px; color: var(--slate); }
.photo-note { margin-top: 32px; font-size: 15px; color: var(--slate); }
.contact-photo { margin: 36px 0 0; }
.contact-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 720px) {
  .photo-wrap { padding-bottom: 64px; }
}
