/* ========== COMPLETE ABOUT PAGE CSS - WITH IMPROVED TEAM SECTION ========== */

/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B4513;
    --primary-dark: #5A2E0C;
    --secondary: #D4A373;
    --accent: #C77A3F;
    --dark: #2C2418;
    --light: #FEF9E6;
    --gray: #5C5B52;
    --white: #FFFFFF;
    --blue-dark: #0B2B4A;
    --blue-deep: #0A1C3A;
    --blue-gradient: linear-gradient(135deg, #0B2B4A 0%, #0A1C3A 100%);
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}


.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 4px;
}

/* Buttons */
.btn-primary, .btn-outline {
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ========== HEADER STYLES ========== */
.top-bar {
    background: var(--white);
    padding: 0.7rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.5rem;
    border-radius: 30px;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    color: white;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 3px;
}

.top-contact-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-icon {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.top-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Middle Header */
.middle-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #eef2ff;
}

.middle-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.left-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 160px;
}

.left-logo i {
    font-size: 2.2rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

.center-text {
    text-align: center;
    flex: 1;
}

.middle-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.middle-subheading {
    font-size: 0.85rem;
    color: var(--gray);
}

.right-logo {
    min-width: 100px;
    text-align: right;
}

.custom-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
}

/* Navigation Bar */
.navigation-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--blue-gradient);
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    position: absolute;
    left: 0;
}

/* ========== ABOUT HERO SECTION ========== */
.about-hero {
    position: relative;
    background: url('https://placehold.co/1920x500/1e3a5f/ffffff?text=About+Hiratage') center/cover no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========== OUR STORY SECTION ========== */
.our-story {
    background: var(--white);
    padding: 5rem 0;
}

.story-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.story-text {
    flex: 1;
}

.story-text p {
    margin-bottom: 1.2rem;
    color: var(--gray);
    line-height: 1.7;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-image img:hover {
    transform: scale(1.02);
}

/* ========== STATISTICS SECTION ========== */
.statistics {
    background: var(--blue-gradient);
    padding: 4rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ========== OUR VALUES SECTION ========== */
.our-values {
    background: var(--light);
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-icon i {
    background: rgba(139, 69, 19, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.value-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ========== OUR TEAM SECTION - SOCIAL ICONS CHINI YA MAELEZO ========== */
.our-team {
    background: var(--white);
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    text-align: center;
    padding: 1.5rem;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

/* Team Image - Ndogo na Round */
.team-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

/* Team Info */
.team-info {
    margin-top: 0.5rem;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.team-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Social Icons - Chini ya maelezo (always visible) */
.team-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.team-social a {
    background: var(--primary);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.team-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-image {
        width: 150px;
        height: 150px;
    }
    
    .our-team {
        padding: 3rem 0;
    }
}

@media (max-width: 540px) {
    .team-image {
        width: 130px;
        height: 130px;
    }
    
    .team-info h3 {
        font-size: 1rem;
    }
    
    .team-info p {
        font-size: 0.8rem;
    }
    
    .team-social a {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}
/* ========== CALL TO ACTION SECTION ========== */
.about-cta {
    background: var(--light);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.about-cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.about-cta-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER STYLES ========== */
.hiratage-footer {
    background: var(--blue-gradient);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    display: block;
    margin-top: 0.5rem;
}

.footer-logo p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 150px;
}

.footer-links h4, .footer-contact h4, .footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.footer-contact i {
    width: 20px;
    color: var(--secondary);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-social a {
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-newsletter {
    flex: 1;
    min-width: 220px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

.newsletter-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-group input {
    padding: 0.7rem;
    border-radius: 40px;
    border: none;
    flex: 1;
    font-size: 0.85rem;
    outline: none;
}

.newsletter-group input:focus {
    box-shadow: 0 0 0 2px var(--secondary);
}

.newsletter-group button {
    background: var(--primary);
    border: none;
    padding: 0 1.2rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.newsletter-group button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 850px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--blue-dark);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-container {
        justify-content: flex-end;
    }
    
    .middle-header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .left-logo, .right-logo {
        min-width: auto;
    }
    
    .right-logo {
        text-align: center;
    }
    
    .top-bar-container {
        flex-direction: column;
        text-align: center;
    }
    
    .top-contact-icons {
        justify-content: center;
    }
    
    .story-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-hero {
        min-height: 40vh;
    }
    
    .about-hero-content h1 {
        font-size: 2rem;
    }
    
    .about-hero-content p {
        font-size: 1rem;
    }
    
    .section-padding, .our-story, .our-values, .our-team {
        padding: 3rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 540px) {
    .top-contact-icons {
        gap: 0.8rem;
    }
    
    .top-icon {
        font-size: 0.7rem;
    }
    
    .middle-heading {
        font-size: 1rem;
    }
    
    .middle-subheading {
        font-size: 0.7rem;
    }
    
    .about-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .value-card {
        padding: 1.2rem;
    }
    
    .value-card h3 {
        font-size: 1.1rem;
    }
    
    .team-image {
        width: 130px;
        height: 130px;
    }
    
    .team-info h3 {
        font-size: 1rem;
    }
    
    .team-info p {
        font-size: 0.8rem;
    }
    
    .about-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-group {
        flex-direction: column;
    }
}