/* ==========================================================================
   Glaisdale Point — built from Figma file gXsGtLKkLKnuzKYHctRusu (frame 1440 × 2342)
   ========================================================================== */

/* Blender Pro — the design typeface (licensed). The .woff2 files are generated
   from the OTF originals in assets/fonts/Blender Pro/. */
@font-face {
  font-family: "Blender Pro";
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: local("Blender Pro Thin"), local("BlenderPro-Thin"),
       url("../assets/fonts/BlenderPro-Thin.woff2") format("woff2");
}
@font-face {
  font-family: "Blender Pro";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local("Blender Pro Book"), local("BlenderPro-Book"),
       url("../assets/fonts/BlenderPro-Book.woff2") format("woff2");
}
@font-face {
  font-family: "Blender Pro";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local("Blender Pro Medium"), local("BlenderPro-Medium"),
       url("../assets/fonts/BlenderPro-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Blender Pro";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local("Blender Pro Bold"), local("BlenderPro-Bold"),
       url("../assets/fonts/BlenderPro-Bold.woff2") format("woff2");
}

/* Tokens
   ========================================================================== */
:root {
  --navy: #0d2157;
  --green: #2ae780;
  --white: #ffffff;
  --paper: #fefefe;

  --font: "Blender Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --thin: 100;
  --book: 400;
  --medium: 500;
  --bold: 700;

  --gutter: 35px;
  --radius: 5px;

  /* Hero is 880px at the 1440 × 900 design size and tracks the viewport elsewhere */
  --hero-h: max(720px, min(61.111vw, 100vh));
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--book);
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul, address { margin: 0; }
h1, h2 { font-weight: inherit; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: var(--medium);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.btn--white {
  width: 199px;
  height: 39px;
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: var(--green); }

.btn--navy {
  width: 139px;
  height: 32px;
  background: var(--navy);
  color: var(--green);
}
.btn--navy:hover {
  background: var(--green);
  color: var(--navy);
}

/* Header / hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--hero-h);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rectangle 158: navy → transparent wash behind the copy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(733px, 100%);
  background: linear-gradient(to right, var(--navy), rgba(28, 72, 189, 0));
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-inline: var(--gutter);
}

.hero__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-right: -4px;   /* Contact sits 31px from the right edge */
  padding-top: 30px;
}

.hero__logo {
  display: block;
  margin-top: 6px;      /* logo top at 36px */
}
.hero__logo img {
  width: 327px;
  height: 26px;
}

.hero__content {
  max-width: 556px;
  margin-top: calc(var(--hero-h) * .2159);   /* headline top at 252px in the 880px hero */
}

.hero__title {
  font-weight: var(--thin);
  font-size: 52px;
  line-height: 48px;
}

.hero__lead {
  max-width: 510px;
  margin-top: 45px;
  font-weight: var(--medium);
  font-size: 20px;
  line-height: 28px;
}

.hero__content .btn { margin-top: 39px; }

.hero__status {
  margin-top: auto;
  padding-bottom: 31px;
  font-weight: var(--bold);
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
}

/* Intro
   ========================================================================== */
.intro {
  padding: 73px var(--gutter) 76px;
  text-align: center;
  background: var(--paper);
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro__address {
  font-size: 21px;
  line-height: 24px;
}

.intro__title {
  max-width: 556px;
  margin-top: 34px;
  font-weight: var(--thin);
  font-size: 52px;
  line-height: 48px;
}

.intro__body {
  max-width: 765px;
  margin-top: 48px;
  font-size: 16px;
  line-height: 24px;
}

/* Site plan
   ========================================================================== */
.plan {
  position: relative;
  background: var(--navy);
}

/* Below 960px the plan keeps a legible width and scrolls sideways */
.plan__scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.plan__scroller:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

/* Image is 1440 × 674; the Figma frame crops it to 633px tall */
.plan__img {
  width: 100%;
  min-width: 960px;
  height: auto;
  aspect-ratio: 1440 / 633;
  object-fit: cover;
  object-position: top;
}

.plan__hint { display: none; }

/* Footer
   ========================================================================== */
.footer {
  padding: 57px var(--gutter) 43px;
  color: var(--white);
  background: var(--navy);
}

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 23px 37px;           /* agent block starts at 58px */
  border-bottom: 1px solid var(--green);
}

.footer__fhp {
  width: 158.551px;
  height: 59.641px;
}

.footer__contacts {
  display: flex;
  gap: 13px;
  margin-top: 21px;
  font-size: 16px;
  line-height: 24px;
}
.footer__contacts li {
  display: flex;
  flex-direction: column;
  width: 155px;
}
.footer__contacts strong { font-weight: var(--bold); }

.footer__logo {
  width: 327px;
  height: 26px;
  margin-bottom: 7px;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  justify-self: end;
  width: 199px;
  margin-right: -14px;            /* button ends 44px from the right edge */
  padding-top: 18px;
}

.footer__address {
  font-size: 21px;
  line-height: 24px;
  white-space: nowrap;
}

.footer__cta .btn { margin-top: 41px; }

.footer__notice {
  margin-top: 36px;
  font-size: 12px;
  line-height: 15px;
}

@media (min-width: 1200px) {
  .footer__notice { margin-right: -28px; }   /* text block is 1398px wide in the design */
}

/* Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: 1fr auto;
    row-gap: 40px;
  }
  .footer__logo {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-bottom: 0;
  }
  .footer__cta { margin-right: 0; }
}

@media (max-width: 959px) {
  .plan__hint {
    display: block;
    position: absolute;
    left: var(--gutter);
    bottom: 12px;
    font-size: 12px;
    line-height: 15px;
    color: var(--white);
    opacity: .8;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: min(100vh, 960px);
    min-height: min(100svh, 960px);
  }
  .hero__bg { object-position: 78% center; }   /* centres the outlined site on phones */

  /* Copy sits at the top and the status line at the bottom, so the wash runs top → bottom */
  .hero::before {
    width: 100%;
    background: linear-gradient(to bottom,
      rgba(13, 33, 87, .95) 0%,
      rgba(13, 33, 87, .8) 50%,
      rgba(13, 33, 87, .45) 78%,
      rgba(13, 33, 87, .85) 100%);
  }
  .hero__content {
    margin-top: 0;
    padding-block: 72px 48px;
  }
  .hero__title {
    font-size: 44px;
    line-height: 44px;
  }

  .intro__title {
    font-size: 44px;
    line-height: 44px;
  }
}

/* Landscape phones */
@media (max-width: 900px) and (max-height: 500px) {
  .hero__content { padding-block: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .hero__bar { margin-right: 0; }
  .hero__logo {               /* 32px tap target, centred on the Contact button */
    display: flex;
    align-items: center;
    height: 32px;
    margin-top: 0;
  }
  .hero__logo img {
    width: 200px;
    height: auto;
  }
  .btn--navy {
    width: auto;
    padding-inline: 20px;
  }
  .hero__title {
    font-size: 36px;
    line-height: 38px;
  }
  .hero__lead {
    margin-top: 24px;
    font-size: 18px;
    line-height: 26px;
  }
  .hero__content .btn { margin-top: 28px; }
  .hero__status {
    padding-bottom: 24px;
    font-size: 16px;
    letter-spacing: 1.6px;
  }

  .hero__title,
  .intro__address,
  .intro__title { text-wrap: balance; }

  .intro { padding-block: 56px; }
  .intro__address { font-size: 18px; }
  .intro__title {
    margin-top: 24px;
    font-size: 36px;
    line-height: 38px;
  }
  .intro__body { margin-top: 32px; }

  .footer { padding-block: 48px 32px; }
  .footer__top {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }
  .footer__logo {
    width: 100%;
    max-width: 327px;
    height: auto;
    grid-row: auto;
  }
  .footer__cta {
    justify-self: start;
    padding-top: 0;
  }
  .footer__cta .btn { margin-top: 20px; }
  .footer__contacts { flex-wrap: wrap; row-gap: 20px; }
}

@media (max-width: 380px) {
  .hero__title,
  .intro__title {
    font-size: 32px;
    line-height: 34px;
  }
  .intro__address { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
