/*
  Stylesheet for Kranium Project Managers landing page.

  The design uses a dark blue and teal colour palette to evoke
  professionalism and trust, with bright accent colours for calls to
  action. The layout is responsive and accessible, utilising flexible
  grids, clear typography and focus styles.
*/

:root {
  --primary-color: #0a2342; /* deep navy for header & footer */
  --secondary-color: #0095d5; /* blue accent matching the logo */
  --accent-color: #f5a623; /* warm orange accent for highlights */
  --light-bg: #f7f9fc; /* light background for cards */
  --dark-text: #222222;
  --max-width: 1200px;
}

/* Reset and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: #ffffff;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  color: var(--primary-color);
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Layout helpers */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: #ffffff;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Logo image inside header */
.logo-image {
  height: 48px;
  width: auto;
  display: block;
}

/* Navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-list li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
  opacity: 0.75;
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background-color: #ffffff;
  height: 3px;
  width: 24px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: relative;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle.active .hamburger {
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::before {
  transform: rotate(-90deg) translate(-7px, 0);
}

.nav-toggle.active .hamburger::after {
  opacity: 0;
}

/* Hero section */
.hero {
  position: relative;
  height: 75vh;
  min-height: 480px;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

/* Blog-specific hero overrides: lighter overlay for readability */
.blog-hero {
  background-image: url('images/hero.png');
  position: relative;
}

.blog-hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Blog section styling */
.blog-section {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.blog-card p {
  line-height: 1.6;
  color: var(--text-color);
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 35, 66, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0e8f0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.primary-btn {
  background-color: var(--secondary-color);
  color: #ffffff;
  border: 2px solid var(--secondary-color);
}

.primary-btn:hover,
.primary-btn:focus {
  background-color: #00a58e;
  border-color: #00a58e;
}

.secondary-btn {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.secondary-btn:hover,
.secondary-btn:focus {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Services */
.services-section .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* About section */
.about-section {
  background-color: #ffffff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.team-card .team-icon {
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.team-card .team-role {
  font-size: 0.95rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.team-card p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Testimonials section */
.testimonials-section {
  background-color: var(--light-bg);
}

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

.testimonial-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--dark-text);
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* CTA row within testimonials */
.cta-row {
  margin-top: 2rem;
  text-align: center;
}

.service-card {
  flex: 1 1 30%;
  background-color: var(--light-bg);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .icon-wrapper {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

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

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

/* Industries */
.industries-section {
  background-color: var(--light-bg);
}

.industries-section .industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.industry-item {
  text-align: center;
}

.industry-icon {
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.industry-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Why Choose Us */
.whyus-section {
  background-color: #ffffff;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.why-text {
  flex: 1 1 50%;
}

.why-text .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-text .checklist li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 1rem;
}

.why-text .checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background-color: var(--secondary-color);
}

.why-image {
  flex: 1 1 45%;
}

.why-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.case-card {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.case-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.case-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.case-card .read-more {
  align-self: flex-start;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-card .read-more:hover,
.case-card .read-more:focus {
  color: var(--accent-color);
}

/* Contact */
.contact-section {
  background-color: var(--light-bg);
}

.contact-info {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(0, 191, 166, 0.3);
}

.form-group.full-width {
  flex: 1 1 100%;
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.social-links a {
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .service-card {
    flex: 1 1 45%;
  }
  .why-grid {
    flex-direction: column;
  }
  .why-image, .why-text {
    flex: 1 1 100%;
  }
}

@media (max-width: 700px) {
  .nav-list {
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    display: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .nav-list.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
    padding: 0.25rem;
  }
  .service-card {
    flex: 1 1 100%;
  }
}