/* ========================================
   KARMAVYAA — About Page CSS
   ======================================== */

body.page-slug-about { background: #FAFAFA; }

/* ── Hero ────────────────────────────── */
.about-hero {
    position: relative;
    height: 100dvh; max-height: 100dvh; overflow: hidden;
    padding-top: clamp(80px, 10vh, 100px);
    padding-bottom: clamp(32px, 5vh, 56px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
    animation: aboutFadeUp 1s ease-out;
}

.about-hero .hero-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: var(--text-xs);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: clamp(20px, 3vh, 32px);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.about-hero h1 {
    font-size: var(--text-5xl);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: clamp(28px, 4vh, 44px);
    color: var(--white);
}

.about-hero h1 span {
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero .hero-subtext {
    font-size: var(--text-xl);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto clamp(24px, 3vh, 36px);
    line-height: 1.7;
}

.hero-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 8px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.hero-cta-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.hero-cta-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.hero-cta-link i {
    font-size: var(--text-xs);
    transition: transform 0.3s ease;
}
.hero-cta-link:hover i { transform: translateY(2px); }

/* ── Who We Are ──────────────────────── */
.who-we-are {
    padding: 60px 0;
    background: var(--white);
    overflow: hidden;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.content-col { padding-right: 20px; }

.section-label {
    font-size: var(--text-xs);
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: block;
}

.section-heading {
    font-size: clamp(38px, 4.5vw, 53px);
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--dark);
}

.section-text {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
}

.image-col { position: relative; }

.styled-image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.styled-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.image-col:hover .styled-image { transform: scale(1.05); }

.deco-box {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent);
    z-index: 1;
    opacity: 0.5;
}

.deco-dot-pattern {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.3;
    z-index: 1;
}

/* ── Team Message ────────────────────── */
.team-message-section {
    background: var(--dark);
    padding: 60px 0;
    color: var(--white);
    position: relative;
}

.team-message-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.message-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.message-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.message-icon {
    font-size: var(--text-3xl);
    color: var(--accent);
    margin-bottom: 32px;
    opacity: 0.8;
}

.message-title {
    font-size: clamp(38px, 4.5vw, 53px);
    color: var(--white);
    margin-bottom: 40px;
    font-style: italic;
}

.message-body {
    font-size: var(--text-xl);
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 48px;
    font-weight: 300;
}

.message-signature {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-xl);
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    padding-top: 24px;
    width: 100%;
    max-width: 300px;
}

.message-signature span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* ── Values ──────────────────────────── */
.about-values-section {
    padding-top: 60px;
    padding-bottom: 50px;
    background: var(--gray-50);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-value-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.about-value-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.about-value-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: var(--text-xl);
    color: var(--primary);
}

.about-value-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 16px;
    color: var(--dark);
}

.about-value-card p {
    font-size: var(--text-md);
    color: var(--gray-600);
    line-height: 1.6;
}

/* ── Contact (About page version) ────── */
.about-contact { background: var(--gray-50); padding-top: 80px; padding-bottom: 0; margin-bottom: -105px; }
.about-contact .contact-hero { text-align: center; padding-bottom: 160px; background: linear-gradient(135deg, var(--gray-50), #f1f5f9); }
.about-contact .contact-hero-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.about-contact .contact-hero h1 { font-size: var(--text-3xl); font-weight: 300; color: var(--dark); margin-bottom: 16px; }
.about-contact .contact-hero h1 span { color: var(--primary); font-weight: 500; }
.about-contact .contact-hero p { font-size: var(--text-md); color: var(--dark); max-width: 500px; margin: 0 auto; }

.about-contact .contact-card-wrapper { max-width: 1280px; margin: -120px auto 0; padding: 0 40px; position: relative; z-index: 10; }
.about-contact .contact-card { background: var(--white); border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); overflow: hidden; display: flex; min-height: 500px; }
.about-contact .contact-info-side { width: 42%; background: var(--primary); position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.about-contact .contact-info-side::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?w=800&fit=crop') no-repeat center; background-size: cover; opacity: 0.3; mix-blend-mode: multiply; }
.about-contact .contact-info-content { position: relative; z-index: 1; }
.about-contact .contact-info-side h3 { font-size: var(--text-xl); font-weight: 300; margin-bottom: 8px; color: var(--white); }
.about-contact .contact-info-side .info-subtitle { font-size: var(--text-base); opacity: 0.8; font-weight: 300; margin-bottom: 40px; }

.about-contact .contact-details { display: flex; flex-direction: column; gap: 24px; }
.about-contact .contact-detail-item { display: flex; align-items: center; gap: 16px; }
.about-contact .contact-detail-icon { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-contact .contact-detail-item span { font-size: var(--text-md); font-weight: 300; }

.about-contact .contact-info-side h3,
.about-contact .contact-info-side .info-subtitle,
.about-contact .contact-info-side .contact-detail-item span {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}
.about-contact .contact-info-side .contact-detail-item span.contact-phone {
    font-family: inherit;
    font-weight: 600;
}

.about-contact .contact-socials { display: flex; gap: var(--space-3); margin-top: 40px; position: relative; z-index: 1; }
.about-contact .social-link { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all 0.3s; }
.about-contact .social-link:hover { background: var(--white); color: var(--primary); }

.about-contact .contact-form-side { width: 58%; padding: 48px; }
.about-contact .contact-form { display: flex; flex-direction: column; gap: 24px; }
.about-contact .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-contact .form-group { display: flex; flex-direction: column; gap: 8px; }
.about-contact .form-group label { font-size: var(--text-base); font-weight: 300; color: var(--dark); }
.about-contact .form-group input,
.about-contact .form-group textarea { padding: 14px 18px; border: 1px solid var(--gray-200); border-radius: 10px; font-size: var(--text-md); font-family: inherit; transition: all 0.3s; font-weight: 300; }
.about-contact .form-group input:focus,
.about-contact .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.about-contact .form-group input::placeholder,
.about-contact .form-group textarea::placeholder { color: var(--gray-400); }
.about-contact .form-group textarea { min-height: 120px; resize: none; }

/* Contact form Times New Roman override */
.about-contact .contact-form-side,
.about-contact .contact-form-side .contact-form,
.about-contact .contact-form-side .form-group label,
.about-contact .contact-form-side .form-group input,
.about-contact .contact-form-side .form-group textarea,
.about-contact .contact-form-side .checkbox-label,
.about-contact .contact-form-side .form-submit {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}
.about-contact .contact-form-side .form-group input::placeholder,
.about-contact .contact-form-side .form-group textarea::placeholder {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}

.about-contact .form-group label .required { color: #EF4444; font-weight: 600; }
.about-contact .form-group label .optional { color: var(--gray-400); font-size: var(--text-xs); font-weight: 600; }

.about-contact .service-checkboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.about-contact .checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--dark);
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
    user-select: none;
}
.about-contact .checkbox-label:hover { border-color: var(--gray-300); transform: translateY(-1px); }
.about-contact .checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.about-contact .checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #ffbf00;
    background: #ffbf00;
    box-shadow: 0 8px 20px rgba(255, 191, 0, 0.28);
    color: #4a3600;
}

.checkbox-label:hover {
    border-color: var(--gray-300);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
}

.checkbox-label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid rgba(255, 191, 0, 0.55);
    outline-offset: 2px;
}

.service-opt--marketing { --accent-rgb: 14, 165, 233; }
.service-opt--learning  { --accent-rgb: 16, 185, 129; }
.service-opt--product   { --accent-rgb: 249, 115, 22; }
.service-opt--other     { --accent-rgb: 139, 92, 246; }

.about-contact .form-submit {
    width: 100%;
    padding: 16px 28px;
    min-height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: var(--text-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35), 0 2px 6px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
}
.about-contact .form-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    background: linear-gradient(135deg, #5B54E8 0%, #4F9CF9 100%);
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.form-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.form-submit:active::before {
    width: 300px;
    height: 300px;
}

.form-submit.success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.form-submit.success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ── Keyframes ───────────────────────── */
@keyframes aboutFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────── */
@media (max-width: 1024px) {
    .split-layout { grid-template-columns: 1fr; gap: 60px; }
    .message-card { padding: 40px; }
    .about-values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .about-hero { height: 100dvh; max-height: 100dvh; padding-top: clamp(100px, 14vh, 120px); padding-bottom: clamp(48px, 6vh, 64px); padding-left: 24px; padding-right: 24px; }
    .about-hero h1 { font-size: var(--text-4xl); margin-bottom: clamp(24px, 3vh, 36px); }
    .about-hero .hero-subtext { font-size: var(--text-md); margin-bottom: clamp(24px, 3vh, 36px); }
    .hero-cta-link { padding: 10px 22px; min-height: 40px; }
    .split-layout { padding: 0 24px; }
    .message-card { padding: 32px 24px; }
    .about-values-grid { padding: 0 24px; }
    .who-we-are { padding-top: 36px; padding-bottom: 36px; }
    .team-message-section { padding: 36px 0; }
    .about-values-section { padding-top: 36px; padding-bottom: 30px; }
    .about-contact { margin-bottom: -60px !important; padding-top: 36px; }
    .about-contact .contact-hero { padding-bottom: 80px; text-align: center; }
    .about-contact .contact-hero-container { padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
    .about-contact .contact-hero h1 { text-align: center; line-height: 1.3; }
    .about-contact .contact-card-wrapper { padding: 0 24px; margin-top: -80px; }
    .about-contact .contact-card { border-radius: 20px; flex-direction: column; }
    .about-contact .contact-info-side { padding: 28px 24px; min-height: auto; text-align: center; width: 100%; }
    .about-contact .contact-details { align-items: center; gap: 16px; }
    .about-contact .contact-detail-item { justify-content: center; }
    .about-contact .contact-socials { justify-content: center; margin-top: 24px; }
    .about-contact .contact-form-side { padding: 28px 24px; width: 100%; }
    .about-contact .form-row { grid-template-columns: 1fr; gap: 16px; }
    .about-contact .service-checkboxes { grid-template-columns: 1fr; gap: var(--space-2); }
    .section-heading, .message-title { font-size: 30px; }
    .about-contact .contact-hero h1 { margin-bottom: var(--space-3); }
    .about-contact .contact-hero p { text-align: center; margin: 0 auto; line-height: 1.6; }
    .about-contact .form-group { text-align: left; margin-bottom: 0; }
    .about-contact .form-group label { margin-bottom: 6px; }
    .about-contact .form-group input, .about-contact .form-group textarea { padding: 14px 16px; }
    .about-contact .checkbox-label { padding: 10px 14px; }
    .about-contact .form-submit { padding: 14px 20px; min-height: 48px; margin-top: 12px; }
}

@media (max-width: 480px) {
    .about-hero { padding-top: clamp(88px, 13vh, 108px); padding-bottom: clamp(40px, 5vh, 56px); padding-left: 20px; padding-right: 20px; }
    .about-hero h1 { font-size: var(--text-3xl); line-height: 1.2; }
    .about-hero .hero-subtext { font-size: var(--text-base); margin-bottom: 24px; }
    .hero-cta-link { padding: 9px 18px; min-height: 38px; }
    .message-card { padding: 28px 20px; }
    .split-layout { padding: 0 20px; gap: 40px; }
    .who-we-are { padding-top: 24px; padding-bottom: 24px; }
    .team-message-section { padding: 24px 0; }
    .about-values-section { padding-top: 24px; padding-bottom: 20px; }
    .about-contact .contact-card-wrapper { padding: 0 20px; }
    .about-contact .contact-info-side { padding: 24px 20px; }
    .about-contact .contact-form-side { padding: 24px 20px; }
    .about-hero .hero-badge { padding: var(--space-2) var(--space-3); }
    .section-heading { line-height: 1.3; }
    .message-card { text-align: center; }
    .message-card p { line-height: 1.7; }
    .message-title { line-height: 1.3; }
    .about-value-card p { line-height: 1.6; }
    .section-heading, .message-title { font-size: 26px; }
}

@media (max-width: 375px) {
    .about-hero { padding-top: clamp(80px, 12vh, 100px); padding-bottom: clamp(36px, 5vh, 48px); padding-left: 16px; padding-right: 16px; }
    .about-hero h1 { font-size: var(--text-2xl); }
    .about-hero .hero-subtext { font-size: var(--text-sm); }
    .message-card { padding: 24px 16px; }
    .split-layout { padding: 0 16px; gap: 32px; }
    .about-value-card { padding: 24px 16px; }
    .who-we-are { padding-top: 20px; padding-bottom: 20px; }
    .team-message-section { padding: 20px 0; }
    .about-values-section { padding-top: 20px; padding-bottom: 16px; }
    .about-contact .contact-card-wrapper { padding: 0 16px; }
    .about-contact .contact-info-side { padding: 24px 16px; }
    .about-contact .contact-form-side { padding: 24px 16px; }
    .section-heading, .message-title { font-size: 22px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .about-hero {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow-y: visible;
        padding-top: clamp(58px, 14vh, 72px);
        padding-bottom: clamp(12px, 3vh, 20px);
        background-attachment: scroll;
    }
}
