/**
 * Dev Site Builder — Frontend Styles
 *
 * Responsive CSS for all content modules.
 * Brand-neutral: adapts via inline styles from module settings.
 */

/* Google Fonts — free alternatives usable in module font dropdowns:
   Bebas Neue  → similar to Briery Bold (tall bold uppercase display font)
   Oswald 700  → alternative bold heading font
   DM Sans     → similar to Atyp Text (clean modern body font)        */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ==============================
   Base / Reset
   ============================== */
.dsb-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #212121;
    /* Prevent sub-pixel gaps showing between dark sections */
    display: block;
    margin: 0;
    padding: 0;
}

.dsb-page *,
.dsb-page *::before,
.dsb-page *::after {
    box-sizing: border-box;
}

/* Global img reset — does NOT apply to content-image/hero modules
   (those use !important overrides in their own style blocks) */
.dsb-page img {
    max-width: 100%;
    height: auto;
}

/* Zero out any browser-default margins on section elements */
.dsb-page section {
    display: block;
    margin: 0;
    padding: 0;
}

/* ==============================
   Button
   ============================== */
.dsb-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #f1ce30;
    color: #212121;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.dsb-btn:hover {
    background: #ddb824;
    transform: translateY(-1px);
}

/* ==============================
   Hero Module
   ============================== */
.dsb-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 60px;
}

.dsb-hero--simple {
    min-height: 60vh;
}

.dsb-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.dsb-hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.dsb-hero__top-heading {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dsb-hero__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.dsb-hero__body {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.9;
}

.dsb-hero__btn {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.dsb-hero__btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==============================
   Content + Image Section
   ============================== */
.dsb-content-image {
    padding: 0;
}

.dsb-content-image__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.dsb-content-image--inverted .dsb-content-image__inner {
    direction: rtl;
}

.dsb-content-image--inverted .dsb-content-image__inner > * {
    direction: ltr;
}

.dsb-content-image__media {
    overflow: hidden;
}

.dsb-content-image__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsb-content-image__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.dsb-content-image__text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.dsb-content-image__text p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
}

/* ==============================
   Full Image — Center Text
   ============================== */
.dsb-fullimage-center {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
}

.dsb-fullimage-center__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.dsb-fullimage-center__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.dsb-fullimage-center__content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 32px;
    text-transform: uppercase;
}

.dsb-fullimage-center__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.dsb-fullimage-center__col p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ==============================
   Full Image — Left Text
   ============================== */
.dsb-fullimage-left {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 80px 60px;
    color: #fff;
}

.dsb-fullimage-left__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.dsb-fullimage-left__content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.dsb-fullimage-left__content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.dsb-fullimage-left__content p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
    opacity: 0.9;
}

/* ==============================
   Showcase Grid
   ============================== */
.dsb-showcase {
    padding: 80px 0;
}

.dsb-showcase__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.dsb-showcase__heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px;
    text-transform: uppercase;
}

.dsb-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.dsb-showcase__card {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.dsb-showcase__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.7));
}

.dsb-showcase__link {
    display: flex;
    align-items: flex-end;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: #fff;
    z-index: 2;
}

.dsb-showcase__card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
}

.dsb-showcase__card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.dsb-showcase__card-content p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

/* ==============================
   Features Grid
   ============================== */
.dsb-features {
    padding: 80px 0;
    background: #f9f9f9;
}

.dsb-features__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.dsb-features__heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px;
    text-transform: uppercase;
}

.dsb-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.dsb-features__item {
    text-align: center;
}

.dsb-features__icon {
    margin-bottom: 16px;
}

.dsb-features__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.dsb-features__item h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.dsb-features__item p {
    font-size: 14px;
    line-height: 1.6;
    color: #585857;
    margin: 0;
}

/* ==============================
   Showcase Carousel
   ============================== */
.dsb-showcase-carousel {
    padding: 80px 0;
}

.dsb-showcase-carousel__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.dsb-showcase-carousel__slide {
    display: none;
}

.dsb-showcase-carousel__slide.is-active {
    display: block;
}

.dsb-showcase-carousel__images {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.dsb-showcase-carousel__sample img,
.dsb-showcase-carousel__case img {
    max-height: 300px;
    border-radius: 4px;
}

.dsb-showcase-carousel__title {
    font-size: 22px;
    font-weight: 700;
    margin: 16px 0 8px;
    text-transform: uppercase;
}

.dsb-showcase-carousel__desc {
    font-size: 14px;
    color: #585857;
}

.dsb-showcase-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dsb-showcase-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #c3c4c7;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
}

.dsb-showcase-carousel__dot.is-active {
    background: #f1ce30;
    border-color: #f1ce30;
}

/* ==============================
   Image + CTA
   ============================== */
.dsb-image-cta {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
}

.dsb-image-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.dsb-image-cta__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.dsb-image-cta__content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.dsb-image-cta__content p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0 0 24px;
}

/* ==============================
   HTML Block
   ============================== */
.dsb-html-block {
    padding: 60px 0;
}

.dsb-html-block__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.dsb-html-block__heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 24px;
    text-transform: uppercase;
    text-align: center;
}

.dsb-html-block__content {
    font-size: 15px;
    line-height: 1.7;
}

.dsb-html-block__content h1,
.dsb-html-block__content h2,
.dsb-html-block__content h3,
.dsb-html-block__content h4 {
    margin-top: 24px;
}

.dsb-html-block__content ul,
.dsb-html-block__content ol {
    padding-left: 24px;
}

/* ==============================
   Two Column Content
   ============================== */
.dsb-two-col {
    padding: 80px 0;
}

.dsb-two-col__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.dsb-two-col__left h2,
.dsb-two-col__right h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.dsb-two-col__left h3 {
    font-size: 16px;
    font-weight: 600;
    color: #585857;
    margin: 0 0 12px;
}

.dsb-two-col__left p,
.dsb-two-col__right p {
    font-size: 15px;
    line-height: 1.7;
    color: #585857;
}

.dsb-two-col__item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
}

.dsb-two-col__item:last-child {
    border-bottom: none;
}

.dsb-two-col__item h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

/* ==============================
   Footer
   ============================== */
.dsb-footer {
    background: #212121;
    color: #fff;
    padding: 60px 0 0;
}

.dsb-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.dsb-footer__logo {
    max-height: 50px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.dsb-footer__social {
    display: flex;
    gap: 16px;
}

.dsb-footer__social a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.dsb-footer__social a:hover {
    opacity: 1;
}

.dsb-footer__col h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #f1ce30;
}

.dsb-footer__col p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 8px;
    opacity: 0.8;
}

.dsb-footer__col a {
    color: #f1ce30;
    text-decoration: none;
}

.dsb-footer__col a:hover {
    text-decoration: underline;
}

.dsb-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin: 0 auto;
}

.dsb-footer__bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.dsb-footer__bottom a:hover {
    color: #fff;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
    .dsb-hero {
        min-height: 70vh;
        padding: 40px 24px;
    }

    .dsb-hero__heading {
        font-size: 2rem;
    }

    .dsb-content-image__inner {
        grid-template-columns: 1fr;
    }

    .dsb-content-image--inverted .dsb-content-image__inner {
        direction: ltr;
    }

    .dsb-content-image__text {
        padding: 40px 24px;
    }

    .dsb-fullimage-center__columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dsb-fullimage-left {
        padding: 40px 24px;
    }

    .dsb-showcase__inner,
    .dsb-features__inner {
        padding: 0 24px;
    }

    .dsb-showcase__grid {
        grid-template-columns: 1fr;
    }

    .dsb-two-col__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .dsb-footer__inner {
        grid-template-columns: 1fr;
        padding: 0 24px 24px;
    }

    .dsb-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 24px;
    }
}

/* ==============================
   Large Screen (1600px+)
   — prevent sections from stretching too wide on 2K/4K monitors
   ============================== */
@media (min-width: 1600px) {
    /* Content + Image: increase text padding so lines don't stretch across ~1000px */
    .dsb-ci__text {
        padding: 60px 10% !important;
    }

    /* Prime Hero content max width */
    .dsb-prime-hero > div:last-child {
        max-width: 1400px;
    }

    /* Features grid already has max-width:1200px — just ensure section padding */
    .dsb-features {
        padding-left: 80px;
        padding-right: 80px;
    }
}
