/*
 * Yarra Consult website stylesheet
 *
 * This file defines the colour palette, typography and responsive
 * layout for the Yarra Consult website. Sections are clearly
 * delineated and use CSS custom properties for easy theme tweaks.
 */

/* Root variables for colours and sizing */
:root {
  --color-primary: #002fa7; /* dark blue reminiscent of the Yarra palette */
  --color-secondary: #0055b8; /* mid blue */
  --color-accent: #00a2e1; /* light accent blue */
  --color-background: #ffffff;
  --color-muted: #f5f7fa;
  --color-text: #0a2342; /* deep navy for text */
  --color-light-text: #5c6e8e;
  --max-width: 1100px;
  --nav-height: 64px;
  --transition-speed: 0.3s;
}

/* Reset some basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

/* Container helper */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(0, 47, 167, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.logo {
  /* display: flex; */
  /* margin-top: 10px; */
  /* margin-bottom: 10px; */
  /* height: 3rem; */
  width: 7.5rem;
}

.logo-icon {
  height: 1rem;
  /* margin-right: 0.5rem; */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #ffffff;
  font-weight: 500;
  transition: color var(--transition-speed);
}

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

/* Mobile nav toggle button (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 47, 167, 0.6),
    rgba(0, 47, 167, 0.8)
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

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

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

/* About section */
.about p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Vision & mission section */
.vision-mission {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.vision-mission div {
  flex: 1 1 300px;
}

.vision-mission h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.approach-list {
  list-style: none;
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
}

.approach-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-light-text);
}

.approach-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1;
  top: 0;
}

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

.service-card {
  background-color: var(--color-muted);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.service-card h3 {
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-light-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Initiative section */
.initiative p {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-light-text);
}

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

.module-card {
  background-color: var(--color-muted);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.module-card h3 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.module-card p {
  color: var(--color-light-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Table styling */
.gap-table-wrapper {
  overflow-x: auto;
}

.gap-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 900px;
}

.gap-table caption {
  caption-side: top;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.gap-table th,
.gap-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.4;
}

.gap-table th {
  background-color: var(--color-secondary);
  color: #ffffff;
  font-weight: 600;
}

.gap-table tbody tr:nth-child(even) {
  background-color: var(--color-muted);
}

/* Loretta/Team section */
.loretta-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.loretta-image {
  flex: 0 0 200px;
}

.loretta-bio {
  flex: 1 1 300px;
}

.loretta-bio h3 {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.loretta-bio p {
  color: var(--color-light-text);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.linkedin-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Contact section */
.contact p {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-light-text);
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-info li {
  font-size: 1rem;
  color: var(--color-text);
}

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

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    background-color: rgba(0, 47, 167, 0.98);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition-speed);
    height: calc(100vh - var(--nav-height));
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links li {
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .vision-mission {
    flex-direction: column;
  }

  .loretta-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .loretta-image {
    margin-bottom: 1rem;
  }
}