/*
Theme Name: Diamond Foundry
Description: Converted from static HTML to a WordPress theme.
Version: 1.0.0
Text Domain: diamond-foundry
*/

/* Styles are loaded directly from assets to preserve the original layout. */

.main-wrapper,
.main-wrapper * {
    font-family: "Inter", sans-serif !important;
}

.section_layout37 .layout37_button {
    display: none !important;
}

.footer_whatsapp-link .social-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 767px) {
    body.home .section_layout396 .layout396_card-content-top h3.heading-style-h3 {
        font-size: 2.4rem !important;
        line-height: 1.4 !important;
    }

    body.home .section_layout396 .layout396_card-content-top .layout396_card-text {
        font-size: 1.62rem !important;
        line-height: 1.3 !important;
    }
}

.section_layout396 .layout396_card-layer {
    opacity: 1 !important;
}

.navbar1_logo {
    max-width: 160px;
    height: 120px;
    overflow: hidden;
}

.navbar1_logo .navbar1_logo-image {
    display: block;
    height: 120px !important;
    max-height: 120px !important;
    max-width: 160px !important;
    width: auto !important;
    object-fit: contain;
}

@media (max-width: 479px) {
    .navbar1_logo {
        max-width: 120px;
        height: 48px;
    }

    .navbar1_logo .navbar1_logo-image {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 120px !important;
    }
}

.footer_logo-wrapper {
    max-width: 200px;
}

.footer_logo-wrapper .footer_logo-image {
    display: block;
    height: 140px !important;
    max-height: 140px !important;
    max-width: 200px !important;
    width: auto !important;
    object-fit: contain;
}

.home .header30_background-image {
    position: relative;
    width: 100%;
    height: auto;
    object-position: 50% 50%;
}

.home .header30_background-image-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
}

.home .image-parallax_image.is-home-technology {
    transform: translate3d(0, 0, 0) scale(1) !important;
    object-position: 50% 50%;
}

/* Wholesale page */
.page-wholesale {
    background: #fff;
    color: #1c1b19;
}

.page-wholesale .main-wrapper,
.page-wholesale .main-wrapper * {
    font-family: "Manrope", sans-serif !important;
}

.page-wholesale .wholesale-title,
.page-wholesale .wholesale-video-rotator,
.page-wholesale .heading-style-h3,
.page-wholesale .wholesale-step-number {
    font-family: "Inter", sans-serif !important;
}

.page-wholesale .section_wholesale-hero {
    padding-top: clamp(2.5rem, 7vw, 6rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-wholesale .wholesale-hero {
    display: grid;
    gap: 1.5rem;
    max-width: 720px;
}

.page-wholesale .wholesale-hero-line {
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 30, 30, 0.2), rgba(34, 30, 30, 0.7));
}

.page-wholesale .wholesale-title {
    font-size: clamp(3rem, 8vw, 4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: #1b1b1b;
    font-weight: 500;
}

.page-wholesale .section_video {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    min-height: 100svh;
    height: 100vh;
    border: none;
    box-shadow: none;
    background: #0b0b0b;
}

.page-wholesale .section_video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.page-wholesale .section_video .video_background-video {
    width: 100%;
    height: 100%;
}

.page-wholesale .section_video .video_background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transform-origin: center;
    animation: wholesaleVideoDrift 16s ease-in-out infinite;
}

.page-wholesale .wholesale-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.page-wholesale .wholesale-video-rotator {
    position: relative;
    width: min(860px, 100%);
    min-height: 4rem;
    color: #f8f4ef;
    font-size: clamp(1.5rem, 3.4vw, 2.8rem);
    letter-spacing: 0.02em;
    text-wrap: balance;
    text-align: center;
    text-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.page-wholesale .text-color-black60 {
    color: rgba(28, 27, 25, 0.66);
}

.page-wholesale .wholesale-rotator-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    visibility: hidden;
    transition: opacity 900ms ease, transform 900ms ease, filter 900ms ease, visibility 0s linear 900ms;
}

.page-wholesale .wholesale-rotator-item.is-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    visibility: visible;
    transition: opacity 900ms ease, transform 900ms ease, filter 900ms ease;
}

.page-wholesale .section_wholesale-steps {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

.page-wholesale .wholesale-steps {
    display: grid;
    gap: clamp(3rem, 8vw, 6rem);
    max-width: 1080px;
    margin: 0 auto;
}

.page-wholesale .wholesale-step {
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 6vw, 3.5rem) 0;
    border-top: 1px solid rgba(34, 30, 30, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.page-wholesale .wholesale-step:first-child {
    border-top: none;
    padding-top: 0;
}

.page-wholesale .wholesale-step.is-reverse .wholesale-step-media {
    order: 2;
}

.page-wholesale .wholesale-step-number {
    font-size: 2.8rem;
    letter-spacing: 0.2em;
    color: rgba(34, 30, 30, 0.2);
    margin-bottom: 0.75rem;
    grid-row: 1 / span 4;
    align-self: start;
}

.page-wholesale .wholesale-step-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(140deg, #f4f1ec, #d6d1c9);
    min-height: clamp(240px, 40vw, 420px);
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(34, 30, 30, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.page-wholesale .wholesale-step-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.2));
    opacity: 0.08;
    transition: opacity 700ms ease;
}

.page-wholesale .wholesale-step-media.is-dark {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
        linear-gradient(140deg, #0f1012, #2b2c31);
    border-color: rgba(255, 255, 255, 0.08);
}

.page-wholesale .wholesale-step-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.02);
    transform: scale(1.04);
    transition: transform 900ms ease;
}

.page-wholesale .wholesale-step-content {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: clamp(1rem, 2vw, 2rem);
    row-gap: 0.75rem;
    max-width: 560px;
}

.page-wholesale .wholesale-step-content > *:not(.wholesale-step-number) {
    grid-column: 2;
}

.page-wholesale .wholesale-step-content p {
    margin: 0;
    line-height: 1.8;
}

.page-wholesale .wholesale-step-content h2 {
    position: relative;
    padding-bottom: 0.65rem;
}

.page-wholesale .wholesale-step-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(186, 154, 104, 0.9), rgba(186, 154, 104, 0));
    transition: width 900ms ease;
}

.page-wholesale .wholesale-list {
    margin: 0;
    padding-left: 0;
    display: grid;
    gap: 0.5rem;
    list-style: none;
}

.page-wholesale .wholesale-list li::before {
    content: "—";
    color: rgba(186, 154, 104, 0.9);
    margin-right: 0.75rem;
}

.page-wholesale .section_wholesale-signature {
    padding-top: clamp(2.5rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.page-wholesale .wholesale-signature {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-wholesale .wholesale-signature-svg {
    width: min(760px, 90vw);
    height: auto;
    overflow: visible;
}

@media (max-width: 479px) {
    .page-wholesale .wholesale-signature-svg {
        width: min(520px, 92vw);
    }
}

.page-wholesale .wholesale-signature-svg text {
    --signature-length: 2000;
    --signature-duration: 5s;
    font-family: "Great Vibes", cursive;
    font-size: clamp(120px, 22vw, 220px);
    fill: transparent;
    stroke: rgba(186, 154, 104, 0.9);
    stroke-width: clamp(1.6px, 0.4vw, 2.6px);
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: var(--signature-length);
    stroke-dashoffset: var(--signature-length);
    opacity: 1;
    animation: wholesaleSignatureDraw var(--signature-duration) linear forwards;
    animation-play-state: paused;
}

.page-wholesale .wholesale-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.page-wholesale .wholesale-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-wholesale .wholesale-reveal.is-visible .wholesale-signature-svg text {
    animation-play-state: running;
}

.page-wholesale .wholesale-reveal.is-visible .wholesale-step-media img {
    transform: scale(1);
}

 

.page-wholesale .wholesale-reveal.is-visible .wholesale-step-content h2::after {
    width: min(120px, 40%);
}

.page-wholesale .wholesale-step:hover .wholesale-step-media::after {
    opacity: 0.22;
}

.page-wholesale .wholesale-step:hover .wholesale-step-media img {
    transform: scale(1.02);
}

@keyframes wholesaleSignatureDraw {
    0% {
        stroke-dashoffset: var(--signature-length);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes wholesaleVideoDrift {
    0% {
        transform: scale(1.04);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1.04);
    }
}

.page-wholesale .heading-style-h3 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.2;
}

@media (min-width: 992px) {
    .page-wholesale .wholesale-step {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 767px) {
    .page-wholesale .section_video {
        margin: 0;
        min-height: 100svh;
        height: 100svh;
    }

    .page-wholesale .wholesale-step {
        grid-template-columns: 1fr;
    }

    .page-wholesale .wholesale-step.is-reverse .wholesale-step-media {
        order: 0;
    }

    .page-wholesale .wholesale-step-content {
        grid-template-columns: 1fr;
    }

    .page-wholesale .wholesale-step-content > *:not(.wholesale-step-number) {
        grid-column: auto;
    }

    .page-wholesale .wholesale-step-number {
        grid-row: auto;
    }
}


/* Diamond Wafer page */
.page-diamond-wafer .wafer-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.page-diamond-wafer .wafer-hero-label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: rgba(34, 30, 30, 0.65);
}

.page-diamond-wafer .wafer-hero-title {
    font-size: 3rem;
    margin: 0.75rem 0 0.5rem;
}

.page-diamond-wafer .wafer-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(34, 30, 30, 0.7);
}

.page-diamond-wafer .wafer-hero-media {
    border-radius: 24px;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
        linear-gradient(135deg, #0f1012, #2f3137);
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.page-diamond-wafer .wafer-hero-chip {
    width: min(240px, 60vw);
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: waferFloat 6s ease-in-out infinite;
}

.page-diamond-wafer .section_wafer-intro h2 {
    margin-bottom: 1rem;
}

.page-diamond-wafer .wafer-intro-lines {
    display: grid;
    gap: 0.5rem;
    color: rgba(34, 30, 30, 0.7);
    font-size: 1.1rem;
}

.page-diamond-wafer .wafer-properties-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.page-diamond-wafer .wafer-properties-index {
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: rgba(34, 30, 30, 0.5);
}

.page-diamond-wafer .wafer-property {
    display: grid;
    gap: 2rem;
    border-top: 1px solid var(--c9c9c9);
    padding-top: 2rem;
    margin-top: 2rem;
}

.page-diamond-wafer .wafer-property-number {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: rgba(34, 30, 30, 0.55);
}

.page-diamond-wafer .wafer-property-media {
    border-radius: 16px;
    background: linear-gradient(145deg, #f6f2ea, #d9d3c7);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 30, 30, 0.6);
}

.page-diamond-wafer .wafer-property-media.is-dark {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 55%),
        linear-gradient(140deg, #0f1012, #2b2c31);
    color: rgba(255, 255, 255, 0.7);
}

.page-diamond-wafer .wafer-property-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.page-diamond-wafer .wafer-mini-card {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.06);
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(34, 30, 30, 0.6);
}

.page-diamond-wafer .section_wafer-applications {
    background: #f8f6f2;
}

.page-diamond-wafer .wafer-apps-header {
    max-width: 720px;
    display: grid;
    gap: 1rem;
}

.page-diamond-wafer .wafer-apps-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-diamond-wafer .wafer-app-card {
    background: #111214;
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.page-diamond-wafer .wafer-app-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 85, 50, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-diamond-wafer .wafer-app-card:hover::after {
    opacity: 1;
}

.page-diamond-wafer .wafer-app-tag {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.page-diamond-wafer .wafer-app-metric {
    font-size: 2rem;
    font-weight: 600;
}

.page-diamond-wafer .wafer-milestone-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.page-diamond-wafer .wafer-milestone-media {
    border-radius: 20px;
    background: linear-gradient(135deg, #ece7de, #cfc6ba);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 30, 30, 0.6);
}

.page-diamond-wafer .wafer-insights-header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@keyframes waferFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-12px);
    }
}

@media (min-width: 992px) {
    .page-diamond-wafer .wafer-hero-grid,
    .page-diamond-wafer .wafer-milestone-grid {
        grid-template-columns: 1.1fr 1fr;
    }
    .page-diamond-wafer .wafer-property {
        grid-template-columns: 80px 1fr 1.2fr;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .page-diamond-wafer .wafer-hero-title {
        font-size: 2.4rem;
    }
    .page-diamond-wafer .wafer-hero-media,
    .page-diamond-wafer .wafer-milestone-media {
        min-height: 240px;
    }
}


.page-diamond-wafer .wafer-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform: scale(1.03);
    animation: waferGlow 8s ease-in-out infinite;
}

.page-diamond-wafer .wafer-property-media img,
.page-diamond-wafer .wafer-milestone-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-diamond-wafer .wafer-property-media {
    overflow: hidden;
}

.page-diamond-wafer .wafer-mini-image {
    width: 100%;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    display: block;
}

@keyframes waferGlow {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}
