/* Swan Agro | Phase 01 | header/navigation only. Scoped to avoid legacy CSS collisions. */
.swm-header {
    --swm-navy: #133560;
    --swm-deep: #0d2545;
    --swm-gold: #f6c401;
    --swm-text: #18304d;
    --swm-muted: #52657a;
    --swm-border: #dce4ec;
    --swm-panel-height: 65vh;
    position: relative;
    float: none;
    clear: both;
    width: 100%;
    background: #fff;
    color: var(--swm-text);
    font-family: 'Hind Siliguri', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    z-index: 1030;
}
.swm-header *, .swm-header *::before, .swm-header *::after { box-sizing: border-box; }
.swm-header [hidden] { display: none !important; }
.swm-header a { color: inherit; text-decoration: none; }
.swm-header a:hover { text-decoration: none; }
.swm-header a:focus-visible, .swm-header button:focus-visible, .swm-header summary:focus-visible, .swm-header input:focus-visible { outline: 3px solid #f6c401; outline-offset: 3px; }
.swm-header button, .swm-header input { font: inherit; }
.swm-header button { cursor: pointer; }
.swm-header ul { list-style: none; margin: 0; padding: 0; }
.swm-header .swm-shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; }
/* Utility strip */
.swm-header .swm-utility { background: var(--swm-deep); color: #fff; }
.swm-header .swm-utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 40px; padding-top: 5px; padding-bottom: 5px; }
.swm-header .swm-contact-links, .swm-header .swm-utility-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-width: 0; }
.swm-header .swm-contact-links a { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; color: #fff; }
.swm-header .swm-contact-links a span { overflow-wrap: anywhere; }
.swm-header .swm-contact-links svg { color: var(--swm-gold); width: 14px; height: 14px; flex: 0 0 14px; }
.swm-header .swm-contact-links a:hover { color: var(--swm-gold); }
.swm-header .swm-utility-right { flex: 0 0 auto; gap: 8px 14px; }
.swm-header .swm-socials, .swm-header .swm-languages { display: flex; align-items: center; gap: 5px; }
.swm-header .swm-socials a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; color: #fff; background: rgba(255,255,255,.09); font-size: 13px; }
.swm-header .swm-socials svg { width: 16px; height: 16px; flex: 0 0 16px; }
.swm-header .swm-socials a:hover { background: var(--swm-gold); color: var(--swm-deep); }
.swm-header .swm-languages { border-left: 1px solid rgba(255,255,255,.25); padding-left: 13px; }
.swm-header .swm-languages a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 30px; padding: 3px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.swm-header .swm-languages a[aria-current], .swm-header .swm-languages a:hover { color: var(--swm-deep); background: var(--swm-gold); }
/* Brand and investor banner */
.swm-header .swm-brand-row { background: #fff; border-bottom: 1px solid var(--swm-border); }
.swm-header .swm-brand-inner { display: grid; grid-template-columns: auto minmax(180px,1fr) auto; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; min-height: 112px; }
.swm-header .swm-brand { display: inline-flex; align-items: center; justify-content: flex-start; }
.swm-header .swm-brand img { display: block; width: 106px; height: auto; max-height: 92px; object-fit: contain; }
.swm-header .swm-investor-banner { display: block; width: 100%; max-width: 600px; justify-self: center; border-radius: 9px; overflow: hidden; border: 1px solid #e8ca57; background: #fff2a8; }
.swm-header .swm-investor-banner img { display: block; width: 100%; height: auto; object-fit: contain; }
.swm-header .swm-investor-banner:hover { box-shadow: 0 3px 12px rgba(19,53,96,.15); }
.swm-header .swm-brand-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.swm-header .swm-cert { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--swm-border); border-radius: 9px; background: #f7f9fc; }
.swm-header .swm-cert img { display: block; width: 37px; height: 37px; object-fit: contain; }
.swm-header .swm-cert strong, .swm-header .swm-cert small { display: block; line-height: 1.3; }
.swm-header .swm-cert strong { font-size: 14px; font-weight: 700; color: var(--swm-navy); }
.swm-header .swm-cert small { color: var(--swm-muted); font-size: 11px; margin-top: 3px; }
.swm-header .swm-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; min-height: 45px; border-radius: 8px; background: var(--swm-gold); color: var(--swm-deep); font-weight: 700; font-size: 14px; border: 1px solid #e0ad00; text-align: center; }
.swm-header .swm-cta:hover { background: #ffda37; box-shadow: 0 3px 10px rgba(19,53,96,.12); }
/* Main nav. The slot prevents a layout jump when JS pins the bar. */
.swm-header .swm-nav-slot { position: relative; }
.swm-header .swm-nav-band { width: 100%; background: var(--swm-navy); color: #fff; box-shadow: 0 4px 12px rgba(13,37,69,.12); }
.swm-header .swm-nav-band.swm-pinned { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
.swm-header .swm-nav-inner { position: relative; }
.swm-header .swm-nav { display: block; margin: 0; }
.swm-header .swm-menu { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; }
.swm-header .swm-nav-list { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; gap: 2px; justify-content: space-between; }
.swm-header .swm-nav-item { display: flex; align-items: stretch; min-width: 0; }
.swm-header .swm-nav-item > a, .swm-header .swm-dropdown > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 10px 12px; border-bottom: 3px solid transparent; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
.swm-header .swm-nav-item > a:hover, .swm-header .swm-dropdown > summary:hover, .swm-header .swm-dropdown[open] > summary { color: var(--swm-gold); background: rgba(255,255,255,.07); }
.swm-header .swm-nav-item > a[aria-current], .swm-header .swm-current > summary { color: var(--swm-gold); border-bottom-color: var(--swm-gold); }
.swm-header .swm-investor-link > a { color: #ffdc44; }
.swm-header .swm-dropdown { position: relative; }
.swm-header .swm-dropdown > summary { cursor: pointer; list-style: none; height: 100%; }
.swm-header .swm-dropdown > summary::-webkit-details-marker { display: none; }
.swm-header .swm-dropdown > summary::after { content: ''; display: block; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.swm-header .swm-dropdown[open] > summary::after { transform: rotate(225deg) translate(-1px,-1px); }
.swm-header .swm-panel { position: absolute; z-index: 3; top: 100%; background: #fff; color: var(--swm-text); border: 1px solid var(--swm-border); border-top: 3px solid var(--swm-gold); border-radius: 0 0 12px 12px; box-shadow: 0 14px 40px rgba(13,37,69,.19); }
.swm-header .swm-dropdown:not([open]) > .swm-panel { display: none; }
.swm-header .swm-link-panel { left: 0; width: 255px; max-height: var(--swm-panel-height); overflow: auto; padding: 8px; }
.swm-header .swm-link-panel a { display: block; color: var(--swm-text); padding: 12px 14px; border-radius: 7px; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.swm-header .swm-link-panel a:hover, .swm-header .swm-link-panel a[aria-current] { background: #f0f4f8; color: var(--swm-navy); box-shadow: inset 3px 0 var(--swm-gold); }
.swm-header .swm-product-item, .swm-header .swm-product-dropdown { position: static; }
.swm-header .swm-product-panel { left: 28px; right: 28px; max-height: min(580px,var(--swm-panel-height)); overflow-y: auto; padding: 24px; }
.swm-header .swm-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.swm-header .swm-eyebrow { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; font-weight: 700; color: var(--swm-muted); margin-bottom: 4px; }
.swm-header .swm-panel-heading strong { display: block; font-size: 23px; line-height: 1.2; color: var(--swm-navy); }
.swm-header .swm-hot-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e9d67c; background: #fff9df; border-radius: 7px; color: var(--swm-deep); padding: 8px 12px; font-size: 13px; font-weight: 700; }
.swm-header .swm-hot-link:hover { background: var(--swm-gold); }
.swm-header .swm-search-box { margin-bottom: 18px; }
.swm-header .swm-search-box label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 5px; }
.swm-header .swm-search-field { display: flex; align-items: center; gap: 11px; color: var(--swm-muted); border: 1px solid #bdcad9; border-radius: 8px; padding: 0 13px; max-width: 520px; background: #fff; }
.swm-header .swm-search-field:focus-within { border-color: var(--swm-navy); box-shadow: 0 0 0 2px rgba(19,53,96,.12); }
.swm-header .swm-search-field input { display: block; width: 100%; min-width: 0; padding: 11px 0; background: transparent; border: 0; outline: 0; color: var(--swm-text); font-size: 15px; }
.swm-header .swm-search-field input:focus-visible { outline: 0; }
.swm-header .swm-search-icon { display: inline-block; position: relative; width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid currentColor; border-radius: 50%; }
.swm-header .swm-search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; background: currentColor; right: -5px; bottom: -3px; transform: rotate(45deg); }
.swm-header .swm-product-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.swm-header .swm-product-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; min-width: 0; min-height: 137px; padding: 13px 22px 14px 12px; text-align: center; border: 1px solid var(--swm-border); border-radius: 9px; background: #fff; color: var(--swm-navy); font-size: 14px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.swm-header .swm-product-card:hover { border-color: #d8a900; background: #fffdf3; box-shadow: 0 3px 10px rgba(19,53,96,.08); }
.swm-header .swm-product-card img { display: block; width: 100%; max-width: 150px; height: 83px; object-fit: contain; }
.swm-header .swm-card-arrow { position: absolute; right: 9px; bottom: 10px; font-size: 18px; color: var(--swm-navy); }
.swm-header .swm-empty { color: var(--swm-muted); padding: 12px; margin: 0; }
.swm-header .swm-desktop-search, .swm-header .swm-mobile-search, .swm-header .swm-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,.30); border-radius: 7px; padding: 9px 15px; min-height: 40px; color: #fff; background: rgba(255,255,255,.09); }
.swm-header .swm-desktop-search { align-self: center; flex: 0 0 auto; }
.swm-header .swm-desktop-search:hover, .swm-header .swm-mobile-search:hover, .swm-header .swm-mobile-toggle:hover { background: rgba(255,255,255,.18); }
.swm-header .swm-mobile-bar { display: none; }
.swm-header .swm-hamburger { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
.swm-header .swm-hamburger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
/* Responsive menu, independent of the legacy meanMenu plugin. */
@media (max-width:1199px) {
    .swm-header .swm-shell { padding-left: 20px; padding-right: 20px; }
    .swm-header .swm-brand-inner { gap: 14px; }
    .swm-header .swm-brand-actions { flex-direction: column; align-items: stretch; gap: 6px; }
    .swm-header .swm-cert { padding: 5px 9px; }
    .swm-header .swm-cert img { width: 30px; height: 30px; }
    .swm-header .swm-cta { min-height: 38px; padding: 6px 10px; }
    .swm-header .swm-mobile-bar { display: flex; justify-content: space-between; align-items: center; min-height: 58px; gap: 10px; }
    .swm-header:not(.swm-js) .swm-mobile-bar { display: none; }
    .swm-header .swm-menu { display: block; }
    .swm-header.swm-js .swm-menu { position: absolute; left: 0; right: 0; top: 100%; max-height: var(--swm-panel-height); overflow-y: auto; background: var(--swm-navy); padding: 8px 20px 18px; border-top: 1px solid rgba(255,255,255,.2); border-radius: 0 0 12px 12px; box-shadow: 0 12px 25px rgba(13,37,69,.22); }
    .swm-header .swm-nav-list { display: block; }
    .swm-header .swm-nav-item { display: block; border-bottom: 1px solid rgba(255,255,255,.13); }
    .swm-header .swm-nav-item > a, .swm-header .swm-dropdown > summary { justify-content: space-between; padding: 12px 10px; min-height: 48px; border-bottom: 0; text-align: left; font-size: 15px; }
    .swm-header .swm-nav-item > a[aria-current], .swm-header .swm-current > summary { box-shadow: inset 3px 0 var(--swm-gold); }
    .swm-header .swm-panel { position: static; width: auto; max-height: none; overflow: visible; margin: 0 0 10px; border-radius: 8px; box-shadow: none; }
    .swm-header .swm-product-panel { padding: 15px; }
    .swm-header .swm-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .swm-header .swm-desktop-search { display: none; }
}
@media (max-width:767px) {
    .swm-header .swm-shell { padding-left: 14px; padding-right: 14px; }
    .swm-header .swm-utility-inner { flex-wrap: wrap; gap: 5px; padding-top: 6px; padding-bottom: 6px; }
    .swm-header .swm-contact-links { width: 100%; gap: 4px 12px; }
    .swm-header .swm-contact-links a { font-size: 12px; }
    .swm-header .swm-utility-right { width: 100%; justify-content: space-between; }
    .swm-header .swm-brand-inner { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 9px 12px; padding-top: 10px; padding-bottom: 10px; }
    .swm-header .swm-brand img { width: 87px; max-height: 76px; }
    .swm-header .swm-brand-actions { justify-self: end; width: 100%; max-width: 230px; }
    .swm-header .swm-cert { padding: 4px 7px; }
    .swm-header .swm-cert strong { font-size: 12px; }
    .swm-header .swm-cert small { font-size: 10px; }
    .swm-header .swm-cta { font-size: 13px; }
    .swm-header .swm-investor-banner { grid-column: 1 / -1; grid-row: 2; max-width: 100%; }
    .swm-header.swm-js .swm-menu { padding-left: 14px; padding-right: 14px; }
    .swm-header .swm-panel-heading { flex-wrap: wrap; gap: 9px; }
    .swm-header .swm-panel-heading strong { font-size: 20px; }
    .swm-header .swm-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .swm-header .swm-product-card { font-size: 13px; min-height: 118px; padding: 9px 16px 9px 7px; }
    .swm-header .swm-product-card img { height: 66px; }
    .swm-header .swm-card-arrow { right: 4px; bottom: 6px; font-size: 15px; }
}
@media (max-width:359px) {
    .swm-header .swm-product-panel { padding: 10px; }
    .swm-header .swm-product-grid { gap: 6px; }
    .swm-header .swm-socials a { width: 26px; }
}
@media (prefers-reduced-motion:reduce) {
    .swm-header * { scroll-behavior: auto !important; transition: none !important; }
}
