/* Essential variables */
:root {
  --primary-color: #0F2C59;
  --secondary-color: #C8A45E;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #0F1C2E;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Global styles needed for the team page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 100px 0;
}

.section-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Buttons - simplified to only what's needed */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

/* Header and Navigation */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85); /* Slightly adjusted for better blending */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0; /* Keeping original size */
  transition: all 0.3s ease;
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0; /* Keeping original size */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  margin-right: 15px;
  transition: all 0.3s ease;
}

#header.scrolled .logo img {
  height: 40px;
}

.logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#header.scrolled .logo-text {
  font-size: 1.3rem;
}

nav {
  display: flex;
  align-items: center;
}

#nav-menu {
  display: flex;
  gap: 35px;
}

#nav-menu li {
  margin: 0;
}

#nav-menu a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 0;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

#nav-menu a:hover {
  color: var(--secondary-color);
}

#nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-bg);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* About/Team Hero Section */
.about-hero {
  background: linear-gradient(rgba(15, 44, 89, 0.8), rgba(15, 44, 89, 0.8)), url('../img/egg-2.jpeg');
  background-size: cover;
  background-position: center 60%; /* Changed from center top to center 40% to show more of the car */
  color: var(--light-text);
  text-align: center;
  padding: 160px 0 100px; 
  margin-top: 64px; /* Reduced from 80px to 64px to eliminate the white gap */
  position: relative; /* Added for better control */
  top: 0; /* Ensure it starts right at the top */
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--light-text);
  font-family: 'EB Garamond', serif;
  font-weight: 600;
}

.about-hero .subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Team Section Styles */
.team-section {
  margin-bottom: 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-member {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  height: auto;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--secondary-color);
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-family: 'EB Garamond', serif;
  font-weight: 600;
}

.team-member .role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-member p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  flex-grow: 1;
  margin-bottom: 20px;
}

.team-member .btn {
  margin-top: auto;
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.team-member .btn:hover {
  background-color: var(--secondary-color);
}

/* Footer - complete styles matching jets.css */
.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 70px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.footer-brand {
  margin-right: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 14px;
}

.footer-logo .social-icons {
  display: flex;
  gap: 10px;
  margin-right: 8px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.footer-logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  align-self: center;
  margin-left: 2px;
  position: relative;
  top: 2px;
}

.footer-text {
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-icons {
  display: flex;
}

.footer-links {
  margin-top: 0;
}

.footer-heading {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  margin-top: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
  padding-left: 5px;
}

.copyright {
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Additional classes to support team page */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about-hero {
    padding: 120px 0 80px;
  }
  
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .about-hero .subtitle {
    font-size: 1.2rem;
  }
  
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  #nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
  }
}

@media (max-width: 576px) {
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}