/* ==========================================================================
   Rudra Enterprise: site styles (plain CSS3)
   Design: minimal, thin-border layout, Inter typeface, black & white.
   ========================================================================== */

:root {
    --background: #ffffff;
    --foreground: #0f0f0f;
    --muted: #f6f6f6;
    --muted-foreground: #666666;
    --border: #e3e3e3;
    --input: #cfcfcf;
    --primary: #0f0f0f;
    --primary-foreground: #fafafa;
    --success: #166534;
    --success-bg: #f0fdf4;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --max: 72rem;
    --header-h: 4.5rem;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }

.container {
    width: 100%;
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: .6rem 1rem;
    font-size: .875rem;
    transition: top .15s;
}
.skip-link:focus { top: 1rem; }

.break-all { word-break: break-all; }

/* ---------- Shared text styles ---------- */
.eyebrow {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.section-title {
    margin-top: 1rem;
    font-size: 1.875rem;
    line-height: 1.25;
}
.section-head { max-width: 42rem; }
.section-intro {
    margin-top: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.underline-link {
    font-size: .875rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
    transition: text-decoration-color .15s;
}
.underline-link:hover { text-decoration-color: var(--foreground); }

.link-muted {
    padding: .75rem .5rem;
    font-size: .875rem;
    color: var(--muted-foreground);
    transition: color .15s;
}
.link-muted:hover { color: var(--foreground); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: opacity .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .85; }
.btn-outline { border-color: var(--border); background: transparent; }
.btn-outline:hover { border-color: var(--foreground); }
.btn-sm { padding: .5rem 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.header-bar {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.logo img { height: 3rem; width: auto; }

.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a {
    font-size: .875rem;
    color: var(--muted-foreground);
    transition: color .15s;
}
.nav a:hover { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: none; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 500; transition: color .15s; }
.header-phone:hover { color: var(--muted-foreground); }
.header-cta { display: none; }

.menu-toggle {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
}

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: .85rem 0;
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; font-weight: 500; }

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}
.section-muted { background: var(--muted); }

.grid-12 { display: grid; gap: 2.5rem; }

/* ---------- Hero ---------- */
.section-hero { padding: 3.5rem 0; }
.hero-title {
    margin-top: 1rem;
    max-width: 48rem;
    font-size: 2.25rem;
    line-height: 1.08;
}
.hero-text {
    margin-top: 1.5rem;
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}
.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.stats dt, .facts-grid dt {
    font-size: .75rem;
    line-height: 1rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}
.stats dd { margin-top: .25rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }

/* ---------- About ---------- */
.about-lead { font-size: 1.125rem; line-height: 1.625; }
.about-muted { margin-top: 1.25rem; line-height: 1.625; color: var(--muted-foreground); }
.facts { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.facts-grid { display: grid; gap: 1rem 2rem; }
.facts-grid dd { margin-top: .25rem; font-size: .875rem; font-weight: 500; }

/* ---------- Products ---------- */
.product-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 2.5rem 1.5rem;
}
.product img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--muted);
}
.product h3 { margin-top: 1rem; font-size: 1rem; line-height: 1.5rem; }
.product p {
    margin-top: .375rem;
    font-size: .875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.also {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    color: var(--muted-foreground);
}
.also span { font-weight: 500; color: var(--foreground); }

.catalogue {
    margin-top: 2.5rem;
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid var(--border);
}
.catalogue-img img { width: 100%; max-width: 150px; height: auto; border: 1px solid var(--border); }
.catalogue-text h3 { font-size: 1.125rem; line-height: 1.75rem; }
.catalogue-text p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }

/* ---------- Ruled grids (Quality / Why) ---------- */
.ruled-grid { margin-top: 2.5rem; display: grid; gap: 2rem 2rem; }
.ruled { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ruled h3 { font-size: 1rem; line-height: 1.5rem; }
.ruled p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }

/* ---------- Audience cells ---------- */
.cell-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.cell { background: var(--background); padding: 1.5rem; }
.cell h3 { font-size: 1rem; line-height: 1.5rem; }
.cell p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }

/* ---------- Brand ---------- */
.brand-grid { display: grid; gap: 2.5rem; align-items: center; }
.brand-text { margin-top: 1.25rem; max-width: 36rem; line-height: 1.625; color: var(--muted-foreground); }
.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 1px solid var(--border);
}
.brand-mark img { height: 6rem; width: auto; object-fit: contain; }

/* ---------- Facility ---------- */
.facility-grid { display: grid; gap: 2.5rem; }
.dash-list { margin-top: 1.5rem; }
.dash-list li {
    display: flex;
    gap: .75rem;
    padding: 0 0 .75rem;
    font-size: .875rem;
    line-height: 1.625;
}
.dash-list li::before {
    content: "";
    flex: 0 0 1rem;
    height: 1px;
    margin-top: .8rem;
    background: rgba(15, 15, 15, .4);
}
.facility-side { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.facility-side h3 { margin-top: 1rem; font-size: 1.25rem; line-height: 1.75rem; }
.rule-list { margin-top: 1.25rem; }
.rule-list li {
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
    line-height: 1.625;
}
.facility-note { margin-top: 1.25rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }

/* ---------- FAQ ---------- */
.faq-note { margin-top: 1rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.faq-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    list-style: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon-plus {
    flex-shrink: 0;
    margin-top: .25rem;
    color: var(--muted-foreground);
    transition: transform .15s;
}
.faq-item[open] .icon-plus { transform: rotate(45deg); }
.faq-item p {
    margin-top: .75rem;
    max-width: 42rem;
    padding-right: 2rem;
    font-size: .875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* ---------- Enquiry form ---------- */
.enquiry-contact { margin-top: 1.5rem; font-size: .875rem; }
.enquiry-contact a { display: block; padding: .25rem 0; transition: color .15s; }
.enquiry-contact a:hover { color: var(--muted-foreground); }

.form-box { padding: 1.5rem; background: var(--background); border: 1px solid var(--border); }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.form-row .field { margin-bottom: 0; }
.field label { display: block; margin-bottom: .5rem; font-size: .875rem; font-weight: 500; line-height: 1; }
.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: .25rem .75rem;
    background: transparent;
    border: 1px solid var(--input);
    border-radius: .25rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { height: 2.25rem; }
.field select { background: var(--background); border-radius: 0; }
.field textarea { min-height: 7rem; padding-top: .5rem; padding-bottom: .5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--foreground);
    box-shadow: 0 0 0 1px var(--foreground);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin-top: .35rem; font-size: .8rem; color: var(--danger); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: .5rem;
}
.form-actions p { font-size: .75rem; color: var(--muted-foreground); }

.form-status {
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    font-size: .875rem;
    line-height: 1.5;
    border-left: 3px solid var(--foreground);
    background: var(--muted);
}
.form-status.is-success { border-left-color: var(--success); background: var(--success-bg); color: var(--success); }
.form-status.is-error { border-left-color: var(--danger); background: var(--danger-bg); color: var(--danger); }

/* Honeypot: invisible to people, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0; background: var(--background); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-list { margin-top: 1rem; }
.footer-list a {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .25rem 0;
    font-size: .875rem;
    line-height: 1.625;
    transition: color .15s;
}
.footer-list a:hover { color: var(--muted-foreground); }
.footer-list svg { flex-shrink: 0; margin-top: .3rem; color: var(--muted-foreground); }

.footer-base {
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid var(--border);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    font-size: .75rem;
    color: var(--muted-foreground);
}
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: var(--foreground); }

/* ---------- Scroll-reveal (only when JavaScript is available) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
    .header-cta { display: inline-block; }

    .section { padding: 5rem 0; }
    .section-title { font-size: 2.25rem; line-height: 2.5rem; }
    .section-hero { padding: 5rem 0 4rem; }
    .hero-title { font-size: 3rem; line-height: 1.08; }

    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ruled-grid.cols-2, .ruled-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cell { padding: 1.75rem; }

    .catalogue { padding: 2rem; grid-template-columns: 3fr 6fr 3fr; }
    .catalogue-cta { text-align: right; }

    .form-box { padding: 2rem; }
    .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-base { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
    .nav { display: flex; }
    .menu-toggle { display: none; }
    .mobile-nav, .mobile-nav.open { display: none; }
}

@media (min-width: 1024px) {
    .header-phone { display: inline-flex; }

    .hero-title { font-size: 3.75rem; }

    .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; }
    .col-4 { grid-column: span 4 / span 4; }
    .col-5 { grid-column: span 5 / span 5; }
    .col-7 { grid-column: span 7 / span 7; }
    .col-8 { grid-column: span 8 / span 8; }

    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ruled-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .brand-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .brand-copy { grid-column: span 7 / span 7; }
    .brand-mark { grid-column: span 5 / span 5; padding: 3.5rem; }

    .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
    .facility-side { padding-top: 0; padding-left: 3rem; border-top: 0; border-left: 1px solid var(--border); }

    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #000000;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .15s, box-shadow .15s;
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.whatsapp-float:focus-visible { outline: 3px solid var(--foreground); outline-offset: 3px; }
@media (min-width: 640px) {
    .whatsapp-float { right: 1.5rem; bottom: 1.5rem; }
}

/* ---------- Accessibility & print ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: .01ms !important; }
}

@media print {
    .site-header, .skip-link, .hero-actions, .form-box, #enquiry .enquiry-contact { display: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .section { padding: 1.5rem 0; }
}
