:root {
    --primary: #f8b156;
    --secondary: #8b5e34;
    --light: #fff9f0;
    --dark: #3a2c20;
    --accent: #d35400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--primary);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 700;
}

.logo-icon {
    width: 60px;
    height: 46px;
    background-color: var(--secndary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.nav-btn.active {
    background-color: var(--secondary);
    color: white;
}

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section */
.hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--dark);
}

.cta-btn {
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #b94600;
    transform: translateY(-2px);
}

/* Hero Image - Fixed */
.hero-image {
    flex: 1;
    min-height: 350px;
    background-color: var(--primary);
    border-radius: 10000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.croffle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.croffle-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.croffle-card:hover {
    transform: translateY(-5px);
}

/* Croffle Images - Show full image without cropping */
.croffle-img {
    height: 200px;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.croffle-img img {
    max-width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 5px;
}

.croffle-card:hover .croffle-img img {
    transform: scale(1.05);
}

/* Fallback background for when images don't load */
.croffle-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: -1;
}

.croffle-content {
    padding: 1.5rem;
}

.croffle-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.croffle-content p {
    color: var(--dark);
    margin-bottom: 1rem;
}

.price {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Members Section */
.members-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.members-heading h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.members-heading p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

/* Member Photos - Fixed for proper fitting */
.member-photo {
    height: 250px;
    background-color: var(--primary);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.member-photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.member-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--dark);
    line-height: 1.5;
}

/* Info Section */
.info-section h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    background-color: #fff9f0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent);
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* General image styling to ensure all images fit properly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-image {
        width: 100%;
        min-height: 250px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-btn {
        flex: 1;
        text-align: center;
    }
    
    .croffle-img {
        height: 180px;
    }
    
    .member-photo {
        height: 220px;
    }
}

/* Desktop specific adjustments for better image fitting */
@media (min-width: 769px) {
    .croffle-img {
        height: 250px; /* Taller container for better full image display */
        padding: 10px; /* Adequate padding to show full image */
    }
    
    .croffle-img img {
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
        border-radius: 8px;
    }
    
    .member-photo {
        height: 280px; /* Taller member photos on desktop */
        padding: 15px; /* More padding on desktop */
    }
    
    .hero-image {
        min-height: 400px; /* Taller hero image on desktop */
        padding: 20px; /* More padding on desktop */
    }
}

/* Large desktop adjustments for even better square image display */
@media (min-width: 1200px) {
    .croffle-img {
        height: 280px; /* Even taller for large screens to show full image */
        padding: 12px;
    }
    
    .croffle-img img {
        max-width: calc(100% - 24px);
        max-height: calc(100% - 24px);
        border-radius: 10px;
    }
}