/*
 * Stylesheet for Neo Redlabs website
 *
 * The colour palette and layout are kept simple so that you can easily
 * customise the look and feel. To change the overall appearance you can
 * modify the variables defined in the :root selector below. If you wish
 * to adjust spacing or typography, search for the relevant rules and
 * tweak their values.
 */

/* Root variables allow centralised control over colours and measurements */
:root {
  --primary-color: #1e88e5;   /* main brand colour (blue) */
  --secondary-color: #e85d75; /* accent colour (coral) */
  --dark-color: #0a192f;      /* dark navy used for headers and footers */
  --light-color: #f5f9ff;     /* light background tone */
  --text-color: #333333;      /* default text colour */
  --max-width: 1200px;        /* maximum width for page content */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

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

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

/* Navigation styling */
header {
  background-color: var(--dark-color);
  color: #fff;
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

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

nav ul li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

/* Generic button styling */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  max-width: 800px;
}

.hero .content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Generic section styling */
section {
  padding: 4rem 1rem;
}

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

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* About section specific */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-container .text {
  flex: 1;
  min-width: 280px;
}

.about-container .image {
  flex: 1;
  min-width: 280px;
}

.about-container .image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  flex: 1 1 260px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-4px);
}

.value-item h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* Expertise section styling */
.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.expertise-item {
  flex: 1 1 300px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expertise-item:hover {
  transform: translateY(-4px);
}

.expertise-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.expertise-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise-item h4 {
  margin: 1rem 1rem 0.5rem;
  color: var(--dark-color);
  font-size: 1.25rem;
}

.expertise-item p {
  padding: 0 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Flag icon styling */
.flag-icon {
  width: 20px;
  height: auto;
  margin-left: 4px;
  vertical-align: middle;
}

/* Careers page */
.jobs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.job-card h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.job-card ul {
  list-style: disc inside;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.job-card li + li {
  margin-top: 0.5rem;
}

.job-card .apply-btn {
  margin-top: 1rem;
}

/* Contact page */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.contact-form {
  flex: 1;
  min-width: 280px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

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

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

footer .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero .content h1 {
    font-size: 2.5rem;
  }
  .hero .content p {
    font-size: 1.1rem;
  }
  nav ul {
    gap: 1rem;
  }
  .value-item {
    flex: 1 1 100%;
  }

  /* Stack expertise items on small screens */
  .expertise-item {
    flex: 1 1 100%;
  }
}