/*==================================================
  WEBSITE DESIGN FEATURE + PORTFOLIO PAGE
==================================================*/

.websiteFeature,
.websiteProjects,
.websiteDesignProof {
    position: relative;
    overflow: hidden;
}

.websiteFeature {
    padding: 110px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.09), transparent 34%),
        linear-gradient(180deg, #0b0a09 0%, #11100e 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.websiteFeatureIntro {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 70px;
    align-items: end;
}

.websiteFeatureIntro h2,
.websiteDesignProof h2 {
    margin: 12px 0 0;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.1rem, 5vw, 5.4rem);
    font-weight: 600;
    line-height: 0.98;
}

.websiteFeatureIntro p {
    margin: 0 0 28px;
    color: #d5d1cb;
    font-size: 1.02rem;
    line-height: 1.85;
}

.websiteFeatureStrip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.websiteFeatureTile {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 20px;
    background: #0b0b0b;
    text-decoration: none;
    isolation: isolate;
}

.websiteFeatureTile::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.88) 100%);
}

.websiteFeatureTile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.websiteFeatureTile:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) brightness(1.04);
}

.websiteFeatureTile span,
.websiteFeatureTile strong {
    position: absolute;
    left: 24px;
    z-index: 2;
}

.websiteFeatureTile span {
    bottom: 62px;
    color: #d4af37;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.websiteFeatureTile strong {
    bottom: 24px;
    right: 24px;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.05;
}

.webDesignHero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 125px 0 55px;
    background:
        radial-gradient(circle at 70% 15%, rgba(212, 175, 55, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(4, 4, 4, 0.96), rgba(18, 16, 13, 0.98)),
        url("../images/backgrounds/project-bg3.webp") center/cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.webDesignHeroGrid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 80px;
    align-items: end;
}

.webDesignHero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4rem, 7vw, 7.4rem);
    font-weight: 600;
    line-height: 0.92;
}

.webDesignHero h1 em {
    display: block;
    color: #d4af37;
    font-weight: 500;
}

.webDesignHeroCopy p {
    margin: 0 0 30px;
    color: #ddd8d0;
    font-size: 1.08rem;
    line-height: 1.85;
}

.webDesignMarquee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 46px;
    width: min(92%, 1400px);
    margin: 52px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: #8e877d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.webDesignMarquee span::before {
    content: "•";
    margin-right: 18px;
    color: #d4af37;
}

.websiteProjects {
    padding: 72px 0 110px;
    background:
        radial-gradient(circle at 90% 8%, rgba(212, 175, 55, 0.06), transparent 28%),
        #090909;
}

.websiteProject {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
    gap: 0;
    margin-bottom: 84px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 26px;
    background: #121110;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.35);
}

.websiteProject:last-child {
    margin-bottom: 0;
}

.websiteProjectReverse .websiteProjectMedia {
    order: 2;
}

.websiteProjectReverse .websiteProjectContent {
    order: 1;
}

.websiteProjectMedia {
    min-height: 540px;
    background: #050505;
}

.websiteProjectMedia img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.websiteProjectContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}

.websiteProjectMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 24px;
    color: #d4af37;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.websiteProjectMeta span + span::before {
    content: "/";
    margin-right: 18px;
    color: rgba(212, 175, 55, 0.4);
}

.websiteProject h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 4.4vw, 5.2rem);
    font-weight: 600;
    line-height: 0.95;
}

.websiteProject p {
    margin: 0 0 24px;
    color: #d3cec7;
    font-size: 1.02rem;
    line-height: 1.8;
}

.websiteProject ul {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.websiteProject li {
    position: relative;
    padding-left: 24px;
    color: #ece8e2;
    line-height: 1.6;
}

.websiteProject li::before {
    position: absolute;
    left: 0;
    content: "◇";
    color: #d4af37;
}

.websiteProject .primaryButton {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.websiteDesignProof {
    padding: 110px 0;
    background:
        linear-gradient(rgba(9, 9, 9, 0.92), rgba(9, 9, 9, 0.92)),
        url("../images/backgrounds/services-texture.webp") center/cover;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.websiteDesignProof h2 {
    max-width: 980px;
}

.websiteProofGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 54px;
    background: rgba(212, 175, 55, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.websiteProofGrid div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 40px 30px;
    background: #0d0d0c;
}

.websiteProofGrid strong {
    color: #d4af37;
    font-family: "Cormorant Garamond", serif;
    font-size: 3.4rem;
    line-height: 1;
}

.websiteProofGrid span {
    color: #d7d2cb;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .websiteFeatureStrip,
    .websiteProofGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .websiteProject,
    .websiteProjectReverse {
        grid-template-columns: 1fr;
    }

    .websiteProjectReverse .websiteProjectMedia,
    .websiteProjectReverse .websiteProjectContent {
        order: initial;
    }

    .websiteProjectMedia {
        min-height: 460px;
    }
}

@media (max-width: 900px) {
    .websiteFeatureIntro,
    .webDesignHeroGrid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .webDesignHero {
        min-height: auto;
        padding-top: 140px;
    }

    .websiteProjectContent {
        padding: 48px;
    }
}

@media (max-width: 576px) {
    .websiteFeature,
    .websiteProjects,
    .websiteDesignProof {
        padding: 78px 0;
    }

    .websiteFeatureStrip,
    .websiteProofGrid {
        grid-template-columns: 1fr;
    }

    .websiteFeatureTile {
        min-height: 320px;
    }

    .webDesignHero {
        padding: 118px 0 52px;
    }

    .webDesignHero h1 {
        font-size: clamp(3.35rem, 16vw, 5.1rem);
    }

    .webDesignMarquee {
        justify-content: flex-start;
        gap: 14px 0;
        margin-top: 48px;
    }

    .webDesignMarquee span {
        width: 100%;
    }

    .websiteProject {
        margin-bottom: 42px;
        border-radius: 18px;
    }

    .websiteProjectMedia {
        min-height: 300px;
        aspect-ratio: 4 / 3;
    }

    .websiteProjectContent {
        padding: 34px 26px 38px;
    }

    .websiteProject h2 {
        font-size: 3.2rem;
    }

    .websiteProjectMeta {
        display: grid;
        gap: 7px;
    }

    .websiteProjectMeta span + span::before {
        display: none;
    }

    .websiteProject .primaryButton {
        width: 100%;
        justify-content: center;
    }
}

/*==================================================
  FINAL CARD BALANCE + FOOTER POLISH
==================================================*/

/* Keep every desktop project card at one consistent height. */
@media (min-width: 1101px) {
    .websiteProject {
        height: 560px;
        min-height: 560px;
    }

    .websiteProjectMedia {
        height: 560px;
        min-height: 560px;
        overflow: hidden;
    }

    .websiteProjectMedia img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .websiteProjectMediaLogo img {
        object-fit: cover;
        object-position: center;
    }

    .websiteProjectMediaPortrait img {
        object-fit: cover;
        object-position: center 28%;
    }
}

.websiteDesignFooter {
    position: relative;
    overflow: hidden;
    padding: 88px 0 32px;
    background:
        radial-gradient(circle at 12% 12%, rgba(212, 175, 55, 0.11), transparent 32%),
        linear-gradient(180deg, #0d0c0b 0%, #070707 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.24);
}

.websiteDesignFooter::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.18;
    background: url("../images/backgrounds/services-texture.webp") center/cover;
}

.websiteDesignFooter .container {
    position: relative;
    z-index: 1;
}

.websiteDesignFooterGrid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(150px, 0.7fr));
    gap: 58px;
    align-items: start;
}

.websiteDesignFooterBrand img {
    width: 150px;
    height: auto;
    margin-bottom: 24px;
}

.websiteDesignFooterBrand h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.25rem;
    font-weight: 600;
}

.websiteDesignFooterBrand p,
.websiteDesignFooterColumn a,
.websiteDesignFooterColumn li {
    color: #bdb7ae;
    font-size: 0.95rem;
    line-height: 1.75;
}

.websiteDesignFooterBrand p {
    max-width: 420px;
    margin: 0;
}

.websiteDesignFooterColumn h3 {
    margin: 4px 0 20px;
    color: #d4af37;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.websiteDesignFooterColumn ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.websiteDesignFooterColumn a {
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.websiteDesignFooterColumn a:hover {
    color: #fff;
}

.websiteDesignFooterBottom {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-top: 62px;
    padding-top: 26px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    color: #807a72;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
    .websiteDesignFooterGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .websiteDesignFooter {
        padding: 68px 0 28px;
    }

    .websiteDesignFooterGrid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .websiteDesignFooterBrand img {
        width: 132px;
    }

    .websiteDesignFooterBottom {
        flex-direction: column;
        margin-top: 46px;
        font-size: 0.72rem;
        line-height: 1.6;
    }
}

/*==================================================
  PROJECT BUTTONS + CTA EMPHASIS
==================================================*/

/* Keep every project action visible and styled as a real button. */
.websiteProjectContent {
    min-width: 0;
    box-sizing: border-box;
}

.websiteProject .primaryButton {
    flex: 0 0 auto;
    min-height: 48px;
    margin-top: auto;
    padding: 14px 24px;
    border: 1px solid rgba(212, 175, 55, 0.72);
    border-radius: 999px;
    background: linear-gradient(135deg, #e0bd59 0%, #b98a27 100%);
    color: #090909;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.websiteProject .primaryButton:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.websiteProject .primaryButton i {
    font-size: 0.86rem;
}

/* Give the closing call-to-action its own visual moment. */
.ctaSection {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.16), transparent 34%),
        linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.94)),
        url("../images/backgrounds/project-bg3.webp") center/cover;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.ctaSection::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06), transparent),
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.35) 78%);
}

.ctaSection .container {
    position: relative;
    z-index: 1;
    width: min(92%, 980px);
    padding: 58px 52px;
    text-align: center;
    background: rgba(13, 12, 11, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
}

.ctaSection h2 {
    margin: 0 0 16px;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.7rem, 4.7vw, 4.8rem);
    font-weight: 600;
    line-height: 1;
}

.ctaSection p {
    max-width: 760px;
    margin: 0 auto 30px;
    color: #d3cec7;
    font-size: 1.02rem;
    line-height: 1.75;
}

.ctaSection .primaryButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 16px 32px;
    border: 1px solid rgba(239, 205, 108, 0.9);
    border-radius: 999px;
    background: linear-gradient(135deg, #e5c56d 0%, #c18d29 100%);
    color: #090909;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.ctaSection .primaryButton:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

@media (min-width: 1101px) {
    /* Slightly reduce content padding so the first card's button cannot be pushed below view. */
    .websiteProjectContent {
        padding: 50px 54px;
    }

    .websiteProjectMeta {
        margin-bottom: 18px;
    }

    .websiteProject h2 {
        margin-bottom: 16px;
    }

    .websiteProject p {
        margin-bottom: 18px;
        line-height: 1.68;
    }

    .websiteProject ul {
        gap: 9px;
        margin-bottom: 22px;
    }
}

@media (max-width: 576px) {
    .ctaSection {
        padding: 76px 0;
    }

    .ctaSection .container {
        width: calc(100% - 34px);
        padding: 42px 24px;
        border-radius: 18px;
    }

    .ctaSection .primaryButton,
    .websiteProject .primaryButton {
        width: 100%;
    }
}

/*==================================================
  MOBILE WEBSITE PROJECT SWIPE CAROUSEL
==================================================*/
.mobileCarouselIntro {
    display: none;
}

@media (max-width: 576px) {
    .websiteProjects {
        padding: 46px 0 64px;
        overflow: hidden;
    }

    .mobileCarouselIntro {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 36px);
        margin: 0 auto 18px;
        color: #d9d3ca;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .mobileCarouselIntro span {
        color: #d4af37;
        font-size: 1.25rem;
        letter-spacing: 0;
    }

    .websiteProjectsTrack {
        display: flex;
        gap: 16px;
        width: 100%;
        max-width: none;
        padding: 0 18px 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .websiteProjectsTrack::-webkit-scrollbar {
        display: none;
    }

    .websiteProject,
    .websiteProject:last-child {
        flex: 0 0 calc(100vw - 36px);
        width: calc(100vw - 36px);
        max-width: 520px;
        min-height: calc(100svh - 170px);
        max-height: none;
        margin: 0;
        display: grid;
        grid-template-rows: minmax(230px, 35svh) auto;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        border-radius: 22px;
    }

    .websiteProjectReverse .websiteProjectMedia,
    .websiteProjectReverse .websiteProjectContent {
        order: initial;
    }

    .websiteProjectMedia {
        min-height: 0;
        height: 100%;
        aspect-ratio: auto;
    }

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

    .websiteProjectMediaLogo img {
        object-fit: cover;
        object-position: center;
        transform: scale(1.02);
    }

    .websiteProjectMediaPortrait img {
        object-position: center 24%;
    }

    .websiteProjectContent {
        min-height: 0;
        padding: 26px 24px 26px;
        justify-content: flex-start;
    }

    .websiteProjectMeta {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 12px;
        margin-bottom: 18px;
        font-size: 0.66rem;
        line-height: 1.4;
    }

    .websiteProjectMeta span + span::before {
        display: none;
    }

    .websiteProject h2 {
        margin-bottom: 14px;
        font-size: clamp(2.6rem, 12vw, 3.35rem);
        line-height: 0.95;
    }

    .websiteProjectContent > p {
        margin-bottom: 17px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .websiteProjectContent ul {
        gap: 9px;
        margin: 0 0 20px;
    }

    .websiteProjectContent li {
        font-size: 0.92rem;
        line-height: 1.42;
    }

    .websiteProject .primaryButton {
        width: 100%;
        min-height: 54px;
        margin-top: auto;
        padding: 15px 20px;
        justify-content: center;
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }
}


/*==================================================
  MOBILE CAROUSEL ARROWS
==================================================*/
.mobileCarouselHeader {
    display: none;
}

@media (max-width: 576px) {
    .mobileCarouselHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: calc(100% - 36px);
        margin: 0 auto 18px;
    }

    .mobileCarouselIntro {
        display: block;
        width: auto;
        margin: 0;
        color: #d9d3ca;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        line-height: 1.45;
        text-transform: uppercase;
    }

    .mobileCarouselControls {
        display: flex;
        align-items: center;
        gap: 9px;
        flex: 0 0 auto;
    }

    .carouselArrow {
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(226, 185, 72, 0.72);
        border-radius: 50%;
        background: linear-gradient(145deg, rgba(52, 42, 22, 0.96), rgba(13, 13, 13, 0.98));
        color: #f1c75d;
        font-size: 1rem;
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.06), 0 0 24px rgba(212, 175, 55, 0.20);
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    }

    .carouselArrow:active {
        transform: scale(.93);
    }

    .carouselArrow:disabled {
        opacity: .28;
        box-shadow: none;
        cursor: default;
    }

    .carouselCounter {
        min-width: 38px;
        color: #f4e8c4;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: .08em;
        text-align: center;
    }
}
