/* ==========================================================================
   Project page – H1 + intro, Project Overview specs, Client Goals
   Figma: DI5V1xJQF5lLhhkNHfUuSa / node 6784:8301
   Root class: .project-hero (sections 3, 4 and 6 of single-project.php)
   Every value below is taken from the Figma node; nothing is eyeballed.
   ========================================================================== */

.project-hero,
.project-hero *,
.project-hero *::before,
.project-hero *::after {
    box-sizing: border-box;
}

/* Every text style in node 6784:8301 has letterSpacing 0. The theme leaks
   -1px onto h1 (main.min.css) and -0.02em onto other headings, so the whole
   section resets it and each text element restates it. */
.project-hero,
.project-hero * {
    letter-spacing: normal;
    word-spacing: normal;
}

/* The three blocks carry no internal top/bottom padding in Figma – the 50px
   between them is owned by css/project/00-base.css. main.css puts 25px 0 on
   .single-project-section-3/4/6, which doubles the design gap to 100px. */
.project-hero.single-project-section-3,
.project-hero.single-project-section-4,
.project-hero.single-project-section-6 {
    padding-top: 0;
    padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   1. Title block – Container 6736:326 (flex column, gap 20)
   -------------------------------------------------------------------------- */

.project-hero .project-hero__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

/* Container 6736:327 – flex row, gap 25, align-items flex-start */
.project-hero .project-hero__row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 25px;
    width: 100%;
}

/* Frame 4753 (6746:12412) – flex: 1 0 0, min-width: 0 */
.project-hero .project-hero__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 1 0 0;
    min-width: 0;
}

/* Text 6746:12414 – Unbounded 600 / 36px / #171B1C, letterSpacing 0.
   Figma text box is 1004x90 over two lines => 45px per line. */
.project-hero .project-hero__title {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Unbounded;
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 45px;
    letter-spacing: normal;
    color: #171B1C;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Container 6736:338 – self-stretch, shrink 0 */
.project-hero .project-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    flex-shrink: 0;
}

/* Container 6736:339 – flex row, gap 10 */
.project-hero .project-hero__buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.project-hero .project-hero__button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Link 6736:341 / 6736:344 – Montserrat 600 / 16px, radius 13.
   Figma label boxes 6736:342 / 6736:345 are 20px tall, which is what makes the
   links 13 + 20 + 13 = 46px high. */
.project-hero .project-hero__btn {
    display: flex;
    align-items: flex-start;
    border-radius: 13px;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: normal;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.5s;
}

/* Figma frame 205x46 with a 2px inside stroke and 32/13 padding measured from the
   outer edge => border-box padding is 30/11 once the 2px border is accounted for. */
.project-hero .project-hero__btn--outline {
    border: 2px solid #171B1C;
    padding: 11px 30px;
    background: transparent;
    color: #171B1C;
}

.project-hero .project-hero__btn--outline:hover,
.project-hero .project-hero__btn--outline:focus {
    border-color: #F69924;
    color: #F69924;
}

/* Figma frame 186x46 – padding 13/30, no stroke */
.project-hero .project-hero__btn--solid {
    border: 0;
    padding: 13px 30px;
    background: #171B1C;
    color: #FFFFFF;
}

.project-hero .project-hero__btn--solid:hover,
.project-hero .project-hero__btn--solid:focus {
    background: #F69924;
    color: #FFFFFF;
}

/* Text 6744:12015 – Montserrat 400 / 16px / #7F7F7F, full width.
   Figma box is 1430x60 over three lines => 20px per line. */
.project-hero .project-hero__intro {
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    color: #7F7F7F;
}

.project-hero .project-hero__intro p {
    margin: 0;
    font: inherit;
    color: inherit;
}

/* --------------------------------------------------------------------------
   2. Project Overview – Section 6736:395 (flex column, gap 20)
   -------------------------------------------------------------------------- */

.project-hero .project-hero__overview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

/* Style "H2 - Montserrat": 600 / 24px / letterSpacing 0 / #171B1C.
   Figma text boxes 6736:397 and 6736:2736 are 29px tall. */
.project-hero .project-hero__h2 {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 29px;
    letter-spacing: normal;
    color: #171B1C;
}

/* Frame 39685 (6741:9175) – 3 x 410px columns, column-gap 100, row-gap 25 (= 1430) */
.project-hero .project-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 410px));
    justify-content: space-between;
    align-items: start;
    column-gap: 100px;
    row-gap: 25px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Frame 4769 etc. – 410 wide, flex row, gap 20, align-items center */
.project-hero .project-hero__fact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

/* ion:resize-sharp – 58x58, background #FFEDDA, border-radius 80px, padding 20px */
.project-hero .project-hero__fact-icon {
    position: relative;
    display: block;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 80px;
    background: #FFEDDA;
}

/* Glyphs are exported at their own intrinsic size and pinned to the Figma offset
   inside the 20px-padded 58x58 circle. */
.project-hero .project-hero__fact-icon img {
    position: absolute;
    top: 20px;
    left: 20px;
    display: block;
    width: 18px;
    height: 18px;
    max-width: none;
}

/* 20x20 stroked glyph – 1px stroke overhang on each side of the 18x18 box */
.project-hero .project-hero__fact-icon--size img {
    top: 19px;
    left: 19px;
    width: 20px;
    height: 20px;
}

/* 23x18 glyph, horizontally centred in the 58px circle (Figma x = 17.5) */
.project-hero .project-hero__fact-icon--type img {
    left: 17.5px;
    width: 23px;
    height: 18px;
}

/* 15x18 glyph, left-aligned in the 18px content box */
.project-hero .project-hero__fact-icon--cuisine img {
    width: 15px;
    height: 18px;
}

/* Frame 4764 – flex: 1 0 0, min-width 0, space-between, 18px / 22px lines */
.project-hero .project-hero__fact-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1 0 0;
    min-width: 0;
    font-size: 18px;
    line-height: 22px;
}

.project-hero .project-hero__fact-label {
    flex-shrink: 0;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: normal;
    color: #7F7F7F;
    white-space: nowrap;
}

.project-hero .project-hero__fact-value {
    flex-shrink: 0;
    width: 175px;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: normal;
    color: #171B1C;
    text-align: right;
    overflow-wrap: break-word;
}

.project-hero .project-hero__fact-value a {
    color: inherit;
    text-decoration: none;
}

.project-hero .project-hero__fact-value a:hover,
.project-hero .project-hero__fact-value a:focus {
    color: #F69924;
}

/* --------------------------------------------------------------------------
   3. Client Goals – Container 6736:2733 / 6736:2734 (flex column, gap 20)
   -------------------------------------------------------------------------- */

.project-hero .project-hero__goals {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    /* the legacy overlap hack (padding-top/bottom 30px !important) is not in the
       design; between-section spacing is owned globally. */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Text 6736:2738 – Montserrat 400 / 16px / #7F7F7F.
   Figma box is 1430x140 over seven lines => 20px per line, no paragraph gap. */
.project-hero .project-hero__body {
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    color: #7F7F7F;
}

.project-hero .project-hero__body p {
    margin: 0;
    font: inherit;
    color: inherit;
}

/* --------------------------------------------------------------------------
   4. Below the 1430px design column
   The design is a single 1920 frame; these rules only reflow the same Figma
   values onto the theme's existing container breakpoints (1439 / 1023 / 767).
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1439px) {
    .project-hero .project-hero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* The 36px Figma size is a 1920 value. Pinning it unconditionally overrode
       the ladder this heading used to follow (32 / 30 / 24), so on a phone the
       H1 ran seven lines. The steps below restore it and keep Figma's 1.25
       ratio between size and line box. */
    .project-hero .project-hero__title {
        font-size: 32px;
        line-height: 40px;
    }
}

@media screen and (max-width: 1023px) {
    .project-hero .project-hero__facts {
        grid-template-columns: minmax(0, 1fr);
    }
    .project-hero .project-hero__title {
        font-size: 30px;
        line-height: 38px;
    }
    /* The 1430px design column can no longer hold the title and the CTA pair
       side by side – stack them, keeping every Figma value untouched. */
    .project-hero .project-hero__row {
        flex-direction: column;
    }
    .project-hero .project-hero__actions {
        align-self: flex-start;
    }
}

@media screen and (max-width: 767px) {
    .project-hero .project-hero__title {
        font-size: 24px;
        line-height: 30px;
    }
    /* Parity with the existing template: below 768px the CTAs are rendered by
       .single-project-section-4-wrap-buttons-mobile instead. */
    .project-hero .project-hero__actions {
        display: none;
    }
    .project-hero .project-hero__fact-body {
        gap: 20px;
    }
    .project-hero .project-hero__fact-label {
        flex-shrink: 1;
        min-width: 0;
        white-space: normal;
    }
    /* The 175px value column no longer fits next to the label, so it shrinks
       with the row instead of pushing the page into horizontal scroll. */
    .project-hero .project-hero__fact-value {
        flex-shrink: 1;
        width: auto;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ─── hero slider arrows — fig 6915:10180 ───
   Two 56px glass discs inset 40 from each edge of the strip, vertically
   centred: #171B1C at 50% behind a 2.5px backdrop blur, a 1px white ring and
   the white chevron. Same disc as the media viewer's nav.

   Two-class selectors on purpose: an older arrow set in main-es.css styles the
   same class names at one-class specificity and later in the cascade — 80px
   #FAFAFA discs at calc(50% + 425px), a dark glyph and a flipped chevron.
   Everything it sets is restated here so load order cannot decide the look. */
.single-project-section-1-wrap-slider {
    position: relative;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: rgba(23, 27, 28, 0.5);
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transform: translateY(-50%);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav svg {
    display: block;
    width: 56px;
    height: 56px;
}

/* the glyph must follow the button colour, not a legacy hard-coded fill */
.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav svg path {
    fill: currentColor;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-prev {
    left: 40px;
    right: auto;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-prev svg {
    transform: rotate(180deg);
}

/* the exported chevron already points right */
.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-next {
    right: 40px;
    left: auto;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-next svg {
    transform: none;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav:hover,
.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav:focus-visible {
    background: rgba(23, 27, 28, 0.8);
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav:focus-visible {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

.single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 767px) {
    .single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav {
        width: 44px;
        height: 44px;
    }

    .single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-nav svg { width: 44px; height: 44px; }
    .single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-prev { left: 12px; }
    .single-project-section-1-wrap-slider .single-project-section-1-wrap-slider-next { right: 12px; }
}
