/* ==========================================================================
   TENON PARTNERS LLP - STYLESHEET
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
    /* Brand Colours */
    --primary-accent: #D94423;
    --secondary-orange: #E28701;
    --secondary-blue: #5B89A6;
    --secondary-dark: #1F261D;
    --secondary-cream: #F2E6B1;
    --heading-color: #1F261D;
    --body-color: #272525;
    --background-cream: #F3EBCB;
    
    /* Typography */
    --font-heading: 'Lexend Deca', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}


/* ==========================================================================
   2. RESET AND BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--body-color);
    line-height: 1.7;
    background-color: #FFFFFF;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Lists */
ul {
    list-style: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--body-color);
    max-width: 700px;
    margin: 0 auto;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn-primary {
    display: inline-block;
    background-color: var(--primary-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #B8361C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 68, 35, 0.3);
}

.btn-contact {
    background-color: var(--primary-accent);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0px;
    font-weight: 600;
}

.btn-contact:hover {
    background-color: #B8361C;
    color: white !important;
}


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.navbar {
    background-color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-orange);
    letter-spacing: 0.1em;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--heading-color);
}

.nav-links a:hover {
    color: var(--primary-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    transition: var(--transition);
}


/* ==========================================================================
   6. HERO SECTIONS
   ========================================================================== */

/* Homepage Hero */
.hero {
    background: linear-gradient(rgba(243, 235, 203, 0.85), rgba(255, 248, 225, 0.85)), url('images/hero-background.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--body-color);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Page Hero */
.team-hero {
    background: linear-gradient(rgba(243, 235, 203, 0.6), rgba(255, 248, 225, 0.6)), url('images/section-divider-team.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    text-align: center;
}

.team-hero h1 {
    font-size: 3.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   7. ABOUT SECTION (Homepage)
   ========================================================================== */

.about {
    background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url('images/pattern-texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-card {
    background-color: var(--background-cream);
    padding: 2.5rem;
    border-radius: 0px;
}

.about-card h3 {
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

/* Challenge List Styling */
.challenge-intro {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.challenges-list {
    list-style: none;
    padding: 0;
}

.challenges-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.challenges-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: bold;
}

/* Why Us Section */
.why-us {
    background-color: var(--background-cream);
    padding: 3rem;
    border-radius: 0px;
    border-left: 4px solid var(--primary-accent);
}

.why-us h3 {
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

/* Formula Section */
.formula {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--background-cream);
}

.formula h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.formula ul {
    list-style: none;
}

.formula li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.formula li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
}


/* ==========================================================================
   8. TEAM SECTION (Team Page)
   ========================================================================== */

.team {
    background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), url('images/pattern-texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Team Member Cards */
.team-member {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Team Member Photo */
.member-photo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.member-photo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* Team Member Info */
.team-member h3 {
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.member-role {
    text-align: center;
    color: var(--secondary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Bio Preview (Always Visible) */
.member-bio-preview {
    margin-bottom: 1rem;
}

.member-bio-preview p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.member-bio-preview strong {
    color: var(--primary-accent);
}

/* Full Bio (Hidden by Default) */
.member-bio-full {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.member-bio-full p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Expanded State */
.team-member.expanded .member-bio-full {
    max-height: 1500px;
    opacity: 1;
    margin-top: 1rem;
}

/* LinkedIn Link */
.linkedin-link {
    position: absolute;
    top: 5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-accent);
    color: white;
    transition: var(--transition);
    z-index: 10;
}

.linkedin-link:hover {
    background-color: #B8361C;
    transform: scale(1.1);
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

/* Toggle Button (+ / −) */
.bio-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    z-index: 10;
}

.bio-toggle:hover {
    background-color: var(--primary-accent);
    color: white;
    transform: scale(1.1);
}

.toggle-icon {
    line-height: 1;
    display: block;
    transition: transform 0.3s ease;
}

.team-member.expanded .toggle-icon {
    transform: rotate(45deg);
}

/* Toggle Icon Content */
.team-member.expanded .toggle-icon::before {
    content: '−';
}

.team-member:not(.expanded) .toggle-icon::before {
    content: '+';
}


/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */

.contact {
    background: linear-gradient(135deg, var(--primary-accent) 0%, #B8361C 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.contact-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact .btn-primary {
    background-color: white;
    color: var(--primary-accent);
    font-size: 1.25rem;
}

.contact .btn-primary:hover {
    background-color: var(--background-cream);
    transform: translateY(-2px);
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--secondary-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer .logo-text {
    color: var(--secondary-orange);
    font-size: 1.25rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}


/* ==========================================================================
   11. RESPONSIVE DESIGN
   ========================================================================== */

/* Small Screens Transition */
@media (max-width: 1200px) {
    .hero,
    .team-hero {
        background-size: 110% auto;
    }
}

@media (max-width: 1100px) {
    .hero,
    .team-hero {
        background-size: 120% auto;
    }
}

@media (max-width: 1000px) {
    .hero,
    .team-hero {
        background-size: 145% auto;
    }
}

@media (max-width: 900px) {
    .hero,
    .team-hero {
        background-size: 175% auto;
    }

        /* Layout */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Tablets and Small Desktops (768px and below) */
@media (max-width: 768px) {
    
    /* Mobile Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero Sections - Disable Parallax */
    .hero {
        background-size: cover;
        background-attachment: scroll;
        background-position: center center;
    }
    
    .team-hero {
        background-size:cover;
        background-attachment: scroll;
        background-position: center top;
    }
    
    /* Typography */
    .hero h1,
    .team-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    

}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    
    /* Typography */
    .hero h1,
    .team-hero h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}
