/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header and Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: #881c1c;
}

.coming-soon {
    color: #999;
    font-size: 16px;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

/* Hero with announcement (homepage) */
.hero:has(.announcement) {
    padding: 60px 0 60px;
}

.hero h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: -1px;
}

.tagline {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 0;
}

.announcement {
    background-color: #881c1c;
    padding: 20px 30px;
    border-radius: 8px;
    margin: 30px auto 0;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(136, 28, 28, 0.2);
    width: fit-content;
}

.announcement-text {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Content Sections */
.local-ingredients,
.scratch-cooking {
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: center;
}

.scratch-cooking .content-wrapper {
    grid-template-columns: 300px 1fr;
}

.text-content h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: -1px;
}

.text-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* Circle Images */
.image-content {
    display: flex;
    justify-content: center;
}

.circle-image {
    max-width: 300px;
    height: auto;
}

/* Footer */
footer {
    border-top: 1px solid #e5e5e5;
    padding: 60px 0;
    background-color: #fff;
}

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

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
}

.footer-separator {
    color: #999;
    margin: 0 15px;
    font-size: 16px;
}

.footer-text {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

/* Responsive Design */

/* Tablet breakpoint (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .tagline {
        font-size: 17px;
    }

    .content-wrapper {
        gap: 60px;
    }

    .text-content h2 {
        font-size: 32px;
    }

    .circle-image {
        max-width: 280px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 35px;
    }

    .profile-images {
        gap: 25px;
    }

    .chef-profile-header {
        gap: 30px;
    }
}

/* Mobile breakpoint (up to 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
        flex-direction: column;
        gap: 20px;
    }

    .logo-img {
        height: 50px;
    }

    .nav-menu {
        margin-top: 0;
        gap: 20px;
        width: 100%;
        justify-content: center;
    }

    .nav-menu a {
        padding: 15px 20px;
    }

    .hero {
        padding: 40px 0 50px;
    }

    .hero:has(.announcement) {
        padding: 40px 0 50px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 16px;
    }

    .announcement {
        margin: 30px auto 0;
        padding: 15px 25px;
        max-width: calc(100% - 40px);
    }

    .announcement-text {
        font-size: 17px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .scratch-cooking .content-wrapper {
        grid-template-columns: 1fr;
    }

    .text-content h2 {
        font-size: 30px;
    }

    .circle-image {
        max-width: 260px;
        height: auto;
    }

    .local-ingredients,
    .scratch-cooking {
        padding: 50px 0;
    }

    footer {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        justify-content: center;
    }
}

/* Farmers and Chefs Grid */
.farmers-grid,
.chefs-grid {
    padding: 40px 0 60px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.grid-card a {
    min-height: 44px;
}

.grid-card {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.grid-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 5px;
    margin: -5px;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card h3 {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

/* Profile Pages */
.profile-hero {
    background-color: #fff;
    padding: 60px 0 30px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.profile-hero h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: -1px;
}

.profile-title {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin: 0;
}

.profile-content {
    padding: 40px 0 60px;
}

.profile-details {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.detail-item {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    font-weight: 600;
    margin-right: 10px;
}

.detail-item a {
    color: #881c1c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: #661616;
}

.profile-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.profile-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.profile-description p {
    margin-bottom: 20px;
}

.profile-description p:last-child {
    margin-bottom: 0;
}

/* Chef Profile Layout */
.chef-profile-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.chef-info {
    padding-top: 0;
}

.chef-info h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -1px;
}

.chef-info .profile-title {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    line-height: 1.6;
}

.chef-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.chef-image-container .profile-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.chef-bio-box {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.chef-bio-box p {
    margin-bottom: 20px;
}

.chef-bio-box p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for grids and profiles */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }

    .profile-hero {
        padding: 40px 0 20px;
    }

    .profile-hero h1 {
        font-size: 32px;
    }

    .profile-title {
        font-size: 16px;
    }

    .profile-content {
        padding: 30px 0 40px;
    }

    .profile-details {
        padding: 20px;
    }

    .profile-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .farmers-grid,
    .chefs-grid {
        padding: 30px 0 50px;
    }

    .chef-profile-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chef-info h1 {
        font-size: 32px;
    }

    .chef-image-container .profile-image {
        max-width: 100%;
    }

    .chef-bio-box {
        padding: 20px;
    }

    .grid-card:hover {
        transform: none;
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .text-content h2 {
        font-size: 26px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .announcement-text {
        font-size: 16px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
