/* Factory page styles */
.remark-page--factory {
    background-color: var(--remark-color-bg);
}

/* Hero */
.remark-factory-hero.remark-section {
    padding: 100px 24px 0;
    background: linear-gradient(to bottom, var(--remark-color-bg-alt) 67%, white 67%);
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.remark-factory-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.remark-factory-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    background-color: var(--remark-color-white);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: var(--remark-font-body);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.remark-factory-hero__highlight,
.remark-factory-hero__badge-text {
    background-image: linear-gradient(90deg, var(--remark-color-highlight-start), var(--remark-color-highlight-end));
    background-size: 200% 100%;
    background-position: 200% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.remark-factory-hero__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 400;
    line-height: 1.05;
    color: var(--remark-color-primary);
}

.remark-factory-hero__title-line {
    display: block;
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.remark-factory-hero__subtitle {
    margin: 0;
    font-family: var(--remark-font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.7;
    color: var(--remark-color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.button {
    align-items: center;
    background: none;
    border: none;
    border-radius: 6.25rem;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 600;
    gap: 0.363636em;
    justify-content: center;
    letter-spacing: -0.01em;
    line-height: 1.04545;
    overflow: hidden;
    padding: 0.9375rem 1.5rem;
    position: relative;
    text-decoration: none;
}

@media (hover: hover) {
    .button:hover {
        color: var(--remark-color-white);
        text-decoration: none;
    }

    .button:hover .button__label {
        transition: color 0.15s var(--ease-in-out-quart);
    }
}

.button__label {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: color 0.15s var(--ease-in-out-quart);
    display: inline-flex;
    align-items: center;
}

.button__label::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 12px;
    margin-left: 8px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuMjQ0NDcgNy4wNjYyM0M5Ljk1NTI5IDYuNTMzMTEgOS45NTUyOSA1LjQ2Njg3IDkuMjQ0NDcgNC45MzM3NUwzLjAyNDc2IDAuMjY4OTcxQzIuMTQ2MTMgLTAuMzkgMC44OTIyODUgMC4yMzY5MjIgMC44OTIyODUgMS4zMzUyMUwwLjg5MjI4NSAxMC42NjQ4QzAuODkyMjg1IDExLjc2MzEgMi4xNDYxMyAxMi4zOSAzLjAyNDc2IDExLjczMUw5LjI0NDQ3IDcuMDY2MjNaIiBmaWxsPSIjRTMzRDNCIi8+PC9zdmc+');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.15s var(--ease-in-out-quart);
}

.button__flair {
    bottom: 0;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transform: scale(0);
    transform-origin: 0 0;
    will-change: transform;
}

.button__flair:before {
    aspect-ratio: 1/1;
    background-color: #D71921;
    border-radius: 50%;
    content: "";
    display: block;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    width: 280%;
}

.remark-factory-hero__media {
    width: 100%;
    max-width: 1280px;
    height: auto;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.remark-factory-hero__image-container {
    position: relative;
    width: 100%;
    max-width: 850px;
}

.remark-factory-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 48px 48px 16px 16px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.remark-factory-hero__title--mobile {
    display: none;
}

@media (min-width: 992px) {
    .remark-factory-hero__image-container {
        width: 65%;
    }

    .remark-factory-hero__image {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .remark-factory-hero.remark-section {
        height: auto;
        padding-bottom: 64px;
    }

    .remark-factory-hero__title--desktop {
        display: none;
    }

    .remark-factory-hero__title--mobile {
        display: flex;
    }

    .remark-factory-hero__media {
        position: static;
        transform: none;
        width: 100%;
    }
}

/* Location Section */
.remark-factory-location.remark-section {
    background-color: var(--remark-color-white);
    padding: 0 24px 80px;
}

.remark-factory-location__inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.remark-factory-location__title {
    font-family: var(--remark-font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--remark-color-text);
    margin: 0 0 24px;
}

.remark-factory-location__paragraph {
    font-family: var(--remark-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    color: var(--remark-color-text-muted);
    margin: 0;
}

/* R&D Section */
.remark-factory-tabs.remark-section {
    background-color: var(--remark-color-bg);
    padding: 100px 24px;
}

.remark-factory-tabs__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.remark-factory-tabs__header {
    max-width: 720px;
}

.remark-factory-tabs__title {
    margin: 0 0 16px;
    font-family: var(--remark-font-title);
    font-size: clamp(2rem, 4vw, 2.875rem);
    font-weight: 600;
    color: var(--remark-color-primary);
}

.remark-factory-tabs__intro {
    margin: 0;
    font-family: var(--remark-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    color: var(--remark-color-text-muted);
}

.remark-factory-tabs__body {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.3fr);
    gap: 48px;
}

.remark-factory-tabs__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.remark-factory-tabs__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: transparent;
    font-family: var(--remark-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--remark-color-text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.remark-factory-tabs__tab:hover,
.remark-factory-tabs__tab:focus-visible {
    outline: none;
    border-color: rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.6);
}

.remark-factory-tabs__tab.is-active {
    background-color: var(--remark-color-white);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--remark-color-primary);
}

.remark-factory-tabs__tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: transform 0.2s ease;
}

.remark-factory-tabs__tab.is-active .remark-factory-tabs__tab-icon {
    transform: translateX(4px);
}

.remark-factory-tabs__content {
    position: relative;
}

.remark-factory-tabs__panel {
    background-color: var(--remark-color-white);
    border-radius: 20px;
    box-shadow: 0 24px 60px -32px rgba(17, 23, 35, 0.25);
    overflow: hidden;
    display: none;
}

.remark-factory-tabs__panel.is-active {
    display: block;
}

.remark-factory-tabs__panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.remark-factory-tabs__panel-text {
    padding: 36px;
}

.remark-factory-tabs__panel-title {
    margin: 0 0 16px;
    font-family: var(--remark-font-title);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 600;
    color: var(--remark-color-primary);
}

.remark-factory-tabs__panel-description {
    margin: 0;
    font-family: var(--remark-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--remark-color-text-muted);
}

.remark-factory-tabs__panel-media {
    position: relative;
    width: 100%;
    margin-top: 32px;
    background-color: rgba(0, 0, 0, 0.04);
}

.remark-factory-tabs__panel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remark-factory-packaging .remark-factory-tabs__panel-title {
    display: none;
}

.remark-factory-packaging .remark-factory-tabs__panel-text,
.remark-factory-rd .remark-factory-tabs__panel-text {
    padding: 40px 40px 32px;
}

.remark-factory-packaging__process-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.remark-factory-packaging__process {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.remark-factory-packaging__process:not(:first-child) {
    border-top: 1px solid rgba(17, 23, 35, 0.08);
    padding-top: 24px;
}

.remark-factory-packaging__process-title {
    margin: 0;
    font-family: var(--remark-font-title);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 600;
    color: var(--remark-color-primary);
}

.remark-factory-packaging__process-description {
    margin: 0;
    font-family: var(--remark-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--remark-color-text-muted);
}

.remark-factory-packaging__process-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 32px -24px rgba(17, 23, 35, 0.35);
}

.remark-factory-packaging__process-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .remark-factory-tabs__panel-inner {
        /* Generic padding for tab panels, overridden below */
    }

    .remark-factory-packaging .remark-factory-tabs__panel-inner,
    .remark-factory-rd .remark-factory-tabs__panel-inner {
        padding: 0;
    }
}

@media (max-width: 991px) {
    .remark-factory-tabs.remark-section {
        padding: 72px 20px;
    }

    .remark-factory-tabs__body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .remark-factory-tabs__tab {
        border-radius: 14px;
    }

    .remark-factory-tabs__panel {
        border-radius: 16px;
    }

    .remark-factory-tabs__panel-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Award Section */
.remark-factory-award.remark-section {
    background-color: var(--remark-color-white);
    padding: 100px 24px;
}

.remark-factory-award__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.remark-factory-award__title {
    margin: 0;
    font-family: var(--remark-font-title);
    font-size: clamp(2rem, 4vw, 2.875rem);
    font-weight: 600;
    color: var(--remark-color-primary);
}

.remark-factory-award__subtitle {
    margin: 0;
    font-family: var(--remark-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    color: var(--remark-color-text-muted);
    max-width: 600px;
}

.remark-factory-award__media {
    margin-top: 16px;
    width: 100%;
}

.remark-factory-award__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
