/* Sky & Sea Logistics website stylesheet */

/* Root colour variables for easy theme customisation */
:root {
  --primary: #004b8d;      /* deep blue drawn from company logo */
  --secondary: #0072bb;    /* lighter blue tone for highlights */
  --accent: #f6921e;       /* warm accent colour for calls‑to‑action */
  --text-color: #333333;  /* default text colour */
  --bg-color: #f5f7fa;    /* light grey background for main panels */
}

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

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

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

/* Top bar with contact information */
.top-bar {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  text-align: right;
}

.top-bar a {
  color: #ffffff;
  margin-left: 1rem;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Main navigation */
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 55px;
}

header ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

header li {
  position: relative;
}

header a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s ease;
}

header a:hover,
header a.active {
  color: var(--accent);
}

/* Hero section on home page */
.hero {
  position: relative;
  background-image: url('../images/container_ship.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px;
}

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

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Sections common styling */
section {
  padding: 60px 20px;
}

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

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

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

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

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

/* About page text */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-container h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-container p,
.about-container li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-container ul {
  padding-left: 1.2rem;
  list-style: disc;
}

/* Offices page */
.office-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.office-container p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.office-container address {
  font-style: normal;
  line-height: 1.4;
  margin-top: 1rem;
}

/* Policy page */
.policy-container {
  max-width: 1000px;
  margin: 0 auto;
}

.policy-container h3 {
  color: var(--primary);
  margin-top: 1.5rem;
}

.policy-container p,
.policy-container li {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.policy-container ul {
  padding-left: 1.2rem;
  list-style: disc;
}

/* Call to action */
.cta {
  background: var(--secondary);
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
}

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

.cta a.btn {
  display: inline-block;
  background: #ffffff;
  color: var(--secondary);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta a.btn:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Footer styles */
footer {
  background: #1c1c1c;
  color: #bbbbbb;
  padding: 50px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

footer h4 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

footer a {
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}

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

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* Page banner for secondary pages */
.page-banner {
  background: var(--secondary);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-banner h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
}