/* ==================================================
   MYN ARCHITECTS — CATEGORY PAGE STYLES
   Extracted from the original work.css stylesheet.
   Shared site header/navigation is kept in nav.css.
   ================================================== */


/* ==========================================
   MYN ARCHITECTS — PORTFOLIO DESIGN
   ========================================== */

:root {
  --orange: #f39200;
  --dark: #191919;
  --text: #252525;
  --muted: #77736d;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: #e7e3dc;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

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

/* ==========================================
   COMMON LABELS
   ========================================== */

.section-label {
  display: inline-block;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

.portfolio-hero {
  position: relative;
  min-height: clamp(390px, 48vw, 590px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;

  background:
    linear-gradient(
      90deg,
      rgba(15,15,14,.76),
      rgba(15,15,14,.24)
    ),
    url("/images/landing.webp") center 52% / cover no-repeat,
    #292825;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.28),
    transparent 42%
  );
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 70px clamp(24px, 10vw, 150px);
}

.portfolio-hero-content h1 {
  max-width: 780px;
  margin: 22px 0 20px;
  color: white;
  font-size: clamp(48px, 7.2vw, 94px);
  line-height: .99;
  font-weight: 500;
  letter-spacing: -.065em;
}

.portfolio-hero-content p {
  max-width: 570px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.9;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 76px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.82);
  font-size: 9px;
  letter-spacing: .18em;
}

.scroll-line {
  width: 52px;
  height: 1px;
  background: var(--orange);
}

/* ==========================================
   PORTFOLIO INTRODUCTION
   ========================================== */

.portfolio-intro {
  max-width: var(--max-width);
  margin: auto;
  padding: 105px clamp(24px, 8vw, 120px) 90px;
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(35px, 8vw, 130px);
  align-items: end;
}

.portfolio-intro-heading h2 {
  margin: 17px 0 0;
  color: var(--dark);
  font-size: clamp(37px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.055em;
}

.portfolio-intro-description p {
  max-width: 540px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

/* ==========================================
   CLOSING SECTION
   ========================================== */

.portfolio-closing {
  padding: 95px 24px 105px;
  text-align: center;
  background: var(--paper);
}

.portfolio-closing h2 {
  margin: 18px 0 30px;
  color: var(--dark);
  font-size: clamp(37px, 5.5vw, 66px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.055em;
}

.portfolio-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--orange);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.portfolio-contact-link span {
  color: var(--orange);
  font-size: 18px;
}

.portfolio-contact-link:hover {
  color: var(--orange);
}

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

.work-footer {
  width: 100%;
  padding: 48px clamp(24px, 6vw, 88px) 22px;
  color: white;
  background: #171715;
}

.footer-main {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: .75fr 1.8fr 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}

.footer-brand img {
  display: block;
  width: 140px;
  max-width: 100%;
  padding: 5px;
  background: white;
}

.footer-info strong {
  display: block;
  margin-bottom: 11px;
  color: white;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.footer-info p,
.footer-contact a,
.footer-social a {
  color: #aaa7a0;
  font-size: 11px;
  line-height: 1.9;
}

.footer-info p {
  margin: 0;
}

.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 35px auto 0;
  padding-top: 17px;
  border-top: 1px solid #383735;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #99958e;
  font-size: 10px;
}

.footer-bottom a {
  color: var(--orange);
}

/* ==========================================
   FLOATING CONTACT BUTTONS
   ========================================== */

.whatsapp,
.call {
  position: fixed;
  right: 20px;
  z-index: 90;
}

.whatsapp {
  bottom: 82px;
}

.call {
  bottom: 22px;
}

.whatsapp img,
.call img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform .25s ease;
}

.whatsapp a:hover img,
.call a:hover img {
  transform: scale(1.08);
}


/* CATEGORY PAGE RESPONSIVE LAYOUT */
@media (max-width: 700px) {

  .portfolio-hero {
    min-height: 430px;
    background-position: 57% center;
  }

  .portfolio-hero-content {
    padding: 55px 23px;
  }

  .portfolio-hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(46px, 13vw, 66px);
  }

  .portfolio-hero-content p {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-scroll {
    right: 22px;
    bottom: 23px;
    font-size: 8px;
  }

  .portfolio-intro {
    padding: 65px 23px 58px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio-intro-heading h2 {
    font-size: 43px;
  }

  .portfolio-intro-description p {
    font-size: 13px;
    line-height: 1.85;
  }

  .portfolio-closing {
    padding: 72px 20px 78px;
  }

  .portfolio-closing h2 {
    font-size: 43px;
  }

  .work-footer {
    padding: 38px 22px 20px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 27px 18px;
  }

  .footer-brand,
  .footer-info {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    width: 125px;
  }

  .footer-social {
    grid-column: auto;
    flex-direction: column;
    gap: 5px;
  }

  .footer-bottom {
    margin-top: 27px;
    flex-direction: column;
    gap: 9px;
    line-height: 1.6;
  }

  .whatsapp,
  .call {
    right: 13px;
  }

  .whatsapp {
    bottom: 75px;
  }

  .call {
    bottom: 17px;
  }

  .whatsapp img,
  .call img {
    width: 43px;
    height: 43px;
  }

}


@media (max-width: 380px) {

  .portfolio-hero {
    min-height: 390px;
  }

  .portfolio-hero-content h1 {
    font-size: 43px;
  }

}


/* ==========================================
   ACCESSIBILITY
   ========================================== */

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

}

/* ======================================================
   MYN ARCHITECTS — PORTFOLIO CATEGORY NAVIGATION
   ====================================================== */

#portfolioNavigation {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 52px;
    margin-top: 70px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    z-index: 900;
}

#portfolioNavigation .portfolio-nav-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 38px;
    width: 100%;
}

#portfolioNavigation .portfolio-nav-inner a {
    display: inline-block;
    color: #333333;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 17px 0;
    transition: color 0.25s ease;
}

#portfolioNavigation .portfolio-nav-inner a:hover,
#portfolioNavigation .portfolio-nav-inner a.active {
    color: #f39200;
}

#portfolioNavigation .portfolio-nav-inner a.active {
    border-bottom: 2px solid #f39200;
}

/* Keep the category navigation separate from the sidebar */
#portfolioNavigation ul {
    display: none;
}

/* Mobile */

/* MOBILE PORTFOLIO CATEGORY NAVIGATION */
@media (max-width: 700px) {

    #portfolioNavigation {
        position: relative;
        width: 100%;
        height: auto;
        min-height: unset;
        margin-top: 70px;
        padding: 8px 12px;
        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
    }

    #portfolioNavigation .portfolio-nav-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        overflow: visible;
    }

    #portfolioNavigation .portfolio-nav-inner a {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 42px;
        padding: 10px 3px;
        font-size: 10px;
        line-height: 1.3;
        letter-spacing: 0.5px;
        text-align: center;
        white-space: normal;
        border-bottom: 2px solid transparent;
    }

    #portfolioNavigation .portfolio-nav-inner a.active {
        color: #f39200;
        border-bottom: 2px solid #f39200;
    }
}


/* Main content follows the category navigation */
main {
    margin-top: 0 !important;
}

/* ======================================================
   MYN ARCHITECTS — NEW CATEGORY PROJECT GRID
   ====================================================== */

.portfolio-project-section {
    width: 100%;
    padding: 65px 6% 90px;
}

.portfolio-project-section .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e9e7e3;
}

.portfolio-project-section .section-heading h2 {
    margin-top: 12px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: -1.5px;
    color: #202020;
}

.portfolio-project-section .category-count {
    color: #99938b;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding-bottom: 8px;
}

.portfolio-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 24px;
    width: 100%;
    margin-top: 35px;
}

.project-loading {
    grid-column: 1 / -1;
    padding: 35px 0;
    color: #777;
    font-size: 14px;
}

/* Individual project card */

.portfolio-project-card {
    display: block;
    width: 100%;
    cursor: pointer;
    color: #202020;
    text-align: left;
    border: 0;
    background: transparent;
}

.portfolio-project-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f0ec;
}

.portfolio-project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.portfolio-project-card:hover .portfolio-project-image {
    transform: scale(1.045);
}

.portfolio-project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-top: 17px;
}

.portfolio-project-info h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.4px;
    margin: 0 0 6px;
}

.portfolio-project-info p {
    font-size: 12px;
    color: #85817b;
    margin: 0;
}

.portfolio-project-arrow {
    color: #f39200;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.portfolio-project-card:hover .portfolio-project-arrow {
    transform: translate(4px, -4px);
}

/* ======================================================
   PROJECT GALLERY MODAL
   ====================================================== */

#projectGallery {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #171717;
    color: #ffffff;
}

#projectGallery[aria-hidden="false"] {
    display: block;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 5%;
    border-bottom: 1px solid #393939;
}

.gallery-header h2 {
    font-size: 22px;
    font-weight: 500;
}

#galleryClose {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
}

.gallery-content {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.7fr);
    gap: 40px;
    padding: 35px 5%;
}

.gallery-image-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55vh;
    background: #222222;
}

#galleryImage {
    width: 100%;
    height: 65vh;
    object-fit: contain;
}

#galleryPrev,
#galleryNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f39200;
    color: #171717;
    font-size: 26px;
    cursor: pointer;
}

#galleryPrev {
    left: 15px;
}

#galleryNext {
    right: 15px;
}

.gallery-details {
    padding: 15px 0;
    color: #d0cec9;
    font-size: 14px;
    line-height: 1.9;
}

/* ======================================================
   RESPONSIVE PROJECT GRID AND GALLERY
   ====================================================== */

@media (max-width: 700px) {

    .portfolio-project-section {
        padding: 45px 0 65px;
    }

    .portfolio-project-section .section-heading {
        padding: 0 20px 18px;
    }

    .portfolio-project-section .section-heading h2 {
        font-size: 27px;
    }

    .portfolio-project-section .category-count {
        font-size: 8px;
    }

    .portfolio-project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 22px;
    }

    .portfolio-project-info {
        padding: 13px 16px 0;
    }

    .portfolio-project-info h3 {
        font-size: 17px;
    }

    .portfolio-project-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .project-loading {
        padding: 25px 16px;
    }

    .gallery-header {
        padding: 16px 20px;
    }

    .gallery-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .gallery-image-area {
        min-height: 40vh;
    }

    #galleryImage {
        height: 45vh;
    }

    #galleryPrev,
    #galleryNext {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .gallery-details {
        padding: 10px 5px 25px;
    }
}

/* ======================================================
   MYN ARCHITECTS — PREMIUM EDITORIAL PROJECT GRID
   ====================================================== */

.portfolio-project-section {
    padding: 65px 5% 100px;
}

/* THREE COLUMN DESKTOP GRID */

.portfolio-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
    width: 100%;
    margin-top: 40px;
    counter-reset: project-counter;
}

/* PROJECT CARD */

.portfolio-project-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    color: #202020;
    cursor: pointer;
    counter-increment: project-counter;
}

/* IMAGE CONTAINER */

.portfolio-project-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f0ec;
}

/* IMAGE */

.portfolio-project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
}

/* IMAGE DARK GRADIENT */

.portfolio-project-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.30),
        transparent 35%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* PROJECT NUMBER */

.portfolio-project-image-wrap::before {
    content: "PROJECT " counter(project-counter, decimal-leading-zero);
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 7px 10px;
    background: rgba(255,255,255,0.94);
    color: #292929;
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* HOVER EFFECT */

.portfolio-project-card:hover .portfolio-project-image {
    transform: none;
}
.portfolio-project-card:hover .portfolio-project-image-wrap::after {
    opacity: 1;
}

/* PROJECT INFORMATION */

.portfolio-project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 17px 0 0;
    border-bottom: 1px solid #e8e5df;
    padding-bottom: 14px;
}

.portfolio-project-info h3 {
    margin: 0 0 7px;
    color: #202020;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.portfolio-project-info p {
    margin: 0;
    color: #88847e;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ORANGE ARROW */

.portfolio-project-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid #e7e3dc;
    border-radius: 50%;
    color: #f39200;
    font-size: 18px;
    transition: all 0.3s ease;
}

.portfolio-project-card:hover .portfolio-project-arrow {
    background: #f39200;
    color: #ffffff;
    border-color: #f39200;
}

.portfolio-project-card:hover .portfolio-project-info h3 {
    color: #f39200;
}

/* KEYBOARD ACCESSIBILITY */

.portfolio-project-card:focus-visible {
    outline: 2px solid #f39200;
    outline-offset: 5px;
}

/* TABLET */

@media (max-width: 1024px) {

    .portfolio-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 20px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .portfolio-project-section {
        padding: 40px 16px 65px;
    }

    .portfolio-project-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 25px;
    }

    .portfolio-project-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .portfolio-project-info {
        padding-top: 13px;
        padding-bottom: 12px;
    }

    .portfolio-project-info h3 {
        font-size: 17px;
    }

    .portfolio-project-info p {
        font-size: 10px;
    }

    .portfolio-project-arrow {
        width: 30px;
        height: 30px;
    }

}

/* TYPOGRAPHY REFINEMENT */

.portfolio-nav-inner a {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.portfolio-intro-description p {
    font-size: 14px;
    line-height: 2;
}

.portfolio-project-info h3 {
    font-size: 19px;
    font-weight: 500;
}

.portfolio-project-info p {
    font-size: 12px;
}

.portfolio-hero-content p {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.9;
}

.portfolio-contact-link {
    font-size: 12px;
    font-weight: 700;
}
