/* DecoSign homepage — template-inspired sections */

/* Isolate from legacy theme (style.css + decosign-theme.css) */
.decosign-home {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #2f3a45;
    background: #fff;
    isolation: isolate;
}

.decosign-home h1,
.decosign-home h2,
.decosign-home h3,
.decosign-home h4,
.decosign-home h5,
.decosign-home h6,
.decosign-home p,
.decosign-home span,
.decosign-home li {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: inherit;
}

.decosign-home h1,
.decosign-home h2,
.decosign-home h3,
.decosign-home h4 {
    color: inherit !important;
}

.decosign-home p {
    color: inherit !important;
}

.decosign-home a.ds-card,
.decosign-home a.ds-card:hover,
.decosign-home a.ds-card:focus {
    color: inherit !important;
    text-decoration: none !important;
    float: none !important;
}

.decosign-home img {
    max-width: 100%;
    vertical-align: top;
}

/* Hero video */
.decosign-home .heroVideo {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 62vh, 720px);
    height: clamp(420px, 62vh, 720px);
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.decosign-home .heroVideo__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.decosign-home .heroVideo__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.12) 100%);
}

.decosign-home .heroVideo__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 96px 70px;
}

/* Hero slider (legacy) */
.decosign-home .heroSlider {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    background: #111;
}

.decosign-home .heroSlide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.7s ease;
    background-size: cover;
    background-position: center;
}

.decosign-home .heroSlide.is-active {
    opacity: 1;
    transform: scale(1);
}

.decosign-home .heroSlide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.05) 100%);
}

.decosign-home .heroSlide__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 96px 70px;
}

.decosign-home .heroSlide__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.decosign-home .heroSlide__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 3.8vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.4px;
}

.decosign-home .heroSlide__text {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.75;
}

.decosign-home .heroSlide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.decosign-home .heroSlide__btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
    color: #111;
}

.decosign-home .heroSlider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.decosign-home .heroSlider__nav--prev { left: 16px; }
.decosign-home .heroSlider__nav--next { right: 16px; }

.decosign-home .heroSlider__dots {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 6;
    display: flex;
    gap: 8px;
    align-items: center;
}

.decosign-home .heroDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.decosign-home .heroDot.is-active {
    width: 26px;
    background: rgba(255, 255, 255, 0.92);
}

/* Services grid (dl-cats style) */
.decosign-home .ds-section {
    padding: 56px 0;
}

.decosign-home .ds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.decosign-home .ds-section__title {
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
    margin: 0 0 28px;
    font-weight: 600;
    color: #e91e63 !important;
}

.decosign-home .ds-section__subtitle {
    text-align: center;
    max-width: 640px;
    margin: -12px auto 28px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.decosign-home .ds-panel {
    background: #fdf2f7;
    padding: 26px;
    border-radius: 18px;
}

.decosign-home .ds-grid {
    display: grid !important;
    gap: 18px 22px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    align-items: start;
}

.decosign-home .ds-card {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    float: none !important;
}

.decosign-home .ds-card__img {
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    height: 150px;
    flex-shrink: 0;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    background: #e2e8f0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.decosign-home .ds-card__img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
}

.decosign-home .ds-card__label {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2f3a45;
}

.decosign-home .ds-card:hover .ds-card__img {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(233, 30, 99, 0.18);
}

.decosign-home .ds-card:hover .ds-card__label {
    color: #e91e63;
}

/* Stats */
.decosign-home .ds-stats {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 56px 0;
}

.decosign-home .ds-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.decosign-home .ds-stat__number {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: #e91e63;
    line-height: 1;
    margin-bottom: 8px;
}

.decosign-home .ds-stat__label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Features */
.decosign-home .ds-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.decosign-home .ds-feature {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
}

.decosign-home .ds-feature h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 20px;
}

.decosign-home .ds-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: 15px;
}

/* About */
.decosign-home .ds-about {
    background: #fff;
}

.decosign-home .ds-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.decosign-home .ds-about__text p {
    line-height: 1.85;
    color: #475569;
    margin-bottom: 16px;
}

.decosign-home .ds-about__text strong {
    color: #e91e63;
}

.decosign-home .ds-about__image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.decosign-home .ds-about__image img {
    width: 100%;
    display: block;
}

/* Contact */
.decosign-home .ds-contact {
    background: linear-gradient(135deg, #111 0%, #1f1f1f 100%);
    color: #fff;
}

.decosign-home .ds-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.decosign-home .ds-contact__intro h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 40px);
    color: #e91e63;
}

.decosign-home .ds-contact__intro p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.decosign-home .ds-form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px;
}

.decosign-home .ds-form h4 {
    margin: 0 0 20px;
    text-align: center;
    color: #fff;
}

.decosign-home .ds-form input,
.decosign-home .ds-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
}

.decosign-home .ds-form input::placeholder,
.decosign-home .ds-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.decosign-home .ds-form textarea {
    min-height: 120px;
    resize: vertical;
}

.decosign-home .ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: #e91e63;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.decosign-home .ds-btn:hover {
    background: #c2185b;
    color: #fff;
    transform: translateY(-1px);
}

.decosign-home .ds-btn--outline {
    background: transparent;
    border: 2px solid #e91e63;
    color: #e91e63;
}

.decosign-home .ds-btn--outline:hover {
    background: #e91e63;
    color: #fff;
}

/* Showcase */
.decosign-home .ds-showcase {
    background: #f8fafc;
}

.decosign-home .ds-showcase__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.decosign-home .ds-showcase__header p {
    max-width: 480px;
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.6;
}

/* Clients */
.decosign-home .ds-clients {
    background: #fff;
    padding: 48px 0;
    border-top: 1px solid #e2e8f0;
}

.decosign-home .ds-clients__grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
    justify-items: stretch;
}

.decosign-home .ds-client-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    float: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.decosign-home .ds-client-item:hover {
    border-color: #fbcfe8;
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.12);
}

.decosign-home .ds-clients__grid figure {
    margin: 0;
    padding: 0;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decosign-home .ds-client-item img,
.decosign-home .ds-clients__grid img {
    width: auto !important;
    height: 52px !important;
    max-width: 100% !important;
    max-height: 52px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto;
    opacity: 0.72 !important;
    filter: brightness(0) saturate(100%) !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.decosign-home .ds-client-item:hover img,
.decosign-home .ds-clients__grid img:hover {
    opacity: 1 !important;
    transform: scale(1.04);
}

/* Catalog */
.decosign-home .ds-catalog {
    background: #1a1a1a;
    color: #fff;
    padding: 56px 0;
}

.decosign-home .ds-catalog .ds-section__title {
    color: #fff;
}

.decosign-home .ds-catalog .ds-section__subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.decosign-home #flipbook {
    margin: 0 auto;
    transition: opacity 0.5s;
}

.decosign-home #flipbook .page {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.decosign-home #flipbook img {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.decosign-home .catalog-controls {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1100px) {
    .decosign-home .ds-grid { grid-template-columns: repeat(4, 1fr); }
    .decosign-home .ds-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .decosign-home .ds-features { grid-template-columns: 1fr; }
    .decosign-home .ds-clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .decosign-home .heroVideo { min-height: 420px; }
    .decosign-home .heroVideo__content { padding: 72px 22px; }
    .decosign-home .heroSlider { min-height: 420px; }
    .decosign-home .heroSlide__content { padding: 72px 22px; }
    .decosign-home .heroSlide__text { font-size: 16px; }
    .decosign-home .ds-about__grid,
    .decosign-home .ds-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .decosign-home .ds-grid { grid-template-columns: repeat(3, 1fr); }
    .decosign-home .ds-card__img { height: 145px; }
}

@media (max-width: 600px) {
    .decosign-home .ds-panel { padding: 18px; }
    .decosign-home .ds-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .decosign-home .ds-card__img { height: 140px; }
    .decosign-home .ds-stats__grid { grid-template-columns: 1fr 1fr; }
    .decosign-home .ds-clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .decosign-home #flipbook { width: 90vw !important; }
}
