/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === BASE === */
:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e0e0e0;
    --accent: #2d5016;
    --accent-light: #f0f5ec;
    --max-width: 820px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAV === */
nav {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* === HERO === */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

.hero-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.hero h1 { margin-bottom: 1rem; }

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 540px;
}

/* === SECTIONS === */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

section {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.section-intro {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* === PRODUCT CARDS === */
.product-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.product-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.product-series {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    font-style: italic;
}

.product-card p { margin-bottom: 0.8rem; }

.product-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-grid .product-card { margin-bottom: 0; }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover { background: var(--accent-light); }

.btn-disabled {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--border);
    color: var(--muted);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    cursor: default;
}

.product-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.product-buttons .btn { margin-top: 0; }

/* === BLOG PREVIEWS === */
.blog-preview {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-preview:last-child { border-bottom: none; }

.blog-preview time {
    font-size: 0.8rem;
    color: var(--muted);
}

.blog-preview h3 { margin-top: 0.2rem; }
.blog-preview h3 a { color: var(--text); }
.blog-preview h3 a:hover { color: var(--accent); }
.blog-preview p { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* === BLOG PAGE === */
.blog-list { list-style: none; }

.blog-post {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.blog-post h1 { margin-bottom: 0.5rem; }

.blog-post-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.blog-post p { margin-bottom: 1.2rem; }
.blog-post h2 { margin-top: 2rem; }

/* === FOOTER === */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

/* Contact Form Styling */
.contact-form {
    max-width: 580px;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: #111111;
}

.form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #222222;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-control:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* === UTILITY === */
.muted { color: var(--muted); }

/* === MOBILE === */
@media (max-width: 480px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .hero { padding: 2.5rem 1.5rem 2rem; }
    section { padding: 2rem 0; }
    .product-card { padding: 1.2rem; }
}
