/* ======================================================
   FarmSupplies.ie — Main Stylesheet
   Independent buyer's guide & supplier directory for Ireland
   ====================================================== */

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

:root {
    --primary-dark: #1e3a1f;
    --primary-green: #2f6b3d;
    --accent-gold: #c08e1a;
    --accent-chestnut: #8a5a1f;
    --cream: #f5efe0;
    --cream-light: #fcf9f1;
    --light-gray: #e8e3db;
    --border: #d4ccc0;
    --text-dark: #1e2420;
    --text: #3a413c;
    --text-light: #6b6e6a;
    --success: #4a7c59;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --maxw: 1200px;
    --maxw-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--accent-chestnut); }

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

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow { max-width: var(--maxw-narrow); }

/* Typography */
h1, h2, h3, h4 {
    font-family: inherit;
    color: var(--primary-dark);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}
.btn-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-wide { width: 100%; }

.link-arrow {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.link-arrow:hover { gap: 8px; }

/* ======================================================
   Navigation
   ====================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.85rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.15rem;
}
.logo:hover { color: var(--primary-dark); }
.logo-icon { width: 32px; height: 32px; color: var(--primary-dark); }

.nav-menu {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.96rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-menu a.nav-cta {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    border: none;
}
.nav-menu a.nav-cta:hover { background: var(--primary-green); color: var(--white); }

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
}

/* ======================================================
   Hero
   ====================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 4.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 0, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.04) 0, transparent 35%);
    pointer-events: none;
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255,255,255,0.92);
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.3rem;
}

.hero-trust {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Page hero */
.page-hero {
    background: var(--cream-light);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 { color: var(--primary-dark); margin-bottom: 0.5rem; }

.page-intro {
    max-width: 760px;
    color: var(--text);
    font-size: 1.05rem;
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-green); }

/* ======================================================
   How It Works
   ====================================================== */
.how-it-works { padding: 4rem 0 3rem; }

.section-intro {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--white);
    padding: 1.8rem 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.9rem;
}

.step-card p { color: var(--text); margin: 0; }

/* ======================================================
   Supplier cards
   ====================================================== */
.suppliers-strip {
    padding: 3rem 0 4rem;
    background: var(--cream-light);
}

.supplier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    margin-top: 2rem;
}

.supplier-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.supplier-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.supplier-region {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.9rem;
    align-self: flex-start;
}

.supplier-meta {
    font-size: 0.85rem;
    color: var(--accent-chestnut);
    font-weight: 500;
    margin-bottom: 0.7rem;
}

.supplier-card p { color: var(--text); margin-bottom: 1rem; font-size: 0.95rem; flex-grow: 1; }

.suppliers-cta-row { text-align: center; margin-top: 2.4rem; }

/* Full listings */
.suppliers-full { padding: 3rem 0 2rem; }

.supplier-listing {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.6rem;
}

.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.listing-header h2 { margin: 0; font-size: 1.55rem; }

.listing-region {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 4px;
}

.listing-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem 1.5rem;
    margin-bottom: 1.1rem;
    background: var(--cream-light);
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
}

.listing-meta > div { display: flex; flex-direction: column; gap: 1px; }

.listing-meta dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}
.listing-meta dd { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; }

.supplier-listing > p { color: var(--text); }

.listing-ctas {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ======================================================
   Category grid + guide grid
   ====================================================== */
.categories-strip { padding: 3rem 0; }

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

.category-card {
    background: var(--white);
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    display: block;
    color: var(--text);
}
.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.category-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--primary-dark); }
.category-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Guides strip */
.guides-strip {
    padding: 3rem 0 4rem;
    background: var(--cream-light);
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.guide-card {
    background: var(--white);
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}
.guide-tag {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}
.guide-card h3 { margin-bottom: 0.5rem; }
.guide-card h3 a { color: var(--primary-dark); }
.guide-card h3 a:hover { color: var(--primary-green); }
.guide-card p { color: var(--text); font-size: 0.95rem; margin-bottom: 0.8rem; }

/* ======================================================
   CTA / info box
   ====================================================== */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-green));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2.5rem 0 1rem;
}
.cta-box h3 { color: var(--white); margin-bottom: 0.6rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.2rem; }

/* ======================================================
   Enquire form
   ====================================================== */
.enquire {
    padding: 4rem 0;
    background: var(--cream);
}
.enquire-page { padding: 2rem 0 4rem; }

.enquire-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.enquire-copy h2 { margin-bottom: 1rem; }
.enquire-copy p { color: var(--text); }
.enquire-sub { font-size: 0.9rem; color: var(--text-light); }

.enquire-form { display: flex; flex-direction: column; gap: 0.9rem; }

.form-row { display: flex; flex-direction: column; gap: 4px; }
.form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.98rem;
    background: var(--cream-light);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* Compare / info strip */
.compare-strip {
    padding: 3rem 0 4rem;
    background: var(--cream-light);
}

.compare-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2.2rem;
}
.compare-box h2 { margin-bottom: 1rem; }
.compare-box p { color: var(--text); max-width: 740px; }

.compare-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.2rem;
}

.disclosure-inline {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--cream-light);
    border-left: 3px solid var(--accent-gold);
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin: 1rem 0 2rem;
}

/* ======================================================
   Article body
   ====================================================== */
.article-body { padding: 2.5rem 0 4rem; }
.article-body h2 { margin-top: 2rem; margin-bottom: 0.9rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin-left: 1.3rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: 0.35rem; }

/* ======================================================
   Tables
   ====================================================== */
.data-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.data-table th, .data-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.data-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--cream-light); }

.source-note {
    font-size: 0.88rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ======================================================
   Footer
   ====================================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.78);
    padding: 3.5rem 0 1.8rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 0.9rem;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.footer-section p {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul a {
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
}
.footer-section ul a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.footer-bottom p { color: rgba(255,255,255,0.55); margin: 0; }
.footer-bottom .disclaimer { max-width: 620px; font-size: 0.8rem; }

/* ======================================================
   Responsive
   ====================================================== */
@media (max-width: 960px) {
    .steps-grid, .supplier-cards { grid-template-columns: repeat(2, 1fr); }
    .enquire-box { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.8rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 0;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a { display: block; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
    .nav-menu a.nav-cta { margin: 0.5rem 1rem; }

    .hero { padding: 3rem 1rem 3rem; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }

    .steps-grid, .supplier-cards { grid-template-columns: 1fr; }
    .listing-header { flex-direction: column; align-items: flex-start; }
    .listing-meta { grid-template-columns: 1fr; padding: 0.9rem; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
    .enquire-box, .supplier-listing, .compare-box { padding: 1.3rem; }
    h1 { font-size: 1.85rem; }
}
