/*
Theme Name: Komeichi Farm
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A custom theme for Komeichi Farm featuring natural aesthetics and artwork.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: komeichi-farm
*/

/* Base Styles */
:root {
    --primary-color: #556B2F;
    /* Dark Olive Green - Nature */
    --secondary-color: #DAA520;
    /* Goldenrod - Harvest/Sun */
    --accent-color: #CD5C5C;
    /* Indian Red - Warmth/Art */
    --bg-color: #FDFCF5;
    /* Off-white/Cream - Washi paper feel */
    --text-color: #333333;
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Zen Maru Gothic', sans-serif;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: rgba(253, 252, 245, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-title {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 1000px;
}

.hero-image-container {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
}

/* Sections Common */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Activities Section */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.activity-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    text-align: center;
    background-color: rgba(85, 107, 47, 0.05);
}

.contact-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2rem;
    }

    .site-header {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* Dynamic Fade-in Support */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}