/* Ammaji Agro — Premium theme overrides (tokens defined in app.css) */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
}

.container {
    width: min(1180px, 92vw);
}

main {
    overflow-x: clip;
}

/* —— Header —— */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 961px) {
    .site-header {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.site-header__inner {
    min-height: var(--header-h);
    height: auto;
    padding-block: 0.5rem;
}

.brand__logo {
    height: 56px;
    width: auto;
}

.nav a,
.nav-dropdown__btn {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-muted);
    border: none;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.is-active,
.nav-dropdown__btn:hover,
.nav-dropdown__btn.is-active,
.nav-dropdown.is-open .nav-dropdown__btn {
    background: rgb(var(--rgb-primary) / 0.08);
    color: var(--color-primary);
    text-decoration: none;
}

.nav-cta {
    margin-left: 0.35rem;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-pill) !important;
}

/* —— Buttons —— */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
    background: var(--color-cta);
    color: var(--color-accent-on);
    box-shadow: 0 4px 14px rgb(var(--rgb-accent) / 0.25);
}

.btn--primary:hover {
    background: var(--color-cta-hover);
    color: var(--color-accent-on);
    filter: none;
    text-decoration: none;
}

.btn--ghost {
    border: 1px solid var(--color-border);
    /* background: #fff; */
    color: var(--color-text);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}

/* —— Hero —— */
.hero {
    min-height: min(85vh, 720px);
}

.hero--slider,
.hero__slides {
    min-height: min(85vh, 720px);
}

.hero__overlay {
    background: linear-gradient(105deg, rgba(15, 36, 24, 0.75) 0%, rgba(15, 36, 24, 0.35) 55%, rgba(15, 36, 24, 0.15) 100%);
}

.hero__content {
    padding: 5rem 0 4rem;
    max-width: 640px;
    margin: 0 10%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 16ch;
    color: #fff;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    line-height: 1.6;
}

.hero .pill {
    background: rgb(255 255 255 / 0.15);
    border: 1px solid rgb(255 255 255 / 0.35);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}

.hero__arrow {
    border-radius: var(--radius);
    border: 1px solid rgb(255 255 255 / 0.5);
    background: rgb(255 255 255 / 0.1);
}

.hero__arrow:hover {
    background: #fff;
    color: var(--color-primary);
}

.hero__dot.is-active {
    background: var(--color-accent);
}

/* —— Trust strip —— */
.home-trust {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
}

.home-trust__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
}

.home-trust__dot {
    background: var(--color-accent);
}

/* —— Shared section patterns —— */
.section {
    padding: var(--section-y) 0;
}

.section--alt {
    background: var(--color-bg);
}

.section--mesh {
    background: var(--color-bg);
}

.u-eyebrow,
.home-eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.u-eyebrow--light {
    color: var(--color-accent-soft);
}

.home-block-head {
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.home-block-head__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: var(--heading-lg);
    font-weight: 800;
    color: var(--color-text);
    background: none;
    -webkit-text-fill-color: unset;
}

.home-block-head__lede {
    margin: 0;
    font-size: var(--text-lede);
    color: var(--color-muted);
    line-height: 1.65;
}

/* —— Split block (about / who we are) —— */
.u-split__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .u-split__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

@media (max-width: 767px) {
    .hero__content{
        margin: 0 5%;
    }
}

.u-split__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.u-split__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.u-split__body h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.u-feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.5rem 0;
}

.u-feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.u-feature__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgb(var(--rgb-primary) / 0.08);
    color: var(--color-primary);
}

.u-feature__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.u-feature p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.home-link-arrow {
    font-weight: 600;
    color: var(--color-primary);
}

/* Hide legacy bubble layout if still in DOM */
.home-who-we__bubble,
.home-who-we__badge {
    display: none;
}

.home-who-we__split {
    display: block;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: calc((100vw - var(--container)) / 2);
}

.home-who-we__visual {
    display: none;
}

.home-who-we__panel {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* —— Category cards —— */
.home-cat-grid {
    gap: 1.25rem;
}

.home-cat-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.home-cat-card__media {
    aspect-ratio: 16 / 10;
}

.home-cat-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.home-cat-card__num {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* —— Certifications —— */
.home-certs {
    background: var(--color-surface);
}

.home-certs-panel {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--color-highlight);
    border: 1px solid var(--color-border);
}

.home-cert-logo {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

/* —— Product cards —— */
.home-product-card,
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-product-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.home-product-card__media {
    /* aspect-ratio: 4 / 3; */
}

.home-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— Why choose —— */
.home-why__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-why__check {
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
}

.home-why__figure {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* —— Industries —— */
.home-industry {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.home-industry__title {
    font-size: 1.05rem;
    font-weight: 600;
}

/* —— CTA band —— */
.cta-band--creative {
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: var(--shadow-lg);
}

.cta-band--creative::after {
    display: none;
}

.cta-band--creative .btn--ghost {
    border-color: rgb(255 255 255 / 0.45);
    color: #fff;
    background: transparent;
}

.cta-band--creative .btn--ghost:hover {
    border-color: #fff;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
}

/* —— Page heroes (inner pages) —— */
.about-hero,
.contact-hero,
.page-qa-hero {
    min-height: min(42vh, 380px);
}

.about-hero__title,
.contact-hero__title,
.page-qa-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.about-hero__kicker,
.contact-hero__kicker,
.page-qa-hero__kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-soft);
}

.page-breadcrumb--hero a,
.page-breadcrumb--hero .page-breadcrumb__current {
    font-size: 0.85rem;
}

/* —— About page —— */
.about-chapter {
    padding: var(--section-y) 0;
}

.about-chapter--emphasis {
    background: var(--color-surface);
}

.about-chapter__heading {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.about-stats {
    background: var(--color-primary-dark);
    color: #fff;
}

.about-stat__value {
    color: rgb(223, 174, 1);
}

.about-query {
    background: var(--color-highlight);
}

.about-query__ghost {
    border-color: var(--color-border);
    color: var(--color-text);
}

/* —— Contact —— */
.contact-shell {
    padding: var(--section-y) 0;
}

.contact-form-card,
.contact-info-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.contact-input,
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 0.65rem 0.85rem;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(var(--rgb-primary) / 0.12);
}

.contact-newsletter {
    background: var(--color-primary-dark);
}

.contact-newsletter__title {
    color: #fff;
}

/* —— Products —— */
.product-card__img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    /* aspect-ratio: 4 / 3; */
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__frame {
    border-radius: var(--radius-lg);
}

/* —— Blog —— */
.prose {
    max-width: 68ch;
    line-height: 1.75;
}

.prose h2, .prose h3 {
    margin-top: 2rem;
}

/* —— Footer —— */
.site-footer--rich {
    margin-top: 0;
    background: #111827;
    border-top: none;
    color: #d1d5db;
}

.site-footer__decor {
    display: none;
}

.site-footer--rich a {
    color: #e5e7eb;
}

.site-footer--rich a:hover {
    color: #fff;
}

.site-footer__heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__tagline {
    color: #9ca3af;
    line-height: 1.6;
}

.site-footer__social-btn {
    border: 1px solid #374151;
    border-radius: var(--radius);
}

.site-footer__social-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.site-footer__bar {
    background: #0d1117;
    border-top: 1px solid #374151;
}

/* —— Dropdowns —— */
.nav-dropdown__panel {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.nav-dropdown--products .nav-dropdown__panel.nav-mega--nested {
    border-radius: var(--radius);
}

.nav-subdropdown__panel {
    border-radius: var(--radius);
}

/* —— Fixed social float —— */
.vk-social-float__icon {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* —— Loader —— */
.home-hero-loader {
    background: var(--color-bg);
}

/* —— Responsive —— */
@media (max-width: 960px) {
    .nav-cta {
        display: none;
    }

    .u-feature-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: none;
    }

    /* Mobile drawer: keep off-screen until hamburger tap
       (backdrop-filter on header breaks position:fixed containment) */
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(20rem, 88vw);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        z-index: 68;
        flex-direction: column;
        align-items: stretch;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
    }

    .nav.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
    }
}

@media (min-width: 961px) {
    .nav-drawer-scroll .nav-cta {
        display: none;
    }
}
