/*
 * Stylesheet for the Overcoming Chronicles landing page.
 *
 * This file defines a simple, modern layout inspired by the
 * existing site aesthetic provided by the user. The color
 * palette uses dark blues and a bright accent to evoke calm
 * determination. The layout is responsive, adapting to
 * smaller screens by stacking elements vertically.
 */

:root {
  --primary-color: #002a5c; /* deep navy for dark backgrounds */
  --secondary-color: #e5eef7; /* soft light blue for contrast */
  --accent-color: #00bfff; /* bright turquoise accent */
  --text-color: #ffffff; /* white text on dark backgrounds */
  --body-text-color: #0a1a2c; /* dark text for light sections */
}

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

body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: var(--body-text-color);
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('images/hero-image.png');
  background-size: cover;
  background-position: center;
  height: 80vh;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 42, 92, 0.7); /* dark overlay for readability */
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: relative;
  z-index: 1;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
  color: var(--accent-color);
}

.navbar .cta-button {
  padding: 10px 20px;
  border: 2px solid var(--accent-color);
  border-radius: 25px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .cta-button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: auto;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-content .cta-button {
  padding: 12px 30px;
  border: 2px solid var(--accent-color);
  border-radius: 30px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-content .cta-button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Generic container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* About section */
.about {
  background-color: var(--secondary-color);
  padding: 80px 0;
}

.about .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.about-text {
  flex: 1 1 50%;
  padding: 20px;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.8;
}

.about-image {
  flex: 1 1 50%;
  padding: 20px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

/* Topics section */
.topics {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 80px 0;
}

.topics h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.topic-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.topic-cards .card {
  flex: 1 1 30%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.topic-cards .card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.topic-cards .card ul {
  list-style: disc inside;
  padding-left: 1rem;
}

.topic-cards .card ul li {
  margin-bottom: 0.5rem;
}

/* Contact section */
.contact {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 80px 0;
}

.contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact .cta-button {
  padding: 12px 30px;
  border: 2px solid var(--accent-color);
  border-radius: 30px;
  color: var(--primary-color);
  background-color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact .cta-button:hover {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 40px 0;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer .social-links a {
  color: var(--accent-color);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Visually hidden text helper for screen reader accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer .social-links a:hover {
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about .container,
  .topic-cards {
    flex-direction: column;
  }

  .topic-cards .card {
    flex: 1 1 100%;
  }
}