/* Team Panamera - Main Stylesheet */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #111;
  --dark: #1a1a1a;
  --darker: #0d0d0d;
  --white: #fff;
  --off-white: #e8e8e8;
  --accent: #c8a96e;
  --text-muted: #999;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

/* =====================
   NAVIGATION
   ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--nav-height);
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo span {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a,
.main-nav .nav-item {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.main-nav a:hover,
.main-nav .nav-item:hover {
  color: var(--accent);
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(15,15,15,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 160px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--accent);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.97);
  z-index: 999;
  padding: 80px 2rem 2rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav li a,
.mobile-nav li .mobile-nav-item {
  display: block;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.mobile-nav .mobile-sub {
  padding-left: 1rem;
}

.mobile-nav .mobile-sub a {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* =====================
   HERO
   ===================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
  transition: transform 0.1s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: 0.85;
}

/* Page hero (drive pages) */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
}

.page-hero .hero-bg {
  background-attachment: scroll;
}

.page-hero-title {
  position: relative;
  z-index: 2;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

/* =====================
   HOMEPAGE SECTIONS
   ===================== */

/* Team intro section */
.team-intro {
  background: var(--dark);
  padding: 6rem 2rem;
}

.team-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.team-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

.team-intro-text {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--off-white);
  font-size: 1.05rem;
  line-height: 1.8;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 4rem;
}

.team-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.quote-section {
  text-align: center;
  padding: 2rem 0;
}

.quote-section blockquote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--off-white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  padding: 0 2rem;
}

.quote-section blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -1rem;
  left: 0;
  line-height: 1;
  font-style: normal;
}

/* Drive parallax sections */
.drive-sections {
  display: flex;
  flex-direction: column;
}

.drive-section {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drive-section .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
}

.drive-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s;
}

.drive-section:hover .overlay {
  background: rgba(0,0,0,0.3);
}

.drive-section-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.drive-section-content h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.drive-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 2px solid var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}

.drive-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* =====================
   INTERIOR PAGES
   ===================== */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.page-content h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--accent); }
.page-content h3 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--off-white);
}

.page-content p {
  color: var(--off-white);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.page-content p em {
  color: var(--text-muted);
}

.drive-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-intro {
  margin-bottom: 3rem;
}

/* Route map */
.route-map {
  margin: 2.5rem 0;
  text-align: center;
}

.route-map img {
  max-height: 400px;
  width: auto;
  margin: 0 auto;
  cursor: pointer;
  transition: opacity 0.2s;
}

.route-map img:hover { opacity: 0.85; }

.route-map p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* YouTube embeds */
.video-section {
  margin: 3rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--darker);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================
   PHOTO GALLERY
   ===================== */

.gallery-section {
  background: var(--darker);
  padding: 4rem 2rem;
}

.gallery-section h2 {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--off-white);
}

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.gallery-item::after {
  content: '⤢';
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* =====================
   LIGHTBOX
   ===================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem 0.8rem;
  z-index: 10000;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* =====================
   ABOUT PAGE
   ===================== */

.about-hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.team-member-photo:hover {
  filter: grayscale(0%);
}

.team-member-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-member-bio {
  color: var(--off-white);
  font-size: 0.95rem;
  line-height: 1.8;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}

.linkedin-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =====================
   OTHER DRIVES
   ===================== */

.drive-entry {
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drive-entry:last-child {
  border-bottom: none;
}

.drive-entry-header {
  margin-bottom: 2rem;
}

.drive-entry-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.drive-stat {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =====================
   CONNECT PAGE
   ===================== */

.connect-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.connect-wrap h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.connect-wrap .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.5);
}

.form-group textarea {
  min-height: 150px;
}

.submit-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.submit-btn:hover {
  background: var(--white);
  color: var(--black);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  color: #7fba7f;
  padding: 1rem;
  border: 1px solid #7fba7f;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* =====================
   FOOTER
   ===================== */

.site-footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 2rem;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 900px) {
  .team-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .drive-section {
    height: 55vh;
  }

  .drive-section .bg,
  .hero .hero-bg {
    background-attachment: scroll;
  }

  .team-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .team-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}
