/* ============================================
   RS Apparel — Page Template Styles v3
   Modern, Professional, Theme-Connected
   ============================================ */

/* ---------- Page Hero ---------- */
.page-hero {
    padding: 120px 0 100px;
    background: linear-gradient(160deg, var(--secondary-color, #064e3b) 0%, var(--header-bg, #064e3b) 50%, var(--primary-color, #059669) 140%);
    color: var(--header-text-color, #ffffff);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -25%;
    width: 70%;
    height: 220%;
    background: radial-gradient(ellipse, var(--primary-color, #059669) 0%, transparent 70%);
    opacity: 0.12;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, var(--accent-color, #10b981) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--header-text-color, #ffffff);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}
.page-hero .subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.page-hero .btn {
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

/* ---------- Section ---------- */
.section {
    padding: 80px 0;
}
.section-gray {
    background: var(--bg-color, #f8fafc);
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--heading-color, #064e3b);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--muted-text-color, #666666);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.sep {
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    border-radius: 2px;
    margin: 0.75rem auto 2rem;
}

/* ---------- Card Premium (Modern) ---------- */
.card-premium {
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #059669);
}
.card-premium:hover::before {
    transform: scaleX(1);
}
.card-premium h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color, #064e3b);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.card-premium p {
    color: var(--muted-text-color, #666666);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Card with icon */
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(5,150,105,0.25);
}
.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Card list items */
.card-premium ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}
.card-premium li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: var(--muted-text-color, #666666);
    line-height: 1.7;
    font-size: 0.95rem;
}
.card-premium li:last-child {
    border-bottom: none;
}
.card-premium li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 18px;
    height: 18px;
    background: var(--primary-color, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-premium li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.05rem;
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color, #064e3b) 0%, var(--header-bg, #064e3b) 100%);
    color: var(--header-text-color, #ffffff);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, var(--primary-color, #059669) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--header-text-color, #ffffff);
    position: relative;
    z-index: 1;
}
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}
.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* ---------- Reach Grid ---------- */
.reach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.reach-grid .card-premium {
    text-align: center;
    padding: 1.5rem 1rem;
}
.reach-grid .card-premium::before {
    display: none;
}
.reach-grid .card-premium:hover {
    border-color: var(--primary-color, #059669);
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--button-color, var(--primary-color, #059669)), var(--button-hover-color, var(--accent-color, #10b981)));
    color: var(--button-text-color, #ffffff);
    border-radius: var(--button-radius, 10px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: var(--button-text-color, #ffffff);
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border-radius: var(--button-radius, 10px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    color: #ffffff;
}
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--heading-color, #064e3b);
    color: #ffffff;
    border-radius: var(--button-radius, 10px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #ffffff;
}

/* ---------- Stats (in page context) ---------- */
.page-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
.page-stats .stat-item {
    padding: 2rem 1.5rem;
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.page-stats .stat-item:hover {
    transform: translateY(-4px);
}
.page-stats .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color, #059669);
    display: block;
}
.page-stats .stat-label {
    font-size: 0.9rem;
    color: var(--muted-text-color, #666666);
    margin-top: 0.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 60px;
    }
    .section {
        padding: 60px 0;
    }
    .card-premium {
        padding: 1.75rem 1.5rem;
    }
    .reach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .reach-grid {
        grid-template-columns: 1fr;
    }
}


/* What We Do — Modern Service Cards */
.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.what-we-do-card {
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.what-we-do-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.what-we-do-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #059669);
}
.what-we-do-card:hover::before {
    transform: scaleX(1);
}
.what-we-do-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(5,150,105,0.3);
}
.what-we-do-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}
.what-we-do-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color, #064e3b);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.what-we-do-card p {
    color: var(--muted-text-color, #666666);
    line-height: 1.7;
    font-size: 0.93rem;
    margin: 0;
}
@media (max-width: 768px) {
    .what-we-do-grid {
        grid-template-columns: 1fr;
    }
}


/* Core Values Grid */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.core-value-card {
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.core-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.core-value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #059669);
}
.core-value-card:hover::before {
    transform: scaleX(1);
}
.core-value-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 32px rgba(5,150,105,0.3);
}
.core-value-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}
.core-value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color, #064e3b);
    margin-bottom: 0.75rem;
}
.core-value-card p {
    color: var(--muted-text-color, #666666);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}
@media (max-width: 768px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }
}


/* Section Cards Grid */
.section-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.section-card {
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #059669);
}
.section-card:hover::before {
    transform: scaleX(1);
}
.section-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color, #059669), var(--accent-color, #10b981));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 32px rgba(5,150,105,0.3);
}
.section-card-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}
.section-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color, #064e3b);
    margin-bottom: 0.75rem;
}
.section-card p {
    color: var(--muted-text-color, #666666);
    line-height: 1.7;
    font-size: 0.93rem;
    margin: 0;
}
@media (max-width: 768px) {
    .section-cards-grid {
        grid-template-columns: 1fr;
    }
}
