/*
Theme Name: Henry Ford's Lost Car
Theme URI: https://fordlostcar.com
Author: WebsiteCare.Direct
Description: A custom theme for the documentary film.
Version: 1.0
Text Domain: ford-doc
*/

:root {
  /* 1940s Industrial / Botanical Palette */
  --bg-color: #f6f4ee;
  --text-color: #2a2c2b;
  --primary-color: #1a3c34;
  --accent-color: #cda34f;
  --font-head: "Oswald", sans-serif;
  --font-body: "Merriweather", serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  overflow-wrap: break-word;
  hyphens: auto;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.lead-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 16px 36px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  border: 2px solid var(--accent-color);
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- HEADER --- */
header.site-header {
  background-color: var(--primary-color);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav.main-nav a {
  text-decoration: none;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

nav.main-nav a:hover {
  color: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 5%;
  /* Ensure your image is uploaded to your theme folder for this to work */
  background:
    linear-gradient(rgba(26, 60, 52, 0.85), rgba(15, 30, 25, 0.95)),
    url("fords-cars.jpg") center 70% / cover;
  color: #fff;
  border-bottom: 6px solid var(--accent-color);
}

.hero h1 {
  color: var(--accent-color);
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
  max-width: 1000px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  color: #e5e5e5;
}

/* --- THE STORY (SPLIT LAYOUT) --- */
.story-section {
  padding: 6rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.story-header {
  text-align: center;
  margin-bottom: 4rem;
}

.story-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.story-header p {
  font-size: 1.2rem;
  font-style: italic;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.story-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.story-text {
  flex: 1;
}

.story-image {
  flex: 1;
  position: relative;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: sepia(30%) contrast(110%) brightness(0.9);
  box-shadow: 15px 15px 0px var(--accent-color);
}

.image-caption {
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1.5rem;
  color: #666;
  text-align: right;
}

/* --- THE INVESTIGATION (DARK CINEMATIC SECTION) --- */
.investigation-section {
  background-color: var(--primary-color);
  color: #fff;
  padding: 6rem 5%;
  text-align: center;
  border-top: 6px solid var(--accent-color);
  border-bottom: 6px solid var(--accent-color);
}

.investigation-section h2 {
  color: var(--accent-color);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.investigation-section p {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  color: #f6f4ee;
  font-size: 1.2rem;
}

.video-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border: 2px solid var(--accent-color);
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- KICKSTARTER / FUNDRAISING SECTION --- */
.fundraiser-section {
  padding: 6rem 5%;
  background-color: #fff;
}

.fundraiser-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--bg-color);
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0ddd3;
}

.fundraiser-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.progress-bar-container {
  width: 100%;
  background-color: #e0ddd3;
  height: 24px;
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color);
  height: 100%;
  width: 35%;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 3rem;
  border-top: 1px solid #e0ddd3;
  border-bottom: 1px solid #e0ddd3;
  padding: 1.5rem 0;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-item span {
  font-size: 1rem;
  color: #666;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- FOOTER --- */
footer.site-footer {
  background-color: #111;
  color: #888;
  text-align: center;
  padding: 3rem 5%;
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: 1px;
}

footer.site-footer span {
  color: var(--accent-color);
}

/* --- RESPONSIVE DESIGN ADJUSTMENTS --- */
@media (max-width: 992px) {
  .story-grid {
    flex-direction: column;
  }
  .story-image {
    order: -1;
    width: 100%;
    margin-bottom: 2rem;
  }
  .story-image img {
    box-shadow: 10px 10px 0px var(--accent-color);
  }
}

@media (max-width: 768px) {
  header.site-header {
    position: relative;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  nav.main-nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav.main-nav a {
    font-size: 0.85rem;
  }
  .hero {
    height: auto;
    min-height: 80vh;
    padding: 4rem 1rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .story-section,
  .investigation-section,
  .fundraiser-section {
    padding: 3rem 1.5rem;
  }
  .story-header {
    margin-bottom: 2.5rem;
  }
  .fundraiser-card {
    padding: 2rem 1rem;
  }
  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .btn {
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}
