/*
Theme Name: Frankie Sellars
Author: Faith Hinton
Version: 1.0.8
*/
/* RESET */
:root {
  /* Core palette */
  --blackberry-cream: #5A2F4C;
  --thistle: #dfd0ec;
  --snow: #fefcff;
  --spicy-paprika: #c45522;
  --dark-spruce: #2f3f29;
}

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

body {
  font-family: 'Lora', serif;
  background: var(--blackberry-cream);
  color: #111111;
  line-height: 1.7;
}

.section {
  margin: 3rem 0;
  padding: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  border-radius: 10px;
  background: #ffffff;
  padding: 1.5rem;
  transition: 0.2s ease;
}

.media-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.teaching-list li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* NAVBAR */
.navbar {
  background: var(--dark-spruce);
  color: white;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  border-bottom: 3px solid transparent;
  transition: 0.25s ease;
}

.nav-links a:hover {
  border-bottom-color: var(--spicy-paprika);
  border-top-color: var(--spicy-paprika);
  color: var(--spicy-paprika);
}

.nav-links a.active {
  border-bottom-color: var(--thistle);
  border-top-color: var(--thistle);
  color: var(--thistle);
  font-weight: 700;
}

/* PAGES */
.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* HEADING BANNER  */
.banner {
  display: flex;
  justify-content: center;
  margin: 0rem;
}

.banner h1 {
  font-family: "Italiana", serif;
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  padding: 1rem 2rem;
  margin-bottom: 0rem;
  background: var(--thistle);
  color: var(--blackberry-cream);
  /* Layout */
  width: 100%;
  display: block;
  box-shadow: 40px;
}

.page h2 {
  font-family: 'Playfair Display', serif;

  background: var(--spicy-paprika);
  color: var(--blackberry-cream);
  border-bottom: 4px solid var(--blackberry-cream);

  color: #ffffff;
  padding: 0.9rem 1.5rem;
  margin: -2.5rem -2.5rem 1.5rem;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

.hero {
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.hero-overlay a {
  pointer-events: auto;
}


/* GRID */
.grid-3 h2 {
  font-family: 'Playfair Display', serif;
  background: var(--spicy-paprika);
  color: #ffffff;
  padding: 5rem 1.5rem;
  margin: -2.5rem -2.5rem 1.5rem;
  font-size: 2.2rem;
  font-weight: 500;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

.grid-3 p {
  text-align: center;
}

.page p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* LOGO IMAGE */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* PAGE SPLIT LAYOUT */
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: stretch;
}

.left-split {
  height: 100%;
}

.right-split {
  height: 100%;
}

.right-split div {
  border-radius: 0% 2% 2% 0%;
}

.left-split img {
  border-radius: 10px 0px 0px 10px;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}


/* TOP IMAGE */
.header img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 0rem;
}

/* == CONTENT BOX SPECS == */
.content-box {
  background: #ffffff;
  border-radius: 10px;
  bottom: 10%;
  padding: 2.5rem;
  box-shadow: none;
  transition: 0.2s ease;
}

/* FOOTER */
.footer {
  background: var(--dark-spruce);
  color: white;
  padding: 3rem 2rem;
}

.footer-container-center {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
  opacity: 0.65;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--spicy-paprika);
  transform: translateY(-3px);
}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: #ccc;
  font-size: 1.5rem;
  transition: 0.2s ease-in-out;
  padding: 0.3rem;
  border-radius: 8px;
  border: 2px solid transparent;
}

.footer-social a:hover {
  color: var(--thistle);
  transform: translateY(-3px);
}

/* COPYRIGHT */
.footer-copy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* BLOG INTRO */
.blog-intro {
  text-align: center;
}

.blog-description {
  max-width: 80ch;
  text-align: center;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.75);
}

/* SUBSTACK */
.substack-button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blackberry-cream);
  background: transparent;
  border: 2px solid var(--thistle);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.front-button {
  display: inline-block;
  padding: 2rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--thistle);
  background: transparent;
  border: 2px solid var(--thistle);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.substack-button:hover {
  background: var(--thistle);
  color: var(--blackberry-cream);
  transform: translateY(-2px);
}

.substack-cta {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
}

.substack-cta .contact-submit {
  font-size: 1.15rem;
  padding: 1.1rem 2rem;
}

.latest-post h4 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.latest-post a {
  font-weight: 700;
  color: var(--dark-spruce);
  text-decoration: none;
}

.latest-post a:hover {
  color: var(--spicy-paprika);
  text-decoration: underline;
}

.latest-post p {
  margin: 0;
  font-size: 1.05rem;
  color: #333;
}

.recent-posts {
  text-align: left;
  margin-top: 3rem;
}

.cta-primary {
  display: inline-block;
  padding: 0.5rem 7.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;

  background: var(--thistle);            /* light lavender */
  color: var(--blackberry-cream);        /* deep purple */

  border-radius: 999px;
  text-decoration: none;
  border: 3px solid var(--thistle);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cta-front {
  display: inline-block;
  padding: 0.8rem 5rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  transform: translateY(6px);

  background: rgba(223, 208, 236, 0.35); /* semi-transparent thistle */
  color: #ffffff;

  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  text-decoration: none;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.cta-front:hover,
.cta-front:focus,
.cta-primary:hover,
.cta-primary:focus {
  background: var(--spicy-paprika);      /* warm contrast */
  border-color: var(--spicy-paprika);
  color: #ffffff;
  transform: translateY(-3px);
}

a,
button,
.card,
.content-box {
  transition: 
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/*  MOBILE NAVIGATION  */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links {
  z-index: 9999;
}


@media (max-width: 768px) {

  /* mobile nav */
  .nav-toggle {
    display: block;
    color: #eff1e8;
  }

  .nav-links {
    gap: 0%;
    position: absolute;
    top: 100%; 
    right: 0;
    width: 100%;
    background: #fefcfd;
    flex-direction: column;
    z-index: 9999;

    transform: translateY(-2px);
    opacity: 0;
    pointer-events: none;

    transition:
      transform 0.5s ease,
      opacity 0.5s ease;
  }

  .nav-links.nav-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* REMOVE padding from li */
  .nav-links li {
    padding: 0;
  }

  /* MAKE LINKS FULL-WIDTH BUTTONS */
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    color: var(--dark-spruce);
    font-size: 1.1rem;
    text-align: center;
    border-radius: 0;
    border-bottom: 1px solid rgba(29, 75, 50, 0.15);
  }

  .nav-links a:hover {
    background: rgba(196, 85, 34, 0.15);
    color: var(--spicy-paprika);
  }
  .content-box h2 {
    font-size: 1.5rem;
    padding: 0.8rem 1.2rem;
  }

  /* ACTIVE TAB = FULL-WIDTH HIGHLIGHT */
  .nav-links a.active {
    background: rgba(93, 45, 70, 0.12); /* blackberry tint */
    color: var(--dark-spruce);
    font-weight: 700;
  }

  .logo {
    max-width: 65%;
    flex-shrink: 1;
  }

  .logo img {
    max-width: 100%;
    height: auto;
  }

  /* mobile about page */
  .content-split {
    grid-template-columns: 1fr; /* stack */
  }

  .left-split img {
    border-radius: 10px 10px 0 0;
    max-height: 350px;
    object-fit: cover;
    top: 0;
    vertical-align: top;
  }

  .right-split div {
    border-radius: 0 0 10px 10px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-3 h2{
    padding: 2rem 1.2rem;
  }

  .grid-2 .content-box {
    padding: 1.8rem;
    text-align: left;
  }
	
	
  .hero {
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
	
  .cta-front {
    padding: 0.8rem 2.2rem;
    font-size: 1.05rem;
  }
  
}


