/* Kamini Global Agro Impex — site styles
   Palette
   --ink     #14211a  text, footer
   --forest  #1f4a34  brand green (from company profile)
   --paper   #f8f7f3  page background
   --panel   #eeede7  alternate sections
   --line    #d8d8d0  hairlines
   --brass   #8f7236  logo gold, used sparingly
*/

:root {
  --ink: #14211a;
  --forest: #1f4a34;
  --forest-dark: #173a28;
  --paper: #f8f7f3;
  --panel: #eeede7;
  --line: #d8d8d0;
  --muted: #55625a;
  --brass: #8f7236;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--forest);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--forest-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.008em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
}

.measure {
  max-width: 38em;
}

.muted {
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--forest);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--line);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--forest);
}

.nav .nav-cta {
  border: 1px solid var(--forest);
  color: var(--forest);
  padding: 9px 18px;
  border-radius: 2px;
}

.nav .nav-cta:hover {
  background: var(--forest);
  color: #fff;
  border-bottom-color: var(--forest);
}

.nav .nav-cta[aria-current="page"] {
  background: var(--forest);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
}

.btn:hover {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
}

.btn-ghost:hover {
  background: var(--forest);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--forest-dark);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--panel);
  border-color: var(--panel);
  color: var(--forest-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-panel {
  background: var(--panel);
}

.section-dark {
  background: var(--forest-dark);
  color: #e7ede8;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark a {
  color: #fff;
}

.section-dark .btn-light,
.section-dark .btn-light:hover {
  color: var(--forest-dark);
}

.section-head {
  max-width: 42em;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.1rem;
}

.section-dark .section-head p {
  color: #c4d0c7;
}

/* Page title block on inner pages */
.page-title {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-title .lead {
  margin-top: 20px;
}

/* ---------- Home hero ---------- */

.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
  background: var(--panel);
}

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.facts div {
  padding: 28px 28px 28px 0;
}

.facts div+div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.facts dt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
}

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-top {
  align-items: start;
}

.split img {
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
  background: var(--panel);
}

.img-wide {
  aspect-ratio: 3 / 2;
}

.img-tall {
  aspect-ratio: 4 / 5;
}

.supply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.supply img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 24px;
  background: var(--panel);
}

.supply h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.supply p {
  color: var(--muted);
  max-width: 30em;
}

.text-link {
  font-weight: 600;
}

/* Three-column statements separated by hairlines */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.trio>div {
  padding: 32px 32px 0 0;
}

.trio>div+div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.trio h3 {
  margin-bottom: 10px;
}

.trio p {
  color: var(--muted);
  margin: 0;
}

/* Ruled list (two columns) */
.ruled {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ruled li {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}

.ruled h3 {
  margin-bottom: 8px;
}

.ruled p {
  margin: 0;
  color: var(--muted);
}

.section-panel .ruled li {
  border-top-color: #cfcfc6;
}

/* Numbered process — genuinely sequential, so numbered */
.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brass);
}

/* Plain list with rules */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rows li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- Products ---------- */

.subnav {
  position: sticky;
  top: 78px;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.subnav .wrap {
  display: flex;
  gap: 32px;
  overflow-x: auto;
}

.subnav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 16px 0;
  border-bottom: 2px solid transparent;
}

.subnav a:hover {
  border-bottom-color: var(--forest);
}

.catalog {
  padding: 72px 0 24px;
}

.catalog+.catalog {
  padding-top: 48px;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.catalog-head p {
  margin: 0;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--line);
}

.tile span {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}

.tile small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.tile-text {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 18px 16px 18px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  width: 28%;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 1px solid var(--line);
}

/* ---------- Certifications ---------- */

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.cols-2 h3 {
  margin-bottom: 8px;
}

.cols-2>div>p {
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
}

.contact-list div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-list dd {
  margin: 0;
  font-size: 1.1rem;
}

.contact-list address {
  font-style: normal;
}

form .field {
  margin-bottom: 20px;
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdbdb3;
  border-radius: 2px;
  padding: 12px 14px;
  min-height: 50px;
  line-height: 1.4;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- CTA + Footer ---------- */

.cta {
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  max-width: 16em;
}

.cta p {
  margin: 14px 0 0;
  color: #c4d0c7;
  max-width: 34em;
}

.site-footer {
  background: var(--ink);
  color: #c9d2cc;
  padding: 64px 0 32px;
  font-size: 0.97rem;
}

.site-footer a {
  color: #e7ede8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer-base {
  border-top: 1px solid #2c3a32;
  padding-top: 24px;
  font-size: 0.88rem;
  color: #93a199;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {

  .hero-grid,
  .split,
  .supply,
  .cols-2,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }

  .facts dl {
    grid-template-columns: 1fr 1fr;
  }

  .facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .facts div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .trio {
    grid-template-columns: 1fr;
  }

  .trio>div,
  .trio>div+div {
    padding: 28px 0;
    border-left: 0;
  }

  .trio>div+div {
    border-top: 1px solid var(--line);
  }

  .ruled {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid> :first-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--forest);
  }

  .nav .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .subnav {
    top: 78px;
  }
}

/* @media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { display: none; }
  .facts dl { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 20px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .page-title { padding: 48px 0 40px; }
  .hero { padding: 40px 0 56px; }
} */
@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-sub {
    display: none;
  }

  /* Restore original mobile hero */
  .hero {
    padding: 40px 0 56px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  /* Keep content away from mobile screen edges */
  .hero .wrap,
  .facts .wrap,
  .wrap {
    padding-inline: 24px;
  }

  /* Facts - restore original spacing */
  .facts dl {
    grid-template-columns: 1fr;
  }

  .facts div,
  .facts div+div {
    padding: 20px 0;
    border-left: 0;
  }

  .facts div+div {
    border-top: 1px solid var(--line);
  }

  /* Keep the NEW mobile button behavior */
  /* .hero-actions {
        flex-direction: column;
        gap: 16px;
    }

    .hero-actions .button {
        width: 100%;
    } */
     .hero .actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .hero .actions .btn {
        flex: 1;
        width: 50%;
        padding: 14px 10px;
        white-space: nowrap;
        font-size: 1rem;
    }
  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  .hero-actions .button {
    flex: 1;
    width: auto;
  }

  /* Forms */
  form .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Products */
  .tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }

  .page-title {
    padding: 48px 0 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 26, 20, 0.22), 0 2px 6px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  opacity: 0;
  animation: whatsapp-pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.22);
    opacity: 0;
  }

  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08) translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 8px 24px rgba(15, 26, 20, 0.28), 0 4px 14px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  display: block;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: var(--forest-dark, #0d2618);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--forest-dark, #0d2618);
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media print {

  .site-header,
  .subnav,
  .nav-toggle,
  .cta,
  .whatsapp-float {
    display: none;
  }
}