/**
Theme name: John Clegg End
Theme URI: https://www.johnclegg.co.uk
Author: Roll Studio
Description: Single landing page announcing that the John Clegg & Co website has moved to Strutt & Parker. All other routes fall back to this page.
Version: 1.0.0
License: MIT
Text Domain: johnclegg-end
*/

:root {
  --c-green-dark: #17472e;
  --c-green-overlay: rgba(22, 76, 52, 0.84);
  --c-green-button: #309a63;
  --c-green-button-hover: #2b8a58;
  --c-white: #fff;
  --font-sans: "Gotham", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --container-max: 914px;
  --container-pad: 40px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--c-white);
  background-color: #0f3d28;
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
}

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

/* ------------------------------------------------------------------ */
/* Page                                                                */
/* ------------------------------------------------------------------ */

.moved-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-green-dark);
  background-image: url("assets/img/forest-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.moved-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-green-overlay);
  z-index: -1;
}

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

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

.moved-header {
  padding-top: 40px;
}

.moved-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.moved-header__brand {
  display: block;
}

.moved-header__logo {
  width: 268px;
  max-width: 100%;
  height: auto;
}

.moved-header__part-of {
  display: flex;
  align-items: center;
  gap: 24px;
}

.moved-header__part-of-label {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.moved-header__sp-logo {
  width: 110px;
  height: auto;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.moved-hero {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 56px 0 64px;
}

.moved-hero__inner {
  max-width: 820px;
}

.moved-hero__title {
  margin: 0 0 36px;
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
}

.moved-hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
}

.moved-hero__lead + .moved-hero__lead {
  margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.moved-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
}

.moved-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 24px;
  width: 180px;
  min-height: 40px;
  border-radius: 999px;
  background-color: var(--c-green-button);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.moved-btn:hover {
  background-color: var(--c-green-button-hover);
}

.moved-btn:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

.moved-btn__icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.moved-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  :root {
    --container-pad: 24px;
  }

  .moved-header {
    padding-top: 32px;
  }

  .moved-header__inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .moved-header__logo {
    width: 230px;
  }

  .moved-header__part-of {
    flex-direction: column;
    gap: 4px;
  }

  .moved-header__part-of-label {
    font-size: 13px;
  }

  .moved-header__sp-logo {
    width: 96px;
  }

  .moved-hero {
    padding: 48px 0 56px;
  }

  .moved-hero__title {
    font-size: 34px;
    margin-bottom: 26px;
  }

  .moved-hero__lead {
    font-size: 15px;
  }

  .moved-hero__lead + .moved-hero__lead {
    margin-top: 22px;
  }

  .moved-hero__actions {
    align-items: center;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
  }
}

@media (max-width: 374px) {
  .moved-header__logo {
    width: 200px;
  }
}
