
:root {
  --navy: #092452;
  --navy-dark: #061936;
  --cyan: #57c9f3;
  --ink: #172b49;
  --muted: #56677c;
  --light: #f4f8fc;
  --sidebar-width: 264px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: white;
}

a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 2000;
  background: white;
  padding: 12px;
}
.skip-link:focus { top: 12px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 32px 20px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-logo {
  display: block;
  padding: 12px;
  background: white;
  border-radius: 12px;
}

.sidebar-logo img {
  display: block;
  width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 48px;
}

.sidebar-nav a {
  padding: 15px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  transition: background .2s, color .2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(87,201,243,.16);
  color: var(--cyan);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: #c0cfe1;
}

.page-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.section-wrap {
  width: min(1100px, calc(100% - 80px));
  margin-inline: auto;
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 40px;
  background: linear-gradient(140deg, #f2f9ff, #fff 70%);
  text-align: center;
}

.hero-inner { max-width: 780px; }

.eyebrow {
  color: #0877ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(506px, 93.5%);
  max-height: 264px;
  object-fit: contain;
  margin: 26px auto;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.04em;
  margin: 18px 0;
}

h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -.03em;
  margin: 12px 0 20px;
}

.hero-description,
.intro > p:last-child,
.closing-section > p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-description { max-width: 620px; margin: 0 auto 30px; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  text-decoration: none;
  border-radius: 9px;
  padding: 16px 24px;
  font-weight: 700;
}

.primary-button:hover { background: #12447c; }

.intro {
  padding-block: 100px;
  text-align: center;
}

.intro > p:last-child {
  max-width: 720px;
  margin: auto;
}

.services-section {
  padding-block: 100px;
  background: var(--light);
}

.services-section h2 { margin-bottom: 36px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 36px rgba(6,25,54,.07);
}

.service-card > img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.service-card-body { padding: 30px; }

.service-tag {
  color: #0877ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.service-card h3 { font-size: 27px; margin: 12px 0; }

.service-card-body > p:not(.service-tag) {
  line-height: 1.7;
  color: var(--muted);
}

.service-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.service-card a:hover { text-decoration: underline; }

.closing-section {
  text-align: center;
  padding-block: 100px;
}

.site-footer {
  padding: 32px;
  background: var(--navy-dark);
  color: #e1eaf5;
  text-align: center;
  font-size: 13px;
}

.menu-toggle,
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar {
    width: min(310px, 85vw);
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .sidebar.is-open { transform: translateX(0); }

  .page-content { margin-left: 0; padding-top: 60px; }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1100;
    padding: 10px 16px;
    background: var(--navy);
    color: white;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
  }

  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 900;
  }

  .section-wrap { width: min(100% - 36px, 1100px); }
  .hero { min-height: 600px; padding: 70px 20px; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 520px; }
  .intro, .services-section, .closing-section { padding-block: 65px; }
  .service-card > img { height: 220px; }
  .service-card-body { padding: 22px; }
  .hero-description { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Dedicated CQC and Ofsted homepages */

.service-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: linear-gradient(130deg, #f2f9ff, #ffffff);
}

.service-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 6vw, 100px);
}

.service-hero-copy h1 {
  font-size: clamp(38px, 4.5vw, 64px);
}

.service-hero-copy > p:not(.eyebrow) {
  max-width: 530px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.service-hero-copy .primary-button {
  margin-top: 20px;
}

.service-hero > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.service-overview {
  padding-block: 100px;
  text-align: center;
}

.service-overview > p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.service-highlights {
  padding-block: 95px;
  background: var(--light);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.highlight-card {
  background: white;
  padding: 32px 26px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(6,25,54,.05);
}

.highlight-card h3 {
  font-size: 23px;
  margin: 0 0 14px;
}

.highlight-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1100px) {
  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-hero > img {
    height: 340px;
    min-height: 0;
  }

  .service-hero-copy {
    padding: 65px 30px;
  }
}

@media (max-width: 700px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .service-overview,
  .service-highlights {
    padding-block: 65px;
  }

  .service-hero-copy {
    padding: 50px 22px;
  }

  .service-hero > img {
    height: 260px;
  }
}


/* Polished service hero image cards */

.service-hero {
  align-items: center;
}

.service-hero-visual {
  position: relative;
  padding: clamp(24px, 4vw, 64px);
  min-width: 0;
}

.service-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  background: #eaf1f8;
  border: 5px solid white;
  box-shadow: 0 25px 65px rgba(9, 36, 82, 0.16);
}

.service-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-image-card:hover img {
  transform: scale(1.07);
}

.service-image-label {
  position: absolute;
  bottom: 44px;
  left: clamp(40px, 5vw, 80px);
  max-width: calc(100% - 80px);
  padding: 13px 20px;
  background: var(--navy);
  color: white;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* Override old full-height hero image styling */
.service-hero > img {
  display: none;
}

@media (max-width: 1100px) {
  .service-hero-visual {
    padding: 10px 24px 50px;
  }

  .service-image-card {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .service-image-label {
    bottom: 64px;
    left: 42px;
  }
}

@media (max-width: 600px) {
  .service-image-card {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .service-image-label {
    font-size: 12px;
    bottom: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-image-card img {
    transition: none;
  }

  .service-image-card:hover img {
    transform: none;
  }
}


.sidebar-nav .sidebar-switch {
  margin-top: 24px;
  padding: 18px 16px;
  border: 1px solid rgba(87, 201, 243, .45);
  color: var(--cyan);
  background: rgba(87, 201, 243, .07);
  font-size: 13px;
}

.sidebar-nav .sidebar-switch:hover {
  background: rgba(87, 201, 243, .18);
}

.sidebar-nav a:focus-visible,
.primary-button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}


/* Our Support pages */

.support-page-hero {
  padding: 110px 0;
  background: var(--navy);
  color: white;
}

.support-page-hero h1 {
  max-width: 850px;
  color: white;
  font-size: clamp(40px, 5vw, 70px);
}

.support-page-hero .eyebrow {
  color: var(--cyan);
}

.support-page-hero p:last-child {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.8;
  color: #d7e4f3;
}

.support-intro {
  padding-block: 90px;
  text-align: center;
}

.support-intro > p:last-child {
  max-width: 740px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.support-feature-section {
  padding-block: 80px;
  background: var(--light);
}

.support-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 75px);
}

.support-feature-image {
  overflow: hidden;
  border: 5px solid white;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(9,36,82,.13);
}

.support-feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform .5s ease;
}

.support-feature-image:hover img {
  transform: scale(1.06);
}

.support-feature-copy h2 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.support-feature-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.support-values {
  padding-block: 85px;
}

@media (max-width: 800px) {
  .support-feature-grid {
    grid-template-columns: 1fr;
  }

  .support-page-hero {
    padding: 75px 0;
  }

  .support-intro,
  .support-feature-section,
  .support-values {
    padding-block: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-feature-image img {
    transition: none;
  }

  .support-feature-image:hover img {
    transform: none;
  }
}


/* Property pages */

.homes-hero {
  padding: 95px 0;
  background: var(--navy);
  color: white;
}

.homes-hero h1 {
  color: white;
  font-size: clamp(42px, 5vw, 70px);
}

.homes-hero .eyebrow { color: var(--cyan); }

.homes-hero p:last-child {
  color: #d7e4f3;
  font-size: 18px;
  line-height: 1.7;
}

.homes-section {
  padding: 90px 0;
  background: var(--light);
}

.property-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: white;
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(9,36,82,.10);
}

.property-image {
  overflow: hidden;
  height: 100%;
  min-height: 390px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.06);
}

.property-details { padding: clamp(28px, 5vw, 65px); }

.property-details p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.property-details .primary-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 20px;
}

/* Gallery modal */

.gallery-modal[hidden] { display: none; }

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,14,34,.88);
}

.gallery-panel {
  position: relative;
  width: min(100%, 1000px);
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 18px;
  background: white;
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.gallery-display {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 55px;
  align-items: center;
  gap: 10px;
  padding: 55px 15px 15px;
  background: #edf3f9;
}

.gallery-photo {
  display: block;
  width: 100%;
  height: min(58vh, 570px);
  object-fit: contain;
}

.gallery-prev, .gallery-next {
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: white;
  font-size: 32px;
  cursor: pointer;
}

.gallery-caption {
  padding: 22px 30px;
  text-align: center;
}

.gallery-title { font-size: 25px; margin: 0 0 8px; }
.gallery-description { color: var(--muted); }
.gallery-counter { color: var(--navy); font-weight: 700; }

@media (max-width: 800px) {
  .property-card { grid-template-columns: 1fr; }
  .property-image { min-height: 260px; height: 300px; }
  .homes-hero, .homes-section { padding-block: 60px; }
}

@media (max-width: 500px) {
  .gallery-modal { padding: 8px; }
  .gallery-display {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 4px;
    padding-inline: 6px;
  }
  .gallery-prev, .gallery-next {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  .gallery-caption { padding: 20px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .property-image img { transition: none; }
  .property-card:hover .property-image img { transform: none; }
}

/* Property atmosphere description */

.property-visual-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.property-visual-column .property-image {
  height: 320px;
  min-height: 0;
  flex-shrink: 0;
}

.property-feeling {
  position: relative;
  padding: 32px 36px 36px;
  background: #edf6fc;
  border-top: 1px solid #dcebf5;
  flex: 1;
}

.property-feeling-accent {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--cyan);
  border-radius: 4px;
}

.property-feeling h3 {
  font-size: clamp(21px, 2vw, 26px);
  margin: 0 0 14px;
  color: var(--navy);
}

.property-feeling p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 800px) {
  .property-visual-column .property-image {
    height: 280px;
  }

  .property-feeling {
    padding: 26px 24px 30px;
  }
}


/* Shared About Us page compatibility */

body:has(.about-hero) {
  overflow-x: hidden;
}

body:has(.about-hero) main {
  margin-left: var(--sidebar-width);
  min-width: 0;
}

body:has(.about-hero) .wcp-section-container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

body:has(.about-hero) .about-hero,
body:has(.about-hero) .about-intro,
body:has(.about-hero) .about-wholistic,
body:has(.about-hero) .about-approach,
body:has(.about-hero) .about-values,
body:has(.about-hero) .about-people,
body:has(.about-hero) .about-final {
  max-width: 100%;
}

@media (max-width: 900px) {
  body:has(.about-hero) main {
    margin-left: 0;
  }

  body:has(.about-hero) .wcp-section-container {
    width: min(100% - 32px, 1200px);
  }
}

/* About Us sidebar layout fixes */

@media (min-width: 901px) {
  body:has(.about-hero) .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
  }

  body:has(.about-hero) main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }
}

@media (max-width: 900px) {
  body:has(.about-hero) main {
    margin-left: 0;
    width: 100%;
  }
}

/* Careers application buttons */

.careers-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.careers-cta .careers-contact-button,
.careers-cta .careers-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.careers-cta .careers-contact-button {
  background: #57c9f3;
  color: #061936;
}

.careers-cta .careers-download-button {
  background: transparent;
  color: #ffffff;
  border: 2px solid #57c9f3;
}

.careers-cta .careers-contact-button:hover {
  background: #ffffff;
}

.careers-cta .careers-download-button:hover {
  background: #57c9f3;
  color: #061936;
}

.careers-cta .careers-application-note {
  margin: 24px auto 0;
  max-width: 620px;
  color: #d7e4f3;
  font-size: 14px;
  line-height: 1.7;
}

.careers-application-note a {
  color: #57c9f3;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .careers-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .careers-cta-actions a {
    width: 100%;
  }
}
