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

.gw-header {
  --gw-red: #ce0026;
  --gw-red-dark: #ae001f;
  --gw-green: #298b43;
  --gw-width: 1100px;

  /*
   * Replace "none" with your uploaded background:
   * --gw-header-image: url("YOUR-HEADER-BACKGROUND-URL");
   */
  --gw-header-image: none;

  position: relative;
  background: #000;
  color: #fff;
  border-top: 3px solid var(--gw-red);
  font-family: Arial, Helvetica, sans-serif;
}

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

.gw-header a {
  color: inherit;
  text-decoration: none;
}

.gw-header button,
.gw-header input {
  font: inherit;
}

.gw-header a:focus-visible,
.gw-header button:focus-visible,
.gw-header summary:focus-visible,
.gw-header input:focus-visible {
  outline: 3px solid #ffdc73;
  outline-offset: 3px;
}

.gw-container {
  width: min(var(--gw-width), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Top bar ---------- */

.gw-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  padding-inline: 46px;
  font-size: 11px;
  line-height: 1.5;
  color: #ddd;
}

.gw-topbar-links,
.gw-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gw-topbar-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gw-topbar-links > a:hover {
  text-decoration: underline;
}

.gw-socials {
  gap: 16px;
  margin-left: 30px;
}

.gw-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  font-size: 19px;
  font-weight: 700;
}

.gw-socials svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* ---------- Logo, phone and badge ---------- */

.gw-branding {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 175px;
  padding: 12px 46px 25px;
}

.gw-logo {
  display: block;
  flex: 0 1 345px;
}

.gw-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.gw-logo-placeholder {
  display: inline-block;
  color: var(--gw-green);
  font-size: clamp(30px, 4vw, 53px);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -2px;
  text-align: center;
  transform: rotate(-9deg);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

.gw-logo-placeholder > span {
  font-size: 1.15em;
}

.gw-phone {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.5vw, 48px);
  font-style: italic;
  transform: rotate(-8deg);
}

.gw-phone > span {
  font-size: 0.85em;
}

.gw-badge {
  position: absolute;
  top: 8px;
  right: 45px;
  width: 145px;
  transform: translateY(6px);
}

.gw-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.gw-badge-placeholder {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 0 5px #111, inset 0 0 0 7px #fff;
}

.gw-badge-placeholder > span {
  font-size: 12px;
  letter-spacing: 1px;
}

.gw-badge-placeholder strong {
  color: #fff;
  font: italic 64px/1 Georgia, serif;
}

/* ---------- Artwork area ---------- */

.gw-artwork {
  position: relative;
  margin-top: -30px;
  padding: 0 46px;
  border-bottom: 5px solid var(--gw-red);

  /* Temporary sky/grass placeholder under your eventual image. */
  background-color: #4b962e;
  background-image:
    var(--gw-header-image),
    linear-gradient(
      175deg,
      #bfc8fb 0%,
      #dce0ff 42%,
      #65ad3b 43%,
      #357b22 100%
    );
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.gw-artwork-space {
  height: 125px;
}

/* ---------- Navigation ---------- */

.gw-navigation {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  background: var(--gw-red);
}

.gw-nav {
  flex: 1;
  min-width: 0;
}

.gw-menu {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gw-menu > li {
  display: flex;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

.gw-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.gw-menu > li > a:hover,
.gw-menu > li > a[aria-current="page"] {
  background: var(--gw-red-dark);
}

.gw-menu-toggle {
  display: none;
}

/* ---------- Search dropdown ---------- */

.gw-search {
  flex: 0 0 58px;
}

.gw-search summary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  cursor: pointer;
  list-style: none;
}

.gw-search summary::-webkit-details-marker {
  display: none;
}

.gw-search summary:hover,
.gw-search[open] summary {
  background: var(--gw-red-dark);
}

.gw-search summary svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.gw-search-form {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  gap: 8px;
  width: min(360px, 100%);
  margin: 0;
  padding: 14px;
  background: #111;
  box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
}

.gw-search-form input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: #222;
}

.gw-search-form button {
  padding: 10px 14px;
  border: 0;
  background: var(--gw-red);
  color: #fff;
  cursor: pointer;
}

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

.gw-page-heading {
  padding: 29px 0;
}

.gw-page-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.gw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tablet and mobile ---------- */

@media (max-width: 1050px) {
  .gw-branding {
    gap: 18px;
    padding-inline: 28px;
  }

  .gw-logo {
    flex-basis: 280px;
  }

  .gw-phone {
    font-size: 35px;
  }

  .gw-badge {
    right: 25px;
    width: 110px;
  }

  .gw-badge-placeholder strong {
    font-size: 46px;
  }

  .gw-badge-placeholder > span {
    font-size: 9px;
  }

  .gw-artwork {
    padding-inline: 28px;
  }

  .gw-menu > li > a {
    padding-inline: 10px;
    font-size: 11px;
  }
}

@media (max-width: 800px) {
  .gw-topbar-inner {
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    text-align: center;
  }

  .gw-topbar-links {
    justify-content: center;
  }

  .gw-socials {
    margin-left: 14px;
  }

  .gw-branding {
    min-height: 170px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    padding: 20px 24px 30px;
  }

  .gw-logo {
    flex: none;
    max-width: calc(100% - 100px);
  }

  .gw-logo-placeholder {
    font-size: 35px;
  }

  .gw-logo img {
    width: 260px;
  }

  .gw-phone {
    font-size: 29px;
    transform: none;
  }

  .gw-badge {
    top: 24px;
    right: 18px;
    width: 90px;
  }

  .gw-badge-placeholder strong {
    font-size: 36px;
  }

  .gw-badge-placeholder > span {
    font-size: 7px;
  }

  .gw-artwork {
    margin-top: -12px;
    padding-inline: 20px;
  }

  .gw-artwork-space {
    height: 85px;
  }

  .gw-navigation {
    flex-wrap: wrap;
  }

  .gw-menu-toggle {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  .gw-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .gw-nav {
    display: none;
    order: 3;
    flex: 0 0 100%;
  }

  .gw-navigation.is-open .gw-nav {
    display: block;
  }

  .gw-menu {
    flex-direction: column;
  }

  .gw-menu > li > a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 14px 18px;
    border-top: 1px solid rgb(255 255 255 / 15%);
    font-size: 12px;
    text-align: left;
  }

  .gw-page-heading {
    padding-block: 24px;
  }
}

@media (max-width: 420px) {
  .gw-container {
    width: calc(100% - 24px);
  }

  .gw-branding {
    padding-left: 12px;
  }

  .gw-logo-placeholder {
    font-size: 28px;
  }

  .gw-phone {
    font-size: 25px;
  }

  .gw-badge {
    right: 8px;
    width: 76px;
  }

  .gw-badge-placeholder strong {
    font-size: 30px;
  }

  .gw-artwork {
    padding-inline: 12px;
  }
}

/* =========================================
   GREENWAYS HEADER — CORRECTED IMAGE LAYOUT
   Add AFTER all previous header CSS.
   ========================================= */

/*
 * The artwork belongs behind the WHOLE main header:
 * branding, space above navigation, menu and title.
 */
.gw-header .gw-header-main {
  position: relative;
  background-color: #000;
  background-image: url("https://www.greenwayseggs.co.uk/wp-content/uploads/2020/02/default-header-background.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

/* Logo image includes the telephone number. */
.gw-header .gw-branding {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  height: 270px;
  min-height: 0;
  margin: 0;
  padding: 20px 46px 0;
}

.gw-header .gw-logo {
  display: block;
  flex: 0 1 680px;
  width: 680px;
  max-width: 76%;
  margin: 0;
}

.gw-header .gw-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Safety: hide any old duplicate branding still in the HTML. */
.gw-header .gw-phone,
.gw-header .gw-badge {
  display: none;
}

/*
 * Remove the separate background and extra spacer.
 * Branding height now controls the menu's vertical position.
 */
.gw-header .gw-artwork {
  position: relative;
  margin: 0;
  padding: 0 46px;
  background: none;
  border-bottom: 5px solid var(--gw-red);
}

.gw-header .gw-artwork-space {
  display: none;
}

/* Keep the navigation above the artwork. */
.gw-header .gw-navigation {
  position: relative;
  z-index: 5;
}

/* Page title sits on the grass below the menu. */
.gw-header .gw-page-heading {
  padding: 28px 0;
}

.gw-header .gw-page-heading h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Smaller desktop / tablet ---------- */

@media (max-width: 1050px) {
  .gw-header .gw-branding {
    height: 235px;
    padding: 18px 28px 0;
  }

  .gw-header .gw-logo {
    flex-basis: 590px;
    width: 590px;
    max-width: 78%;
  }

  .gw-header .gw-artwork {
    padding-inline: 28px;
  }

  .gw-header .gw-page-heading h1 {
    font-size: 25px;
  }
}

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

@media (max-width: 800px) {
  /*
   * Give the artwork a fixed rendering height on mobile,
   * so opening the menu does not stretch the hens.
   */
  .gw-header .gw-header-main {
    background-size: 100% 310px;
    background-color: #387e29;
  }

  .gw-header .gw-branding {
    height: 180px;
    min-height: 0;
    padding: 20px 20px 0;
  }

  .gw-header .gw-logo {
    flex: 0 1 540px;
    width: 540px;
    max-width: 82%;
  }

  .gw-header .gw-logo img {
    width: 100%;
  }

  .gw-header .gw-artwork {
    margin: 0;
    padding-inline: 20px;
  }

  .gw-header .gw-page-heading {
    padding: 24px 0;
  }

  .gw-header .gw-page-heading h1 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .gw-header .gw-header-main {
    background-size: 100% 275px;
  }

  .gw-header .gw-branding {
    height: 150px;
    padding: 16px 12px 0;
  }

  .gw-header .gw-logo {
    max-width: 85%;
  }

  .gw-header .gw-artwork {
    padding-inline: 12px;
  }

  .gw-header .gw-page-heading h1 {
    font-size: 20px;
  }
}
/* =========================================
   FINAL HEADER PROPORTION ADJUSTMENTS
   Add after all previous header CSS.
   ========================================= */

/* Match the narrower boxed layout in the reference. */
.gw-header {
  --gw-width: 1032px;
}

/* Keep top-bar content aligned with the main header. */
.gw-header .gw-topbar-inner {
  padding-inline: 46px;
}

/*
 * Important: preserve the background image's aspect ratio.
 * Do NOT use 100% 100% here.
 */
.gw-header .gw-header-main {
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #387e29;
}

/* Slightly smaller combined logo / telephone image. */
.gw-header .gw-branding {
  height: 270px;
  min-height: 0;
  padding: 12px 46px 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.gw-header .gw-logo {
  flex: 0 1 630px;
  width: 630px;
  max-width: 76%;
}

.gw-header .gw-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep the artwork on the parent—not on this inner section. */
.gw-header .gw-artwork {
  margin: 0;
  padding-inline: 46px;
  background: none;
}

.gw-header .gw-artwork-space {
  display: none;
}

/* Reference navigation is a little shorter. */
.gw-header .gw-menu > li > a {
  min-height: 55px;
  padding: 14px 12px;
}

.gw-header .gw-search {
  flex-basis: 55px;
}

.gw-header .gw-search summary {
  height: 55px;
}

.gw-header .gw-page-heading {
  padding: 27px 0 29px;
}

.gw-header .gw-page-heading h1 {
  font-size: 26px;
  line-height: 1.3;
}

/* ---------- Tablet ---------- */

@media (max-width: 1050px) {
  .gw-header .gw-branding {
    height: 235px;
    padding: 12px 28px 0;
  }

  .gw-header .gw-logo {
    flex-basis: 590px;
    width: 590px;
    max-width: 76%;
  }

  .gw-header .gw-artwork {
    padding-inline: 28px;
  }
}

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

@media (max-width: 800px) {
  .gw-header .gw-topbar-inner {
    padding-inline: 0;
  }

  /*
   * Override the earlier fixed background dimensions too.
   * The artwork keeps its proportions when the menu opens.
   */
  .gw-header .gw-header-main {
    background-size: 100% auto;
  }

  .gw-header .gw-branding {
    height: clamp(125px, 25vw, 195px);
    padding: 12px 20px 0;
  }

  .gw-header .gw-logo {
    flex: 0 1 540px;
    width: 540px;
    max-width: 76%;
  }

  .gw-header .gw-artwork {
    padding-inline: 20px;
  }

  .gw-header .gw-menu-toggle {
    min-height: 55px;
  }

  .gw-header .gw-menu > li > a {
    min-height: 46px;
    padding: 14px 18px;
  }

  .gw-header .gw-page-heading {
    padding-block: 24px;
  }

  .gw-header .gw-page-heading h1 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .gw-header .gw-branding {
    padding-inline: 12px;
  }

  .gw-header .gw-artwork {
    padding-inline: 12px;
  }

  .gw-header .gw-page-heading h1 {
    font-size: 20px;
  }
}
