/* Shirdi Engineering Limited — site styles */

:root {
  --ink: #17201C;
  --ink-2: #3E4843;
  --muted: #55605A;
  --green: #24533F;
  --green-dark: #1B3F30;
  --tan: #7A5220;
  --tan-light: #E2B97E;
  --fibre: #C99A5B;
  --paper: #FFFFFF;
  --stone: #F3F2EE;
  --line: #DEDCD5;
  --line-soft: #ECEAE4;
  --night: #17201C;
  --night-2: #0F1512;
  --night-line: #3A4640;
  --night-text: #C3CAC6;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;

  --wrap: 1240px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--fibre); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: #C9C6BD; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--stone); color: var(--ink); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.nav-toggle {
  display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-block; padding: 10px 0; }
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
.main-nav .nav-cta { background: var(--green); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; }
.main-nav .nav-cta:hover { background: var(--green-dark); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .brand-name { font-size: 17px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-stone { background: var(--stone); }
.bg-night { background: var(--night); color: #E9ECEA; }
.border-bottom { border-bottom: 1px solid var(--line); }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tan); }
.bg-night .kicker { color: var(--tan-light); }
.section-title { font-size: clamp(30px, 4vw, 40px); }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; }

/* ---------- Hero ---------- */
.hero { background: var(--stone); padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-panel {
  position: relative; overflow: hidden; min-height: 400px; border-radius: 16px;
  background: var(--green); padding: 32px; display: flex; align-items: flex-end;
}
.hero-panel svg.fibres { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stats { position: relative; display: flex; flex-wrap: wrap; gap: 32px; color: #fff; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 32px; font-weight: 700; line-height: 1.2; }
.hero-stats span { font-size: 14px; color: #D9E3DD; }

/* ---------- Cards ---------- */
.update-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 24px; }
.update-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  text-decoration: none; color: var(--ink);
}
.update-card:hover { border-color: var(--green); color: var(--ink); }
.update-type { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
.update-title { font-weight: 600; font-size: 17px; }
.update-meta { font-size: 14px; color: var(--muted); }

.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: var(--ink-2); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.product-card h3 { font-size: 22px; }
.product-card p { color: var(--ink-2); }

.listing { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.listing-row { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.listing-row strong { font-weight: 600; }
.listing-row span { color: var(--muted); }

.director-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.director { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px;
}
.director-name { font-weight: 600; font-size: 17px; }
.director-role { font-size: 14px; color: var(--muted); }

/* ---------- Investor panel (home) ---------- */
.inv-intro { max-width: 680px; }
.inv-intro h2 { color: #fff; }
.inv-intro p { color: var(--night-text); }
.inv-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin: 32px 0; padding: 0; list-style: none; }
.inv-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 64px; padding: 18px 20px; border: 1px solid var(--night-line); border-radius: var(--radius);
  color: #fff; text-decoration: none; font-weight: 600;
}
.inv-links a:hover { border-color: var(--tan-light); color: #fff; }

/* ---------- Page header ---------- */
.page-head { background: var(--stone); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-head-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 44px); }
.page-head p { color: var(--ink-2); max-width: 640px; margin-top: 10px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }

/* ---------- Investor hub ---------- */
.search { display: flex; flex-direction: column; gap: 6px; min-width: min(320px, 100%); }
.search label { font-size: 14px; font-weight: 600; }
.search input, .form-control {
  font: inherit; color: var(--ink); background: var(--paper);
  min-height: 48px; padding: 12px 14px; border: 1px solid #B8B5AC; border-radius: 8px; width: 100%;
}

.hub { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 80px; }
.hub-side { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.hub-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.cat-nav h2 { font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tan); padding: 0 14px 6px; }
.cat-nav h2 + ul { margin-bottom: 20px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-nav a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px; padding: 10px 14px; border-radius: 8px; border: 1px solid transparent;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.cat-nav a:hover { background: var(--stone); color: var(--ink); }
.cat-nav a[aria-current="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.cat-nav .count { font-size: 13px; opacity: 0.8; }

.info-box { padding: 20px; border-radius: var(--radius); background: var(--stone); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.info-box strong { color: var(--ink); }
.info-box strong:not(:first-child) { margin-top: 8px; }

.hub-main h2 { font-size: 30px; }
.hub-desc { color: var(--muted); margin-top: 6px; }

.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.doc:last-child { border-bottom: 0; }
.doc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.doc-title { font-weight: 600; overflow-wrap: anywhere; }
.doc-meta { font-size: 14px; color: var(--muted); }
.doc-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid #C9C6BD; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink);
}
.doc-link:hover { border-color: var(--ink); color: var(--ink); }
.doc-empty { padding: 32px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; padding-top: 48px; padding-bottom: 88px; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.contact-card h2 { font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
.contact-card .lead { font-weight: 600; font-size: 17px; }
.contact-card p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--night-text); font-size: 14px; }
.site-footer a { color: var(--night-text); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid #2A332E; padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

#cat-title:focus { outline: none; }

/* Plain investor page: all sections on one page */
.doc-section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.doc-section:not([hidden]) ~ .doc-section:not([hidden]) { margin-top: 32px; }
.doc-section h2 { font-size: 26px; }
.doc[hidden], .doc-section[hidden], .doc-empty[hidden] { display: none; }
@media (min-width: 901px) {
  .hub-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}

.doc-section h2:focus { outline: none; }
