/*
  carolyndavies.org
  Palette: muted slate-indigo, warm cream, charcoal
  Type: Playfair Display (headings) + Inter (body)
*/

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  color: #1C1C1C;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --indigo:       #4A6FA5;
  --indigo-mid:   #2D5486;
  --indigo-dark:  #1E3A5F;
  --indigo-tint:  #D8E8F5;
  --rose:         #C25070;   /* minimal accent */
  --rose-tint:    #FAE8EE;
  --lime:         #8AB428;   /* heading highlight */
  --lime-tint:    #EFF5DC;
  --sage:         #5A7A62;
  --sage-tint:    #E4EDE5;
  --warm-tint:    #FAF3E7;
  --ice:          #EDF4FB;   /* page background */
  --cream:        #F7F5F0;
  --white:        #FFFFFF;
  --charcoal:     #1C1C1C;
  --mid:          #4A4A4A;
  --muted:        #7A7A7A;
  --border:       #C8D9EC;
}

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.25rem; color: var(--mid); }
p:last-child { margin-bottom: 0; }
p.lead { font-size: 1.1rem; line-height: 1.8; color: var(--mid); }

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

strong { color: var(--charcoal); }

/* ─── Layout ─────────────────────────────────────────── */
.container        { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width:  720px; margin: 0 auto; padding: 0 2rem; }

section { padding: 5rem 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col-text-wide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col,
  .two-col-text-wide { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─── Announce bar ───────────────────────────────────── */
.announce-bar {
  background: linear-gradient(90deg, #5A3A78 0%, #8B3A52 100%);
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 0.55rem 2rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.announce-bar a {
  color: white;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  white-space: nowrap;
  transition: border-color 0.2s;
}
.announce-bar a:hover { border-color: white; text-decoration: none; }

/* ─── Nav ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--charcoal); text-decoration: none; }
.nav-links a.active { color: var(--charcoal); font-weight: 600; }

.btn-book-nav {
  background: var(--lime) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 4px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-book-nav:hover { background: #749520 !important; text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .btn-book-nav { padding: 0.6rem 1.25rem !important; }
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary  { background: var(--indigo);  color: white;           border-color: var(--indigo); }
.btn-primary:hover  { background: var(--indigo-mid); border-color: var(--indigo-mid); }

.btn-outline  { background: transparent;    color: var(--indigo);   border-color: var(--indigo); }
.btn-outline:hover  { background: var(--indigo-tint); }

.btn-outline-rose { background: transparent; color: var(--rose); border-color: var(--rose); }
.btn-outline-rose:hover { background: var(--rose-tint); }

.btn-outline-green { background: transparent; color: var(--lime); border-color: var(--lime); }
.btn-outline-green:hover { background: var(--lime-tint); }

.btn-green { background: var(--lime); color: white; border-color: var(--lime); }
.btn-green:hover { background: #749520; border-color: #749520; }

.btn-white    { background: white;           color: var(--indigo-dark); border-color: white; }
.btn-white:hover { background: var(--indigo-tint); border-color: var(--indigo-tint); }

.btn-block { display: block; text-align: center; }

/* ─── Section label ──────────────────────────────────── */
.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.85rem;
}

/* ─── Page header (inner pages) ─────────────────────── */
.page-header {
  position: relative;
  background-color: var(--indigo);
  background-size: cover;
  background-position: center 40%;
  padding: 4.5rem 0 3.75rem;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(24, 48, 82, 0.76);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1     { color: white; margin-bottom: 0.6rem; }
.page-header p      { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 580px; margin-bottom: 0; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero { padding: 6rem 0 5rem; }
.hero-text h1      { margin-bottom: 1.4rem; }
.hero-text h1 em   { font-style: italic; color: var(--indigo); }
.hero-text .lead   { margin-bottom: 2rem; }
.hero-ctas         { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--indigo-tint) 0%, var(--rose-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Color-overlay technique: when a real photo is placed inside,
   mix-blend-mode + the gradient background creates a colour-washed effect */
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .hero { padding: 3.5rem 0; }
  .hero-photo { order: -1; aspect-ratio: 4/3; }
}

/* ─── Pull quote strip ──────────────────────────────── */
.quote-strip {
  background: var(--indigo-dark);
  padding: 4rem 0;
  text-align: center;
}
.quote-strip blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  max-width: 780px;
  margin: 0 auto;
  font-style: italic;
}
.quote-strip em { color: #8FB8E0; font-style: normal; }

/* ─── Cards ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}
.card-icon {
  width: 38px; height: 38px;
  background: var(--indigo-tint);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.65rem; }
.card p  { font-size: 0.93rem; }
.card-note { font-size: 0.78rem !important; color: var(--muted) !important; margin-top: 0.75rem; }

/* ─── Styled list ────────────────────────────────────── */
.styled-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.75rem;
}
.styled-list li {
  font-size: 0.93rem;
  color: var(--mid);
  padding-left: 1.2rem;
  position: relative;
}
.styled-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 600;
}
@media (max-width: 560px) { .styled-list { grid-template-columns: 1fr; } }

/* ─── CTA section ────────────────────────────────────── */
.cta-section {
  background: var(--indigo);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 0.85rem; }
.cta-section p  { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; }

/* ─── Credentials sidebar ────────────────────────────── */
.creds-box {
  background: var(--indigo-tint);
  border-radius: 8px;
  padding: 1.75rem;
}
.creds-box h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-dark);
  margin-bottom: 1.25rem;
}
.cred {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.cred:last-child { margin-bottom: 0; }
.cred-dot {
  width: 6px; height: 6px;
  background: var(--indigo);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}
.cred p { font-size: 0.88rem; color: var(--mid); margin: 0; line-height: 1.5; }
.cred strong { color: var(--charcoal); display: block; }

/* ─── Photo placeholder ──────────────────────────────── */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}
.photo-placeholder p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ─── Availability table ─────────────────────────────── */
.avail-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.avail-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.avail-table td:first-child { font-weight: 600; width: 40%; color: var(--charcoal); }
.avail-table td:last-child  { color: var(--mid); }
.avail-table tr:last-child td { border-bottom: none; }

/* ─── Fee display ────────────────────────────────────── */
.fee-amount {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--indigo-dark);
  line-height: 1.3;
}
.fee-amount span { font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-left: 0.2em; }

/* ─── Blog cards ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.blog-card-body  { padding: 1.75rem; }
.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.65rem; line-height: 1.3; }
.blog-card h3 a { color: var(--charcoal); }
.blog-card h3 a:hover { color: var(--indigo); text-decoration: none; }
.blog-card p  { font-size: 0.9rem; margin-bottom: 1rem; }
.blog-meta    { font-size: 0.78rem; color: var(--muted); }

/* ─── Contact ────────────────────────────────────────── */
.contact-detail { display: flex; gap: 0.85rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-icon {
  width: 34px; height: 34px;
  background: var(--indigo-tint);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  flex-shrink: 0;
}
.contact-detail p  { margin: 0; font-size: 0.92rem; }
.contact-detail strong { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.15rem; }

/* ─── Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--indigo); }
.form-group textarea { height: 130px; resize: vertical; }

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background: var(--indigo-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand .nav-logo { color: white; display: block; margin-bottom: 0.65rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 320px; }
.footer-brand a.calendly-link { font-size: 0.88rem; color: rgba(255,255,255,0.65); display: block; margin-top: 0.85rem; }
.footer-brand a.calendly-link:hover { color: white; text-decoration: none; }

footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Hero: full-bleed slideshow ───────────────────────── */
.hero-full {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: heroFade 42s infinite;
}
/* Per-image object-position + staggered delays (6s per slot, 42s total) */
.hero-slideshow img:nth-child(1) { animation-delay:  0s; object-position: 35% 70%;     } /* conversation — people lower */
.hero-slideshow img:nth-child(2) { animation-delay:  6s; object-position: center 60%;  } /* beach silhouette */
.hero-slideshow img:nth-child(3) { animation-delay: 12s; object-position: center center;} /* woman by sea */
.hero-slideshow img:nth-child(4) { animation-delay: 18s; object-position: center center;} /* café man */
.hero-slideshow img:nth-child(5) { animation-delay: 24s; object-position: 40% center; } /* woman in office */
.hero-slideshow img:nth-child(6) { animation-delay: 30s; object-position: 28% center; } /* Black professional */
.hero-slideshow img:nth-child(7) { animation-delay: 36s; object-position: center 40%; } /* man on sofa */

@keyframes heroFade {
  0%      { opacity: 0; }
  2.4%    { opacity: 1; }   /* fade in over ~1s */
  11.9%   { opacity: 1; }   /* visible until ~5s */
  14.3%   { opacity: 0; }   /* fade out over ~1s */
  100%    { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30,58,95,0.85) 0%,
    rgba(30,58,95,0.62) 50%,
    rgba(30,58,95,0.32) 100%
  );
  z-index: 1;
}

.hero-full .container {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.hero-full .hero-text     { max-width: 600px; }
.hero-full .label         { color: rgba(255,255,255,0.72); }
.hero-full h1             { color: white; }
.hero-full h1 em          { color: var(--indigo-tint); }
.hero-full .lead          { color: rgba(255,255,255,0.87); }
.hero-full .btn-outline-green {
  background: var(--lime);
  border-color: var(--lime);
  color: white;
}
.hero-full .btn-outline-green:hover { background: #749520; border-color: #749520; }
.hero-full .btn-outline-rose {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.hero-full .btn-outline-rose:hover { background: rgba(255,255,255,0.12); }
.avail-hint {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.avail-hint strong { color: rgba(255,255,255,0.9); font-weight: 600; }

@media (max-width: 768px) {
  .hero-full            { min-height: 78vh; }
  .hero-full .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ─── Client faces strip ───────────────────────────────── */
.client-faces {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.client-faces img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
/* Window woman — show her face in profile */
.client-faces img:nth-child(4) { object-position: 80% 20%; }
/* Woman with braids — face is upper portion of image */
.client-faces img:nth-child(6) { object-position: center 15%; }
@media (max-width: 480px) {
  .client-faces img { width: 52px; height: 52px; }
}

/* ─── CTA section with photo background ───────────────── */
.cta-section.has-photo {
  background-image: url('images/cta-couple.jpg');
  background-size: cover;
  background-position: center 35%;
  position: relative;
}
.cta-section.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,58,95,0.74);
}
.cta-section.has-photo .container { position: relative; z-index: 1; }

/* ─── Utilities ──────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.mt-sm  { margin-top: 0.75rem; }
.mt-1   { margin-top: 1rem; }
.mt-2   { margin-top: 1.5rem; }
.mt-3   { margin-top: 2.5rem; }
.mb-2   { margin-bottom: 1.5rem; }
.bg-white { background: white; }
.bg-sage  { background: var(--sage-tint); }
.bg-warm  { background: var(--warm-tint); }
.section-border { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
