/* Hey Property Consultants – retirement page
   Colours and fonts follow the original Nicepage site. */

/* Self-hosted fonts (no Google Fonts requests) ------------------- */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #1d4f8c;        /* darker than the original #478ac9 so it reads on the gradient */
  --blue-dark: #12345e;
  --text: #333333;
  --muted: #666666;
  --rule: rgba(0, 0, 0, 0.2);
  --footer-bg: #999999;   /* Nicepage grey-40 */
  --footer-text: #111111;
  --page: #f3a532;        /* fallback if gradients are unsupported */
}

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

html { font-size: 16px; }

body {
  margin: 0;
  /* Orange-to-lime gradient sampled from the original banner. It runs
     across the whole page, so the header and body are seamless and the
     white skyline in Buildings.png shows up */
  background: var(--page) linear-gradient(to right, #f67a37 0%, #f3a532 50%, #def338 100%);
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.sheet {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header ---------------------------------------------------------- */

.site-header {
  padding-top: 24px;
}

/* The banner: skyline image with the firm name laid over its top left
   and Andy's portrait standing on its bottom right, as on the original */

.banner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero { width: 100%; }

.masthead-text {
  position: absolute;
  top: 3%;
  left: 0;
}

.masthead-text p { margin: 0; }

.firm {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 4.6vw, 2.6rem);
  line-height: 1.2;
  color: #111111;
}

.name {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.875rem, 2.6vw, 1.5rem);
  line-height: 1.3;
  color: #111111;
}

.portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 17%;
}

/* Main ------------------------------------------------------------ */

main { padding-top: 50px; padding-bottom: 48px; }

h1,
h2 {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  text-align: center;
  margin: 0 0 32px;
}

h2 { font-size: 1.375rem; margin: 0 0 8px; }

main p { max-width: 68ch; }

.intro {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.side-image { flex-shrink: 0; margin-top: 6px; }

.lead { font-size: 1.125rem; font-weight: 600; margin-top: 0; }

.signoff { margin-top: 28px; }

.signature {
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue);
}

.next {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem;
  text-align: center;
  padding: 24px 0;
}

.site-footer p { margin: 0 0 12px; }
.site-footer a { color: var(--footer-text); }
.site-footer img { margin: 0 auto; }

/* Small screens --------------------------------------------------- */

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  .intro { flex-direction: column; }
  .side-image { margin: 0 auto; }
}
