/* ------------------------------------------------------------------
   Simon James New Homes — site stylesheet
   SIMON JAMES NEW HOMES LIMITED, company number 03836600
   Written for this site only. No frameworks, no external assets.
   Full-width page: edge-to-edge photographic and colour bands,
   content held in a centred 1200px measure. Terracotta and slate.
   ------------------------------------------------------------------ */

:root {
  /* terracotta / burnt orange — the company colour */
  --ter:        #8f4619;
  --ter-dk:     #6f3512;
  --ter-dp:     #4f2911;
  --ter-lt:     #b8622c;
  --ter-pale:   #eddcd0;
  --ground-2:   #dedbd4;
  /* page ground: soft warm grey */
  --ground:     #eae8e3;
  --paper:      #faf9f7;
  --paper-2:    #f4f1ec;
  --ter-wash:   #f6ece4;
  --white:      #ffffff;
  --sheen:      #e6e2da;
  --foot-ink:   #f0e4da;
  --foot-link:  #f7ece2;
  /* slate blue — the accent */
  --slate:      #3d5f80;
  --slate-dk:   #2c465f;
  --slate-lt:   #7d97b0;
  --slate-tint: #e2e8ee;
  /* ink and rules */
  --ink:        #2e2a25;
  --ink-2:      #57504a;
  --rule:       #cdc7bd;
  --rule-2:     #b3aca0;
  --serif:      Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:       "Segoe UI", Tahoma, Verdana, Arial, Helvetica, sans-serif;
  /* layout: centred measure inside full-bleed bands */
  --measure:    1200px;
  --gutter:     26px;
  --column:     1252px;   /* measure + both gutters */
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ter-dk); font-weight: normal; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 15px; font-family: var(--sans); font-weight: bold; color: var(--ter-dk); }
h4 { font-size: 13px; font-family: var(--sans); font-weight: bold; color: var(--ink); }
p  { margin: 0 0 .9em; }
a  { color: var(--ter); }
a:hover { color: var(--ter-dp); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 1px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }

/* the one centring device: everything readable sits in this measure */
.sj-wrap {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sj-measure { max-width: 720px; }
.sj-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ter-dp); color: var(--white); padding: 8px 14px; z-index: 100; font-size: 12px;
}
.sj-skip:focus { left: 0; }

/* ---------- masthead: centred wordmark, full-width photo band, nav bar beneath ---------- */
.sj-head {
  background: var(--white);
  border-top: 4px solid var(--ter);
}
.sj-head-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 22px var(--gutter) 20px;
  text-align: center;
}
.sj-mark { display: inline-block; text-decoration: none; color: var(--ter-dk); }
.sj-mark:hover .sj-mark-name { color: var(--ter); }
.sj-mark svg { display: block; margin: 0 auto 8px; }
.sj-mark-name {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--ter-dk);
}
.sj-mark-sub {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
}

/* the photographic band: edge to edge, whatever the viewport */
.sj-head-photo {
  height: 250px;
  background-color: var(--ground-2);
  background-image: url(../images/banner-about.jpg);
  background-size: cover;
  background-position: 50% 58%;
  background-repeat: no-repeat;
}
.sj-navtoggle {
  display: none;
  width: 100%;
  margin-top: 14px;
  background: var(--paper-2);
  background-image: linear-gradient(var(--white), var(--sheen));
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 9px 12px;
  font-family: inherit; font-size: 12px; font-weight: bold;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ter-dk);
  cursor: pointer;
}
.sj-nav {
  background: var(--ter);
  background-image: linear-gradient(var(--ter), var(--ter-dk));
}
/* three items, centred in the band so the bar does not read as half empty */
.sj-nav ul {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.sj-nav li { margin: 0; }
.sj-nav a {
  display: block; padding: 13px 40px;
  font-size: 11.5px; font-weight: bold; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  border-right: 1px solid var(--ter-dp);
}
.sj-nav li:first-child a { border-left: 1px solid var(--ter-dp); }
.sj-nav a:hover { background: var(--ter-dp); color: var(--white); }
.sj-nav a:focus-visible, .sj-foot a:focus-visible, .sj-skip:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.sj-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--ter-dk);
}

/* ---------- shell: none. main runs the width of the window ---------- */
main {
  display: block;
  background: var(--paper);
}

/* ---------- home introduction ---------- */
.sj-hero { background: var(--paper); }
.sj-hero-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 40px var(--gutter) 38px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start;
}
/* the introduction with no card beside it: one column, held to a reading measure */
.sj-hero-inner--solo { grid-template-columns: minmax(0, 1fr); padding: 46px var(--gutter) 42px; }
.sj-hero-inner--solo .sj-hero-text { max-width: 860px; }
.sj-hero-inner--solo .sj-hero-text h1 { font-size: 38px; }
.sj-hero-inner--solo .sj-hero-lede { font-size: 18px; }
.sj-hero-text { max-width: 780px; }
.sj-hero-text h1 { margin-bottom: .35em; font-size: 34px; }
.sj-hero-lede { font-size: 16px; color: var(--ink); margin-bottom: .9em; }
/* full-bleed photographic strip */
.sj-hero-strip { background: var(--ground); padding-bottom: 4px; }
.sj-hero-strip img { width: 100%; height: 320px; object-fit: cover; object-position: 50% 58%; }

.sj-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: bold;
  color: var(--slate); margin: 0 0 8px;
}
.sj-eyebrow--pale { color: var(--slate); }

/* ---------- page title band (inner pages): full-width wash ---------- */
.sj-pagehead { background: var(--ter-wash); }
.sj-pagehead-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 34px var(--gutter) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: center;
}
.sj-pagehead h1 { color: var(--ter-dp); margin-bottom: .3em; }
.sj-pagehead > .sj-pagehead-inner > div:first-child { max-width: 760px; }
.sj-pagehead p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sj-pagehead .sj-eyebrow { color: var(--slate); }
.sj-pagehead-fig img { width: 100%; height: 150px; object-fit: cover; }

/* ---------- generic band: separated by tint, not by rules ---------- */
.sj-band { padding: 42px 0; }
.sj-band--stone { background: var(--ground); }
.sj-band--tight { padding: 30px 0 38px; }

.sj-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; }
.sj-split > :last-child { max-width: 820px; }
.sj-split-aside { border-top: 3px solid var(--ter); padding-top: 11px; }
.sj-split-aside h2 { font-size: 22px; margin-bottom: 0; }
.sj-split-aside .sj-eyebrow { margin-bottom: 5px; }

/* ---------- numbered activity list ---------- */
.sj-activities { list-style: none; margin: 0; padding: 0; }
.sj-activity {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 340px;
  gap: 30px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.sj-activity:first-child { border-top: 3px solid var(--ter); }
.sj-activity-no {
  font-family: var(--serif); font-size: 26px; color: var(--slate); line-height: 1;
  padding-top: 2px;
}
.sj-activity h3 { margin-bottom: .35em; font-size: 16px; }
.sj-activity p:last-child { margin-bottom: 0; }

/* ---------- flat panels in a row ---------- */
.sj-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.sj-card {
  background: var(--white);
  border-top: 3px solid var(--slate);
  padding: 16px 20px 18px;
}
.sj-card h3 { font-size: 15px; margin-bottom: .45em; }
.sj-card p:last-child { margin-bottom: 0; }
.sj-card--flat { background: transparent; border-top-color: var(--ter-lt); padding: 11px 0 0; }


/* ---------- checklist ---------- */
.sj-checklist { list-style: none; margin: 0; padding: 0; }
.sj-checklist li {
  position: relative; padding: 8px 0 8px 20px; border-bottom: 1px dotted var(--rule-2);
}
.sj-checklist li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 7px; height: 7px; background: var(--ter-lt);
}

/* ---------- callout ---------- */
.sj-note {
  border-left: 4px solid var(--slate);
  background: var(--slate-tint);
  padding: 15px 18px; margin: 18px 0;
}
.sj-note :last-child { margin-bottom: 0; }
.sj-note--plain { background: var(--ter-wash); border-left-color: var(--ter-lt); }

/* ---------- buttons ---------- */
.sj-btn {
  display: inline-block; padding: 9px 18px;
  font-family: inherit; font-size: 11.5px; font-weight: bold;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  background: var(--ter);
  background-image: linear-gradient(var(--ter-lt), var(--ter));
  border: 1px solid var(--ter-dp); border-radius: 2px;
  cursor: pointer;
}
.sj-btn:hover { background-image: linear-gradient(var(--ter), var(--ter-dp)); color: var(--white); }
.sj-btn--ghost {
  color: var(--ter-dk); background: var(--paper-2);
  background-image: linear-gradient(var(--white), var(--sheen));
  border-color: var(--rule-2);
}
.sj-btn--ghost:hover { background-image: linear-gradient(var(--white), var(--ground-2)); color: var(--ter-dp); }
.sj-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- figures, captions, tables ---------- */
figure { margin: 0; }
.sj-figure figcaption,
.sj-caption { font-size: 12px; color: var(--ink-2); margin-top: 7px; line-height: 1.45; }
.sj-credit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sj-credit-table th, .sj-credit-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.sj-credit-table th {
  font-family: var(--sans); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--white); background: var(--slate); font-weight: bold; border-bottom-color: var(--slate-dk);
}
.sj-credit-table tbody tr:nth-child(even) td { background: var(--paper-2); }
.sj-scroll { overflow-x: auto; }

/* ---------- form ---------- */
.sj-form { max-width: 680px; }
.sj-field { margin-bottom: 15px; }
.sj-field label { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: bold; color: var(--slate-dk); margin-bottom: 4px; }
.sj-field input, .sj-field select, .sj-field textarea {
  width: 100%; padding: 8px 10px; font-family: inherit; font-size: 14px;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--rule-2); border-top-color: var(--ink-2); border-radius: 2px;
}
.sj-field textarea { min-height: 140px; resize: vertical; }
.sj-field input:focus, .sj-field select:focus, .sj-field textarea:focus {
  border-color: var(--slate); outline: 2px solid var(--slate); outline-offset: 0;
}
.sj-field-hint { font-size: 12px; color: var(--ink-2); margin: 4px 0 0; }
.sj-form-status {
  margin-top: 16px; padding: 13px 16px; border-left: 4px solid var(--ter-lt); background: var(--ter-wash);
  font-size: 13px;
}
.sj-form-status[hidden] { display: none; }

/* ---------- enquiry layout ---------- */
.sj-contact-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 60px; align-items: start; }
.sj-contact-grid > :last-child { max-width: 680px; }
.sj-detail-block { background: var(--paper-2); padding: 14px 18px 15px; margin-bottom: 16px; }
.sj-detail-block h3 {
  font-family: var(--sans); font-size: 11px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--slate-dk); font-weight: bold; margin-bottom: 6px;
}
.sj-detail-block p, .sj-detail-block address { margin: 0; font-style: normal; }
.sj-placeholder { font-family: var(--serif); color: var(--ter-dk); }

/* ---------- footer: full-width band ---------- */
.sj-foot {
  background: var(--ter-dp);
  color: var(--foot-ink);
  border-top: 4px solid var(--ter);
  font-size: 13px;
}
.sj-foot a { color: var(--foot-link); text-decoration: underline; }
.sj-foot a:hover { color: var(--white); }
.sj-foot-grid {
  max-width: var(--column);
  margin: 0 auto;
  padding: 34px var(--gutter) 30px;
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 60px;
}
.sj-foot h4 {
  color: var(--white); font-family: var(--sans); font-size: 11px;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 5px;
}
.sj-foot ul { list-style: none; margin: 0; padding: 0; }
.sj-foot li { margin-bottom: 4px; }
.sj-foot address { font-style: normal; }
.sj-foot-name { font-family: var(--serif); font-size: 19px; color: var(--white); margin-bottom: 9px; }
/* the registration particulars: stated once, on every page, quietly */
.sj-foot-reg { font-size: 12px; line-height: 1.5; opacity: .82; }
.sj-foot-reg p { margin: 0 0 8px; }
.sj-foot-reg address { margin: 0; }
.sj-foot-reg strong { font-weight: normal; letter-spacing: .09em; text-transform: uppercase; font-size: 10px; }
/* the legal line, ruled off from the columns above it */
.sj-foot-legal {
  max-width: var(--column);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding: 13px var(--gutter) 26px;
  font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 4px 30px; justify-content: space-between;
}
.sj-foot-legal p { margin: 0; }

/* ---------- cookie notice ---------- */
.sj-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--ter);
  padding: 11px 0;
}
.sj-cookie[hidden] { display: none; }
body.sj-has-notice { padding-bottom: 120px; }
.sj-cookie-inner {
  max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.sj-cookie p { margin: 0; font-size: 12.5px; max-width: 78ch; }
.sj-cookie a { color: var(--ter); }
.sj-cookie-actions { display: flex; gap: 8px; }
.sj-cookie .sj-btn { padding: 7px 13px; }

/* ---------- legal pages: text ranged left on the content edge ---------- */
.sj-legal {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sj-legal > * { max-width: 760px; }
.sj-legal h2 { margin-top: 26px; font-size: 20px; }
.sj-legal h3 { margin-top: 18px; }
.sj-legal ul { padding-left: 20px; }
.sj-legal li { margin-bottom: 5px; }
.sj-updated { font-size: 12px; color: var(--ink-2); }

/* ---------- 404 ---------- */
.sj-lost { padding: 48px var(--gutter) 56px; }
.sj-lost .sj-code { font-family: var(--serif); font-size: 56px; color: var(--ter-lt); line-height: 1; margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .sj-hero-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .sj-pagehead-inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
  .sj-split { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .sj-contact-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .sj-activity { grid-template-columns: 44px minmax(0, 1fr) 260px; gap: 22px; }
  .sj-foot-grid { gap: 40px; }
}

@media (max-width: 860px) {
  .sj-hero-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .sj-hero-inner--solo .sj-hero-text h1 { font-size: 32px; }
  .sj-pagehead-inner { grid-template-columns: 1fr; gap: 20px; }
  .sj-pagehead-fig { display: none; }
  .sj-split { grid-template-columns: 1fr; gap: 16px; }
  .sj-contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .sj-activity { grid-template-columns: 38px minmax(0, 1fr); gap: 18px; }
  .sj-activity figure { grid-column: 1 / -1; max-width: 340px; }
  .sj-head-photo { height: 190px; }
  .sj-hero-strip img { height: 240px; }
  .sj-band { padding: 30px 0; }
}

@media (max-width: 720px) {
  .sj-navtoggle { display: block; }
  .sj-head-photo { height: 150px; }
  .sj-nav ul { display: none; padding: 0; }
  .sj-nav ul.is-open { display: block; }
  .sj-nav a { padding: 11px var(--gutter); border-right: 0; border-bottom: 1px solid var(--ter-dp); }
  .sj-nav li:first-child a { border-left: 0; }
  .sj-nav li:last-child a { border-bottom: 0; }
  .sj-foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .sj-hero-strip img { height: 190px; }
  .sj-cookie-inner { align-items: flex-start; }
  body.sj-has-notice { padding-bottom: 180px; }
}

@media (max-width: 430px) {
  :root { --gutter: 16px; }
  .sj-mark-name { font-size: 21px; }
  .sj-mark-sub { font-size: 9px; letter-spacing: .12em; }
  h1 { font-size: 24px; }
  .sj-hero-text h1 { font-size: 25px; }
  .sj-hero-inner--solo .sj-hero-text h1 { font-size: 25px; }
  .sj-hero-inner--solo .sj-hero-lede { font-size: 16px; }
  .sj-head-photo { height: 120px; }
  .sj-hero-strip img { height: 160px; }
  .sj-activity { grid-template-columns: 1fr; }
  .sj-activity-no { display: none; }
  .sj-cards { grid-template-columns: 1fr; gap: 20px; }
}

@media print {
  .sj-nav, .sj-cookie, .sj-navtoggle, .sj-head-photo { display: none; }
  body { background: var(--white); padding: 0; }
  .sj-head, main, .sj-foot { border: 0; }
}
