/* ===========
   Base styles
   =========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f9fafb;
}

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

a {
    color: #0f4c81;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ===========
   Header & Nav
   =========== */

.site-header {
    background: #035a9c; /* dark blueberry */
    color: #ffffff;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo a {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}

.main-nav a {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.main-nav a:hover {
    border-bottom: 2px solid #8ec0ff;
    text-decoration: none;
}

/* ===========
   Footer
   =========== */

.site-footer {
    background: #035a9c;
    color: #d0d4e6;
    padding: 1.75rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ===========
   General layout
   =========== */

.site-main {
    padding: 2rem 0 3rem;
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3, h4 {
    color: #0b1a3b;
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ===========
   Home: Hero
   =========== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 0 2rem;
}

.hero h1 {
    font-size: 2.4rem;
}

.hero h2 {
    font-size: 1.4rem;
    color: #32527b;
    font-weight: 500;
}

.hero-text p {
    margin-bottom: 1rem;
}

.hero-text blockquote {
    border-left: 4px solid #8ec0ff;
    padding-left: 1rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: #334155;
}

/* ===========
   Home: Why section
   =========== */

.why {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
    padding-top: 1rem;
}

.why-text p {
    margin-bottom: 0.75rem;
}

/* ===========
   Home: Only the best
   =========== */

.only-the-best {
    text-align: center;
    max-width: 800px;
    margin: 2.5rem auto;
}

.only-the-best p {
    font-size: 1rem;
    color: #4b5563;
}

/* ===========
   Home: Product highlights
   =========== */

.product-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.product-highlight-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15,76,129,0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-highlight-item h3 {
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-highlight-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d4ed8;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* ===========
   Home: Farming philosophy
   =========== */

.farming-philosophy {
    background: #e5f0ff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
}

.philosophy-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.philosophy-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(15,76,129,0.06);
}

.philosophy-item h3 {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ===========
   Products page
   =========== */

.products-page h1 {
    margin-bottom: 0.25rem;
}

.products-page h2 {
    margin-bottom: 1.5rem;
}

.product-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(15,76,129,0.06);
}

.product-section:nth-child(even) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
}

.product-section p {
    color: #4b5563;
}

figure {
    margin: 0;
}

figure figcaption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

.nutrition-figure {
    max-width: 280px;
    justify-self: center;
}

/* ===========
   Resellers page
   =========== */

.resellers-page {
    max-width: 700px;
}

.reseller-country-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.reseller-country-list li {
    padding-left: 0.8rem;
    position: relative;
}

.reseller-country-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1d4ed8;
}

.reseller-note {
    margin-top: 1.75rem;
    color: #4b5563;
}

/* ===========
   Contact page
   =========== */

.contact-page {
    max-width: 700px;
}

.contact-info p {
    margin: 0.25rem 0;
}

.contact-form {
    margin-top: 1.25rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(15,76,129,0.06);
}

.form-row {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #374151;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

button[type="submit"] {
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    background: #035a9c;
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #033f9c;
}

/* ===========
   Responsive
   =========== */

@media (max-width: 900px) {
    .hero,
    .why,
    .product-section {
        grid-template-columns: 1fr;
    }

    .product-section:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .site-main {
        padding-top: 1.25rem;
    }
}

/* =====
 * Contact Form
 */
.flash {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ===========
   Product grid
   =========== */

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* card for each product */
.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 2.2fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    /*
     * background: radial-gradient(circle at top left, #eef3ff 0, #ffffff 40%, #ffffff 100%);
    */
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

/* small glossy accent in the corner */
.product-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    /*
     * background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.07), transparent 60%);
     */
   pointer-events: none;
}

/* reverse layout every other card */
.product-card.product--reverse {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.7fr);
}

/* ensure content stays above ::before */
.product-card > * {
    position: relative;
    z-index: 1;
}
