/* ============================================================
   Creative Design & Print — Elementor Widgets
   Version 1.0.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Josefin+Sans:wght@400;700&display=swap');

/* ── Base reset for all CDP sections ── */
.cdp-services-section,
.cdp-portfolio-section,
.cdp-about-section,
.cdp-contact-section,
.cdp-footer,
.cdp-header {
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   HEADER
   ============================================================ */
.cdp-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}
.cdp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.cdp-header-logo a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    text-decoration: none;
}
.cdp-header-logo span { color: #B20122; }
.cdp-header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.cdp-header-nav a {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}
.cdp-header-nav a:hover { color: #B20122; }
.cdp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #222;
}
.cdp-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 24px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}
.cdp-mobile-menu a {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cdp-mobile-menu.open { display: flex; }
@media (max-width: 768px) {
    .cdp-header-nav a:not(.cdp-mobile-toggle) { display: none; }
    .cdp-mobile-toggle { display: block; }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.cdp-services-section {
    background: #fff;
    padding: 80px 0 60px;
}
.cdp-services-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Heading */
.cdp-services-heading {
    font-family: 'Josefin Sans', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #222;
    text-align: center;
    margin: 0 0 0 0;
}
.cdp-services-heading span { color: #B20122; }

/* Tab Bar */
.cdp-tab-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #efefef;
    border-top: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    margin: 28px 0 0;
}
.cdp-tab-btn {
    padding: 10px 18px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-right: 1px solid #d8d8d8;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    outline: none;
}
.cdp-tab-btn:last-child { border-right: none; }
.cdp-tab-btn:hover:not(.active) { background: #d8d8d8; color: #222; }
.cdp-tab-btn.active { background: #B20122; color: #fff; }

/* Three-column content */
.cdp-services-columns {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.4fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0 0;
}
.cdp-col-intro { }
.cdp-services-intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    margin: 0;
}

/* Center image column */
.cdp-col-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}
.cdp-service-img-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.14);
    display: none; /* hidden by default, shown by JS */
}
.cdp-service-img-wrap.active { display: block; }
.cdp-service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right content column */
.cdp-col-content { }
.cdp-tab-panel { display: none; }
.cdp-tab-panel.active { display: block; }

.cdp-service-title {
    font-family: 'Josefin Sans', 'Arial Narrow', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 4px;
}
.cdp-service-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #888;
    margin: 0 0 14px;
}
.cdp-service-desc,
.cdp-service-desc p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 10px;
}
.cdp-service-desc p:last-child { margin-bottom: 0; }
.cdp-service-btn {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-style: italic;
    color: #B20122;
    text-decoration: none;
    transition: color 0.2s;
}
.cdp-service-btn:hover { color: #222; text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .cdp-services-columns { grid-template-columns: 1fr; gap: 28px; }
    .cdp-col-image { order: -1; }
}
@media (max-width: 560px) {
    .cdp-service-img-wrap { width: 160px; height: 160px; }
    .cdp-tab-btn { font-size: 10px; padding: 8px 12px; }
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.cdp-portfolio-section {
    background: #e5e5e5;
    padding: 70px 0;
}
.cdp-port-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.cdp-port-heading {
    font-family: 'Josefin Sans', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 22px;
    text-align: left;
}
.cdp-port-heading span { color: #B20122; }

/* Filter bar */
.cdp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
}
.cdp-filter-btn {
    padding: 5px 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #cccccc;
    color: #333;
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.cdp-filter-btn:hover,
.cdp-filter-btn.active { background: #B20122; color: #fff; }

/* Grid */
.cdp-port-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}
.cdp-port-item {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s;
}
.cdp-port-item:hover { transform: scale(1.05); }
.cdp-port-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.cdp-port-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(178,1,34,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.cdp-port-item:hover .cdp-port-overlay { opacity: 1; }
.cdp-port-plus {
    color: #fff;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}
/* Hidden items */
.cdp-port-item.cdp-hidden { display: none; }

/* Lightbox */
.cdp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.cdp-lightbox.open { display: flex; }
.cdp-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}
.cdp-lb-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}
.cdp-lb-img {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    width: 450px;
    height: 450px;
}
.cdp-lb-caption {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin: 12px 0 0;
    text-align: center;
}
.cdp-lb-close,
.cdp-lb-prev,
.cdp-lb-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}
.cdp-lb-close:hover,
.cdp-lb-prev:hover,
.cdp-lb-next:hover { color: #B20122; }
.cdp-lb-close { top: -40px; right: 0; font-size: 36px; }
.cdp-lb-prev  { left: -52px;  top: 50%; transform: translateY(-50%); }
.cdp-lb-next  { right: -52px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) { .cdp-port-grid { grid-template-columns: repeat(3, 1fr); } .cdp-port-item { width: 140px; height: 140px; } }
@media (max-width: 560px) { .cdp-port-grid { grid-template-columns: repeat(2, 1fr); } .cdp-port-item { width: 130px; height: 130px; } .cdp-lb-img { width: 280px; height: 280px; } .cdp-lb-prev { left: -36px; } .cdp-lb-next { right: -36px; } }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.cdp-about-section {
    background: #fff;
    padding: 80px 0;
}
.cdp-about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.cdp-about-heading {
    font-family: 'Josefin Sans', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 30px;
}
.cdp-about-heading span { color: #B20122; }
.cdp-about-body,
.cdp-about-body p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 16px;
}
.cdp-about-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #B20122;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s;
}
.cdp-about-btn:hover { background: #222; color: #fff; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.cdp-contact-section {
    background: #737373;
    padding: 70px 0;
}
.cdp-contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.cdp-contact-heading {
    font-family: 'Josefin Sans', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 36px;
}
.cdp-contact-heading span { color: #B20122; }
.cdp-contact-cols {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.cdp-contact-col-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
}
.cdp-contact-left p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #fff;
    line-height: 1.7;
    margin: 0 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cdp-contact-left a { color: #fff; text-decoration: none; }
.cdp-contact-left a:hover { text-decoration: underline; }
.cdp-contact-icon { color: #B20122; flex-shrink: 0; font-size: 10px; margin-top: 4px; }

.cdp-social-icons { display: flex; gap: 12px; margin-top: 16px; }
.cdp-social-icons a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}
.cdp-social-icons a:hover { border-color: #fff; color: #fff; }

/* Form */
.cdp-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cdp-form-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #aaaaaa;
    padding: 8px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: none;
}
.cdp-form-field::placeholder { color: rgba(255,255,255,0.55); }
.cdp-form-field:focus { border-bottom-color: #fff; }
.cdp-send-btn {
    align-self: flex-start;
    padding: 10px 30px;
    background: #B20122;
    color: #fff;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
.cdp-send-btn:hover { background: #222; }

@media (max-width: 768px) {
    .cdp-contact-cols { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.cdp-footer {
    background: #222;
    padding: 24px 0;
}
.cdp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.cdp-footer p {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #888;
    margin: 0;
}
.cdp-footer-socials { display: flex; gap: 14px; }
.cdp-footer-socials a {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.cdp-footer-socials a:hover { color: #fff; }


/* ============================================================
   CDP Responsive Polish — Services Tabs Pro + Portfolio Filter Pro
   Keeps all existing controls intact; adds safer device behavior.
   ============================================================ */
.cdp-mobile-intro-before-tabs { display: none; }

.cdp-services-section *,
.cdp-portfolio-section * { box-sizing: border-box; }

.cdp-tab-bar,
.cdp-filter-bar { max-width: 100%; }

.cdp-tab-btn,
.cdp-filter-btn { line-height: 1.2; }

.cdp-service-img-wrap,
.cdp-port-item { aspect-ratio: 1 / 1; }

.cdp-service-img-wrap img,
.cdp-port-item img { -webkit-user-drag: none; }

@media (max-width: 1024px) {
    .cdp-services-container,
    .cdp-port-container {
        max-width: 92vw !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    .cdp-services-columns {
        grid-template-columns: minmax(0, 0.95fr) minmax(160px, 0.8fr) minmax(0, 1.25fr) !important;
        gap: 24px !important;
    }
    .cdp-port-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 28px 18px !important;
    }
    .cdp-port-item {
        width: min(180px, 24vw) !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .cdp-services-section {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
        overflow: hidden;
    }
    .cdp-services-container,
    .cdp-port-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .cdp-services-heading,
    .cdp-port-heading {
        font-size: clamp(28px, 8vw, 38px) !important;
        line-height: 1.05 !important;
        letter-spacing: 0.02em !important;
        text-align: left !important;
        margin-bottom: 18px !important;
    }
    .cdp-mobile-intro-before-tabs {
        display: block !important;
        padding: 0 0 14px !important;
        margin: 0 0 18px !important;
        border-top: 1px solid rgba(0,0,0,0.16);
        border-bottom: 1px solid rgba(0,0,0,0.16);
    }
    .cdp-mobile-intro-before-tabs .cdp-services-intro,
    .cdp-mobile-intro-before-tabs .cdp-services-intro p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .cdp-services-columns {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding-top: 22px !important;
        text-align: left !important;
        width: 100% !important;
    }
    .cdp-services-columns .cdp-col-intro { display: none !important; }
    .cdp-col-image {
        order: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    .cdp-col-content {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }
    .cdp-tab-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        width: 100% !important;
    }
    .cdp-tab-btn {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        white-space: normal !important;
        padding: 12px 14px !important;
        margin: 0 !important;
        border-right: 0 !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        min-height: 38px !important;
        touch-action: manipulation;
    }
    .cdp-service-img-wrap {
        width: min(72vw, 290px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 50% !important;
    }
    .cdp-service-title {
        font-size: clamp(26px, 7vw, 34px) !important;
        line-height: 1.1 !important;
        letter-spacing: 0.02em !important;
        margin-top: 4px !important;
    }
    .cdp-service-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    .cdp-service-desc,
    .cdp-service-desc p,
    .cdp-services-intro,
    .cdp-services-intro p {
        font-size: 14px !important;
        line-height: 1.65 !important;
        max-width: 100% !important;
    }

    .cdp-portfolio-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
        overflow: hidden;
    }
    .cdp-filter-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 2px !important;
        margin-bottom: 32px !important;
        width: 100% !important;
    }
    .cdp-filter-btn {
        flex: 0 1 auto !important;
        white-space: normal !important;
        padding: 11px 13px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        min-height: 36px !important;
        touch-action: manipulation;
    }
    .cdp-port-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-items: center !important;
        gap: 22px 12px !important;
        width: 100% !important;
    }
    .cdp-port-item {
        width: min(42vw, 180px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-width: 100% !important;
        border-radius: 50% !important;
    }
    .cdp-port-overlay { opacity: 1; background: transparent !important; }
    .cdp-port-plus {
        width: 58px !important;
        height: 58px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #B20122 !important;
        color: #fff !important;
        font-size: 30px !important;
        line-height: 1 !important;
    }
    .cdp-lb-img {
        width: min(86vw, 360px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }
    .cdp-lb-prev { left: 8px !important; }
    .cdp-lb-next { right: 8px !important; }
    .cdp-lb-close { top: -48px !important; right: 0 !important; }
}

@media (max-width: 420px) {
    .cdp-services-container,
    .cdp-port-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .cdp-tab-btn,
    .cdp-filter-btn {
        font-size: 11px !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
    }
    .cdp-service-img-wrap {
        width: min(76vw, 270px) !important;
    }
    .cdp-port-grid {
        gap: 20px 10px !important;
    }
    .cdp-port-item {
        width: min(41vw, 168px) !important;
    }
}

@media (min-width: 1400px) {
    .cdp-port-grid { gap: 36px !important; }
}
