/* ==========================================================================
   Shurlock Homes Limited - Site Stylesheet
   ========================================================================== */

:root {
  --primary: #703579;
  --primary-dark: #542659;
  --primary-light: #8d4d96;
  --accent: #e8a33d;
  --accent-dark: #cf8b26;
  --dark: #26222b;
  --text: #3d3844;
  --muted: #6f6877;
  --line: #e6e1ea;
  --bg-soft: #f7f5f9;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(38, 34, 43, 0.09);
  --shadow-lg: 0 10px 30px rgba(38, 34, 43, 0.16);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Custom scrollbar colour (Firefox) */
  scrollbar-color: var(--primary) #ede8f1;
}

/* Custom scrollbar colour (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #ede8f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
  border: 2px solid #ede8f1;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
}

/* Magnifying glass cursor when hovering links and buttons */
a:hover,
.btn:hover,
button:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='8' fill='rgba(255,255,255,0.85)' stroke='%23703579' stroke-width='3'/%3E%3Cline x1='19.5' y1='19.5' x2='28' y2='28' stroke='%23703579' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 13 13, pointer;
}

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

/* Stop a single word wrapping onto its own line */
p, li, .card p, .page-hero p {
  text-wrap: pretty;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  margin-bottom: 0.9rem;
}

.section-intro p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #2c1e04;
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--purple {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn--purple:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--primary-dark);
  color: #eee4f0;
  font-size: 0.9rem;
  padding: 0.45rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar__contacts {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar__note {
  display: none;
}

@media (min-width: 720px) {
  .topbar__note {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo__text {
  line-height: 1.15;
}

.logo__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.logo__tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.main-nav .btn {
  padding: 0.6rem 1.25rem;
  border-bottom: 2px solid transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 5%;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.is-active {
    border-bottom-color: var(--line);
    background: var(--bg-soft);
  }

  .main-nav .btn {
    margin: 0.9rem 5%;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  padding: 7rem 0 7.5rem;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 16, 34, 0.82) 0%, rgba(52, 25, 58, 0.62) 55%, rgba(52, 25, 58, 0.35) 100%);
}

.hero .container {
  position: relative;
}

.hero__inner {
  max-width: 640px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 1.1rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  color: #f1eaf4;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Inner page hero */

.page-hero {
  position: relative;
  color: var(--white);
  padding: 4.5rem 0;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 16, 34, 0.85) 0%, rgba(52, 25, 58, 0.55) 100%);
}

.page-hero .container {
  position: relative;
  max-width: 760px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.page-hero p {
  color: #f1eaf4;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.98rem;
}

.trust-strip__item svg {
  flex: 0 0 auto;
}

.trust-strip__badge img {
  height: 54px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Split (image + text) blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.split__body p + p {
  margin-top: 1rem;
}

.split__body .btn {
  margin-top: 1.6rem;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split--reverse .split__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card__body p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.card__link {
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}

.card__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Checklist / why choose us
   -------------------------------------------------------------------------- */

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.2rem;
}

@media (max-width: 680px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

.check-list li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 600;
  color: var(--dark);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* --------------------------------------------------------------------------
   Service detail rows (services page)
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-of-type {
  border-bottom: none;
}

.service-row:nth-child(even) .service-row__media {
  order: 2;
}

.service-row__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.service-row__body h2 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

.service-row__body p + p {
  margin-top: 0.9rem;
}

.service-row__body ul {
  margin: 1rem 0 0 1.2rem;
}

.service-row__body li {
  margin-bottom: 0.35rem;
}

@media (max-width: 820px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .service-row:nth-child(even) .service-row__media {
    order: 0;
  }

  .service-row__media img {
    height: 240px;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(115deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3.8rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.cta-band p {
  color: #eaddef;
  max-width: 640px;
  margin: 0 auto 1.8rem;
}

.cta-band__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Areas page
   -------------------------------------------------------------------------- */

.area-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

@media (max-width: 720px) {
  .area-columns {
    grid-template-columns: 1fr;
  }
}

.area-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.area-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.area-box ul {
  list-style: none;
  columns: 2;
  margin-top: 0.8rem;
}

.area-box li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.area-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfc7d6;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary-light);
  border-color: var(--primary-light);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info__item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.contact-info__item svg {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.contact-info__item strong {
  display: block;
  color: var(--dark);
}

.contact-info__item a {
  text-decoration: none;
  font-weight: 600;
}

.contact-info__item a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: #c9c2cf;
  padding: 3.5rem 0 0;
  font-size: 0.95rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: #c9c2cf;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-about p {
  margin-bottom: 1rem;
}

.footer-about img {
  height: 48px;
  width: auto;
  margin-top: 0.5rem;
}

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid #3a3441;
  padding: 1.2rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-bottom a {
  color: #c9c2cf;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.4rem;
  display: none;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--text);
  flex: 1 1 380px;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
}

.btn--outline {
  background: transparent;
  border-color: #cfc7d6;
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Misc / utilities
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.thank-you {
  min-height: 45vh;
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Entrance-on-scroll animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
