/*
 * Mimo Rackshare Website Styles
 *
 * A modern, tech‑inspired colour palette that reflects the
 * logo’s blues and dark background. Uses responsive layouts
 * and simple typography for clarity and readability.
 */

/* Colour variables for easy theming */
:root {
  --background: #0d253f; /* rich dark blue background */
  --card-background: #112e51; /* slightly lighter dark for cards */
  --primary: #0099cc; /* vibrant blue used in the logo */
  --primary-light: #00bfff; /* lighter variation of the primary blue */
  --text-light: #f5f8fa; /* very light text for high contrast */
  --text-muted: #a3b4c3; /* muted text for secondary information */
}

* {
  box-sizing: border-box;
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 0;
}

/* Header styles */
header {
  background-color: rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

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

.logo img {
  height: 50px;
}

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

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.8em;
}

nav a:hover,
nav a:focus {
  color: var(--primary-light);
}

/* Hero section */
.hero {
  /* Use a real data‑center photo as the hero background with a dark overlay for readability */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/pexels-photo-1148820.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  text-align: center;

  position: relative;
  overflow: hidden;
}

/* Add an angled divider at the bottom of the hero section */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--card-background);
  /* Create a diagonal cut using clip-path; adjust points for effect */
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--background);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Section headings */
section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--primary-light);
  text-align: center;
}

section a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  
}

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

.about p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  text-align: center;
}

.cologuide {
  background-color: var(--card-background);
  padding: 4rem 0;
}

/* Services section */
.services {
  background-color: var(--card-background);
  padding: 4rem 0;
}

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

.service-card {
  background-color: var(--background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

.service-card p {
  color: var(--text-muted);
}

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

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

.contact p {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1rem;
}

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

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

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: var(--card-background);
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
}

.contact-form .btn {
  justify-self: start;
}

/* Features (highlight) section */
.features {
  background-color: var(--background);
  padding: 4rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  align-items: start;
}

.feature {
  background-color: var(--card-background);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Make all feature cards equal height by using flex layout */
  display: flex;
  flex-direction: column;
  height:100%;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.feature img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
  font-size: 1.25rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive text sizes */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  nav a {
  	font-size: 1em;
  }
}

/* Terms of Service page styles */
.terms-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/pexels-photo-5480781-L.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
}

.terms-hero h1 {
  margin: 0;
  color: var(--primary-light);
  font-size: 2.5rem;
}

.terms-content {
  background-color: var(--background);
  padding: 4rem 0;
}

.terms-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
  font-size: 1.5rem;
  text-align:inherit;
}

.terms-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 3px 0;
  background-color: var(--primary-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive navigation */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--card-background);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }

  nav ul.open {
    display: flex;
  }

  .hamburger {
    display: flex;
    margin-left: auto; 
  }

  header .container {
    position: relative;
  }
}