/*
 * Tankrich MFD website stylesheet
 *
 * This stylesheet defines a modern, responsive layout for the
 * Tankrich MFD website. It uses CSS variables for easy colour
 * adjustments and provides reusable classes for navigation,
 * hero sections, cards, tables, buttons and footers. The design
 * aims to improve user experience and conversion while staying
 * consistent with Tankrich’s branding.
 */

:root {
  /* Brand colours */
  --primary-color: #003a7b; /* deep blue for headers and footers */
  --secondary-color: #f4a000; /* warm amber accent */
  --light-gray: #f5f7fa; /* page background */
  --text-color: #333333; /* default text colour */
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}

/* Navigation bar */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

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

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

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

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 1rem;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Card layout */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

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

/* List styles */
.list {
  margin-top: 1rem;
  margin-left: 1rem;
}

.list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid #dddddd;
  text-align: left;
}

table th {
  background-color: var(--primary-color);
  color: #ffffff;
}

table td {
  background-color: #ffffff;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

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

.btn-primary:hover {
  background-color: #e49600;
}

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

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

/* Callout / CTA section */
.callout {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 4rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    gap: 1rem;
  }
}