/* =========================================================================
   CordialTec Multipurpose plugin for AmaraTech — Frontend Styles
   =========================================================================
   Sections:
     1. Services Grid ( [services_grid] shortcode )
     2. Services Single ( /service/{slug}/ )
     3. Projects Archive ( /projects/ and /project-category/{slug}/ )
     4. Projects Single ( /projects/{slug}/ )
     5. Shared / Utility
   ========================================================================= */


/* =========================================================================
   1. SERVICES GRID  —  [services_grid] shortcode
   ========================================================================= */

.cpt-sp-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 620px;
    margin: 0 auto;
}

.cpt-sp-card {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    width: 100%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    background-clip: padding-box;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
}

.cpt-sp-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: #c9f31d;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
    z-index: 1;
}

.cpt-sp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.cpt-sp-card:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
}

.cpt-sp-serial {
    font-size: 2.8rem;
    font-weight: 600;
    color: #cbd5e0;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-right: 2rem;
    flex-shrink: 0;
    font-feature-settings: "tnum";
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.cpt-sp-card:hover .cpt-sp-serial {
    color: #a0aec0;
}

.cpt-sp-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.cpt-sp-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.cpt-sp-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

.cpt-sp-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1a202c;
    color: #ffffff;
    flex-shrink: 0;
    margin-left: 2rem;
    position: relative;
    z-index: 2;
    transition: background 0.35s ease, color 0.35s ease,
                box-shadow 0.35s ease, transform 0.35s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.cpt-sp-arrow-circle svg {
    width: 22px;
    height: 22px;
    display: block;
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cpt-sp-card:hover .cpt-sp-arrow-circle {
    background: #c9f31d;
    color: #1a202c;
    box-shadow: 0 8px 18px rgba(201, 243, 29, 0.45);
}

.cpt-sp-card:hover .cpt-sp-arrow-circle svg {
    transform: rotate(-15deg);
}

@media (max-width: 500px) {
    .cpt-sp-card { padding: 1.75rem 1.5rem; flex-wrap: wrap; }
    .cpt-sp-serial { font-size: 2.2rem; margin-right: 1.25rem; }
    .cpt-sp-title { font-size: 1.3rem; }
    .cpt-sp-description { font-size: 0.9rem; }
    .cpt-sp-arrow-circle { width: 46px; height: 46px; margin-left: 1.25rem; }
    .cpt-sp-arrow-circle svg { width: 18px; height: 18px; }
}

@media (max-width: 400px) {
    .cpt-sp-card { padding: 1.5rem 1.25rem; }
    .cpt-sp-serial { font-size: 2rem; margin-right: 1rem; }
    .cpt-sp-arrow-circle { margin-left: 1rem; }
}


/* =========================================================================
   2. SERVICES SINGLE  —  /service/{slug}/
   ========================================================================= */
/* Placeholder — styles will be added when the design is provided. */


/* =========================================================================
   3. PROJECTS ARCHIVE  —  /projects/ and /project-category/{slug}/
   ========================================================================= */
/* Placeholder — styles will be added when the design is provided. */


/* =========================================================================
   4. PROJECTS SINGLE  —  /projects/{slug}/
   ========================================================================= */
/* Placeholder — styles will be added when the design is provided. */


/* =========================================================================
   5. SHARED / UTILITY
   ========================================================================= */
/* Placeholder — anything reused across sections goes here. */