:root {
  --centre-green: #004d00;
  --centre-green-dark: #003300;
  --centre-green-soft: #eaf4e9;
  --centre-ink: #18231a;
  --centre-muted: #667168;
}


body {
  background: #fff;
  color: var(--centre-ink);
}

nav ul li a.active {
  color: var(--centre-green);
  border-bottom: 2px solid var(--centre-green);
}


.centre-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 120px 24px 55px;
  color: #fff;
  text-align: center;
  background-color: var(--centre-green);
  background-image:
    linear-gradient(rgba(0, 77, 0, 0.9), rgba(0, 77, 0, 0.9)),
    url("images/background_image.jpg");
  background-size: cover;
  background-position: center;
}

.centre-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
}

.centre-hero p:last-child {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
}

.eyebrow {
  margin: 0;
  color: #8dc98d;
  font-family: "Roboto", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Softstart hero banner — reuses .centre-hero, swaps the background image */
.centre-hero.softstart-hero {
  min-height: 0;
  height: 300px;
  padding: 0 24px;
  box-sizing: border-box;
  background-color: #315d52;
  background-image:
    linear-gradient(rgba(0, 52, 38, 0.3), rgba(0, 52, 38, 0.3)),
    url("images/softstart-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
}

.centre-hero.softstart-hero h1 {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   MAIN PROFILE
   ========================================================= */

.centre-profile {
  width: 100%;
  max-width: 1400px;
  margin: 18px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(500px, 46%) minmax(0, 54%);
  gap: 0;
  align-items: stretch;
}


.centre-main-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.centre-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 18% center;
}

/* RIGHT SIDE */
.centre-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 58px clamp(38px, 5vw, 72px) 0;
  box-sizing: border-box;
}

.centre-details > .eyebrow {
  color: #6b9b6b;
}

/* Logo + heading row */
.centre-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.centre-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.centre-details h1 {
  margin: 7px 0 12px;
  color: var(--centre-green-dark);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
  font-weight: 700;
}

.centre-details h1 span {
  display: block;
  margin-top: 5px;
  font-size: 0.43em;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.location {
  margin: 8px 0 22px;
  color: var(--centre-muted);
  font-size: 0.92rem;
}

.location i,
.contact-grid i {
  margin-right: 8px;
  color: var(--centre-green);
}

.centre-details > p:not(.eyebrow):not(.location) {
  max-width: 700px;
  margin-top: 0;
  color: var(--centre-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.centre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.centre-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--centre-green);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  box-sizing: border-box;
}

.centre-button:hover {
  transform: translateY(-2px);
}

.centre-button-primary {
  background: var(--centre-green);
  color: #fff;
}

.centre-button-primary:hover {
  background: var(--centre-green-dark);
}

.centre-button-secondary {
  background: #fff;
  color: var(--centre-green);
}

.centre-button-secondary:hover {
  background: var(--centre-green-soft);
}

/* SMALL IMAGES
   Their bottom edge is also the bottom edge of the large
   image because both columns belong to the same grid row. */
.centre-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.centre-gallery img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   CONTACT
   ========================================================= */

.centre-contact {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px 6vw 70px;
  border-top: 1px solid #e4ebe3;
  box-sizing: border-box;
}

.centre-contact h2 {
  margin: 0 0 24px;
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-grid div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

.contact-grid i {
  grid-row: span 2;
}

.contact-grid strong {
  font-size: 0.85rem;
}

.contact-grid span {
  color: var(--centre-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* =========================================================
   LOGO SAFETY
   Prevent global image rules from shrinking/cropping the
   navigation logo.
   ========================================================= */

header nav .logo,
header nav .logo a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header nav .logo img {
  width: auto !important;
  height: auto !important;
  max-width: 190px;
  max-height: 70px;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
  .centre-profile {
    grid-template-columns: minmax(430px, 46%) minmax(0, 54%);
  }

  .centre-details {
    padding: 45px 34px 0;
  }

  .centre-details h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  .centre-main-image,
  .centre-main-image img {
    min-height: 610px;
  }
}

@media (max-width: 800px) {
  .centre-profile {
    grid-template-columns: 1fr;
  }

  .centre-main-image {
    height: auto;
    min-height: 0;
  }

  .centre-main-image img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.5;
    object-fit: cover;
    object-position: center;
  }

  .centre-details {
    padding: 50px 6vw 45px;
  }

  .centre-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .centre-details {
    padding-inline: 20px;
  }

  .centre-actions {
    flex-direction: column;
  }

  .centre-button {
    width: 100%;
  }

  .centre-logo {
    height: 60px;
  }

  .centre-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  header nav .logo img {
    max-width: 155px;
    max-height: 60px;
  }
}