/* ============================================================
   Candace Prewitt — Artist Website
   Pastel Color Scheme
   ============================================================ */

:root {
  --cream:      #fdf8f3;
  --blush:      #e8c4c4;
  --rose:       #c9899a;
  --lavender:   #c4b8d8;
  --mint:       #b8d4c4;
  --peach:      #f0d4b8;
  --text-dark:  #3d2e38;
  --text-mid:   #6b5560;
  --text-light: #9a8590;
  --card-bg:    #fffaf7;
  --border:     #e8d8d0;
  --shadow:     rgba(180, 120, 130, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: var(--cream);
  background-image: url('/images/candaceprewittbackground.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: normal;
  letter-spacing: 0.03em;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.divider {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--blush), var(--lavender));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.25rem;
  color: var(--rose);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-brand span {
  color: var(--text-light);
  font-size: 0.8rem;
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rose);
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 243, 0.68);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-text {
  padding: 4rem 2rem;
  max-width: 680px;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: 'Arial', sans-serif;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-name em {
  color: var(--rose);
  font-style: normal;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-verse {
  background: linear-gradient(135deg, rgba(232,196,196,0.3), rgba(196,184,216,0.3));
  border: 1px solid var(--blush);
  padding: 1rem 1.4rem;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 2.2rem;
}

.hero-verse cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s;
  font-family: 'Arial', sans-serif;
}

.btn-primary {
  background: var(--rose);
  color: white;
  border: 2px solid var(--rose);
}

.btn-primary:hover {
  background: transparent;
  color: var(--rose);
}

.btn-outline {
  border: 2px solid var(--lavender);
  color: var(--text-mid);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--lavender);
  color: white;
}

.hero-image-panel {
  display: none;
}

/* ── Sections ── */
section {
  padding: 5rem 2rem;
}

/* ── Gallery ── */
#gallery {
  background: rgba(255, 250, 247, 0.88);
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.45rem 1.4rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--shadow);
}

.gallery-card.hidden {
  display: none;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,46,56,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay span {
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Arial', sans-serif;
}

.card-info {
  padding: 1rem 1.2rem;
}

.card-title {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--cream);
  padding: 0.2rem 0.7rem;
  border-radius: 10px;
}

/* ── About ── */
#about {
  background: rgba(253, 248, 243, 0.88);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-portrait {
  position: relative;
}

.about-portrait img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow);
}

.about-portrait::after {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid var(--blush);
  border-radius: 16px;
  z-index: -1;
}

.about-text h2 {
  font-size: 1.9rem;
  color: var(--rose);
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.faith-callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(232,196,196,0.25), rgba(196,184,216,0.25));
  border-radius: 10px;
  border: 1px solid var(--border);
}

.faith-callout p {
  font-style: italic;
  color: var(--text-mid);
  margin: 0;
}

/* ── Categories ── */
#categories {
  background: rgba(255, 250, 247, 0.88);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.cat-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--blush);
}

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.cat-card h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.cat-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: 'Arial', sans-serif;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 18, 26, 0.88);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.lightbox-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--cream);
}

.lightbox-caption {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-caption h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.lightbox-caption span {
  color: var(--text-light);
  font-size: 0.82rem;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-mid);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: var(--blush);
  color: white;
}

/* ── Contact ── */
#contact {
  background: rgba(253, 248, 243, 0.82);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner p {
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--rose);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: center;
}

/* ── Latest / Blog ── */
#latest {
  background: rgba(253, 248, 243, 0.88);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.latest-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.latest-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.latest-card-body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.latest-date {
  font-size: 0.78rem;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.latest-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: normal;
  line-height: 1.3;
}

.latest-content {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}

.latest-content p { margin-bottom: 0.6rem; }
.latest-content p:last-child { margin-bottom: 0; }

/* ── Footer ── */
footer {
  background: var(--text-dark);
  color: var(--text-light);
  text-align: center;
  padding: 2.5rem 2rem;
}

footer .footer-name {
  font-size: 1.3rem;
  color: var(--blush);
  margin-bottom: 0.3rem;
}

footer p {
  font-size: 0.85rem;
  line-height: 1.6;
}

footer a {
  color: var(--lavender);
  text-decoration: none;
}

.footer-cross {
  font-size: 1.4rem;
  margin: 0.8rem 0;
  color: var(--blush);
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 3rem 1.5rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait {
    max-width: 300px;
    margin: 0 auto;
  }

  nav {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  section {
    padding: 3.5rem 1.2rem;
  }

  .hero-text {
    padding: 2.5rem 1.2rem;
  }
}
