/* =========================================================
   Agrawal Chemicals & Fertilizers — site stylesheet
   Palette:  forest #1F3A2E · forest-deep #142822 · sage #5C8065
             wheat  #C99A3E · paper  #F3F6F0 · charcoal #21261E
   Type:     Fraunces (display) / Work Sans (body) / IBM Plex Mono (data)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --forest: #1F3A2E;
    --forest-deep: #142822;
    --sage: #5C8065;
    --wheat: #C99A3E;
    --wheat-light: #E4C077;
    --paper: #F3F6F0;
    --card: #FCFBF6;
    --charcoal: #21261E;
    --line: #DCE3D6;
    --white: #FFFFFF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    --radius: 6px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--forest-deep);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wheat);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 13px 26px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background: var(--wheat);
    color: var(--forest-deep);
}
.btn-primary:hover { background: var(--wheat-light); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-dark {
    background: var(--forest);
    color: var(--white);
}
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-1px); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
    background: var(--forest-deep);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    flex-shrink: 0;
}
.brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wheat);
    color: var(--forest-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
}
.brand-logo{
    width: 240px;      /* Same look as second image */ 
    height: auto;
    max-height: 75px;
    object-fit: contain;
    display: block;
}

.brand small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--wheat-light);
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: background 0.15s ease, color 0.15s ease;
    display: inline-block;
}
.main-nav a:hover,
.main-nav li.active > a {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after {
    content: '▾';
    font-size: 0.65em;
    margin-left: 6px;
    opacity: 0.7;
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 320px;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(20,40,34,0.22);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    color: var(--charcoal);
    font-size: 0.82rem;
    padding: 9px 10px;
    line-height: 1.3;
}
.dropdown a:hover { background: var(--paper); color: var(--forest); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 10px 18px; font-size: 0.82rem; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    color: var(--white);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--forest-deep);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 20px;
        border-top: 1px solid rgba(255,255,255,0.08);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
    .main-nav a { padding: 12px 14px; }
    .dropdown {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        display: none;
        grid-template-columns: 1fr;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        margin: 4px 0 8px;
        min-width: 0;
    }
    .has-dropdown.open .dropdown { display: grid; }
    .dropdown a { color: rgba(255,255,255,0.85); }
    .dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
    .header-cta { display: none; }
    .header-inner { padding: 12px 16px; }
    .brand-logo { width: 170px; max-height: 56px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    background: var(--forest-deep);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255,255,255,0.035) 0px,
        rgba(255,255,255,0.035) 1px,
        transparent 1px,
        transparent 68px
    );
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 88px 24px 96px;
    max-width: var(--container);
    margin: 0 auto;
}
.hero h1 { color: var(--white); }
.hero h1 em {
    font-style: italic;
    color: var(--wheat-light);
}
.hero-lede {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.82);
    max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-art img {
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-stats {
    display: flex;
    gap: 10px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stat {
    font-family: var(--font-mono);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
}
.hero-stat b { color: var(--wheat-light); font-size: 0.95rem; display: block; }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
    .hero-art { order: -1; }
}

@media (max-width: 640px) {
    .hero-inner { padding: 36px 18px 56px; gap: 32px; }
    .hero-lede { max-width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; width: 100%; }
    .hero-stats { gap: 8px; }
    .hero-stat { flex: 1 1 calc(50% - 8px); text-align: center; }
}

/* Page header (non-home pages) */
.page-header {
    background: var(--forest-deep);
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255,255,255,0.035) 0px,
        rgba(255,255,255,0.035) 1px,
        transparent 1px,
        transparent 68px
    );
    color: var(--white);
    padding: 56px 24px;
    text-align: left;
}
.page-header .eyebrow { color: var(--wheat-light); }
.page-header h1 { color: var(--white); margin-bottom: 6px; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 60ch; margin: 0; }
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--wheat-light); }

@media (max-width: 640px) {
    .page-header { padding: 40px 18px; }
}

/* =========================================================
   Sections
   ========================================================= */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head {
    max-width: 62ch;
    margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-white { background: var(--white); }
.bg-forest { background: var(--forest-deep); color: rgba(255,255,255,0.85); }
.bg-forest h2 { color: var(--white); }

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    section { padding: 52px 0; }
    .section-tight { padding: 36px 0; }
    .section-head { margin-bottom: 28px; }
}

/* Intro / about block */
.intro-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.intro-grid img { border-radius: 10px; }
@media (max-width: 860px) {
    .intro-grid { grid-template-columns: 1fr; }
}

.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: var(--forest-deep);
}
.feature-list li::before {
    content: '';
    flex-shrink: 0;
    width: 9px; height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--wheat);
}

/* Product category grid (home + overview) */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(31,58,46,0.1);
}
.cat-card .cat-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--wheat);
    display: block;
    margin-bottom: 10px;
}
.cat-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.cat-card p { font-size: 0.9rem; color: #555f52; margin-bottom: 14px; }
.cat-card .cat-link {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--forest);
    font-weight: 600;
}
.cat-card:hover .cat-link { color: var(--wheat); }

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
}

/* Product item grid (category detail pages) */
.item-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:35px;
}

.item-card{
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
    transition:.3s;
}

.item-card:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 25px rgba(0,0,0,.25);
}

.item-image{
    width:100%;
    height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    padding:15px;
}

.item-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.item-content{
    border-top:1px solid #ddd;
    padding:16px;
    background:#fafafa;
}

.item-name{
    margin:0;
    font-size:18px;
    font-weight:700;
    color:#000;
    text-transform:uppercase;
    line-height:1.4;
}

@media (max-width: 640px) {
    .item-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .item-image { height: 160px; padding: 10px; }
    .item-content { padding: 10px; }
    .item-name { font-size: 14px; }
}

/* Category directory sidebar (on product detail pages) */
.product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}
.product-sidebar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 90px;
}
.product-sidebar .eyebrow { margin-bottom: 12px; }
.product-sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.product-sidebar a {
    display: block;
    font-size: 0.86rem;
    padding: 9px 10px;
    border-radius: 5px;
    color: #445042;
}
.product-sidebar li.active a,
.product-sidebar a:hover { background: var(--paper); color: var(--forest); font-weight: 600; }
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; }
    .product-sidebar { position: static; }
}

@media (max-width: 640px) {
    .product-sidebar {
        max-height: 220px;
        overflow-y: auto;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* CTA banner */
.cta-banner {
    background: var(--forest);
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255,255,255,0.035) 0px,
        rgba(255,255,255,0.035) 1px,
        transparent 1px,
        transparent 68px
    );
    border-radius: 12px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; }

@media (max-width: 640px) {
    .cta-banner { padding: 32px 24px; flex-direction: column; text-align: center; }
    .cta-banner .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--forest-deep);
    margin-bottom: 6px;
}
.field input,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.94rem;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    color: var(--charcoal);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(92,128,101,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.alert {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-success { background: #E4F1E5; color: #205131; border: 1px solid #B9DCC0; }
.alert-error { background: #FBEAEA; color: #7A2323; border: 1px solid #F0C6C6; }

.contact-info-list { list-style: none; margin: 0 0 0; padding: 0; display: grid; gap: 20px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--wheat-light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
}
.contact-info-list .ci-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sage);
    display: block;
    margin-bottom: 3px;
}
.contact-info-list a:hover { color: var(--forest); }

.map-embed {
    margin-top: 26px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

.social-media{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    gap: 15px;
}

.social-media li{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circle Icon */
.social-media .ci-icon{
    width: 46px;
    height: 46px;
    border: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: var(--wheat-light);
    font-size: 18px;
    cursor: pointer;
    transition: all .3s ease;
}

/* Hover Effect */
.social-media .ci-icon:hover{
    background: var(--forest);
    color: var(--wheat-light);
    border-color: var(--forest);
    transform: translateY(-3px);
}

/* Hide label if you only want icons */
.social-media .ci-label{
    display: none;
}

@media (max-width: 640px) {
    .contact-card { padding: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .map-embed iframe { height: 200px; }
    .social-media { flex-wrap: wrap; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--forest-deep);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.footer-col h4 {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 0.88rem; }
.footer-col a:hover { color: var(--wheat-light); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a:hover { color: var(--wheat-light); }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    z-index: 90;
    transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

@media (max-width: 640px) {
    .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* =========================================================
   General small-screen fallbacks
   ========================================================= */
@media (max-width: 480px) {
    .btn { padding: 12px 20px; font-size: 0.88rem; }
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}