/*
 Theme Name: Faith Hinton Portfolio Website
 Version: 1.0.0
*/


* {
  box-sizing: border-box;
}

/* Layout */
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  font-family: system-ui, sans-serif;
  background: #f6efe6;
  color: #111;
}

/* Sidebar */
.sidebar {
  background: #c3c44a; /* olive */
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sidebar h1 {
  font-size: 50px;
}

.name {
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  color: #fff7e8;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item {
  text-decoration: none;
  padding: 0.75rem 1rem;
  background: #f6efe6;
  color: #111;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.menu-item.active {
  background: #e77f45; /* orange highlight */
  color: white;
}

.menu-item:hover {
  background: #dfd0ec;
  color: white;
}

/* Main Content */
.content {
  padding: 2.5rem;
  overflow-y: auto;
}

/* About page layout */
.about {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Photo card */
.about__photo img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
}

/* Text box */
.about__text {
  background: #dfd0ec;
  padding: 2rem;
  border-radius: 16px;
}

.about__text h2 {
  margin-top: 0;
  letter-spacing: 0.12em;
}

.about__text p {
  line-height: 1.6;
}

/* Quick info grid */
.about__quick {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Buttons */
.about__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: #9ec7bd;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn:hover {
  background: #f59ac2;
}

.btn--ghost {
  background: transparent;
  border: 2px solid #111;
}

.btn--ghost:hover {
  background: #111;
  color: #f6efe6;
}

/* =========================
   HOME / INDEX PAGE
========================= */

body.home {
  margin: 10px;
  min-height: 100vh;
  background: #c3c44a;
  color: #111;
  font-family: system-ui, sans-serif;
  grid-template-rows: auto 1fr;

  display: flex;
  justify-content: center;
  
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

body.home.is-loaded {
  opacity: 1;
  transform: translateY(0);
}
.home-wrap {
  width: 100%;
  max-width: 1400px;
  padding: 4rem 2.5rem 2.5rem;
}

.topnav {
  padding: 2rem 0rem 1.5rem;
}

.topnav__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.topnav__inner--overlay {
  width: 100%;
  max-width: 1100px;
  padding: 0 1rem;
}

.topnav__item {
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  background: #f19ac7;
  color: #111;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  box-shadow: 5px 5px 0px rgb(131, 74, 137);

}

.topnav__item:hover {
  background: #c3c44a;
  color: white;
}

.hero {
  position: relative;
  padding: 0 rem;
}

.hero__art {
  height: calc(100vh - 170px);
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  border: none;

  opacity: 0;
  transform: scale(0.985);
  transition: opacity 900ms ease, transform 900ms ease;
  transition-delay: 120ms;
}

body.home.is-loaded .hero__art {
  opacity: 1;
  transform: scale(1);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* keeps correct ratio */
  display: block;
}


/* Center name */
.hero__name {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem; /* space between name + buttons */
  text-align: center;
  place-items: center;
  pointer-events: auto;
}

.hero__name h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.12em;
  color: #c6c62c;
  text-align: center;
}

h1 {
  font-family: "Italiana", sans-serif;
  font-weight: 1000;
  font-style: normal;
  margin-bottom: 1.5rem;
}

a{
  text-decoration: none;
}

/* Filters */
#filters {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}


#filters button {
  padding: 0.9rem 2.5rem;   
  border: none;
  background: #9ec7bd;
  color: #111;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  cursor: pointer;
  text-transform: uppercase;

  min-width: 180px;
  text-align: center;
}

#filters button.active {
  background: #f59ac2;
}

#filters button:hover {
  background: #dfd0ec;
  color: white;
}

.subfilters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.subfilters button {
  padding: 0.6rem 2rem;
  border: none;
  background: #dfd0ec;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-transform: uppercase;
}

.subfilters button:hover {
  background: #f59ac2;
}

.subfilters button.active {
  background: #9ec7bd;
}

/* Gallery Grid */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  transition: opacity 0.7s ease;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  height: 100%;   /* fill grid cell */
}


.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item h3 {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.2;
  min-height: 2.4em;
}


.meta {
  font-size: 0.75rem;
  color: #666;
  text-transform: capitalize;
}

/* Project Page */
.back {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #555;
}

#project-gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

#project-gallery img {
  width: 100%;
  border-radius: 14px;
}

.section-title {
  background: #f59ac2;
  padding: 1rem;
  text-align: center;
  letter-spacing: 0.25em;
  margin-bottom: 2rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: #dfd0ec;
  padding: 2rem;
}

.project-row img {
  width: 100%;
  border-radius: 12px;
}

.project-row h3 {
  margin-top: 0;
  letter-spacing: 0.15em;
}

.project-row a {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: bold;
  color: #111;
}

.hidden {
  display: none;
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 0.5px;
}

.thumb--collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.thumb__big {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.thumb__small--top {
  grid-column: 2;
  grid-row: 1;
}

.thumb__small--bottom {
  grid-column: 2;
  grid-row: 2;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}


/* Lightbox modal */
.lightbox.hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 3rem));
  max-height: calc(100vh - 3rem);
  margin: 1.5rem auto;
  background: #f6efe6;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1rem;
  overflow: auto;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__header h2 {
  margin: 0.5rem 0 0.25rem;
}

.lightbox__header p {
  margin: 0 0 1rem;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.lightbox__body {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__body img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.lightbox__nav {
  border: none;
  background: #dfd0ec;
  cursor: pointer;
  height: 44px;
  border-radius: 10px;
  font-size: 1.6rem;
}

.lightbox__nav:hover {
  background: #f59ac2;
}

.lightbox__thumbs {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
}

.lightbox__thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox__thumbs img.active {
  outline: 3px solid #e47f47;
  opacity: 1;
}

#lightboxMedia img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff6e;
}

#lightboxMedia iframe {
  width: 100%;
  height: min(65vh, 520px);
  border-radius: 14px;
  background: #000;
}

.contact-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  font-family: inherit;
}

.contact-form button {
  padding: 0.6rem;
  cursor: pointer;
}

/* Center the form on the page */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0rem 0rem;
}

/* Purple background card */
.contact-form {
  background: #dfd0ec;   /* purple */
  padding: 2rem 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 1300px;

  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Labels */
.contact-form label {
  color: #6b4ba3;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  font-family: inherit;
}

/* Button */
.contact-form button {
  margin-top: 0.5rem;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: #6b4ba3;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #c6c62c;
}


/* Mobile */
@media (max-width: 1000px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    height: auto;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
  }

  .menu-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .sidebar h1 {
    margin-top: 0%;
  }

  .menu {
    flex-direction: row;
    gap: 0.5rem;
  }

  .name {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .topnav__item {
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .topnav__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    align-items: center;
    height: 70vh;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__photo img {
    max-height: 420px;
  }
}


