/* ==========  ROOT & RESET  ========== */
:root {
  --leaf: #980002;
  --red: #C8102E;
  --white: #fff;
  --gray: #f7f7f7;
  --dark: #222;
  --font: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gray);
  color: var(--dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

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

/* ==========  NAVIGATION  ========== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #C0C0C0 0%, #36454F 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
}

.nav-link {
  font-weight: 600;
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--leaf);
  color: var(--white);
}

/* ==========  INDEX PAGE  ========== */
.key-art {
  margin-top: 4rem; /* nav height */
  text-align: center;
  padding: 2rem 1rem;
}

.key-art-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.logline {
  padding: 3rem 1rem;
  text-align: center;
}

.logline-text {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--leaf);
}

.synopsis,
.cast-crew,
.social,
.about-writer,
.bio,
.philosophy,
.previous-works,
.fun-facts,
.cta-writer,
.contact-hero,
.contact-form,
.support,
.find-us,
.social-contact {
  padding: 3rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--red);
  text-align: center;
}

p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.headshot,
.writer-portrait {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card h3,
.writer-name {
  margin: 1rem 0 0.25rem;
  font-size: 1.25rem;
  color: var(--dark);
}

.role {
  color: var(--leaf);
  margin-bottom: 1rem;
}

/* ---------- ABOUT WRITER ---------- */
.writer-hero {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem 1rem;
}

.writer-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.writer-tagline {
  font-style: italic;
  color: var(--leaf);
  margin-top: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--leaf);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.works-list,
.facts-list {
  list-style: none;
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.works-list li,
.facts-list li {
  margin-bottom: 0.75rem;
}

/* ---------- CONTACT / SUPPORT ---------- */
.contact-hero,
.support,
.find-us,
.social-contact {
  text-align: center;
}

.support-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-form label {
  font-weight: 600;
  color: var(--dark);
}

.support-form input,
.support-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.btn-submit,
.btn-support {
  align-self: center;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover,
.btn-support:hover {
  background: #a00d26;
}

.map-embed {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 8px;
  margin-top: 2rem;
}

/* ---------- SOCIAL LINKS ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  font-size: 1.25rem;
  color: var(--leaf);
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--red);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  color: var(--dark);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto; /* sticks to bottom */
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .nav-link {
    padding: 0.5rem 1.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  .key-art-img {
    max-height: 60vh;
  }
}
/* ========== CONTACT-FORM STYLES (matches your palette) ========== */
.contact-form {
  padding: 3rem 1rem;
  background: var(--gray);
}

.contact-form .container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--red);
}

/* the form itself */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.support-form label {
  font-weight: 600;
  color: var(--dark);
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--leaf);
}

/* the button */
.btn-submit {
  align-self: center;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #a00d26;
}

/* tiny success message (optional) */
#formStatus {
  margin-top: 1rem;
  color: var(--leaf);
  font-weight: 600;
  display: none;
}