/*
Theme Name: West Feed Grains
Theme URI: https://westfeedgrains.lk/
Description: Restored West Feed Grains presentation, built as a child of NT Agricom.
Author: West Feed Grains
Template: nt-agricom
Version: 1.0.11
Text Domain: westfeedgrains
*/

:root {
  --wfg-green: #5c9a84;
  --wfg-dark: #25262a;
  --wfg-gold: #d5a84b;
  --wfg-cream: #f6f3ec;
  --wfg-text: #62656a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wfg-site { margin: 0; color: var(--wfg-text); background: #fff; font-family: "Raleway", Arial, sans-serif; line-height: 1.72; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wfg-container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: absolute; z-index: 50; inset: 0 0 auto; height: 88px; border-bottom: 1px solid rgba(255,255,255,.22); transition: background .2s ease; }
.site-header .wfg-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: flex; align-items: center; color: #fff; }
.site-brand img { width: 64px; height: 68px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 32px; color: #fff; font: 600 13px/1 "Poppins", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.site-nav a, .site-nav a:visited, .site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { color: #fff !important; }
.site-nav a { position: relative; padding: 36px 0 34px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 24px; height: 2px; background: #fff; transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav .nav-cta { border: 2px solid #fff; padding: 12px 19px; }
.site-nav .nav-cta::after { display: none; }
.nav-toggle { display: none; color: #fff; border: 0; background: transparent; font-size: 27px; }

.hero { min-height: 570px; position: relative; display: grid; align-items: end; overflow: hidden; background: var(--wfg-dark); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-position: center; background-size: cover; opacity: 0; transform: none !important; animation: wfg-crossfade 18s linear infinite; will-change: opacity; }
.hero-slide:nth-child(1) { background-image: linear-gradient(rgba(20,24,23,.3),rgba(20,24,23,.36)), url('assets/images/coconut-oil.jpg'); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: linear-gradient(rgba(20,24,23,.34),rgba(20,24,23,.4)), url('assets/images/grain.jpg'); animation-delay: -12s; }
.hero-slide:nth-child(3) { background-image: linear-gradient(rgba(20,24,23,.18),rgba(20,24,23,.28)), url('assets/images/hero.jpg'); animation-delay: -6s; }
@keyframes wfg-crossfade { 0%, 27% { opacity: 1; } 33%, 94% { opacity: 0; } 100% { opacity: 1; } }
.hero-edge { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #fff; padding: 0 22px 38px; font: 700 12px/1 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.hero-edge span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-edge span:last-child { writing-mode: vertical-rl; }

.page-hero { min-height: 390px; display: grid; place-items: end center; padding: 150px 0 66px; text-align: center; color: #fff; background: linear-gradient(rgba(23,27,25,.52),rgba(23,27,25,.62)), url('assets/images/grain.jpg') center/cover; }
.page-hero .eyebrow { margin: 0 0 2px; text-transform: uppercase; font: 500 14px/1 "Raleway", sans-serif; letter-spacing: .18em; }
.page-hero h1 { margin: 0; color: #fff; font: 700 clamp(42px,6vw,72px)/1.05 "Poppins", sans-serif; }
.breadcrumbs { margin-top: 20px; font-size: 13px; }
.breadcrumbs a { color: rgba(255,255,255,.78); }

.section { padding: 86px 0; }
.section-soft { background: var(--wfg-cream); }
.section-title { margin: 0 0 34px; color: var(--wfg-dark); font: 700 clamp(32px,4vw,50px)/1.15 "Poppins", sans-serif; }
.kicker { margin: 0 0 10px; color: var(--wfg-green); font: 700 12px/1 "Poppins", sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.intro-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 66px; align-items: center; }
.intro-copy h1, .intro-copy h2 { margin: 0 0 30px; color: var(--wfg-dark); font: 700 clamp(31px,4vw,44px)/1.18 "Poppins", sans-serif; }
.intro-copy p { font-size: 15px; }
.slogan-art { display: grid; place-items: center; min-height: 310px; }
.slogan-art img { width: min(100%, 530px); }
.button { display: inline-block; margin-top: 16px; padding: 15px 24px; color: #fff; background: var(--wfg-green); font: 700 12px/1 "Poppins", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.value-card { min-height: 290px; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(rgba(20,26,23,.5),rgba(20,26,23,.75)), url('assets/images/grain.jpg') center/cover; }
.value-card:nth-child(2) { background-image: linear-gradient(rgba(20,26,23,.5),rgba(20,26,23,.75)), url('assets/images/coconut-oil.jpg'); }
.value-card h2 { margin: 0 0 14px; color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.38); font: 700 26px/1.2 "Poppins", sans-serif; }
.value-card p { margin: 0; color: rgba(255,255,255,.92); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.about-photo { min-height: 560px; background: url('assets/images/about.jpg') center/cover; }
.statement { padding: 24px 0 0 30px; border-left: 3px solid var(--wfg-green); }
.statement + .statement { margin-top: 30px; }
.statement h3 { margin: 0 0 8px; color: var(--wfg-dark); font: 700 20px/1.2 "Poppins", sans-serif; }
.statement p { margin: 0; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { border: 1px solid #e5e5e2; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(28,34,31,.1); }
.product-photo { display: block; aspect-ratio: 4/3; background: #e8ebe5 center/cover; }
.photo-oil { background-image: url('assets/images/coconut-oil.jpg'); }
.photo-bran { background-image: url('assets/images/hero.jpg'); }
.photo-grain { background-image: url('assets/images/grain.jpg'); }
.photo-meal { background-image: linear-gradient(rgba(35,38,34,.15),rgba(35,38,34,.15)), url('assets/images/about.jpg'); }
.product-body { padding: 26px; }
.product-body h2 { margin: 0 0 18px; color: var(--wfg-dark); font: 700 21px/1.25 "Poppins", sans-serif; }
.product-meta { display: grid; gap: 13px; margin: 0; }
.product-meta div { padding-top: 12px; border-top: 1px solid #ecece8; }
.product-meta dt { color: var(--wfg-green); font: 700 11px/1.2 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.product-meta dd { margin: 4px 0 0; font-size: 14px; }
.detail-list { display: grid; gap: 30px; }
.detail { padding: 34px 38px; background: #fff; border-left: 4px solid var(--wfg-green); }
.detail h2 { margin: 0 0 18px; color: var(--wfg-dark); font: 700 26px/1.25 "Poppins", sans-serif; }
.detail h3 { margin: 24px 0 8px; color: var(--wfg-dark); font: 700 16px/1.3 "Poppins", sans-serif; }
.detail p:last-child, .detail ul:last-child { margin-bottom: 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.spec-table th, .spec-table td { padding: 11px 13px; border: 1px solid #e3e4df; text-align: left; }
.spec-table th { width: 44%; color: var(--wfg-dark); background: #f4f5f0; }

.contact-strip { color: #fff; background: var(--wfg-green); }
.contact-strip .wfg-container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding-top: 74px; padding-bottom: 74px; }
.contact-strip h2 { margin: 0 0 24px; color: #fff !important; font: 700 31px/1.2 "Poppins", sans-serif; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.contact-list strong { font-family: "Poppins", sans-serif; }
.contact-strip a, .contact-strip a:visited { color: #fff !important; }
.contact-strip a:hover, .contact-strip a:focus { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
.wfg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wfg-form .full { grid-column: 1 / -1; }
.wfg-form input, .wfg-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; padding: 13px 2px; font: inherit; outline: none; }
.wfg-form textarea { min-height: 100px; resize: vertical; }
.wfg-form input::placeholder, .wfg-form textarea::placeholder { color: rgba(255,255,255,.85); }
.wfg-form button { justify-self: start; border: 2px solid #fff; color: #fff; background: transparent; padding: 13px 20px; font: 700 12px/1 "Poppins", sans-serif; text-transform: uppercase; cursor: pointer; }
.wfg-hp { position: absolute !important; left: -9999px !important; }
.form-notice { grid-column: 1/-1; padding: 14px 17px; color: #fff !important; border-left: 4px solid #fff; background: rgba(255,255,255,.16); font-weight: 600; }
.form-notice--success { border-left-color: #dff6e8; background: rgba(17,79,57,.34); }
.form-notice--error { border-left-color: #ffe0d6; background: rgba(102,35,24,.34); }
.captcha-field { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 5px 0 8px; padding: 14px 16px; color: #fff; background: rgba(255,255,255,.11); }
.captcha-field label { margin: 0; color: #fff !important; font-weight: 600; }
.captcha-field input { width: 90px; min-width: 90px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.72); color: #fff; background: rgba(0,0,0,.08); }
.captcha-field input:focus { border-color: #fff; outline: 2px solid rgba(255,255,255,.34); outline-offset: 2px; }

.contact-page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.contact-page-grid .contact-card { padding: 36px; background: var(--wfg-cream); }
.contact-page-grid .contact-card h3 { margin: 0 0 8px; color: var(--wfg-dark); font: 700 17px/1.3 "Poppins", sans-serif; }
.contact-page-grid .contact-card p { margin: 0 0 26px; }
.contact-form-wrap { padding: 38px; background: var(--wfg-green); }
.contact-form-wrap > h2 { margin: 0 0 22px; color: #fff; font: 700 31px/1.2 "Poppins", sans-serif; }
.contact-page-grid .wfg-form { padding: 0; color: var(--wfg-text); background: var(--wfg-green); }
.contact-page-grid .wfg-form h2 { grid-column: 1/-1; margin: 0 0 8px; color: #fff; font: 700 31px/1.2 "Poppins", sans-serif; }

.site-footer { padding: 46px 0; color: rgba(255,255,255,.74); background: #202326; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 52px; height: 58px; object-fit: contain; }
.footer-brand p { margin: 0; font-size: 13px; }
.footer-menu { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px; font: 600 12px/1 "Poppins", sans-serif; text-transform: uppercase; }
.footer-menu a, .footer-menu a:visited { color: rgba(255,255,255,.74) !important; }
.footer-menu a:hover, .footer-menu a:focus { color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { height: 78px; background: rgba(30,34,32,.88); }
  .site-brand img { width: 52px; height: 56px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; padding: 18px 24px 26px; background: rgba(30,34,32,.96); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; }
  .site-nav a::after { bottom: 7px; }
  .site-nav .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 500px; }
  .intro-grid, .about-grid, .contact-strip .wfg-container, .contact-page-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 400px; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .wfg-container { width: min(100% - 30px, 1120px); }
  .section { padding: 62px 0; }
  .hero { min-height: 440px; }
  .page-hero { min-height: 330px; }
  .intro-grid, .values-grid, .products-grid, .footer-grid { grid-template-columns: 1fr; }
  .value-card { padding: 34px; }
  .products-grid { gap: 18px; }
  .contact-strip .wfg-container { gap: 42px; padding-top: 58px; padding-bottom: 58px; }
  .wfg-form { grid-template-columns: 1fr; }
  .wfg-form .full { grid-column: auto; }
  .footer-menu { justify-content: flex-start; }
}

