/*
 * Custom Stylesheet for Ritmul Naturii 2 (Romanian news site about nutrition, supplements and exercise)
 *
 * The layout uses a dark navy primary colour, bright green secondary accents and warm orange highlights.
 * Headings are set in the elegant IBM Plex Serif font while body text uses the modern Open Sans.
 * The design embraces generous white space and clear typographic hierarchy to convey a magazine-like feel.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;600&family=Open+Sans:wght@400;600&display=swap');

/* Colour palette */
:root {
  --primary-color: #1e3a5f;      /* deep navy */
  --secondary-color: #36b37e;    /* fresh green */
  --accent-color: #f2994a;       /* warm orange */
  --light-bg: #f9fafb;           /* very light background */
  --dark-text: #1f2937;          /* dark slate for text */
  --muted-text: #6b7280;         /* grey for secondary text */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

header h1 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.8rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Hero section */
.hero {
  background-color: var(--primary-color);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.hero .btn {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.hero .btn:hover {
  background-color: var(--accent-color);
}

/* Section container */
.section {
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h3 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--primary-color);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.news-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.news-item h4 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.news-item .date {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 8px;
}

.news-item p {
  flex: 1;
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--dark-text);
}

.news-item a {
  align-self: flex-start;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.news-item a:hover {
  border-color: var(--secondary-color);
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.program {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  border-top: 4px solid var(--secondary-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.program h4 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.program .price {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.program p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.program a {
  align-self: flex-start;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.program a:hover {
  border-color: var(--secondary-color);
}

/* About section */
.about {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about h4 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.about p {
  font-size: 0.95rem;
  color: var(--dark-text);
}

/* Contact section */
.contact {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 20px;
  border-radius: 8px;
}

.contact h4 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.contact-details {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-details p {
  margin-bottom: 6px;
}

.contact form {
  display: grid;
  gap: 12px;
}

.contact input,
.contact textarea {
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.contact input[type="text"],
.contact input[type="email"] {
  width: 100%;
}

.contact textarea {
  resize: vertical;
  min-height: 120px;
}

.contact .consent {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.contact .consent input {
  margin-right: 8px;
}

.contact button {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 50px 20px;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

footer h5 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

footer ul {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: var(--accent-color);
}

footer .newsletter input[type="email"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

footer .newsletter button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

footer .newsletter button:hover {
  background-color: var(--accent-color);
}

footer .copy {
  text-align: center;
  margin-top: 30px;
  font-size: 0.8rem;
  color: #d1d5db;
}

/* Article page styles */
.article-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.article-header h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.2rem;
}

.article-content {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.article-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--dark-text);
}

.article-content h4 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Legal pages styles */
.legal-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content h2 {
  font-family: 'IBM Plex Serif', serif;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2rem;
}

.legal-content h3 {
  font-family: 'IBM Plex Serif', serif;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 15px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
}