/* ==========================================================================
   BASURA — Main Stylesheet
   All styles for basuranewyork.com (homepage + about page)
   ========================================================================== */


/* ==========================================================================
   1. FONTS
   ========================================================================== */

@font-face {
  font-family: 'FreeSerif';
  src: url('../fonts/FreeSerif.woff2') format('woff2'),
       url('../fonts/FreeSerif.woff')  format('woff'),
       url('../fonts/FreeSerif.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('../fonts/FreeSerifItalic.woff2') format('woff2'),
       url('../fonts/FreeSerifItalic.woff')  format('woff'),
       url('../fonts/FreeSerifItalic.otf')   format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('../fonts/FreeSerifBold.woff2') format('woff2'),
       url('../fonts/FreeSerifBold.woff')  format('woff'),
       url('../fonts/FreeSerifBold.otf')   format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('../fonts/FreeSerifBoldItalic.woff2') format('woff2'),
       url('../fonts/FreeSerifBoldItalic.woff')  format('woff'),
       url('../fonts/FreeSerifBoldItalic.otf')   format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */

html, body, * {
  font-family: 'FreeSerif', serif !important;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'FreeSerif', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.2;
  background: #f9dcda;
  box-sizing: border-box;
  overflow-x: hidden;
}

b {
  font-family: 'FreeSerif';
  font-weight: bold;
  font-style: normal;
}

i {
  font-family: 'FreeSerif';
  font-style: italic;
}


/* ==========================================================================
   3. LINKS
   ========================================================================== */

a {
  color: blue;
  text-decoration: none;
}

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


/* ==========================================================================
   4. TYPOGRAPHY — Reusable text size classes
   ========================================================================== */

.basura-text-title {
  font-size: 32px;
  line-height: 1.3;
}

.basura-text-xl {
  font-size: 32px;
  line-height: 1.3;
}

.basura-text-l {
  font-size: 30px;
  line-height: 1.3;
}

.basura-text-ml2 {
  font-size: 28px;
  line-height: 1.4;
}

.basura-text-ml {
  font-size: 24px;
  line-height: 1.4;
}

.basura-text-mm {
  font-size: 21px;
  line-height: 1.3;
}

.basura-text-m {
  font-size: 20px;
  line-height: 1.4;
}

.basura-text-s {
  font-size: 18px;
  line-height: 1.3;
}


/* ==========================================================================
   5. HOMEPAGE — Header / Hero
   ========================================================================== */

.header-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100svh;
  background-image: linear-gradient(to bottom,
    #f9dcda 0%,
    #f9dcda 95%,
    #f5f5f5 100%);
}

.header-block {
  text-align: center;
  margin: 0 auto;
  padding-top: 0;
}

.header-block img {
  width: 45%;
  max-width: 250px;
}

.header-text {
  font-size: min(6vw, 46px);
  line-height: 1.2;
  margin: 0 auto;
  padding-top: 40px;
  padding-inline: 20px;
  max-width: 800px;
  font-family: 'FreeSerif', serif;
  font-weight: 400;
  font-style: normal;
}

.header-subline {
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.2;
  margin: 26px auto 0;
  max-width: 70vw;
  color: inherit;
  font-family: 'FreeSerif', serif;
  font-weight: 400;
  font-style: normal;
}

.header-emailtext {
  margin-top: 20px;
  font-size: min(5vw, 2rem);
}


/* ==========================================================================
   6. HOMEPAGE — Selected Work Section
   ========================================================================== */

.selected-work {
  margin: 0;
  overflow-x: hidden;
}

.container {
  margin-top: 0;
  margin-bottom: 0;
  padding: 15px;
  padding-bottom: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

#container {
  display: block;
}

#projects-container {
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  width: 100%;
}


/* ==========================================================================
   7. HOMEPAGE — Carousel / Slideshow
   ========================================================================== */

.slideshow-container {
  position: relative;
  width: 100%;
  padding: 0;
  margin: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slideshow-container img,
.slideshow-container iframe {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-item {
  text-align: center;
}

/* Carousel fade speed */
#myCarousel1 .carousel-item,
#myCarousel2 .carousel-item,
#myCarousel3 .carousel-item,
#myCarousel4 .carousel-item {
  transition-property: opacity;
  transition-duration: 0.42s;
}

/* Carousel navigation arrows */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 10px;
  background: transparent;
  border: none;
  outline: none;
  display: block;
  opacity: 1;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.carousel-arrow-img {
  width: 7vw;
  max-width: 100px;
  min-width: 58px;
}

/* Image loading placeholder shimmer */
.image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e9ecef;
  background-image: linear-gradient(90deg, #e9ecef 0%, #f8f9fa 50%, #e9ecef 100%);
  background-size: 200% 100%;
  animation: wave 2s infinite linear;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes wave {
  0%   { background-position: 0 0; }
  100% { background-position: -200% 0; }
}


/* ==========================================================================
   8. HOMEPAGE — Project Text Boxes
   ========================================================================== */

.textbox {
  font-family: 'FreeSerif', serif;
  font-weight: 400;
  font-style: normal;
  background-color: white;
  max-width: 600px;
  min-width: 600px;
  padding: 20px;
  margin-top: 20px;
  margin-left: auto;
  margin-bottom: 0;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Category pills */
.pill {
  background-color: blue;
  border: none;
  color: white;
  padding: 3px 7px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 4px 0 0;
  border-radius: 7px;
  cursor: none;
  font-family: 'nimbus-regular';
  font-size: 14px;
}


/* ==========================================================================
   9. HOMEPAGE — Project Layout Offsets (desktop stagger)
   ========================================================================== */

@media (min-width: 768px) {
  .c-yerba {
    /* default centered — no offset */
  }

  .c-hinge {
    margin-right: 8%;
    width: calc(98% - 2px);
  }

  .c-gap {
    margin-left: 12%;
    width: calc(88% - 5px);
  }

  .c-cookbook {
    margin-right: 10%;
    width: calc(90% - 5px);
  }

  .c-naps {
    margin-left: 15%;
    width: calc(75% - 5px);
  }

  .c-secondhand {
    margin-right: 15%;
    width: calc(85% - 5px);
  }

  .c-wil3d {
    margin-left: 12%;
    width: calc(88% - 5px);
  }

  .c-chase {
    margin-left: 20%;
    width: calc(80% - 5px);
  }
}


/* ==========================================================================
   10. HOMEPAGE — Press Section
   ========================================================================== */

.press-list {
  column-count: 3;
  column-gap: 2rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.press-list li {
  break-inside: avoid;
  margin-bottom: 0.2em;
  padding-left: 0;
  line-height: 1.2;
}

/* GMA abbreviation — show full name on desktop, short on mobile */
.press-full  { display: inline; }
.press-abbr  { display: none; }


/* ==========================================================================
   11. HOMEPAGE — Social / Contact Section
   ========================================================================== */

.container-social {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.social-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}

.social-buttons-wrapper a {
  flex: 1 1 30%;
  max-width: 33.333%;
}

.btn-custom {
  width: 100%;
  font-size: 20px;
  padding: 10px 8px;
  border-radius: 10px;
  background-color: whitesmoke;
  color: blue;
  text-align: center;
  border: none;
  white-space: normal;
}

.btn-custom:hover {
  background-color: blue;
  color: white;
}

@media (min-width: 768px) {
  .container-social .row {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }
  .container-social .col-md-4 {
    flex: 1 1 30%;
    max-width: 30%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
}

.container-social .btn-custom {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}


/* ==========================================================================
   12. HOMEPAGE — Lower Container & Footer
   ========================================================================== */

.lower-container {
  align-items: center;
  margin-bottom: 0;
  background-image: linear-gradient(to top,
    #f9dcda 0%,
    #f9dcda 95%,
    #f5f5f5 100%);
}

.basura-footer {
  font-size: .95rem;
  color: silver;
  padding-bottom: 20px;
  margin: 0 auto;
  text-align: center;
}


/* ==========================================================================
   13. NAVIGATION — Desktop (top-right, appears on scroll)
   ========================================================================== */

.navigation {
  font-size: 24px;
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.navigation.visible {
  opacity: 1;
}

.navigation a {
  color: blue;
  text-decoration: none;
  margin-left: 9px;
}

.navigation a:hover {
  text-decoration: underline;
}

/* Fade-on-scroll link rows (used on project detail pages) */
.fade-on-scroll {
  position: fixed;
  top: 18px;
  right: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-family: 'FreeSerif', serif;
  font-size: 1.6rem;
  color: blue;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1000;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-on-scroll-left {
  position: fixed;
  top: 18px;
  left: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-family: 'FreeSerif', serif;
  font-size: 1.6rem;
  color: blue;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1000;
}

.fade-on-scroll-left.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-on-scroll a:hover,
.fade-on-scroll-left a:hover {
  color: purple;
}


/* ==========================================================================
   14. VIDEO WRAPPERS
   ========================================================================== */

.video-wrapper {
  position: relative;
  z-index: 0;
}

.video-wrapper video,
.video-wrapper iframe {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
}

/* Aspect ratio helpers */
.ratio-3x2 {
  position: relative;
  width: 100%;
  padding-top: 66.6667%;
}

.ratio-3x2 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ==========================================================================
   15. PROJECT DETAIL PAGES — Plaque & Layout
   ========================================================================== */

.project {
  margin: 150px auto;
  max-width: 1200px;
  width: 100%;
}

.project-content {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.project-content img,
.project-content video,
.project-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.project-media {
  width: 100%;
}

.project-media img,
.project-media video,
.project-media iframe {
  width: 100%;
  height: auto;
  display: block;
}

.project-plaque {
  margin-top: 15px;
  background: white;
  padding: 18px 20px;
  max-width: 500px;
  margin-left: auto;
  text-align: left;
  font-family: 'FreeSerif', serif;
  font-size: 1.1rem;
  line-height: 1.3;
}

.project-plaque .plaque-subline {
  display: block;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.project-plaque .plaque-description {
  margin-top: 20px;
}

.centered {
  width: min(1000px, 90vw);
  margin-left: auto;
  margin-right: auto;
}

/* Hero/Footer for standalone project pages */
#hero {
  height: 100vh;
  background: #f9dcda;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

#footer {
  height: 60vh;
  background: #f9dcda;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(249,220,218,1), rgba(250,249,246,1), rgba(250,249,246,1));
  pointer-events: none;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(249,220,218,1), rgba(250,249,246,1), rgba(250,249,246,1));
  pointer-events: none;
}

#hero h1, #footer h2 { font-size: 3rem; margin: 0; color: #222; }
#footer h2 { font-weight: normal; }
#hero-line { display: block; }
#hero img { width: clamp(180px, 18vw, 200px); max-width: 100%; height: auto; margin-bottom: 24px; }


/* ==========================================================================
   16. ABOUT PAGE
   ========================================================================== */

body#about { background-color: #f9dcda; }

.about-header-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
}

.about-header-block {
  text-align: center;
  margin: 0 auto;
  padding-top: 0;
}

.about-header-block img {
  width: 38vw;
  max-width: 200px;
}

.about-header-text {
  font-size: min(6vw, 2.8rem);
  line-height: 1.2;
  margin-right: 40px;
  margin-left: 40px;
  max-width: 800px;
}

.container-about {
  margin: 0 auto;
  padding: 15px;
  margin-bottom: 0;
  font-size: 1.5rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.basura-container {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.about-hr {
  margin-top: 60px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

/* About page accordion (currently unused but preserved) */
.basura-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 20px 80px 20px 20px;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  transition: border-bottom-color 0.3s ease;
  font-family: "Times New Roman", Times, serif;
  font-size: 24px;
  box-sizing: border-box;
}

.basura-button:hover,
.basura-button:focus {
  background-color: transparent;
}

.basura-button.active {
  border-bottom-color: #333;
  transition: border-bottom-color 0.3s ease;
}

.basura-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin: 0;
  border-bottom: 1px solid #333;
}

.text-area {
  font-size: 20px;
  padding-top: 10px;
  padding-left: 20px;
  padding-bottom: 40px;
  line-height: 1.4;
  width: 80%;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
}


/* ==========================================================================
   17. RESPONSIVE — Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .plaque {
    position: relative;
    width: 100%;
    min-width: 0;
    transform: none;
    box-sizing: border-box;
  }

  .project-plaque {
    padding: 0 6px;
    max-width: 100%;
    background: none;
  }

  .project-wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .social-buttons-wrapper a {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* ==========================================================================
   18. RESPONSIVE — Mobile (max-width: 600px)
   ========================================================================== */

@media (max-width: 600px) {
  .container {
    padding-bottom: 100px;
    padding-left: 2px;
    padding-right: 2px;
  }

  /* Remove padding around iframe videos so they play full width */
  iframe#phonebook-vid,
  iframe#everythingisfine-vid {
    padding: 0 !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: block !important;
    opacity: 1 !important;
  }

  /* Mobile bottom navigation */
  .navigationx {
    font-size: 24px !important;
    padding: 16px !important;
    text-align: center !important;
    background-color: white;
    border-top: 2px solid blue;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .navigationx.visible {
    opacity: 0.93;
  }

  .textnx {
    margin-right: 18px;
  }

  .textnx:last-child {
    margin-right: 0;
  }

  /* Text boxes go full-width on mobile */
  .textbox {
    background-color: transparent;
    min-width: 100%;
    font-size: 18.5px;
    line-height: 1.2;
    padding: 0;
  }

  /* Mobile typography overrides */
  .header-text {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  .basura-text-title { font-size: 28px !important; line-height: 1.3 !important; }
  .basura-text-xl    { font-size: 32px !important; line-height: 1.2 !important; }
  .basura-text-l     { font-size: 30px !important; line-height: 1.3 !important; }
  .basura-text-ml2   { font-size: 28px !important; line-height: 1.4 !important; }
  .basura-text-ml    { font-size: 26px !important; line-height: 1.4 !important; }
  .basura-text-mm    { font-size: 21px !important; line-height: 1.2 !important; }
  .basura-text-m     { font-size: 18px !important; line-height: 1.4 !important; }
  .basura-text-s     { font-size: 16px !important; line-height: 1.3 !important; }

  .press-list {
    column-count: 2 !important;
  }

  .press-full  { display: none !important; }
  .press-abbr  { display: inline !important; }

  .press-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ==========================================================================
   19. RESPONSIVE — Navigation breakpoint
   ========================================================================== */

/* Hide desktop nav on mobile */
@media (max-width: 599px) {
  .navigation {
    display: none;
  }
}

/* Hide mobile nav on desktop */
@media (min-width: 600px) {
  .navigationx {
    display: none;
  }
  .press-marquee {
    display: none;
  }
}
