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

/* CSS Variables for consistent theming */
:root {
  --color-primary: #2a9d8f; /* teal for brand */
  --color-secondary: #264653; /* dark teal for accents */
  --color-accent: #e9c46a; /* warm gold for highlights */
  --color-highlight: #f4a261; /* coral for buttons */
  --color-light: #f9f9f9; /* off‑white background */
  --color-dark: #333333; /* dark text */
  --header-height: 70px;
}

/* Reset margins and paddings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.logo span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav li {
  position: relative;
}

nav a {
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover, nav a:focus {
  background-color: var(--color-primary);
  color: #ffffff;
}

main {
  margin-top: calc(var(--header-height) + 1rem);
  padding: 0 1rem;
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 70, 83, 0.65);
  /* dark overlay for readability */
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--color-highlight);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

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

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card img, .feature-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  fill: var(--color-primary);
}

/* Page banner images for secondary pages */
.page-image {
  width: 100%;
  max-height: 350px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
  object-fit: cover;
}

.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.feature-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* CTA Section */
.cta {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

/* Footer */
footer {
  background-color: #fafafa;
  padding: 2rem 1rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #666666;
}

.footer-container ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-container a {
  color: var(--color-secondary);
}

.footnotes {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #777777;
}

.footnotes a {
  color: var(--color-primary);
}

/* About page styling */
.about-section {
  max-width: 1000px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.about-section h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: var(--color-primary);
}

.about-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Blog page */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.blog-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.blog-card p {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 1rem;
}

.blog-card .read-more {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-block;
  margin-top: 0.5rem;
}

.blog-card .read-more:hover {
  text-decoration: underline;
}

/* Article page */
.article-container {
  max-width: 800px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-container h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.article-container h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  color: var(--color-primary);
}

.article-container p {
  margin: 0.6rem 0;
  color: #444444;
}

.article-container ul {
  margin-left: 1.5rem;
  list-style: disc;
  margin-top: 0.5rem;
}

/* Tools page */
.tool-section {
  max-width: 900px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tool-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.tool-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.tool-card label {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
}

.tool-card input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.tool-card button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.tool-card button:hover {
  background-color: var(--color-secondary);
}

.tool-result {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* Contact page */
.contact-section {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.contact-section label {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
}

.contact-section input, .contact-section textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

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

.contact-section button {
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

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

.success-message {
  margin-top: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
}

/* Policy and legal pages */
.legal-section {
  max-width: 900px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.legal-section h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.legal-section p {
  margin: 0.6rem 0;
  color: #444444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta h2 {
    font-size: 1.6rem;
  }
}