/* ============================================================
   SERVICE DETAIL PAGE  —  service-detail.css
   All classes are prefixed .sd-* to avoid any collisions
   ============================================================ */

/* ── Design tokens ── */
:root {
    --primary: #F5085B;    /* pink/magenta */
    --secondary: #EDA503;  /* amber/gold */
    --bg-light: #FFF0CF;   /* light cream */
}


/* ===== SECTION 1: Hero (designed banner) ===== */
.sd-hero img {
    width: 100%;
    height: 300px;
    display: block;
        object-fit: cover;
    object-position: center;
}

/* ===== SECTION 2: Beyond + Common Problems ===== */
.sd-problems {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 32px;

}

/* Beyond heading - left */
.sd-problems > h2:nth-of-type(1) {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 700;
    color: #000;
}

/* Beyond paragraph - left */
.sd-problems > p:nth-of-type(1) {
    margin: 0 0 70px;
    font-size: 18px;
    line-height: 1.9;
    color: #000;
}

/* Problems heading - centered */
.sd-problems > h2:nth-of-type(2) {
    margin: 0 0 12px;
    text-align: center;
    font-size: 31px;
    font-weight: 700;
    color: #000;
}

/* Problems subtitle - centered */
.sd-problems > p:nth-of-type(2) {
    max-width: 800px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 17px;
    line-height: 1.7;
    color: #000;
}

/* Cards grid - 3 columns */
.sd-problems ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Card - white + primary border */
.sd-problems ul li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 14px;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sd-problems ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(245, 8, 91, 0.12);
}

/* Icon square - secondary tint */
.sd-problems ul li > span {
    grid-row: 1 / 3;              /* ye line add karein */
    width: 55px;
    height: 55px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--secondary) 22%, #fff);
    color: #000;                  /* secondary ki jagah black */
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Card title */
.sd-problems h3 {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

/* Text - icon k right, title k neeche */
.sd-problems ul li p {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

/* ===== Responsive: 1024 ===== */
@media (max-width: 1024px) {
    .sd-problems {
        padding: 55px max(20px, calc((100% - 1160px) / 2));
    }

    .sd-problems > h2:nth-of-type(1) {
        font-size: 26px;
    }

    .sd-problems > h2:nth-of-type(2) {
        font-size: 24px;
    }

    .sd-problems ul {
        gap: 16px;
    }
}

/* ===== Responsive: 768 ===== */
@media (max-width: 767.98px) {
    /* Hero crop on small screens */
    .sd-hero img {
        height: 260px;
        object-fit: cover;
        object-position: center;
    }

    .sd-problems {
        padding: 45px 20px;
    }

    .sd-problems > h2:nth-of-type(1) {
        font-size: 23px;
        margin-bottom: 15px;
    }

    .sd-problems > p:nth-of-type(1) {
        margin-bottom: 40px;
        font-size: 14px;
    }

    .sd-problems > h2:nth-of-type(2) {
        font-size: 21px;
    }

    .sd-problems > p:nth-of-type(2) {
        margin-bottom: 32px;
        font-size: 13px;
    }

    /* 2 columns */
    .sd-problems ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ===== Responsive: 520 ===== */
@media (max-width: 520px) {
    .sd-hero img {
        height: 133px;
    }

    .sd-problems > h2:nth-of-type(1),
    .sd-problems > h2:nth-of-type(2) {
        font-size: 20px;
    }

    /* 1 column */
    .sd-problems ul {
        grid-template-columns: 1fr;
    }

    .sd-problems ul li > span {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }
}
/* ===== SECTION 3: CTA Band (pink + 2 pills) ===== */
.sd-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
   max-width: 1200px;
    margin: 0 auto;
    padding: 50px 32px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px 20px;
    align-items: center;
}

/* Primary overlay */
.sd-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0.9;
    pointer-events: none;
}

/* Content overlay k upar */
.sd-cta h3,
.sd-cta p,
.sd-cta a {
    position: relative;
    z-index: 1;
}

.sd-cta h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.sd-cta p {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 15px;
    color: #fff;
}

/* Amber pills - right, vertically centered */
.sd-cta a {
    grid-row: 1 / 3;
    background: var(--secondary);
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sd-cta a:first-of-type { grid-column: 2; }
.sd-cta a:last-of-type { grid-column: 3; }

.sd-cta a:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}
/* ===== Responsive: 992 - text upar, pills neeche side-by-side ===== */
@media (max-width: 992px) {
    .sd-cta {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 40px 25px;
    }

    /* Title + subtitle full width */
    .sd-cta h3 {
        grid-column: 1 / -1;
        grid-row: auto;
        font-size: 22px;
    }

    .sd-cta p {
        grid-column: 1 / -1;
        grid-row: auto;
        font-size: 14px;
    }

    /* Pills - ek column each, wrap allowed */
    .sd-cta a {
        grid-row: auto;
        white-space: normal;      /* nowrap hataya - overflow fix */
        text-align: center;
        padding: 12px 18px;
        font-size: 13px;
    }

    .sd-cta a:first-of-type { grid-column: 1; }
    .sd-cta a:last-of-type { grid-column: 2; }
}

/* ===== Responsive: 520 - full stack ===== */
@media (max-width: 520px) {
    .sd-cta {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 35px 20px;
    }

    .sd-cta h3 {
        font-size: 20px;
    }

    .sd-cta p {
        font-size: 13px;
    }

    /* Pills full width stack */
    .sd-cta a,
    .sd-cta a:first-of-type,
    .sd-cta a:last-of-type {
        grid-column: 1;
        width: 100%;
    }
}

/* ===== Responsive: 360 - extra chhoti screens ===== */
@media (max-width: 360px) {
    .sd-cta {
        padding: 30px 15px;
    }

    .sd-cta h3 {
        font-size: 18px;
    }

    .sd-cta a {
        font-size: 12px;
        padding: 11px 14px;
    }
}
/* ===== SECTION 4: Beyond + 6 Rug Cards ===== */
.sd-rugs {
       max-width: 1200px;
    margin: 0 auto;
    padding: 50px 32px;
}

/* Beyond heading - left */
.sd-rugs > h2:nth-of-type(1) {
    margin: 0 0 20px;
    font-size: 30px;
    font-weight: 700;
    color: #000;
}

.sd-rugs > p:nth-of-type(1) {
    margin: 0 0 70px;
    font-size: 15px;
    line-height: 1.9;
    color: #000;
}

/* Tagline - primary centered */
.sd-rugs > small {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.sd-rugs > h2:nth-of-type(2) {
    margin: 0 0 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.sd-rugs > p:nth-of-type(2) {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: #000;
}

/* ===== 6 cards grid - no carousel, no arrows ===== */
.sd-rugs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

/* Card */
.sd-rugs ul li {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 20px 5px;
}

/* Image */
/* .sd-rugs ul li img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
} */

/* Title - bottom pinned */
.sd-rugs h3 {
    margin: 0;
    /* margin-top: auto; */
        /* padding: 10px 5px; */
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

/* Description - hidden, hover par EXACT text */
.sd-rugs ul li p {
    /* display: none; */
    margin: 0;
        padding: 5px 0px 3px;
    font-size: 13px;
    line-height: 1.6;
    color: #000;
    overflow: hidden;
}

/* Hover - secondary bg + title top + text */
.sd-rugs ul li:hover {
    background: var(--secondary);
    transform: translateY(-4px);
}

/* .sd-rugs ul li:hover img {
    display: none;
}

.sd-rugs ul li:hover h3 {
    margin-top: 0;
    padding-top: 20px;
}

.sd-rugs ul li:hover p {
    display: block;
} */

/* ===== Responsive: 1024 - 3 x 2 ===== */
@media (max-width: 1024px) {
    .sd-rugs {
        padding: 55px max(20px, calc((100% - 1160px) / 2));
    }

    .sd-rugs > h2:nth-of-type(1) { font-size: 26px; }
    .sd-rugs > h2:nth-of-type(2) { font-size: 24px; }

    .sd-rugs ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ===== Responsive: 768 ===== */
@media (max-width: 768px) {
    .sd-rugs {
        padding: 45px 20px;
    }

    .sd-rugs > h2:nth-of-type(1) { font-size: 23px; margin-bottom: 15px; }
    .sd-rugs > p:nth-of-type(1) { margin-bottom: 40px; font-size: 14px; }
    .sd-rugs > h2:nth-of-type(2) { font-size: 21px; }
    .sd-rugs > p:nth-of-type(2) { margin-bottom: 32px; font-size: 13px; }

    .sd-rugs ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .sd-rugs ul li img {
        height: 120px;
    }

    .sd-rugs h3 {
        font-size: 12px;
        padding: 12px 6px;
    }
}

/* ===== Responsive: 520 - 2 per row ===== */
@media (max-width: 520px) {
   .sd-rugs > h2:nth-of-type(1),
    .sd-rugs > h2:nth-of-type(2) {
        font-size: 20px;
    }

    .sd-rugs ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .sd-rugs ul li img {
        height: 130px;
    }

    .sd-rugs h3 {
        font-size: 13px;
    }

    .sd-rugs ul li:hover p {
        font-size: 10px;
    }
}
/* ===== SECTION 5: Before & After ===== */
.sd-before-after {
      max-width: 1200px;
    margin: 0 auto;
    padding: 10px 32px;
}

/* Tagline - primary centered */
.sd-before-after > small {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* Heading - centered */
.sd-before-after > h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

/* Subtitle - centered */
.sd-before-after > p {
    max-width: 800px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: #000;
}

/* 2 images side by side */
.sd-before-after ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Card - relative for pill */
.sd-before-after ul li {
    position: relative;
}

/* Image - primary border rounded */
.sd-before-after ul li img {
    width: 100%;
    display: block;
    border: 1px solid var(--primary);
    border-radius: 10px;
}

/* Pill - image k bottom par centered overlap */
.sd-before-after ul li a {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 44px;
    border-radius: 50px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.sd-before-after ul li a:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* Before = primary, After = secondary */
.sd-before-after ul li:first-child a {
    background: var(--primary);
}

.sd-before-after ul li:last-child a {
    background: var(--secondary);
}

/* Single caption - image k neeche full width, centered */
.sd-before-after ul li p {
    margin: 0;
    padding: 25px 10px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

/* ===== Responsive: 992 ===== */
@media (max-width: 992px) {
    .sd-before-after ul {
        gap: 20px;
    }

    .sd-before-after ul li p {
        padding: 20px 5px 0;
        font-size: 13px;
    }
}

/* ===== Responsive: 768 - images stack ===== */
@media (max-width: 767.98px) {
    .sd-before-after {
        padding: 45px 20px;
    }

    .sd-before-after > small {
        font-size: 12px;
    }

    .sd-before-after > h2 {
        font-size: 24px;
    }

    .sd-before-after > p {
        font-size: 13px;
        margin-bottom: 32px;
    }

    .sd-before-after ul {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ===== Responsive: 520 ===== */
@media (max-width: 520px) {
    .sd-before-after > h2 {
        font-size: 21px;
    }

    .sd-before-after ul li a {
        bottom: 35px;
        padding: 3px 23px;
        font-size: 12px;
    }

    .sd-before-after ul li p {
        font-size: 13px;
    }
}

/* ===== Responsive: 360 ===== */
@media (max-width: 360px) {
    .sd-before-after {
        padding: 35px 15px;
    }

    .sd-before-after > h2 {
        font-size: 19px;
    }

    .sd-before-after > p {
        font-size: 12px;
    }

    .sd-before-after ul li p {
        font-size: 12px;
    }
}

/* ===== SECTION 6: Beyond + FAQs ===== */
.sd-faqs {
     max-width: 1200px;
    margin: 0 auto;
    padding: 50px 32px;
}

/* Beyond heading - left */
.sd-faqs > h2:nth-of-type(1) {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 700;
    color: #000;
}

/* Beyond paragraph - left */
.sd-faqs > p:nth-of-type(1),.sd-faqs > p:nth-of-type(2) {
    margin: 0 0 70px;
    font-size: 17px;
    line-height: 1.9;
    color: #000;
}

/* FAQ heading - left */
.sd-faqs > h2:nth-of-type(2) {
    margin: 0 0 25px;
    font-size: 29px;
    font-weight: 700;
    color: #000;
}

/* Closed FAQ - secondary amber filled */
.sd-faqs details {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sd-faqs summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

.sd-faqs summary::-webkit-details-marker {
    display: none;
}

/* Plus/minus icons - primary */
.sd-faqs summary span {
    color: var(--primary);
    font-size: 14px;
}

.sd-faqs summary .fa-minus {
    display: none;
}

.sd-faqs details[open] summary .fa-plus {
    display: none;
}

.sd-faqs details[open] summary .fa-minus {
    display: inline-block;
}

/* Open FAQ - cream bg + primary border */
.sd-faqs details[open] {
    background: color-mix(in srgb, var(--secondary) 18%, #fff);
    border-color: var(--primary);
}

/* Answer text */
.sd-faqs details p {
    margin: 0;
    padding: 0 40px 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}

/* ===== Responsive: 1024 ===== */
@media (max-width: 1024px) {
    .sd-before-after {
        padding: 55px max(20px, calc((100% - 1160px) / 2));
    }

    .sd-before-after > h2 {
        font-size: 24px;
    }

    .sd-before-after ul {
        gap: 20px;
    }

    .sd-faqs > h2:nth-of-type(1) {
        font-size: 26px;
    }

    .sd-faqs > h2:nth-of-type(2) {
        font-size: 23px;
    }
}

/* ===== Responsive: 768 ===== */
@media (max-width: 767.98px) {
    .sd-before-after {
        padding: 13px 20px;
    }

    .sd-before-after > h2 {
        font-size: 21px;
    }

    .sd-before-after > p {
        margin-bottom: 32px;
        font-size: 13px;
    }

    /* Images stack */
    .sd-before-after ul {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sd-faqs {
        padding-bottom: 50px;
    }

    .sd-faqs > h2:nth-of-type(1) {
        font-size: 23px;
        margin-bottom: 15px;
    }

    .sd-faqs > p:nth-of-type(1),.sd-faqs > p:nth-of-type(2) {
        margin-bottom: 40px;
        font-size: 14px;
    }

    .sd-faqs summary {
        font-size: 14px;
        padding: 14px 16px;
    }
}

/* ===== Responsive: 520 ===== */
@media (max-width: 520px) {
    .sd-before-after > h2 {
        font-size: 20px;
    }

    /* Small texts stack */
    .sd-before-after ul li p:first-of-type,
    .sd-before-after ul li p:last-of-type {
        grid-column: 1 / -1;
        padding-top: 25px;
    }

    .sd-before-after ul li p:last-of-type {
        padding-top: 8px;
    }

    .sd-faqs > h2:nth-of-type(1),
    .sd-faqs > h2:nth-of-type(2) {
        font-size: 20px;
    }

    .sd-faqs summary {
        font-size: 13px;
    }

    .sd-faqs details p {
        font-size: 13px;
        padding: 0 16px 16px;
    }
}