/*
 * PathFusion Consulting Website Stylesheet
 *
 * This stylesheet defines the look and feel of the PathFusion Consulting
 * website. It makes heavy use of CSS variables to enable easy
 * theming and ensures consistency across pages. The design favours
 * a clean, modern layout with plenty of white space and subtle
 * interactions. Animations are handled via CSS classes which are
 * toggled through JavaScript when elements enter the viewport.
 */

/* CSS Reset & Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #054165;      /* deep blue used for headings and accents */
  --secondary-color: #007a7c;    /* teal used for highlights */
  --accent-color: #f4f7fa;       /* very light grey for page backgrounds */
  --light-color: #ffffff;        /* white for cards and foreground elements */
  --dark-color: #1a1a1a;         /* dark grey for footer and text contrasts */
  --text-color: #333333;         /* base text colour */
  --muted-color: #666666;        /* muted text colour */
  --border-radius: 8px;          /* base radius for cards and buttons */
  --transition-duration: 0.3s;   /* default transition timing */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-duration);
}

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

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

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

.navbar nav {
  display: flex;
  align-items: center;
}

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

.navbar nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-weight: 600;
  transition: background-color var(--transition-duration), color var(--transition-duration);
}

.navbar nav ul li a:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.navbar nav ul li a.active {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* Hamburger for mobile navigation */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar nav ul {
    position: absolute;
    top: 100%;
    right: 1rem;
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    width: 200px;
    padding: 0.5rem 0;
    display: none;
  }
  .navbar nav ul.open {
    display: flex;
  }
  .navbar nav ul li a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero Section */
.hero {
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--light-color);
  text-align: center;
  padding: 0 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--light-color);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e6eef5;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-duration), color var(--transition-duration), transform var(--transition-duration);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

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

/* Section Containers */
section {
  padding: 4rem 1rem;
}

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

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

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.service-card i {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

/* Approach List */
.approach-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.approach-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 0.2rem;
}

.approach-item h4 {
  margin: 0 0 0.25rem 0;
  color: var(--primary-color);
}

.approach-item p {
  color: var(--muted-color);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Industries List */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
}

.industries-list li {
  background-color: var(--light-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Blog List */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card .blog-content {
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.blog-card .date {
  font-size: 0.85rem;
  color: var(--muted-color);
  margin-bottom: 0.75rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-bottom: 1rem;
}

.blog-card a.read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 600;
  transition: color var(--transition-duration);
}

.blog-card a.read-more:hover {
  color: var(--primary-color);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Post Layout */
.post-header {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.post-header img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.post-header .date {
  font-size: 0.85rem;
  color: var(--muted-color);
}

.post-content {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  font-size: 1rem;
}

.post-content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

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

.post-content li {
  margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 3rem;
}

.contact-info,
.contact-form {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex: 1 1 320px;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

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

.contact-form button {
  align-self: flex-start;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-duration);
}

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #dddddd;
  transition: color var(--transition-duration);
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #aaaaaa;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
