/* =========================================================
   Radius Developments - site stylesheet
   ========================================================= */

:root {
  /* ===== Colours ===== */
  --color-primary: #478ac9;
  --color-primary-dark: #35699c;
  --color-dark: #2e2e38;
  --color-text: #1a1a1a;
  --color-text-body: #333333;
  --color-text-muted: #666666;
  --color-body-bg: #ffffff;
  --color-alt-bg: #f5f7fa;
  --color-divider-bg: #e9ebee;
  --color-border: #e3e6ea;
  --color-footer-text: #999999;

  /* ===== Fonts ===== */
  --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* ===== Layout widths ===== */
  --container-width: 1180px;
  --header-container-width: 1560px;

  /* ===== Header ===== */
  --header-height: 160px;
  --header-height-sm: 96px;
  --header-logo-height: 130px;
  --header-logo-height-sm: 64px;
  --header-padding-x: 6rem;
  --nav-font-size: 0.95rem;

  /* ===== Hero (page-top image banner) ===== */
  --hero-min-height: 480px;
  --hero-content-width: 780px;

  /* Hero page-title size - "Welcome to Radius Finance", "Website Terms",
     "Terms of Business". */
  --heading-size-hero: 1.875rem;

  /* ===== Block headings & body copy ===== */
  /* Block heading size - "Our Approach", "Property Development", etc.
     Was 1.875rem (30px); reduced ~10% below. Adjust this one value to
     resize every block heading on the site at once. */
  --heading-size-block: 1.6875rem;
  --body-font-size: 1.125rem;
  --section-padding-top: 2.75rem;
  --section-padding-bottom: 4.5rem;
  --section-padding-top-sm: 2rem;
  --section-padding-bottom-sm: 2.75rem;

  /* ===== Divider band (skyline strip) ===== */
  --band-height: 460px;

  /* ===== "Any Questions?" callout ===== */
  --callout-font-size: 1.4rem;

  /* ===== Contact section ===== */
  --contact-padding: 3.5rem;
  --contact-email-size: 1.3rem;
  --contact-logo-height: 140px;
  --contact-badge-height: 60px;

  /* ===== Footer ===== */
  --footer-padding: 9.75rem;
  --footer-font-size: 0.7rem;

  /* ===== Overlay opacity (hero images + band/photo-strip images) ===== */
  --hero-overlay-opacity: 0.72;
  --banner-overlay-opacity: 0.72;
}

/* ---------- Reset / base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-body-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--color-text);
}

h1 {
  font-size: var(--heading-size-hero);
}

h2 {
  font-size: var(--heading-size-block);
}

p {
  margin: 0 0 1.25rem;
  font-size: var(--body-font-size);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.site-header .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.5rem;
  max-width: var(--header-container-width);
  padding-top: 1.75rem;
  padding-left: var(--header-padding-x);
  padding-right: var(--header-padding-x);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: var(--header-logo-height);
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.main-nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
  gap: 1.5rem;
}

.main-nav__list a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--color-text);
  font-size: var(--nav-font-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.main-nav__list a:hover,
.main-nav__list a:focus {
  color: var(--color-text-muted);
  border-bottom-color: var(--color-text-muted);
}

@media (max-width: 1400px) {
  :root {
    --header-height: var(--header-height-sm);
  }

  .site-header .container {
    align-items: center;
    padding-top: 0;
    padding-left: 1.875rem;
    padding-right: 1.875rem;
  }

  .site-header__logo img {
    height: var(--header-logo-height-sm);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height-sm) 0 0 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
  }

  .main-nav__list a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--hero-min-height);
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, var(--hero-overlay-opacity));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: var(--hero-content-width);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #f2f2f2;
  margin-bottom: 0;
}

.hero--blueprints {
  background-image: url("images/architect-drafting-blueprints.jpg");
}

.hero--conference {
  background-image: url("images/conference-room-glass.jpg");
}

.hero--terms {
  background-image: url("images/office-terms.jpg");
}

@media (max-width: 1100px) {
  .hero {
    min-height: 400px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 280px;
    padding: 3rem 0;
  }
}

@media (max-width: 575px) {
  .hero {
    min-height: 200px;
  }
}

/* ---------- Generic section ---------- */
.section {
  padding: var(--section-padding-top) 0 var(--section-padding-bottom);
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section--alt {
  background: var(--color-alt-bg);
}

.section__inner h2 {
  margin-bottom: 1.25rem;
}

.section__body p + p {
  margin-top: 1.5rem;
}

.section__body p {
  max-width: 68rem;
}

@media (max-width: 760px) {
  .section {
    padding: var(--section-padding-top-sm) 0 var(--section-padding-bottom-sm);
  }
}

/* ---------- Divider band (skyline strip) ---------- */
.band {
  min-height: var(--band-height);
  background-image: url("images/office-skyline-silhouettes.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, var(--banner-overlay-opacity));
}

@media (max-width: 1100px) {
  .band {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .band {
    min-height: 200px;
  }
}

/* ---------- Callout strip ("Any Questions?") ---------- */
.callout {
  padding: 1.75rem 0;
  background: var(--color-divider-bg);
}

.callout p {
  margin: 0;
  font-size: var(--callout-font-size);
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--color-text);
}

/* ---------- Contact section ---------- */
.contact {
  padding: var(--contact-padding) 0;
  background: var(--color-dark);
  color: #f2f2f2;
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__phone,
.contact__email {
  font-size: var(--contact-email-size);
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.is-hidden {
  display: none;
}

.contact__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.contact__logo {
  height: var(--contact-logo-height);
  width: auto;
}

.contact__badge img {
  height: var(--contact-badge-height);
  width: auto;
}

@media (max-width: 760px) {
  .contact .container {
    justify-content: center;
    text-align: center;
  }

  .contact__aside {
    align-items: center;
    width: 100%;
  }
}

/* ---------- Photo strip (4-image banner) ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.photo-strip__item {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.photo-strip__item--shade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, calc(var(--banner-overlay-opacity) * 0.5));
}

@media (max-width: 760px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-strip__item {
    min-height: 160px;
  }
}

/* ---------- Service subpages (rich content) ---------- */
.rich-content h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.rich-content h3:first-child {
  margin-top: 0;
}

.rich-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.rich-content li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.rich-content li:last-child {
  margin-bottom: 0;
}

.rich-content .cta-line {
  font-weight: 600;
}

.rich-content .cta-line a {
  text-decoration: underline;
}

.rich-content .cta-line a:hover {
  color: var(--color-primary);
}

.rich-content .fine-print {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.guide-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.guide-callout img {
  width: 110px;
  flex-shrink: 0;
}

.guide-callout a {
  text-decoration: underline;
}

.guide-callout a:hover {
  color: var(--color-primary);
}

/* ---------- Legal / text-heavy pages ---------- */
.legal-content p {
  max-width: 76rem;
  font-size: 1.05rem;
}

.legal-content .lede {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.legal-content .doc-link {
  text-decoration: underline;
}

.legal-content .doc-link:hover,
.legal-content .doc-link:focus {
  color: var(--color-primary);
}

.legal-content .fine-print {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Flat inline-style subheadings, as used on the Website Terms page */
.legal-content--flat h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.25rem;
}

.legal-content--flat h2:first-of-type {
  margin-top: 0;
}

.legal-content--flat p {
  margin-bottom: 1.75rem;
}

/* Bold block subheadings, as used on the Terms of Business page */
.legal-content--structured h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
}

.legal-content--structured h2:first-of-type {
  margin-top: 0;
}

.legal-content--structured p + p {
  margin-top: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-footer-text);
  padding: var(--footer-padding) 0;
}

.site-footer p {
  margin: 0;
  font-size: var(--footer-font-size);
  line-height: 1.7;
}

.site-footer a {
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
}
