/* =============================================
   Climax Systems - About Us Page
   Fully responsive | Secure | No Bootstrap
   Navigation modelled after index page
   Brand colour: #002244 / #004488
   ============================================= */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}
h2 {
    font-size: 2.2rem;
    color: #1e2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========== HEADER (exact model from index) ========== */
.header {
    background: #002244;
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}
.header.scrolled {
    background: #001a33;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    height: 85px;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    max-width: 55%;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
}
.logo a:hover {
    transform: scale(1.02);
}
.logo img {
    width: clamp(60px, 20vw, 150px);
    height: auto;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: all 0.35s ease;
    background: rgba(255, 255, 255, 0.06);
    image-rendering: -webkit-optimize-contrast;
}
.logo a:hover img {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}
.header.scrolled .logo img {
    max-height: 64px;
    width: clamp(70px, 20vw, 100px);
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    flex-wrap: nowrap;
}
.nav a {
    text-decoration: none;
    color: #e0f0ff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 2px;
    left: 0;
    background: #60a5fa;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}
.nav a:hover,
.nav a.active {
    color: #ffffff;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

/* ========== PAGE SECTIONS ========== */
.our-story,
.mission-vision,
.core-values,
.achievements,
.team {
    padding: 90px 0;
}
.our-story { background: #f9f9f9; }
.mission-vision { background: #ffffff; }
.core-values { background: #f9f9f9; }
.achievements { background: #ffffff; }
.team { background: #f9f9f9; }

/* Story */
.story-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.story-text { flex: 1; }
.story-text p {
    margin-bottom: 18px;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}
.story-image { flex: 0 0 480px; }

/* Story Slider */
.story-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: #f5f5f5;
}
.story-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.08);
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Mission & Vision */
.mission-vision-content {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.mission,
.vision {
    flex: 1;
    min-width: 280px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.mission h3,
.vision h3 {
    color: #004488;
    margin-bottom: 15px;
    font-size: 1.35rem;
}
.mission p,
.vision p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.value-item {
    background: #ffffff;
    padding: 30px 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}
.value-item:hover { transform: translateY(-6px); }
.value-item i {
    font-size: 2.2rem;
    color: #004488;
    margin-bottom: 15px;
}
.value-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1e2937;
}
.value-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Achievements */
.achievements-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}
.achievement-item {
    background: #f8fafc;
    padding: 30px 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.achievement-item:hover { transform: translateY(-6px); }
.achievement-item i {
    font-size: 2.2rem;
    color: #004488;
    margin-bottom: 15px;
}
.achievement-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1e2937;
}
.achievement-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.team-member {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}
.team-member:hover { transform: translateY(-6px); }
.team-member img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #e2e8f0;
}
.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #004488;
}
.team-member p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ========== FOOTER ========== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
}
.footer .container {
    padding: 70px 20px 35px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}
.footer-column h3 {
    color: #ffffff;
    margin-bottom: 1.4rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #004488;
    border-radius: 2px;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover { color: #60a5fa; }
.footer-column p {
    line-height: 1.7;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.3rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: #004488;
    color: #ffffff;
    transform: translateY(-3px);
}
.social-icons a.whatsapp:hover {
    background: #25D366;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #334155;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    background: #1e293b;
    color: #e2e8f0;
    transition: border-color 0.3s;
}
.newsletter-form input[type="email"]:focus {
    border-color: #3b82f6;
}
.newsletter-form input::placeholder { color: #94a3b8; }
.newsletter-form button {
    padding: 13px 26px;
    background: #004488;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.newsletter-form button:hover {
    background: #003366;
    transform: translateY(-2px);
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.8rem;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.95rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .nav ul { gap: 1.3rem; }
    .nav a { font-size: 0.95rem; }
    .logo img {
        width: clamp(130px, 26vw, 240px);
        max-height: 70px;
    }
}

@media (max-width: 992px) {
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #002244;
        flex-direction: column;
        padding: 1.8rem 1.5rem;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        gap: 1.4rem;
    }
    .nav ul.active { display: flex; }
    .hamburger { display: flex; }

    .story-content {
        flex-direction: column;
        gap: 30px;
    }
    .story-image { flex: none; width: 100%; }
    .story-slider-wrapper { max-width: 100%; }
    .slide img { height: 320px; }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
    .logo { max-width: 70%; }
    .logo img {
        width: clamp(150px, 38vw, 220px);
        max-height: 62px;
    }
    .header.scrolled .logo img { max-height: 54px; }
}

@media (max-width: 640px) {
    .header { height: 82px; }
    .header.scrolled { height: 74px; }
    .logo { max-width: 78%; }
    .logo img {
        width: clamp(160px, 55vw, 200px);
        max-height: 56px;
    }
    .header.scrolled .logo img { max-height: 48px; }

    .slide img { height: 260px; }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }

    .values-grid,
    .team-grid,
    .achievements-content {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    section { padding: 60px 0; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 400px) {
    .logo img {
        width: clamp(150px, 68vw, 180px);
        max-height: 50px;
    }
    .header.scrolled .logo img { max-height: 44px; }
}