/*
Theme Name: Farmap Modern
Theme URI: https://skelhost.com
Author: OpenAI for Farmap Limited
Author URI: https://skelhost.com
Description: A modern multi-page WordPress theme for Farmap Limited with working enquiry form support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: farmap-modern
*/

:root {
  --blue: #1f84d6; --blue-deep: #155d9a; --blue-soft: #eaf5ff; --beige: #e6dcc8; --sand: #f3ede2;
  --red: #ef4444; --green: #16a34a; --cyan: #38bdf8; --ink: #13263c; --muted: #607085;
  --line: rgba(19, 38, 60, 0.1); --bg: #f7fafc; --card: rgba(255,255,255,0.92);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12); --radius: 26px; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.14), transparent 28%),
    radial-gradient(circle at right 10% top 15%, rgba(22,163,74,0.07), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; } .site-main { flex: 1; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.nav-shell { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); background: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(19,38,60,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(180deg, #f9fbfd 0%, #ecf4fb 100%); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(31,132,214,0.12); border: 1px solid rgba(19,38,60,0.06); flex: 0 0 auto; }
.brand-copy { min-width: 0; }
.brand-copy h1, .brand-copy .site-title { margin: 0; font-size: 1.1rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.brand-copy p, .brand-copy .site-tagline { margin: 4px 0 0; color: var(--muted); font-weight: 700; font-size: 0.94rem; }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-links a, .nav-links li a { font-weight: 700; color: #20344b; }
.nav-links ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.btn, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px; border: 0; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; font-family: inherit; }
.btn:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); }
.btn-primary, input[type="submit"] { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 14px 28px rgba(31,132,214,0.24); }
.btn-secondary { color: var(--ink); background: rgba(255,255,255,0.92); border: 1px solid var(--line); }
.hero { padding: 64px 0 40px; } .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(31,132,214,0.1); color: var(--blue-deep); padding: 8px 14px; border-radius: 999px; font-weight: 800; margin-bottom: 18px; font-size: 0.92rem; }
.hero h2 { margin: 0 0 16px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.96; letter-spacing: -0.05em; }
.hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.stat, .card, .page-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.hero-card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.86)); border: 1px solid rgba(255,255,255,0.72); border-radius: 32px; padding: 26px; box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -40px; top: -40px; background: radial-gradient(circle, rgba(31,132,214,0.18), transparent 65%); pointer-events: none; }
.full-logo { background: linear-gradient(135deg, #0f4f89 0%, #1f84d6 100%); border-radius: 28px; padding: 30px; color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.full-logo-row { display: flex; align-items: center; gap: 18px; }
.full-logo h3 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; letter-spacing: -0.04em; }
.full-logo p { margin: 6px 0 0; font-size: 1.08rem; color: rgba(255,255,255,0.9); font-weight: 700; }
.mini-note { margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(246,249,252,0.78); border: 1px solid var(--line); color: var(--muted); }
section { padding: 34px 0; } .section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h3, .page-hero h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.03; letter-spacing: -0.04em; }
.section-head p, .page-hero p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.card .icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: white; font-size: 1.15rem; font-weight: 900; margin-bottom: 16px; }
.services article:nth-child(1) .icon { background: linear-gradient(135deg, var(--blue), #42a5f5); }
.services article:nth-child(2) .icon { background: linear-gradient(135deg, #1f2937, #6b7280); }
.services article:nth-child(3) .icon { background: linear-gradient(135deg, var(--red), #f97316); }
.services article:nth-child(4) .icon { background: linear-gradient(135deg, var(--green), #22c55e); }
.card h4 { margin: 0 0 8px; font-size: 1.18rem; } .card p { margin: 0; color: var(--muted); }
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project { min-height: 220px; border-radius: 26px; padding: 22px; color: white; position: relative; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.project:nth-child(2) { background: linear-gradient(135deg, #14532d, #1f84d6); }
.project:nth-child(3) { background: linear-gradient(135deg, #7c2d12, #ef4444); }
.project:nth-child(4) { background: linear-gradient(135deg, #1e293b, #0f766e); }
.project:nth-child(5) { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.project:nth-child(6) { background: linear-gradient(135deg, #581c87, #9333ea); }
.project small { display: inline-block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; opacity: 0.88; }
.project h4 { margin: 0 0 8px; font-size: 1.35rem; } .project p { margin: 0; opacity: 0.93; max-width: 30ch; }
.portfolio-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); }
.cta { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, rgba(31,132,214,0.1), rgba(230,220,200,0.6)); border: 1px solid var(--line); }
.tag { display: inline-block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--blue-deep); font-weight: 900; margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; }
.contact-item { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(246,249,252,0.84); border: 1px solid var(--line); margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.field, .full-field { display: flex; flex-direction: column; gap: 8px; } .full-field { grid-column: 1 / -1; }
.field label, .full-field label { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.field input, .field select, .full-field input, .full-field textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,0.95); border-radius: 16px; padding: 14px 16px; font: inherit; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .full-field input:focus, .full-field textarea:focus { border-color: rgba(31,132,214,0.45); box-shadow: 0 0 0 4px rgba(31,132,214,0.12); }
.full-field textarea { min-height: 150px; resize: vertical; } .form-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); } .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.notice-success, .notice-error { padding: 14px 18px; border-radius: 16px; margin-bottom: 18px; font-weight: 700; }
.notice-success { background: rgba(22,163,74,0.12); color: #166534; border: 1px solid rgba(22,163,74,0.2); }
.notice-error { background: rgba(239,68,68,0.12); color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }
.page-hero { padding: 50px 0 20px; } .page-content { padding: 12px 0 40px; } .content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.footer { padding: 26px 0 50px; color: var(--muted); font-size: 0.95rem; }
.footer-mark { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 800; color: var(--ink); }
.wp-block-group, .entry-content > * + * { margin-top: 1rem; }
@media (max-width: 980px) {
  .hero-grid, .services, .portfolio, .contact-grid, .content-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links, .nav-links ul { width: 100%; gap: 16px; }
  .hero, section { padding-top: 28px; }
  .hero-grid, .services, .portfolio, .contact-grid, .content-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn, button, input[type="submit"] { width: 100%; }
  .brand-mark { width: 60px; height: 60px; } .full-logo-row { align-items: flex-start; }
}
