@charset "UTF-8";/* ================================================================
   The Home Painter Newcastle - Cassiopeia Extended custom styles
   ================================================================ */

/* ----------------------------------------------------------------
   1. Shared colours
   ---------------------------------------------------------------- */

:root {
  --thp-navy: #123866;
  --thp-navy-dark: #0a2748;
  --thp-teal: #1d7989;
  --thp-teal-dark: #0e3b43;
  --thp-text: #171717;
  --thp-muted-text: #555555;
  --thp-panel: #f5f5f5;
  --thp-white: #ffffff;
  --thp-radius: 6px;
  --thp-heading-blue: #31578d;
  --thp-heading-slate: #414e62;
  --thp-heading-grey: #444444;
}

/* ----------------------------------------------------------------
   Site-wide article typography
   ---------------------------------------------------------------- */

.container-component h1,
.container-component h2,
.container-component h3,
.container-component h4,
.container-component h5,
.container-component h6 {
  line-height: 1.25;
  text-wrap: balance;
}

.container-component h1 {
  color: var(--thp-heading-slate);
}

.container-component h2 {
  color: var(--thp-heading-blue);
}

.container-component h3,
.container-component h4,
.container-component h5,
.container-component h6 {
  color: var(--thp-heading-grey);
}

/* ----------------------------------------------------------------
   2. Shared buttons
   ---------------------------------------------------------------- */

.home-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.home-button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--thp-navy);
  border-radius: 4px;
}

.primary-button {
  color: var(--thp-white);
  background: var(--thp-navy);
}

.primary-button:hover,
.primary-button:focus {
  color: var(--thp-white);
  background: var(--thp-navy-dark);
  border-color: var(--thp-navy-dark);
}

.secondary-button {
  color: var(--thp-navy);
  background: var(--thp-white);
}

.secondary-button:hover,
.secondary-button:focus {
  color: var(--thp-white);
  background: var(--thp-navy);
}

.service-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--thp-white);
  background: var(--thp-navy);
  text-decoration: none;
  border-radius: 4px;
}

.service-button:hover,
.service-button:focus {
  color: var(--thp-white);
  background: var(--thp-navy-dark);
}

@media (max-width: 480px) {
  .home-buttons {
    flex-direction: column;
  }

  .home-button {
    width: 100%;
    text-align: center;
  }
}

/* ----------------------------------------------------------------
   3. Header contact details and main menu
   ---------------------------------------------------------------- */

/* Header contact bar */

.header-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0;
  background: transparent;
}

.header-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  color: var(--thp-text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(29, 55, 95, 0.18);
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.header-contact-button .fa-solid {
  color: var(--thp-heading-blue);
  font-size: 1rem;
}

.header-contact-button:hover,
.header-contact-button:focus {
  color: var(--thp-white);
  background: var(--thp-navy);
  border-color: var(--thp-navy);
  transform: translateY(-1px);
}

.header-contact-button:hover .fa-solid,
.header-contact-button:focus .fa-solid {
  color: var(--thp-white);
}

.header-contact-button:focus-visible {
  outline: 3px solid rgba(29, 121, 137, 0.35);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .header-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .header-contact-button {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Desktop header: logo left, menu and contact details right */

@media (min-width: 1200px) {
  .container-header {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: center;
    padding: 1.25rem max(2rem, calc((100% - 1320px) / 2));
  }

  .container-header .container-topbar {
    grid-column: 1 / -1;
  }

  .container-header > .grid-child:not(.container-nav) {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .container-header .navbar-brand img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .container-header .container-nav {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .container-header .navbar {
    width: 100%;
  }

  .container-header .mod-menu {
    justify-content: flex-end;
    width: 100%;
  }

  .container-header .header-contact {
    justify-content: flex-end;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0;
  }
}

/* Main menu typography */

.container-header .mod-menu > li > a {
  padding: 0.65rem 0.75rem;
  color: var(--thp-heading-slate);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
  border-radius: 4px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

/* Menu hover and keyboard focus */

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
  color: var(--thp-heading-blue);
  background: rgba(29, 121, 137, 0.12);
}

/* Current page */

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  color: var(--thp-heading-blue);
  background: rgba(29, 121, 137, 0.16);
}

/* Mobile menu */

@media (max-width: 767px) {
  .container-header .mod-menu > li > a {
    padding: 0.75rem;
    font-size: 1.05rem;
  }
}

/* ----------------------------------------------------------------
   4. Home page
   ---------------------------------------------------------------- */

/* Interior and exterior service cards */

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

.service-box {
  padding: 2rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
}

.service-box h2 {
  margin-top: 0;
}

.service-box-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.service-before-after {
  display: block;
  width: 55%;
  max-width: 360px;
  height: auto;
  border-radius: 4px;
}

/* Preparation section */

.preparation-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0;
}

.preparation-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--thp-radius);
}

.preparation-text h5 {
  margin-top: 0;
}

.preparation-text ul {
  padding-left: 1.25rem;
}

.why-choose-list {
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.why-choose-list li {
  margin-bottom: 0.4rem;
}

/* Reviews and final local-services section */

.reviews-widget {
  width: 100%;
  overflow: hidden;
}

.reviews-widget iframe {
  display: block;
  width: 100%;
  border: 0;
}

.local-painting-section {
  margin: 2.5rem 0;
}

@media (max-width: 700px) {
  .painting-services,
  .preparation-section {
    grid-template-columns: 1fr;
  }

  .preparation-section {
    gap: 1.25rem;
  }

  .service-box-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .service-before-after {
    width: 100%;
    max-width: none;
  }

  .service-box-bottom .service-button {
    align-self: flex-start;
  }
}

/* ----------------------------------------------------------------
   5. Contact and free-quote page
   ---------------------------------------------------------------- */

.contact-page {
  max-width: 950px;
  margin: 0 auto 3rem;
}

.contact-introduction {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-introduction h1 {
  margin-top: 0;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-option {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  color: var(--thp-text);
  background: var(--thp-panel);
  border-left: 4px solid var(--thp-teal);
  border-radius: 4px;
  text-decoration: none;
}

.contact-option span {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.contact-option strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.contact-option:hover,
.contact-option:focus {
  color: var(--thp-white);
  background: var(--thp-teal);
}

.contact-form-section,
.contact-reviews {
  padding: 2rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
}

.contact-form-section h2,
.contact-reviews h2 {
  margin-top: 0;
}

.quote-form-module {
  margin-top: 1.5rem;
}

.contact-reviews {
  margin-top: 3rem;
}

.contact-reviews-widget {
  width: 100%;
  margin-top: 1.5rem;
  overflow: hidden;
}

@media (max-width: 700px) {
  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-form-section,
  .contact-reviews {
    padding: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   6. Interior and exterior service pages
   ---------------------------------------------------------------- */

.interior-page,
.exterior-page {
  margin-bottom: 3rem;
}

.interior-introduction,
.exterior-introduction {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.interior-introduction h1,
.exterior-introduction h1 {
  margin-top: 0;
}

.interior-lead,
.exterior-lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

.interior-section,
.exterior-section {
  margin: 3rem 0;
}

/* Services grids */

.interior-services-grid,
.exterior-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.interior-service-item,
.exterior-service-item {
  padding: 1.5rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
}

.interior-service-item h3,
.exterior-service-item h3 {
  margin-top: 0;
}

.interior-service-item p,
.exterior-service-item p {
  margin-bottom: 0;
}

/* Main before-and-after figures */

.interior-before-after,
.exterior-before-after {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
}

.interior-before-after img,
.exterior-before-after img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--thp-radius);
}

.interior-before-after figcaption,
.exterior-before-after figcaption,
.interior-preparation-image figcaption,
.exterior-preparation-image figcaption {
  margin-top: 0.65rem;
  color: var(--thp-muted-text);
  font-size: 0.9rem;
  text-align: center;
}

/* Preparation sections */

.interior-preparation,
.exterior-preparation {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--thp-panel);
  border-left: 4px solid var(--thp-teal);
  border-radius: var(--thp-radius);
}

.interior-preparation-text,
.exterior-preparation-text {
  min-width: 0;
}

.interior-preparation h2,
.exterior-preparation h2 {
  margin-top: 0;
}

.interior-preparation li,
.exterior-preparation li {
  margin-bottom: 0.4rem;
}

.interior-preparation-image,
.exterior-preparation-image {
  margin: 0;
}

.interior-preparation-image img,
.exterior-preparation-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--thp-radius);
}

/* Final quote sections */

.interior-final-action,
.exterior-final-action {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
}

.interior-final-action h2,
.exterior-final-action h2 {
  margin-top: 0;
}

@media (max-width: 800px) {
  .interior-services-grid,
  .exterior-services-grid,
  .interior-preparation,
  .exterior-preparation {
    grid-template-columns: 1fr;
  }

  .interior-preparation,
  .exterior-preparation,
  .interior-final-action,
  .exterior-final-action {
    padding: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   7. About page
   ---------------------------------------------------------------- */

.about-page {
  margin-bottom: 3rem;
}

.about-introduction {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.about-introduction h1 {
  margin-top: 0;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-story,
.about-section {
  margin: 3rem 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.about-fact {
  padding: 1.5rem;
  background: var(--thp-panel);
  border-top: 4px solid var(--thp-teal);
  border-radius: var(--thp-radius);
  text-align: center;
}

.about-fact strong,
.about-fact span {
  display: block;
}

.about-fact strong {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-service {
  padding: 1.5rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
}

.about-service h3 {
  margin-top: 0;
}

.about-service p {
  margin-bottom: 0;
}

.about-abn {
  margin-top: 1.5rem;
}

.about-approach {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--thp-panel);
  border-left: 4px solid var(--thp-teal);
  border-radius: var(--thp-radius);
}

.about-approach h2 {
  margin-top: 0;
}

.about-benefits {
  padding-left: 1.25rem;
}

.about-benefits li {
  margin-bottom: 0.5rem;
}

.about-reviews,
.about-contact {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
}

.about-reviews h2,
.about-contact h2 {
  margin-top: 0;
}

.about-reviews-widget {
  width: 100%;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
}

.about-contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.about-contact-option {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  color: var(--thp-text);
  background: var(--thp-white);
  border-left: 4px solid var(--thp-teal);
  border-radius: 4px;
  text-decoration: none;
}

.about-contact-option span {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.about-contact-option strong {
  overflow-wrap: anywhere;
}

.about-contact-option:hover,
.about-contact-option:focus {
  color: var(--thp-white);
  background: var(--thp-teal);
}

@media (max-width: 800px) {
  .about-facts,
  .about-services-grid,
  .about-contact-options {
    grid-template-columns: 1fr;
  }

  .about-approach,
  .about-reviews,
  .about-contact {
    padding: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   8. Footer: social links and service areas
   ---------------------------------------------------------------- */

/* Stack Cassiopeia footer modules vertically */

.footer .grid-child {
  flex-direction: column;
  align-items: stretch;
}

.footer .grid-child > * {
  width: 100%;
}

/* Social links */

.footer-social {
  width: 100%;
  margin: 1.5rem 0;
  text-align: center;
}

.footer-social h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.footer-social-links a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.footer-social-links a:hover,
.footer-social-links a:focus {
  text-decoration: underline;
}

/* Service areas */

.service-areas-footer {
  width: 100%;
  padding: 2rem 0;
}

.service-areas-footer > h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.service-area h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.service-area p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .service-area-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-areas-footer > h2 {
    text-align: left;
  }
}

/* Contact buttons below footer social links */

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

@media (max-width: 700px) {
  .footer-contact {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Ensure footer contact buttons have readable colours */

.footer .footer-contact .header-contact-button {
  color: var(--thp-navy);
  background: var(--thp-white);
  border-color: #d7dce3;
}

.footer .footer-contact .header-contact-button .fa-solid {
  color: var(--thp-heading-blue);
}

.footer .footer-contact .header-contact-button:hover,
.footer .footer-contact .header-contact-button:focus {
  color: var(--thp-white);
  background: var(--thp-navy);
  border-color: var(--thp-navy);
}

.footer .footer-contact .header-contact-button:hover .fa-solid,
.footer .footer-contact .header-contact-button:focus .fa-solid {
  color: var(--thp-white);
}

/* ----------------------------------------------------------------
   9. Inspiration module in the debug position
   ---------------------------------------------------------------- */

.footer-scripture {
  max-width: 850px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer-scripture h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.footer-scripture blockquote {
  margin: 0;
  padding: 1.25rem 2rem;
  border-left: 4px solid currentColor;
  font-style: italic;
}

.footer-scripture p {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.footer-scripture cite {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 700px) {
  .footer-scripture blockquote {
    padding: 1rem 1.25rem;
  }
}

/* Shared final call-to-action panel portfilion and reviews page contact us button */

.page-final-action {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--thp-panel);
  border-radius: var(--thp-radius);
  text-align: center;
}

.page-final-action h2 {
  margin-top: 0;
}

.page-final-action .home-buttons {
  justify-content: center;
}

@media (max-width: 700px) {
  .page-final-action {
    padding: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   Homepage before-and-after slideshow
   ---------------------------------------------------------------- */

.home-slideshow {
  width: min(100%, 900px);
  margin: 2rem auto;
}

.home-slideshow-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9ecef;
  border-radius: var(--thp-radius, 6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.home-slideshow-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.home-slideshow-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.home-slideshow-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slideshow-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 0.85rem;
  color: #ffffff;
  background: rgba(10, 39, 72, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-slideshow-slide[data-label="After"] .home-slideshow-label {
  background: rgba(29, 121, 137, 0.92);
}

.home-slideshow-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 3.5rem;
  padding: 0;
  color: #ffffff;
  background: rgba(10, 39, 72, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.home-slideshow-previous {
  left: 0.75rem;
}

.home-slideshow-next {
  right: 0.75rem;
}

.home-slideshow-control:hover,
.home-slideshow-control:focus {
  background: var(--thp-navy, #123866);
}

.home-slideshow-control:focus-visible,
.home-slideshow-dot:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.home-slideshow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.home-slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-slideshow-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  background: #c3c9d1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.home-slideshow-dot.is-active {
  background: var(--thp-heading-blue, #31578d);
}

.home-slideshow-status {
  flex: 0 0 auto;
  margin: 0;
  color: var(--thp-muted-text, #555555);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .home-slideshow {
    margin: 1.5rem auto;
  }

  .home-slideshow-label {
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }

  .home-slideshow-control {
    width: 2.4rem;
    height: 3rem;
  }

  .home-slideshow-previous {
    left: 0.45rem;
  }

  .home-slideshow-next {
    right: 0.45rem;
  }

  .home-slideshow-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slideshow-slide {
    transition: none;
  }
}

/* Header logo size */

.container-header .navbar-brand img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

@media (max-width: 700px) {
  .container-header .navbar-brand img {
    max-width: 300px;
  }
}
