/* ============================================================
   Louella Tindale Consulting — static site styles
   ============================================================ */

:root {
  --purple:        #4b2f72;
  --purple-dark:   #3a2560;
  --purple-light:  #6b4c9a;
  --blue:          #1562b1;
  --teal:          #7fb3bd;
  --ink:           #232028;
  --muted:         #5c5866;
  --line:          #e6e3ec;
  --bg:            #ffffff;
  --bg-alt:        #f6f5f9;
  --maxw:          1180px;
  --radius:        10px;
  --shadow:        0 10px 30px rgba(59, 37, 96, 0.08);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

/* Visually hidden but available to screen readers & search engines */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.section__eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6em;
}
.section__lead { max-width: 720px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  flex-wrap: wrap;
}
.site-header__logo img { height: 52px; width: auto; }

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover {
  color: var(--blue);
  border-color: var(--blue);
  text-decoration: none;
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2970 / 1050;
  background-color: var(--purple-dark);
  /* first slide painted underneath so there is never a blank frame on load
     or during a crossfade */
  background-image: url("../images/hero-specialist.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:nth-child(1) { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: 14px 30px;
  border-radius: 6px;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--purple-dark); text-decoration: none; transform: translateY(-1px); }
.btn--teal { background: var(--teal); color: #1d3438; }
.btn--teal:hover { background: #6aa2ad; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 56px;
  align-items: center;
}
.about__photo {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.about__photo::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: var(--radius);
  z-index: 0;
}
.about__photo img {
  position: relative;
    max-width: 500px !important;
  z-index: 1;
  max-height: 460px;
  width: auto;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.18));
}
.about__body p { color: var(--muted); margin: 0 0 1.1em; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(59, 37, 96, .14);
}
.service__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  margin-bottom: 18px;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 {
  font-size: 1.12rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.service p { margin: 0; color: var(--muted); font-size: .96rem; }

.services__note {
  margin-top: 40px;
  text-align: center;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.contact__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt);
  color: var(--purple);
}
.contact__icon svg { width: 26px; height: 26px; }
.contact__label {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 6px;
}
.contact__value { font-size: 1.05rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.contact__value a { color: var(--ink); }
.contact__value a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-dark);
  color: #d8d2e6;
  padding: 44px 0 32px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; }
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: .86rem;
}
.site-footer__copy { font-size: .82rem; color: #b6accd; margin-top: 22px; }

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 80px;
}
.legal .container { max-width: 860px; }
.legal h1 {
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 8px;
}
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 {
  color: var(--purple);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 34px;
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.back-link { display: inline-block; margin-bottom: 26px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header__inner { justify-content: center; text-align: center; }
  .nav { justify-content: center; gap: 20px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 300px; margin: 0 auto; }
  .section { padding: 60px 0; }
  /* Slides have text baked into the left side — anchor there and use a
     taller ratio so the wording stays large and readable, never cropped off. */
  .hero { aspect-ratio: 5 / 3; background-position: left center; }
  .hero__slide { object-position: left center; }
}

@media (max-width: 520px) {
  .nav { gap: 14px; }
  .nav a { font-size: .74rem; letter-spacing: .08em; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}
