/* ---- variables ---- */
:root {
  /* brand palette (from the Alta Vola logo) */
  --bloodwood: #200D2D;   /* Bloodwood Deep */
  --lilac: #BB96E4;       /* Ethereal Lilac */
  --gold: #FFD066;        /* Golden Harvest */

  --accent: var(--lilac);
  --accent-light: #f3ecfb;       /* pale lilac tint for surfaces */
  --text-primary: var(--bloodwood);
  --text-secondary: #5a4a66;     /* muted bloodwood for body copy */
  --surface: #f8f4fc;
  --border: #e6dcf1;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: #fff;
  line-height: 1.5;
}

img, video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: #fff;
  border-bottom: 4px solid var(--lilac);
  box-shadow: 0 4px 0 var(--gold); /* thin gold stripe under the lilac border */
  position: relative;
  z-index: 10;
}

.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 96px;
  width: 320px; /* logo is 10:3 */
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--lilac);
}

.main-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--gold);
}

/* ---- hero ---- */
.hero {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 420px;
  gap: 16px;
  padding: 32px 16px;
  background: var(--bloodwood);
}

.hero-media {
  flex: 0 0 470px;
  overflow: hidden;
  background: var(--bloodwood);
  border: 3px solid var(--lilac);
  border-radius: 12px;
}

.hero-media img,
.hero-media video {
  object-position: center 20%;
}

.hero-copy {
  flex: 0 0 auto;
  width: auto; /* hug the headline so the videos sit close to it */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 40px;
  gap: 24px;
}

.hero-copy h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.hero-copy h1 .hl {
  color: var(--gold);
}

.hero-copy .btn-primary {
  background: var(--gold);
  color: var(--bloodwood);
}

.hero-copy .btn-primary:hover {
  background: var(--lilac);
}

/* ---- buttons + links ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn {
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--bloodwood);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--bloodwood);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--lilac);
  transition: border-color 0.15s ease;
}

.text-link:hover {
  border-bottom-color: var(--gold);
}

.arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

/* ---- gallery preview ---- */
.gallery-preview {
  padding: 48px 32px;
}

.gallery-preview h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.gallery-preview h2::after,
.about-copy h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 6px;
  background: var(--gold);
  border-radius: 2px;
}

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

.gallery-tile {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--accent);
}

.gallery-tile.placeholder {
  background: var(--accent-light);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* ---- about preview ---- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 32px 64px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  max-height: 500px;
  object-position: center 10%; /* shift up/down: 0% = top of photo, 100% = bottom */
}

.about-copy h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.about-copy p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---- team page ---- */
.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
  background: var(--bloodwood);
  padding: 48px max(32px, calc((100% - 1100px) / 2));
}

.team-hero-photo {
  margin: 0;
  border: 3px solid var(--lilac);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--gold); /* offset gold "frame" */
  aspect-ratio: 4 / 3;
}

.team-hero-copy h1 {
  color: #fff;
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.team-hero-copy h1 .hl {
  color: var(--gold);
}

.team-hero-copy p {
  color: var(--accent-light);
  font-size: 16px;
}

.team-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

.team-member {
  border-bottom: 1px solid var(--border);
}

.team-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.team-thumb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center; /* adjust per-person via .thumb-[name] rules below to center on faces */
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.team-name {
  flex: 1;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
}

.plus {
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  width: 20px;
  text-align: center;
}

.team-member.open .plus {
  transform: rotate(45deg);
}

.team-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 4px;
}

.team-bio p {
  color: var(--text-secondary);
  font-size: 14px;
  padding-bottom: 16px;
  max-width: 520px;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 20px;
}

.team-photos .extra-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover; /* uniform tiles; the full photo shows in the lightbox */
  border-radius: 10px;
  border: 2px solid var(--accent);
  display: block;
  cursor: pointer;
}

/* per-person thumbnail crop adjustments — tweak these to center on faces */
.thumb-lisa   { object-position: center 20%; }
.thumb-aslan  { object-position: center 20%; }
.thumb-megan  { object-position: center 20%; }
.thumb-tyler  { object-position: center 20%; }
.thumb-kenny  { object-position: center 20%; }

/* ---- gallery page ---- */
.gallery-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px 8px;
}

.gallery-intro p {
  color: var(--text-secondary);
  font-size: 16px;
}

.gallery-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

/* ---- lightbox ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 13, 45, 0.92); /* bloodwood */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img,
.lightbox-overlay video {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--accent);
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* ---- contact page ---- */
.contact-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px 8px;
}

.contact-intro p {
  color: var(--text-secondary);
  font-size: 16px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  margin-top: 20px;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.contact-photo {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--accent);
}

/* ---- footer ---- */
.site-footer {
  padding: 20px 32px;
  background: var(--bloodwood);
  border-top: 4px solid var(--gold);
  font-size: 13px;
  color: var(--lilac);
}

/* ---- responsive ---- */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
  }

  .logo img {
    height: 42px;
    width: 140px;
  }

  .main-nav a {
    border-bottom-width: 2px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero {
    flex-direction: row;
    height: 360px;
    min-height: 0;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .hero-media {
    border-width: 2px;
  }

  .hero-hide-mobile {
    display: none;
  }

  .hero-show-mobile {
    border: none !important;
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-show-mobile video,
  .hero-show-mobile img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid var(--accent);
    border-radius: 10px;
  }

  .hero-copy {
    flex: 1 1 0;
    width: auto;
    padding: 8px 6px;
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: 23px;
  }

  .hero-copy .btn {
    padding: 9px 18px;
    font-size: 13px;
  }

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

  .gallery-page {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 20px 48px;
    gap: 8px;
  }

  .gallery-intro {
    padding: 32px 20px 8px;
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
    padding: 24px 20px 48px;
  }

  .contact-intro {
    padding: 32px 20px 8px;
  }

  .team-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 32px;
  }

  .team-hero-photo {
    box-shadow: 8px 8px 0 var(--gold);
  }

  .team-hero-copy h1 {
    font-size: 30px;
  }

  .team-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-toggle {
    gap: 16px;
    padding: 16px 4px;
  }

  .team-thumb {
    width: 56px;
    height: 56px;
  }

  .team-name {
    font-size: 17px;
  }

  .plus {
    font-size: 22px;
  }

  .team-photos {
    gap: 6px;
  }
}
