/*
 * Table of Contents:
 * 1. Base & Typography
 * 2. Layout & Structure
 * 3. Navigation
 * 4. Home Page
 * 5. Bio Page
 * 6. Video Gallery
 * 7. Modal
 * 8. Media Queries
 */

/* 1. Base & Typography */
@font-face {
  font-family: "Dubiel";
  src: url("../fonts/dubiel.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "PTSans";
  src: url("../fonts/PTSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  color: #000;
  background: #fff;
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus {
  transform: none;
}

body {
  margin: 0;
  padding: 0;
  color: #000;
  background: #fff;
  min-height: 100vh;
  font-family: "PTSans", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* 2. Layout & Structure */
main {
  flex: 1;
  padding: 20px 0;
}

.page-content {
  font-family: "PTSans", sans-serif;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 30px;
  overflow-wrap: anywhere;
}

.page-content h1 {
  font-family: "Dubiel", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.9rem;
}

/* 3. Navigation */
.main-nav {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  position: relative;
  z-index: 1001; /* Higher than video embeds */
}

.main-nav .nav-menu {
  position: relative;
  z-index: 1001;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.main-nav a {
  font-family: "Dubiel", serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: #666;
  transition: color 0.3s ease;
}

.main-nav a[aria-current="page"] {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}


/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 1rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 1002; /* Higher than the nav menu */
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  background: #000;
  height: 2px;
  width: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    transition: transform 0.15s ease-out, top 0.15s ease-out, bottom 0.15s ease-out;
  }
}

.hamburger {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: translate(-50%, 0) rotate(-45deg);
}

/* 4. Home Page */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.home .wrapper {
  width: 100%;
  max-width: 800px;
  padding: 0 30px;
  box-sizing: border-box;
}

.home .content {
  text-align: center;
  width: 100%;
}

.home h1 {
  margin: 0;
  padding: 5px 0;
  font-weight: 500;
}

.home .title,
.home .subtitle {
  font-size: clamp(2rem, 8vw, 4rem);
  color: #000;
  font-family: "Dubiel", serif;
  overflow-wrap: anywhere;
}

.home .subtitle {
  margin-bottom: 30px;
}

.home .menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "Dubiel", serif;
}

.home .menu a {
  text-decoration: none;
  color: #666;
  font-size: clamp(1.75rem, 6vw, 3rem);
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.home .menu a:hover {
  color: #000;
}

/* 5. Bio Page */
.bio-page {
  max-width: 1200px;
}

.bio-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.bio-text {
  flex: 1;
}

.bio-text h2.subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.bio-image {
  flex: 0 0 400px;
}

.bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 6. Video Gallery */
.video-gallery {
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  gap: 40px;
  margin-top: 2rem;
}

.video-card {
  background: white;
}

.video-thumbnail {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin: 0;
}

.video-thumbnail:hover .play-button {
  background: rgba(0, 0, 0, 1);
}

.video-info {
  padding: 1rem 0;
}

.video-info h2 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem 0;
}

.video-info p {
  margin: 0 0;
  color: #666;
  font-size: 0.9rem;
}

.video-info .name {
  color: #000;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 7. Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(100%, 1232px);
  max-width: 100%;
  max-height: 100dvh;
  margin: auto;
  padding: 1rem;
  border: 0;
  color: #fff;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.video-modal[open] {
  display: block;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

body.video-modal-open {
  overflow: hidden;
}

.modal-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.5rem;
  max-height: calc(100dvh - 2rem);
}

.modal-content video {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: calc(100dvh - 5.5rem);
  object-fit: contain;
  background: #000;
}

.close-modal {
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  font-size: 30px;
  background: #000;
  border: 0;
  cursor: pointer;
}

.video-modal :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 3px #000;
}

/* Fashion Slider */
.fashion-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Campaign Navigation */
.campaign-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 1.5rem 0;
  justify-content: center;
}

.campaign-button {
  background: transparent;
  border: none;
  padding: 8px 0;
  font-family: "Dubiel", serif;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.campaign-button:hover {
  color: #666;
}

.campaign-button.active {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Campaign Slides */
.campaign-slides {
  display: none;
  margin-top: 2rem;
}

.campaign-slides.active {
  display: block;
}

.campaign-info {
  margin-top: 1rem;
  text-align: left;
}

.campaign-info h2 {
  font-family: "PTSans", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.3rem 0;
  font-weight: 600;
}

.campaign-info p {
  font-family: "PTSans", sans-serif;
  margin: 0;
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
}

.campaign-info .name {
  color: #000
}

/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.slider-content {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  height: 500px; /* Fixed height container */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Slider Navigation */
.slider-arrow {
  position: absolute;
  top: 250px; /* Position at middle of fixed height container */
  margin-top: -24px; /* Half of the button height */
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.dot::before {
  content: "";
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 1px solid #666;
  border-radius: 50%;
}

.dot.active::before {
  background: #333;
}

/* Campaign Mobile Dropdown */
.mobile-nav {
  display: none;
}

.campaign-dropdown {
  width: 100%;
  margin: 1rem 0;
}

.campaign-dropdown select {
  width: 100%;
  padding: 10px;
  font-family: "Dubiel", serif;
  font-size: 1.1rem;
  color: #666;
  background-color: #fff;
  border: 1px solid #666;
  border-radius: 0;
  cursor: pointer;
}


@media (max-width: 768px) {
  /* Show dropdown instead of buttons */
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  /* Adjust spacing and sizes */
  .fashion-gallery {
    padding: 0 15px;
  }
  
  .page-content h1 {
    margin-bottom: 1rem;
  }
  
  .campaign-slides {
    margin-top: 1rem;
  }

  .slider-content {
    height: 350px; /* Smaller fixed height for mobile */
  }

  .slide img {
    max-height: 350px;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
    top: 175px; /* Half of mobile container height */
    margin-top: -22px;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .slider-dots {
    margin-top: 8px;
  }
  
  .dot {
    width: 44px;
    height: 44px;
  }
}

/* 8. Media Queries */
@media (max-width: 768px) {
  /* Navigation */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 1rem;
    outline-offset: -3px;
  }

  .main-nav {
    position: relative;
    padding: 0;
    border-bottom: 1px solid #eee;
    min-height: 44px;
  }

  .main-nav .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav .nav-menu.active {
    display: block;
  }

  .main-nav .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .main-nav .nav-menu li:last-child {
    border-bottom: none;
  }

  .main-nav .nav-menu li a {
    display: block;
    padding: 1rem 0;
  }


  /* Bio Page */
  .bio-content {
    flex-direction: column;
  }

  .bio-image {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 20px;
  }
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}


/* Contact Page */
.contact-page {
  text-align: center;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info a {
  display: block;
  color: #000;
  text-decoration: none;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #666;
}

.contact-note {
  color: #666;
  margin: 1.5rem 0;
}

.film-crews {
  margin-top: 2rem;
}

.film-crews h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
