/* ===== COLOUR PALETTE ===== */
:root {
  --clr-main-light:    #faeea7;
  --clr-main-blue:     #87b1cb;
  --clr-neutral-light: #f8f8f8;
  --clr-neutral-dark:  #4a4a4a;
  --clr-brand-green:   #00963f;
  --clr-accent:        #ff4e59;
  --clr-white:         #ffffff;
}


/* ------------------------------------------------------------ */
/* GLOBAL RESET & TYPOGRAPHY                                   */
/* ------------------------------------------------------------ */
html {
  font-size: 110%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--clr-neutral-dark);
  background: var(--clr-white);
  line-height: 1.6;
}
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}
a { text-decoration: none; }

/* ===== GLOBAL ===== */
html{scroll-behavior:smooth;}
body{font-family:"Helvetica Neue",Arial,sans-serif;color:var(--clr-neutral-dark);line-height:1.6;}
a,button,input,select,textarea{outline-offset:2px;}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{outline:3px solid var(--clr-accent);}
.text-brand-green{color:var(--clr-brand-green);}
.bg-neutral-dark{background:var(--clr-neutral-dark);}

/* ------------------------------------------------------------ */
/* BUTTONS                                                     */
/* ------------------------------------------------------------ */
.btn-accent {
  background: var(--clr-accent);
  color: var(--clr-white);
  border: none;
  border-radius: .375rem;
  padding: .75rem 1.5rem;
  transition: background .2s;
}
.btn-accent:hover,
.btn-accent:focus {
  background: #e64351;
}

/* ------------------------------------------------------------------ */
/* NAVBAR (as About)                                                  */
/* ------------------------------------------------------------------ */
header {
  position: sticky !important;
  top: 0;
  z-index: 1020;
  background: var(--clr-white);
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--clr-neutral-dark);
  margin-inline: .75rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--clr-main-blue);
}
.phone-number a:hover,
.phone-number a:focus {
  text-decoration: underline;
}
.vr { opacity: .25; }
header .navbar { padding-block: 1rem; }
.navbar-brand { font-size: 1.5rem; }
@media (min-width:1200px) {
  header .btn-accent { margin-left:1rem!important; }
}

.navbar-brand img {
  width: 36px;
  height: auto;
}


/* ------------------------------------------------------------ */
/* HERO + PHONE FORM                                           */
/* ------------------------------------------------------------ */
.services-hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.services-hero img {
  object-fit: cover;
  z-index: 0;
}
.services-hero .overlay {
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.services-hero .container {
  position: relative;
  z-index: 2;
}
.services-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
}
.services-hero p.lead {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

/* phone‐capture form */
.services-hero form {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.services-hero .form-control {
  flex: 1;
  min-width: 12rem;
}
.services-hero .btn-accent {
  white-space: nowrap;
}
@media (min-width: 576px) {
  .services-hero form { flex-wrap: nowrap; }
}

/* ------------------------------------------------------------ */
/* INTRO DESCRIPTION                                           */
/* ------------------------------------------------------------ */
.services-intro {
  padding: 2rem 0;
  background: var(--clr-neutral-light);
}
.services-intro .lead {
  max-width: 50rem;
  margin: 0 auto;
  color: var(--clr-neutral-dark);
}

/* ------------------------------------------------------------ */
/* SERVICES GRID                                                */
/* ------------------------------------------------------------ */
/* force each column to stretch */
#services .row > .col {
  display: flex;
}
.info-card {
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.info-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.info-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.pill {
  display: inline-block;
  background: var(--clr-main-light);
  color: var(--clr-neutral-dark);
  padding: .25rem .75rem;
  border-radius: 1rem;
  font-size: .85rem;
}
.price {
  font-weight: 600;
  color: var(--clr-neutral-dark);
}
.info-card-title {
  margin-top: .5rem;
  font-size: 1.25rem;
}
.info-card-text {
  margin: .75rem 0;
  flex-grow: 1;
}

/* ------------------------------------------------------------ */
/* PRICING SECTION w/ background image                          */
/* ------------------------------------------------------------ */
.pricing-section {
  position: relative;
  background: url('cta-services.jpg') center/cover no-repeat;
  color: var(--clr-white);
}
.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.pricing-section .container {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}
.pricing-section h2 {
  font-size: clamp(2rem,4vw,3rem);
  margin-bottom: 1rem;
}
.pricing-section p.lead {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------------ */
/* FOOTER (copied from contact.css)                                   */
/* ------------------------------------------------------------------ */
footer,
footer h4,
footer p,
footer small {
  color: var(--clr-white)!important;
}
footer .list-unstyled a {
  color: var(--clr-main-light)!important;
}
footer .list-unstyled a:hover,
footer .list-unstyled a:focus {
  text-decoration: underline!important;
}
.bg-neutral-dark { background: var(--clr-neutral-dark)!important; }
.text-main-light { color: var(--clr-main-light)!important; }


/* make footer links and small copyright text readable */
footer .text-main-light,
footer p.small {
  color: var(--clr-neutral-dark) !important;   /* switch to black/dark */
  text-decoration: underline !important;       /* don’t rely on color alone */
}


/* ─── SOCIAL LINKS ───────────────────────────────────────────────── */
.social-links a {
  display: inline-block;
  transition: color .2s;
}
.social-links a:hover,
.social-links a:focus {
  color: var(--clr-accent) !important;  /* switch to your red on hover */
}


/* ------------------------------------------------------------ */
/* RESPONSIVE                                                  */
/* ------------------------------------------------------------ */
@media (max-width:767.98px) {
  .services-hero p.lead { max-width: 90%; }
}

@media (max-width: 575.98px) {
  /* Hero “Book Your Home Visit Now” button */
  .services-hero .btn-accent {
    padding: 0.5rem 1rem;    /* smaller tap area */
    font-size: 0.9rem;       /* slightly smaller text */
  }

  /* Hero phone-input to match */
  .services-hero .form-control-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Pricing-section “Book Your Home Care Visit” button */
  .pricing-section .btn-accent {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  /* Add side padding to the pricing‐CTA section */
  .pricing-section .container {
    padding: 3rem 1rem; /* 3rem top/bottom, 1rem left/right */
  }

  /* (Optional) Also pad the hero CTA on phones */
  .services-hero .container {
    padding: 0 1rem;
  }
}
