/*
 * Lead-flow additions for the standalone Sunscribe homepage.
 *
 * Loaded after the supplied design CSS so it can compact the hero for the
 * approved headline and style the new enquiry section. Supplied assets, logo,
 * photography and the sun/motion bundle are untouched: nothing here redefines
 * .hero-art, .photo-window, .sun-anchor, .travelling-sun or journey styles.
 */

/* ---------- Hero: fit the approved headline and both CTAs above the fold ---------- */

.hero-heading h1 em {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .button {
  margin-top: 0;
}

.hero-actions .button--quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #12355444;
}

.hero-actions .button--quiet:hover,
.hero-actions .button--quiet:focus-visible {
  background: rgba(31, 93, 147, 0.08);
  border-color: #12355488;
}

.hero-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 951px) {
  /* The supplied hero reserves 760-880px of height. The approved copy is
     longer, so trim the padding and type scale instead of pushing the CTA
     below the fold on a 633px-tall laptop viewport. */
  .hero {
    min-height: 0;
    padding: 26px 5% 52px;
    align-items: start;
  }

  .hero-heading h1 {
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 1.08;
  }

  .hero-description {
    margin-top: 22px;
    max-width: 520px;
  }

  .hero-description > p:first-child {
    font-size: 19px;
    line-height: 1.45;
    margin-bottom: 0;
  }
}

@media (min-width: 1500px) {
  .hero {
    min-height: 0;
    padding-top: 40px;
  }

  .hero-heading h1 {
    font-size: clamp(44px, 3.6vw, 64px);
  }
}

@media (max-width: 950px) and (min-width: 651px) {
  .hero {
    min-height: 0;
    padding-top: 20px;
  }

  .hero-heading h1 {
    font-size: clamp(38px, 5.4vw, 54px);
    line-height: 1.1;
  }

  .hero-description {
    margin-top: 18px;
    max-width: 460px;
  }

  .hero-description > p:first-child {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 0;
  }
}

@media (max-width: 650px) {
  .hero {
    padding: 18px 6% 46px;
  }

  .hero-heading h1 {
    font-size: clamp(27px, 8.6vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .hero-description {
    margin-top: 16px;
  }

  .hero-description > p:first-child {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 14px;
  }

  .hero-actions {
    margin-top: 0;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 13px;
  }

  .hero-note {
    margin-top: 10px;
    font-size: 12px;
  }

  /* Keep the photo and sun, but shorter so the enquiry section arrives sooner. */
  .hero-art {
    height: 310px;
    margin-top: 34px;
  }

  .photo-window {
    height: 275px;
  }

  .image-caption {
    top: 300px;
  }

  .vertical-note {
    display: none;
  }
}

/* The 4-item nav is tight between 651 and 760px, where the small-screen
   collapsed nav has not kicked in yet. */
@media (min-width: 651px) and (max-width: 780px) {
  .header nav {
    gap: 12px;
  }

  .nav-cta {
    padding: 12px 14px;
  }

  .nav-cta span {
    margin-left: 8px;
  }
}

/* ---------- Enquiry section ---------- */

.enquiry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 5% 72px;
  background: linear-gradient(135deg, #0d2b45 0%, #123554 52%, #1a5276 100%);
  color: #fff;
}

.enquiry::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -45%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(253, 216, 53, 0.24), rgba(253, 216, 53, 0) 68%);
  pointer-events: none;
  z-index: -1;
}

.enquiry-inner {
  margin: 0 auto;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.enquiry .eyebrow {
  color: var(--sun);
  font-size: 12px;
  letter-spacing: 0.13em;
  margin: 0 0 14px;
}

.enquiry h2 {
  margin: 0 0 16px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.enquiry h2 em {
  color: var(--sun);
  font-style: italic;
}

.enquiry p {
  margin: 0 0 14px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: #dbe7f1;
}

.enquiry a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.enquiry a:hover,
.enquiry a:focus-visible {
  color: var(--sun);
}

.enquiry-phone {
  font-size: 17px;
}

.enquiry-form-wrap {
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(6, 24, 42, 0.32);
}

@media (min-width: 900px) {
  .enquiry {
    padding: 90px 6%;
  }

  .enquiry-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
  }

  .enquiry-form-wrap {
    padding: 30px;
  }
}

/* ---------- Homepage enquiry form ---------- */

.lead-form {
  margin: 0;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 540px) {
  .lead-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.lead-form .field {
  margin: 0 0 14px;
}

.lead-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #c3d3e0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming on focus */
  line-height: 1.4;
}

.lead-form textarea {
  min-height: 122px;
  resize: vertical;
}

.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover {
  border-color: #9db4c8;
}

.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.lead-form input:disabled,
.lead-form select:disabled,
.lead-form textarea:disabled {
  background: #f2f6f9;
  cursor: not-allowed;
}

.lead-form .field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
}

.lead-form .field--checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}

.lead-form .field--checkbox label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--ink);
}

.lead-form .field--checkbox label a {
  color: var(--blue);
}

.lead-form .button {
  margin-top: 0;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  font-size: 14px;
}

.lead-form .button:hover:not(:disabled),
.lead-form .button:focus-visible:not(:disabled) {
  background: var(--blue);
}

.lead-form .button:disabled {
  opacity: 0.65;
  cursor: default;
}

.lead-form__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-form__privacy {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.lead-form__privacy a {
  color: var(--blue);
}

.lead-form__status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #c3d3e0;
  border-radius: 6px;
  background: #f2f6f9;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.lead-form__status[data-state="success"] {
  border-color: #9ed3b4;
  background: #eaf7ef;
  color: #14532d;
}

.lead-form__status[data-state="error"] {
  border-color: #e7b0aa;
  background: #fdeeec;
  color: #8a1c1c;
}

.lead-form__status[hidden] {
  display: none;
}

/* Honeypot: removed from view and from the tab order, never from the payload. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer: room for the extra links on narrow screens ---------- */

footer {
  flex-wrap: wrap;
  gap: 12px 22px;
}

footer .footer-social {
  display: flex;
  gap: 16px;
}

@media (max-width: 650px) {
  .enquiry {
    padding: 48px 6% 56px;
  }

  .enquiry-form-wrap {
    padding: 18px;
  }

  footer {
    gap: 10px 16px;
    font-size: 11px;
  }
}
