/* Hampshire Homes Group coming soon page. Matches the new site's header and home hero (src/app/globals.css).
   The page fills exactly one screen. On a shorter screen still, it scrolls rather than cutting anything off. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ivory: #f8f7f2;
  --ink: #003755;
  --ocean: #5579a0;
  --shade: 0, 28, 43;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--ivory); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 6px; }

/* One screen: the header, then the hero filling the rest. */
.page { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; min-height: 100svh; }

/* Header, as on the new site. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: calc(100% - clamp(40px, 9vw, 160px));
  max-width: 1760px;
  min-height: 104px;
  margin-inline: auto;
}
.header-logo { display: block; width: 210px; height: auto; flex-shrink: 0; }

/* Hero, as on the new site's homepage, with the copy centred both ways. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  width: calc(100% - 40px);
  max-width: 1920px;
  margin: 0 auto 20px;
  background: var(--ink);
  color: var(--ivory);
}
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(var(--shade), .35), transparent 75%),
    linear-gradient(0deg, rgba(var(--shade), .6), transparent 42%),
    linear-gradient(rgba(var(--shade), .4), rgba(var(--shade), .4));
}
.hero a:focus-visible { outline-color: var(--ivory); }
/* The empty spacer above the copy and the contacts block below it share the spare height equally, so the copy sits in
   the exact centre. When space is tight, the copy moves up rather than the page growing past one screen. */
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(16px, 3vh, 28px) clamp(24px, 7.8vw, 140px);
  text-align: center;
}
.hero-inner::before { content: ""; flex: 1 1 0; }
.hero-copy { flex: none; }
.hero-heading {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: clamp(44px, min(6.2vw, 11vh), 104px);
  line-height: 1.08;
  letter-spacing: -.055em;
  color: #fff;
}
.hero-heading span { color: var(--ivory); }
.hero-description {
  max-width: 460px;
  margin: clamp(16px, 3.2vh, 28px) auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ivory);
  text-wrap: balance;
}

/* Contact details, styled like the new site's "Discover Hampshire Homes" link. */
.hero-bottom { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.hero-contacts { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 32px; font-style: normal; }
.hero-contacts a,
.hero-contacts p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  text-underline-offset: 6px;
}
.hero-contacts a:hover { text-decoration: underline; }
.hero-contacts .label { color: rgba(248, 247, 242, .7); }
.hero-legal { margin: 0; font-size: 12px; letter-spacing: .04em; color: rgba(248, 247, 242, .6); }

@media (max-width: 767px) {
  .header-inner { min-height: 80px; gap: 20px; }
  .header-logo { width: 180px; }
  .hero { width: calc(100% - 24px); margin-bottom: 12px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(var(--shade), .3), transparent 45%),
      linear-gradient(0deg, rgba(var(--shade), .72), transparent 55%),
      linear-gradient(rgba(var(--shade), .45), rgba(var(--shade), .45));
  }
  /* On phones the copy starts near the top of the photo, as in the new site's mobile hero, with the contacts at the bottom. */
  .hero-inner { gap: 20px; padding: clamp(28px, 6svh, 48px) 20px 20px; }
  .hero-inner::before { display: none; }
  .hero-heading { font-size: clamp(36px, 10.4vw, 64px); }
  .hero-description { max-width: 360px; margin-top: 16px; font-size: 16px; line-height: 1.6; }
  /* Contacts stack with the same spacing between every line. */
  .hero-bottom { gap: 12px; }
  .hero-contacts { flex-direction: column; align-items: center; row-gap: 8px; }
  .hero-contacts a,
  .hero-contacts p { display: block; min-height: 0; max-width: 320px; padding-block: 2px; font-size: 14px; line-height: 1.5; }
  .hero-contacts .label { margin-right: 4px; }
}
/* Short phones, such as an iPhone SE with Safari's toolbars showing: slightly tighter spacing, so everything still fits. */
@media (max-width: 767px) and (max-height: 600px) {
  .hero-inner { gap: 16px; padding-top: 24px; padding-bottom: 16px; }
  .hero-heading { font-size: clamp(34px, 9.6vw, 64px); }
  .hero-description { margin-top: 12px; font-size: 15px; line-height: 1.55; }
  .hero-contacts { row-gap: 4px; }
  .hero-contacts a,
  .hero-contacts p { font-size: 13px; }
}
/* Very short phones, such as a 320×500 screen: tighter again, so the subtitle can stay. */
@media (max-width: 767px) and (max-height: 540px) {
  .hero-inner { gap: 12px; padding-top: 20px; }
  .hero-heading { font-size: 32px; }
  .hero-description { font-size: 14px; }
}
/* Narrower phones: smaller contact text, so each label stays on the same line as its email address. */
@media (max-width: 374px) {
  .hero-contacts a, .hero-contacts p { font-size: 13px; }
}
@media (max-width: 359px) {
  .hero-contacts a, .hero-contacts p { font-size: 12px; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
