/* ============================================================
   FarmHQ — custom.css
   Extends 2082_pure_mix template. DO NOT import main.css.
   All site-specific styles go here.
   ============================================================ */

/* CSS Variables */
:root {
    --accent: #16a34a;
    --accent-dark: #15803d;
    --accent-light: #dcfce7;
    --bg: #f8faf8;
    --surface: #ffffff;
    --surface2: #eaf2ea;
    --text: #1a2e1a;
    --text-muted: #4a6a4a;
    --dark-bg: #0d1f0d;
    --dark-surface: #0a160a;
    --dark-text: #f0f5f0;
    --dark-text-muted: #c8d8c8;
    --border: rgba(22, 163, 74, 0.15);
    --radius: 8px;
    --gap: 32px;
    --nav-height: 70px;
}

/* ============================================================
   Override template uppercase headings
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Body text */
body {
    font-size: 18px !important;
    color: var(--text) !important;
    background-color: var(--bg) !important;
    line-height: 1.75 !important;
}

/* ============================================================
   NAV — hidden/overlay menu rules
   ============================================================ */
.nav-inner .row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.brand { float: none !important; }
.navicon { float: none !important; margin-left: auto !important; }

/* Menu trigger styling */
.menu-trigger {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 4px;
    cursor: pointer;
}
.menu-trigger .icon {
    font-size: 20px;
    line-height: 1;
}
.menu-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase !important;
    color: inherit;
    line-height: 1;
}

/* Overlay menu: large text, high-contrast */
#nav-menu a {
    font-size: 36px !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}
#nav-menu li.active a {
    color: var(--accent) !important;
    font-weight: 700 !important;
}
#nav-menu a:hover {
    color: var(--accent) !important;
}

/* ============================================================
   Section labels
   ============================================================ */
.fhq-section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* ============================================================
   Hero section
   ============================================================ */
.fhq-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
.fhq-hero h1 {
    font-size: 58px !important;
    font-weight: 700;
    line-height: 1.15;
    color: #f0f5f0 !important;
    margin-bottom: 24px;
}
.fhq-hero-sub {
    font-size: 20px !important;
    color: #c8d8c8 !important;
    line-height: 1.7;
    margin-bottom: 36px;
}
.header-thumb {
    text-align: center;
    padding: 40px 0;
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.fhq-page-hero {
    padding: 100px 0 60px;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.fhq-page-hero h1 {
    font-size: 52px !important;
    font-weight: 700;
    line-height: 1.2;
    color: #f0f5f0 !important;
    margin-bottom: 18px;
}
.fhq-page-hero p {
    font-size: 20px !important;
    color: #c8d8c8 !important;
}

/* ============================================================
   Sections
   ============================================================ */
.fhq-section-light,
.fhq-section-alt {
    padding: 80px 0;
}
.fhq-section-light h2,
.fhq-section-alt h2 {
    font-size: 40px !important;
    font-weight: 700;
    color: #1a2e1a !important;
    margin-bottom: 20px;
}
.fhq-section-intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* ============================================================
   Buttons
   ============================================================ */
.fhq-btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: background 0.2s, border-color 0.2s;
}
.fhq-btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff !important;
    text-decoration: none;
}
.fhq-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #f0f5f0 !important;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(240, 245, 240, 0.4);
    transition: background 0.2s, border-color 0.2s;
}
.fhq-btn-secondary:hover {
    background: rgba(240, 245, 240, 0.1);
    border-color: rgba(240, 245, 240, 0.7);
    color: #f0f5f0 !important;
    text-decoration: none;
}
.fhq-btn-secondary-light {
    display: inline-block;
    background: transparent;
    color: #f0f5f0 !important;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(240, 245, 240, 0.4);
    transition: background 0.2s, border-color 0.2s;
}
.fhq-btn-secondary-light:hover {
    background: rgba(240, 245, 240, 0.1);
    border-color: rgba(240, 245, 240, 0.7);
    color: #f0f5f0 !important;
    text-decoration: none;
}
.fhq-btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent) !important;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: background 0.2s, color 0.2s;
}
.fhq-btn-outline:hover {
    background: var(--accent);
    color: #ffffff !important;
    text-decoration: none;
}
.fhq-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Feature cards
   ============================================================ */
.fhq-feature-cards {
    margin-top: 40px;
}
.fhq-feature-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fhq-feature-card-large {
    padding: 32px 28px;
}
.fhq-feature-icon {
    font-size: 28px !important;
    color: var(--accent) !important;
    margin-bottom: 16px;
    display: block;
}
.fhq-feature-card h3 {
    font-size: 20px !important;
    font-weight: 600;
    color: #1a2e1a !important;
    margin-bottom: 12px;
}
.fhq-feature-card p {
    font-size: 16px;
    color: #3a4e3a !important;
    line-height: 1.7;
    margin-bottom: 12px;
}
.fhq-feature-card p:last-child { margin-bottom: 0; }

/* ============================================================
   Steps / How it works
   ============================================================ */
.fhq-steps {
    margin-top: 40px;
}
.fhq-step {
    padding: 24px 0;
}
.fhq-step-num {
    display: inline-block;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}
.fhq-step h3 {
    font-size: 20px !important;
    font-weight: 600;
    color: #1a2e1a !important;
    margin-bottom: 10px;
}
.fhq-step p {
    font-size: 16px;
    color: #3a4e3a !important;
    line-height: 1.7;
}

/* ============================================================
   Stats section
   ============================================================ */
.fhq-stats-section {
    padding: 60px 0;
}
.fhq-stat h3 {
    font-size: 40px !important;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 6px;
}
.fhq-stat p {
    font-size: 16px;
    color: rgba(255,255,255,0.8) !important;
}

/* ============================================================
   CTA section
   ============================================================ */
.fhq-cta-section {
    padding: 80px 0;
    text-align: center;
}
.fhq-cta-section h2 {
    font-size: 40px !important;
    font-weight: 700;
    color: #f0f5f0 !important;
    margin-bottom: 16px;
}
.fhq-cta-section p {
    font-size: 18px;
    color: #c8d8c8 !important;
    margin-bottom: 32px;
}

/* ============================================================
   Technical specs table
   ============================================================ */
.fhq-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 15px;
}
.fhq-specs-table th {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
}
.fhq-specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   Team cards
   ============================================================ */
.fhq-team-grid {
    margin-top: 20px;
}
.fhq-team-card {
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fhq-team-avatar-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
    border: 3px solid var(--accent-light);
}
.fhq-team-card h3 {
    font-size: 22px !important;
    font-weight: 700;
    color: #1a2e1a !important;
    margin-bottom: 4px;
}
.fhq-team-role {
    font-size: 14px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.fhq-team-bio {
    font-size: 15px !important;
    color: #3a4e3a !important;
    line-height: 1.7;
    margin-bottom: 16px;
}
.fhq-team-email {
    font-size: 14px;
    color: var(--accent) !important;
    text-decoration: none;
}
.fhq-team-email:hover {
    text-decoration: underline;
}

/* ============================================================
   Contact page
   ============================================================ */
.fhq-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.fhq-contact-list li {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.fhq-contact-list li i {
    margin-top: 4px;
    flex-shrink: 0;
}
.fhq-form-input {
    border: 1px solid #c8d8c8 !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    color: #1a2e1a !important;
    background: #fff !important;
    margin-bottom: 16px;
    width: 100%;
}
.fhq-form-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
    outline: none !important;
}
.fhq-contact-form .fhq-btn-primary {
    width: 100%;
    text-align: center;
}
.form-group { margin-bottom: 0; }

/* ============================================================
   Blog grid
   ============================================================ */
.fhq-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.fhq-blog-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fhq-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.12);
}
.fhq-blog-card-img {
    height: 180px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.fhq-blog-card-body {
    padding: 22px 24px;
}
.fhq-blog-card-body time {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
.fhq-blog-card-body h3 {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a2e1a !important;
}
.fhq-blog-card-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #3a4e3a !important;
    margin-bottom: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.fhq-footer {
    padding: 60px 0 0;
}
.fhq-footer h3 {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 18px;
}
.fhq-footer p {
    font-size: 15px;
    line-height: 1.7;
    color: #c8d8c8 !important;
}
.fhq-footer-address {
    font-size: 14px !important;
    color: #8aaa8a !important;
    margin-top: 12px;
}
.fhq-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fhq-footer-links li {
    margin-bottom: 8px;
}
.fhq-footer-links a {
    color: #c8d8c8 !important;
    font-size: 15px;
    text-decoration: none;
}
.fhq-footer-links a:hover {
    color: var(--accent) !important;
    text-decoration: none;
}
.fhq-footer-contact {
    margin-top: 20px;
    font-size: 14px !important;
    color: #8aaa8a !important;
}
.fhq-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding: 24px 0;
}
/* Override template footer social icons */
footer .social-icon { display: none !important; }

/* ============================================================
   Cookie banner
   ============================================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2e1a;
    color: #f0f5f0;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text strong {
    display: block;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 4px;
}
.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #c8d8c8;
}
.cookie-text a {
    color: var(--accent);
}
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
#cookie-accept {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline {
    background: transparent;
    color: #c8d8c8;
    border: 1px solid rgba(200, 216, 200, 0.4);
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
#cookie-decline:hover { background: rgba(255,255,255,0.08); }

/* ============================================================
   Image placeholders (replaced by IMAGE subagent)
   ============================================================ */
[data-img-placeholder] {
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius);
    min-height: 280px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .fhq-hero h1 { font-size: 38px !important; }
    .fhq-page-hero h1 { font-size: 36px !important; }
    .fhq-section-light h2,
    .fhq-section-alt h2,
    .fhq-cta-section h2 { font-size: 30px !important; }
    .fhq-stat h3 { font-size: 30px !important; }
    .fhq-btn-group { flex-direction: column; align-items: center; }
    .fhq-blog-grid { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ARTICLE / LEGAL CONTENT WIDTH (max 720px centered)
   ============================================================ */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Site Logo */
.site-logo { height: 36px; width: auto; vertical-align: middle; margin-right: 8px; }

/* Blog grid flexbox fixes */
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
.blog-grid > [class*="col-"] {
    display: flex;
}
.fhq-blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.fhq-blog-card-body {
    flex: 1;
}

/* Nav menu-trigger inline fix */
.navicon { float: none !important; margin-left: auto !important; }
.menu-trigger {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: auto !important;
}
.menu-trigger .icon {
  font-size: 20px;
  line-height: 1;
}
.menu-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Nav row flex fix */
.navbar .row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}
.brand { float: none !important; }

/* Fix: Bootstrap 3 float grid card misalignment (#13) */
.fhq-feature-cards.row {
    display: flex;
    flex-wrap: wrap;
}
.fhq-feature-cards.row > [class*="col-"] {
    display: flex;
}
.fhq-feature-cards .fhq-feature-card {
    width: 100%;
}

/* Hero fix: remove white box around hero content */
.header-thumb {
    background: transparent !important;
    border: none !important;
}

/* Steps grid: bypass template col-md-4 overrides */
.fhq-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.fhq-steps-grid .fhq-step-item {
    background: transparent;
    padding: 0;
    position: static;
    bottom: auto;
}
@media (max-width: 767px) {
    .fhq-steps-grid { grid-template-columns: 1fr; }
}
