/* ==========================================================
   about.css - homepage "About Us" section
   (the .hero-btn button style comes from hero.css)
   ========================================================== */
.about { padding: 56px 0; background: var(--white); }

.about-grid { display: grid; gap: 40px; align-items: center; }

/* ---------- Images ---------- */
.about-media { position: relative; padding: 0 0 48px; }
.about-img { display: block; border-radius: var(--radius); object-fit: cover; }
.about-img-main { width: 88%; aspect-ratio: 4 / 3; }
.about-img-second {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.about-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    line-height: 1.25;
}
.about-badge strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--secondary-color); }
.about-badge span { font-size: .85rem; }

/* ---------- Text ---------- */
.eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--secondary-dark);
}
.about-text h2 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    color: var(--primary-color);
}
.about-text p { margin: 0 0 14px; color: var(--text-color); }
.about-text p.eyebrow { margin-bottom: 8px; color: var(--secondary-dark); }
.about-text .hero-btn { margin-top: 10px; }

/* Service highlights with SVG icons */
.about-text p.about-lead { margin: 20px 0 10px; font-weight: 600; }
.about-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.about-services li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 500;
}
.about-services svg {
    flex-shrink: 0;
    box-sizing: content-box;
    padding: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Vision callout */
.about-vision {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--primary-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius);
}
.about-vision svg { flex-shrink: 0; color: var(--primary-color); margin-top: 2px; }
.about-vision p { margin: 0; }

@media (min-width: 480px) {
    .about-services { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .about { padding: 80px 0; }
    .about-grid { grid-template-columns: 5fr 6fr; gap: 64px; }
}

/* ==========================================================
   Animations (added by about.js: .reveal-ready, then .in-view on scroll)
   Content stays visible if JavaScript is off.
   ========================================================== */
.about.reveal-ready:not(.in-view) .reveal,
.about.reveal-ready:not(.in-view) .about-img,
.about.reveal-ready:not(.in-view) .about-badge { opacity: 0; }

/* text, service cards, vision, button: rise + fade, staggered with --d */
.about.in-view .reveal { animation: about-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }

/* images slide in from opposite sides */
.about.in-view .about-img-main   { animation: about-from-left .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.about.in-view .about-img-second { animation: about-from-bottom .9s cubic-bezier(.2, .7, .2, 1) .25s backwards; }

/* badge pops in, then floats gently */
.about.in-view .about-badge {
    animation: about-pop .6s cubic-bezier(.3, 1.4, .5, 1) .7s backwards,
               about-float 4s ease-in-out 1.6s infinite;
}

@keyframes about-rise        { from { opacity: 0; transform: translateY(24px); } }
@keyframes about-from-left   { from { opacity: 0; transform: translateX(-48px); } }
@keyframes about-from-bottom { from { opacity: 0; transform: translateY(48px); } }
@keyframes about-pop         { from { opacity: 0; transform: scale(.6); } }
@keyframes about-float       { 50% { transform: translateY(-6px); } }
@keyframes about-pulse       { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* hover effects */
.about-services li { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.about-services li:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}
.about-services svg { transition: background var(--transition), color var(--transition), transform .3s ease; }
.about-services li:hover svg { background: var(--primary-color); color: var(--secondary-color); transform: rotate(-8deg) scale(1.08); }
.about-img-second { transition: transform .35s ease, box-shadow .35s ease; }
.about-img-second:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 32px rgba(0, 0, 0, .25); }
.about-vision svg { animation: about-pulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .about.reveal-ready:not(.in-view) .reveal,
    .about.reveal-ready:not(.in-view) .about-img,
    .about.reveal-ready:not(.in-view) .about-badge { opacity: 1; }
    .about.in-view .reveal, .about.in-view .about-img, .about.in-view .about-badge, .about-vision svg { animation: none; }
}
