/* ================================
   🔧 Core Color Variables (Custom Theme)
   You can change these to update your site’s color scheme
=================================== */
:root {
  --bd-bg: #f5f5f0;               /* Background color for whole page */
  --bd-text: #d1d5db;             /* Main text color (light gray) */
  --bd-card-bg: #111111;          /* Background color for content cards */
  --bd-card-border: #b91c1c;      /* Border color for cards (red theme) */
  --bd-link: #b91c1c;             /* Color for hyperlinks */
  --bd-footer-text: #64748b;      /* Color for footer text */
  --bd-gallery-border: rgba(148, 163, 184, 0.35);  /* Thumbnail border */
  --bd-gallery-hover-border: #b91c1c;              /* On hover thumbnail border */
}

/* ================================
   🌍 Global Layout + Reset
=================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--bd-bg);
  color: var(--bd-text);
  line-height: 1.5;
}

/* ================================
   🏁 Banner Header Section
   This is the full-width top image with logo & site title
=================================== */
.site-header {
  background: url("Panamera-Website-Banner.jpg") center/cover no-repeat;
  padding: 5rem 1.5rem 4rem; /* Top padding extended to make banner taller */
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* or use space-between if needed */
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  max-height: 80px;
  width: auto;
}

/* Larger Banner Text */
.site-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive size: 2.5rem to 4rem */
  color: #ffffff;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.65);
  margin: 1rem 0 0;
}

/* Optional subtitle under logo/title */
.tagline {
  margin: 0;
  max-width: 700px;
  color: #cbd5f5;
  font-size: 1rem;
}

/* ================================
   🧭 Navigation Bar (Horizontal)
   Appears just below the banner
=================================== */
.top-nav {
  background-color: #1f2937; /* dark gray */
  border-bottom: 2px solid #b91c1c;
}

.nav-horizontal {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.nav-horizontal li a {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-horizontal li a:hover {
  color: #b91c1c;
}

/* ================================
   🔳 Main Page Wrapper
   Contains the page's body content
=================================== */
.site-main {
  max-width: 1100px;
  margin: 2rem auto 2.5rem;
  padding: 0 1.25rem;
}

/* ================================
   🧱 Card Blocks
   For Mission, Contact, Vehicles, etc.
=================================== */
.card {
  background-color: var(--bd-card-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--bd-card-border);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.card h2 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.section-intro {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #d1d5db;
  font-size: 0.95rem;
}

.section-note {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
  font-size: 0.85rem;
}

/* ================================
   🔗 Hyperlinks
=================================== */
a {
  color: var(--bd-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Used in 'Vehicles' section */
.link-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0.25rem 0 0;
}

.link-list li {
  margin-bottom: 0.35rem;
}

/* ================================
   🖼️ Gallery Section
   For displaying thumbnails
=================================== */
.gallery-section {
  margin-top: 1.5rem;
}

.gallery-section h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  background-color: #020617;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--bd-gallery-border);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.gallery-item .caption {
  padding: 0.4rem 0.6rem 0.55rem;
  font-size: 0.8rem;
  color: #e5e7eb;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  border-color: var(--bd-gallery-hover-border);
}

/* ================================
   🔻 Footer Section
=================================== */
.site-footer {
  text-align: center;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--bd-footer-text);
  font-size: 0.8rem;
}

/* ================================
   📱 Responsive Styles (Mobile)
=================================== */
@media (max-width: 600px) {
  .card {
    padding: 1.2rem 1rem;
  }

  .gallery-item img {
    height: 135px;
  }

  .site-header h1 {
    font-size: 2rem; /* Smaller text on mobile */
  }
}

