:root {
  --primary: #23364b;
  --primary-dark: #0e1723;
  --dark: #111111;
  --dark-alt: #171717;
  --secondary: #1e93d2;
  --accent: #D31B07;
  --gold: #d5b162;
  --white: #ffffff;
  --text: #505050;
  --text-dark: #25313d;
  --text-light: rgba(255, 255, 255, 0.7);
  --text-heading: rgba(255, 255, 255, 0.94);
  --max-width: 1080px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.8rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #b91705;
  transform: translateY(-1px);
}

.eyebrow {
  color: var(--secondary);
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.site-header {
  position: absolute;
  top: 0.85rem;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo meta"
    "logo nav";
  align-items: start;
  gap: 1rem;
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 1rem;
}

.logo img {
  width: auto;
  height: 52px;
}

.header-nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.header-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.header-meta-label,
.header-meta a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  font-weight: 500;
}

.header-meta a:hover {
  color: var(--white);
}

.nav-menu {
  display: flex;
  gap: 1.35rem;
  justify-content: flex-end;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: flex-end;
  color: #ffffff;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
}

.floating-cta {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 120;
}

.floating-cta a {
  display: block;
  padding: 0.9rem 0.55rem;
  background: var(--accent);
  color: var(--white);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.floating-cta a:hover {
  background: #d93412;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15202d url('assets/backgrounds/InternalPageHeaderImage.jpg') center center / cover no-repeat fixed;
  padding: 14rem 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.36);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.8rem;
  line-height: 1.5;
  max-width: 640px;
  margin-top: 0.45rem;
}

.hero--internal {
  min-height: 480px;
  padding: 13rem 0 6rem;
}

.hero--internal h1 {
  font-size: 4rem;
}

.hero--internal p {
  font-size: 1.35rem;
  max-width: 760px;
}

.services-strip {
  position: relative;
  margin-top: 6.5rem;
  padding: 0;
}

.services-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.service-icon {
  text-align: center;
}

.service-icon img {
  width: 146px;
  height: 146px;
  margin: 0 auto 1rem;
  padding: 1.7rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: rgba(18, 24, 31, 0.74);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.service-icon p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.section--about {
  background: var(--white);
  text-align: center;
  padding-top: 2.2rem;
}

.section--about .section-title {
  color: var(--secondary);
  font-size: 2.9rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.section--about p {
  max-width: 980px;
  margin: 0 auto 1.2rem;
  color: var(--text-dark);
  font-size: 1.12rem;
  line-height: 1.8;
}

.section-image {
  background: var(--white);
}

.section-image img {
  width: min(100%, 920px);
  margin: 0 auto;
}

.page-intro {
  padding-bottom: 1.5rem;
}

.page-content {
  background: var(--white);
  padding-top: 1rem;
  padding-bottom: 6rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.content-card {
  padding: 2rem 2rem 2.2rem;
  background: #f4f7fa;
  border: 1px solid #d8e0e7;
}

.content-card .section-title {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.content-card p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.testimonials-page {
  background: var(--white);
  padding-top: 1rem;
  padding-bottom: 6rem;
}

.contact-page {
  background: var(--white);
  padding-top: 1rem;
  padding-bottom: 6rem;
}

.testimonials-list {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-entry {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid #d9dee3;
}

.testimonial-entry blockquote {
  color: var(--text-dark);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.testimonial-entry cite {
  display: block;
  color: var(--secondary);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 400;
}

.testimonial-entry cite strong {
  font-weight: 700;
}

.testimonial-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.accreditations {
  position: relative;
  padding: 3.8rem 0 5rem;
  background:
    linear-gradient(rgba(31, 88, 137, 0.42), rgba(28, 78, 123, 0.46)),
    url('assets/backgrounds/Parallax_1.jpg') center center / cover no-repeat fixed;
}

.accreditations::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 29, 46, 0.05);
}

.accreditations .container {
  position: relative;
  z-index: 1;
}

.accreditations h2 {
  color: var(--white);
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1.8rem;
}

.accreditation-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.accreditation-logos img {
  display: block;
  width: auto;
  height: 130px;
  max-width: min(100%, 240px);
  object-fit: contain;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.reassurance-band {
  position: relative;
  padding: 4rem 0 4.4rem;
  background: linear-gradient(180deg, rgba(28, 79, 124, 0.96) 0%, rgba(20, 52, 79, 0.94) 55%, rgba(14, 22, 31, 0.92) 100%);
  text-align: center;
  border-top: 1px solid #2b2b2b;
}

.reassurance-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.reassurance-panel {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.1rem 2.8rem;
  background: rgba(11, 17, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.reassurance-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 72px;
  height: 3px;
  background: var(--accent);
  transform: translateX(-50%);
}

.reassurance-band .container {
  position: relative;
  z-index: 1;
}

.reassurance-band p {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.2rem, 2.7vw, 1.7rem);
  font-weight: 700;
  line-height: 1.45;
}

.reassurance-band--compact {
  padding-top: 3.25rem;
  padding-bottom: 3.5rem;
}

.testimonials {
  background: var(--white);
  padding: 3.8rem 0 4.5rem;
  text-align: center;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 15px);
  width: 30px;
  height: 18px;
  background: #d9dee3;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.testimonials::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #d9dee3;
}

.testimonials h2 {
  color: var(--secondary);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.testimonial-carousel {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  transition: height 0.3s ease;
}

.testimonial-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 0.5rem 1rem 0;
}

.testimonial-card blockquote {
  color: var(--text-dark);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  display: block;
  color: var(--secondary);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 500;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
}

.franchise-callout {
  position: relative;
  padding: 4.6rem 0;
  background: var(--dark) url('assets/backgrounds/Parallax_2.jpg') center center / cover no-repeat fixed;
}

.franchise-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.58);
}

.franchise-callout .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.franchise-action .btn,
.cta-bar .btn {
  padding: 1.25rem 3.2rem;
  font-size: 1.3rem;
}

.franchise-copy {
  max-width: 560px;
}

.franchise-copy h2 {
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.3rem;
}

.franchise-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
  line-height: 1.9;
}

.news {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.news h2 {
  color: var(--secondary);
  font-size: clamp(1.8rem, 3vw, 2.15rem);
  margin-bottom: 0.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
  text-align: left;
}

.news-card {
  background: transparent;
  border: 0;
}

.news-card-body {
  padding: 0;
}

.news-card-body h3 {
  color: var(--secondary);
  font-size: 1.12rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.news-card-body p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cta-bar {
  position: relative;
  padding: 6rem 0;
  background: var(--dark) url('assets/backgrounds/Parallax_2.jpg') center center / cover no-repeat fixed;
}

.cta-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.58);
}

.cta-bar .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-bar h2 {
  color: var(--white);
  font-size: 2rem;
  line-height: 1.15;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 0;
}

.contact-panel {
  padding: 2rem 2rem 2.2rem;
  background: #f4f7fa;
  border: 1px solid #d8e0e7;
}

.contact-info h2 {
  color: var(--secondary);
  margin-bottom: 1.2rem;
  font-size: 2rem;
}

.contact-info p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.contact-info h3 {
  color: var(--secondary);
  font-size: 1.05rem;
  margin: 1.35rem 0 0.5rem;
}

.contact-info address {
  color: var(--text-dark);
  font-style: normal;
  line-height: 1.9;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--white);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form-title {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form h2 {
  margin-bottom: 0.5rem;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  border-top: 4px solid rgba(255, 255, 255, 0.12);
  padding: 2.2rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.footer-logo {
  margin-bottom: 0.8rem;
}

.footer-logo img {
  height: 44px;
}

.footer-about p,
.footer-col ul a,
.footer-contact,
.footer-contact a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.footer-col ul li {
  margin-bottom: 0.45rem;
}

.footer-col ul a::before {
  content: '> ';
}

.footer-col ul a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-contact address {
  font-style: normal;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

@supports (-webkit-touch-callout: none) {
  .hero,
  .accreditations,
  .reassurance-band,
  .franchise-callout,
  .cta-bar {
    background-attachment: scroll;
  }
}

@media (max-width: 1045px) {
  .hero--internal {
    padding: 11rem 0 5.5rem;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "meta meta"
      "logo nav";
    align-items: center;
  }

  .header-meta {
    justify-content: center;
    width: 100%;
  }

  .header-nav {
    justify-content: flex-end;
    align-items: center;
  }

  .logo {
    margin-top: 0;
  }

  .services-strip {
    margin-top: 4.5rem;
  }

  .services-strip-grid,
  .news-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .franchise-callout .container,
  .cta-bar .container {
    flex-direction: column;
    align-items: stretch;
  }

  .franchise-action,
  .cta-bar .btn {
    width: 100%;
  }

  .franchise-action .btn,
  .cta-bar .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
    align-self: flex-end;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.5rem 1.25rem;
    background: rgba(14, 23, 35, 0.98);
  }

  .nav-menu.open {
    display: flex;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0.5rem 1.25rem;
    gap: 0.8rem;
  }

  .logo img {
    height: 46px;
  }

  .header-meta-label,
  .header-meta a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero--internal {
    min-height: 430px;
  }

  .hero h1 {
    font-size: 3.2rem;
    max-width: 720px;
  }

  .hero p {
    font-size: 1.35rem;
    max-width: 560px;
  }

  .hero--internal p {
    font-size: 1.15rem;
    max-width: 620px;
  }

  .services-strip {
    margin-top: 5rem;
  }

  .services-strip-grid {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .accreditation-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .accreditation-logos img {
    height: 136px;
    max-width: min(100%, 260px);
  }
}

@media (max-width: 768px) {
  .hero,
  .accreditations,
  .reassurance-band,
  .franchise-callout,
  .cta-bar {
    background-attachment: scroll;
  }

  .hero {
    min-height: 420px;
    padding: 11rem 0 5.5rem;
  }

  .hero--internal {
    min-height: 390px;
  }

  .hero p {
    font-size: 1.05rem;
    max-width: 520px;
  }

  .hero--internal h1 {
    font-size: 3rem;
  }

  .hero--internal p {
    font-size: 1.05rem;
    max-width: 520px;
  }

  .accreditation-logos img {
    height: 104px;
    max-width: min(100%, 220px);
  }

  .reassurance-panel {
    padding: 1.6rem 1.4rem;
  }

  .service-icon img {
    width: 110px;
    height: 110px;
    padding: 1.3rem;
  }

  .nav-menu a {
    font-size: 1.05rem;
  }

  .reassurance-band p,
  .cta-bar h2,
  .franchise-copy h2,
  .accreditations h2,
  .section-title,
  .testimonials h2,
  .news h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 380px;
    padding: 11rem 0 5.5rem;
  }

  .hero--internal {
    min-height: 360px;
  }

  .services-strip-grid,
  .news-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .testimonial-entry {
    padding: 0 0 1.75rem;
    margin-bottom: 1.75rem;
  }

  .contact-panel {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .header-meta {
    display: none;
  }

  .service-icon img {
    width: 84px;
    height: 84px;
    padding: 0.95rem;
  }

  .accreditation-logos {
    gap: 1.1rem 0.9rem;
  }

  .accreditation-logos img {
    height: 120px;
    max-width: min(100%, 176px);
  }
}
