/* ============================================================
   FieldToKitchen — Global Styles
   Header, footer, GP overrides. Loaded site-wide.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ftk-green:        #2d6a4f;
    --ftk-green-light:  #40916c;
    --ftk-green-pale:   #d8f3dc;
    --ftk-green-dark:   #1b4332;
    --ftk-gold:         #b8860b;
    --ftk-white:        #ffffff;
    --ftk-off-white:    #f8f9fa;
    --ftk-gray-50:      #f9fafb;
    --ftk-gray-100:     #f3f4f6;
    --ftk-gray-200:     #e5e7eb;
    --ftk-gray-300:     #d1d5db;
    --ftk-gray-500:     #6b7280;
    --ftk-gray-700:     #374151;
    --ftk-gray-900:     #111827;
    --ftk-amber:        #d97706;

    --ftk-font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ftk-font-display: 'DM Serif Display', Georgia, serif;

    --ftk-layout-max:   1140px;
    --ftk-radius:       8px;
    --ftk-radius-lg:    12px;
    --ftk-shadow:       0 1px 3px rgba(0,0,0,0.08);
    --ftk-shadow-md:    0 4px 12px rgba(0,0,0,0.08);

    --ftk-header-h:     72px;
}

/* ============================================================
   GP RESET
   ============================================================ */

/* GP RESET — hide default header/nav */
.site-header,
.main-navigation { display: none !important; }

/* GP footer — keep container visible but hide GP content */
.site-footer {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.site-footer > *:not(.ftk-footer) { display: none !important; }
.site-footer .site-info { display: none !important; }
.site-footer nav { display: none !important; }
.site-footer .footer-widgets { display: none !important; }

/* ============================================================
   SITE HEADER
   ============================================================ */

.ftk-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ftk-white);
    border-bottom: 1px solid var(--ftk-gray-200);
    font-family: var(--ftk-font-body);
}

.ftk-header__inner {
    max-width: var(--ftk-layout-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: var(--ftk-header-h);
}

.ftk-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.ftk-header__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 38px;
    object-fit: contain;
}

.ftk-header__nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.ftk-header__link {
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ftk-gray-700);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}
.ftk-header__link:hover {
    color: var(--ftk-green);
    background: var(--ftk-gray-50);
}
.ftk-header__link--active {
    color: var(--ftk-green);
}

.ftk-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ftk-white);
    background: var(--ftk-green-dark);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.ftk-header__cta:hover {
    background: var(--ftk-green);
    color: var(--ftk-white);
}

.ftk-header__toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--ftk-gray-700);
}

@media (max-width: 768px) {
    .ftk-header__inner { height: 60px; }
    .ftk-header__logo img { max-width: 180px; max-height: 32px; }
    .ftk-header__toggle { display: flex; }
    .ftk-header__nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--ftk-white);
        border-bottom: 1px solid var(--ftk-gray-200);
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
        box-shadow: var(--ftk-shadow-md);
    }
    .ftk-header__nav.is-open { display: flex; }
    .ftk-header__link { padding: 0.65rem 0.75rem; width: 100%; }
    .ftk-header__cta {
        margin-left: 0;
        margin-top: 0.25rem;
        justify-content: center;
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.ftk-footer {
    background: var(--ftk-green-dark);
    color: rgba(255,255,255,0.7);
    font-family: var(--ftk-font-body);
    font-size: 0.85rem;
    padding: 3rem 1.5rem 2rem;
}

.ftk-footer__inner {
    max-width: var(--ftk-layout-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.ftk-footer__brand-mark {
    height: 28px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.ftk-footer__tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin: 0;
    max-width: 280px;
}

.ftk-footer__heading {
    font-family: var(--ftk-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 0.75rem;
}

.ftk-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.ftk-footer__links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.15s ease;
}
.ftk-footer__links a:hover { color: #fff; }

.ftk-footer__bottom {
    max-width: var(--ftk-layout-max);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}
.ftk-footer__bottom a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}
.ftk-footer__bottom a:hover { color: #fff; }

@media (max-width: 768px) {
    .ftk-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .ftk-footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   GP BODY / STICKY OFFSETS
   ============================================================ */

body {
    font-family: var(--ftk-font-body);
    color: var(--ftk-gray-900);
}

.ftk-nav { top: 72px !important; }
.ftk-filter-bar { top: 72px !important; }
.ftk-sidebar__sticky { top: 120px !important; }

@media (max-width: 768px) {
    .ftk-nav { top: 60px !important; }
    .ftk-filter-bar { top: 60px !important; }
    .ftk-sidebar__sticky { top: 108px !important; }
}

/* ============================================================
   FORM MESSAGES (shared across contact + list-farm)
   ============================================================ */

.ftk-form-msg {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.ftk-form-msg--success {
    background: var(--ftk-green-pale);
    color: var(--ftk-green-dark);
    border: 1px solid rgba(45,106,79,0.2);
}

.ftk-form-msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid rgba(153,27,27,0.15);
}

/* Fix sticky positioning — GP sometimes sets overflow:hidden on containers */
.site-content,
.entry-content,
.site-main,
.content-area {
    overflow: visible !important;
}
