/* ==========================================================================
   JAYCHAN INDUSTRIES INDIA PRIVATE LIMITED
   Corporate website stylesheet
   Palette: charcoal / deep-navy base, warm gold accent, white / light grey
   Typography: Inter (single clean sans-serif family)
   ========================================================================== */

:root {
  --ink:        #14181f;   /* charcoal - primary text */
  --navy:       #0f1b2d;   /* deep navy - footer / hero */
  --navy-2:     #16263c;   /* lighter navy for panels */
  --gold:       #c8a24a;   /* warm gold accent (metallic foil) */
  --gold-dark:  #a9863a;   /* gold hover */
  --gold-soft:  #f4ecd8;   /* pale gold wash */
  --bg:         #ffffff;
  --surface:    #f5f6f8;   /* light grey background */
  --surface-2:  #eef1f5;
  --border:     #e2e6ec;
  --muted:      #5b6472;   /* secondary text */
  --white:      #ffffff;

  --maxw: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16,27,45,.06), 0 8px 24px rgba(16,27,45,.06);
  --shadow-lg: 0 10px 40px rgba(16,27,45,.14);
  --ease: cubic-bezier(.4,0,.2,1);

  --font: "Inter", "Poppins", "Manrope", system-ui, -apple-system,
          "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
strong { color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #dfe6f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c3cede; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto;
  background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
}
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b { font-size: 1.12rem; color: var(--ink); letter-spacing: .01em; }
.brand__name span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); font-weight: 500; font-size: .98rem; padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.nav__links a:hover { color: var(--gold-dark); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--gold-dark); font-weight: 600; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px; box-shadow: var(--shadow-lg); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; border-radius: 8px; }
  .nav__cta { margin: 8px 0 4px; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,15,26,.92) 0%, rgba(9,15,26,.78) 45%, rgba(9,15,26,.45) 100%);
}
.hero__inner { position: relative; padding: 96px 0 104px; max-width: 40rem; }
.hero h1 { color: #fff; }
.hero p { color: #d7deea; font-size: 1.2rem; margin-bottom: 1.8rem; max-width: 34rem; }
.hero .btn-row { margin-top: 8px; }
.hero--page .hero__inner { padding: 70px 0 74px; max-width: 46rem; }
.hero--page p { margin-bottom: 0; }
@media (max-width: 600px){ .hero__bg::after{ background: linear-gradient(180deg, rgba(9,15,26,.86), rgba(9,15,26,.9)); } }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .9rem; color: var(--muted); padding: 14px 0; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold-dark); }
.crumb span { color: var(--ink); }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: #eef1f5; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.trust__item {
  display: flex; align-items: center; gap: 12px; padding: 22px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.trust__item:last-child { border-right: 0; }
.trust__item svg { width: 26px; height: 26px; color: var(--gold); flex: 0 0 auto; }
.trust__item b { font-size: .98rem; font-weight: 600; color: #fff; }
@media (max-width: 780px){
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2){ border-right: 0; }
  .trust__item { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Generic grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid--4 { grid-template-columns: repeat(2,1fr);} .grid--3{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 620px){ .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35rem; }
.card__body p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.card__link {
  margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__link::after { content: "→"; transition: transform .2s var(--ease); }
.card--link:hover .card__link::after { transform: translateX(4px); }

/* ---------- Feature blocks ---------- */
.feature { padding: 4px; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--gold-soft);
  color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 14px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img, .split__media .ph { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 28px; } .split--rev .split__media{ order:0; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px 24px; box-shadow: var(--shadow);
}
.step__num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr;} }

/* ---------- Applications image strip ---------- */
.strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.strip .ph { aspect-ratio: 3/4; }
.strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(9,15,26,.8));
}
@media (max-width: 900px){ .strip { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 560px){ .strip { grid-template-columns: repeat(2,1fr);} }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cede; max-width: 48ch; margin: 0 auto 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Placeholder graphic ---------- */
.ph {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  display: grid; place-items: center; color: rgba(255,255,255,.62);
}
.ph::before {
  content: attr(data-label); font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; text-align: center; padding: 0 14px; z-index: 1;
}
.ph::after {
  content: ""; position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: .5; top: 24%;
}
.ph--stock::before { content: attr(data-label) " · representative image"; }
.ph[data-ratio="1"]{ aspect-ratio: 1/1; }
.ph[data-ratio="16-9"]{ aspect-ratio: 16/9; }
.ph[data-ratio="3-4"]{ aspect-ratio: 3/4; }
/* Real photo layered over the branded placeholder. If the image fails to load,
   an inline onerror handler removes it and the placeholder shows through. */
.ph > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 3; border: 0;
  animation: phFade .4s var(--ease);
}
@keyframes phFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Spec / info tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 460px; background: #fff; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--surface); font-weight: 600; width: 38%; color: var(--ink); }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }

/* ---------- Info list (About / Contact company block) ---------- */
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.info-block dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.info-block dt { font-weight: 600; color: var(--muted); }
.info-block dd { margin: 0; color: var(--ink); }
@media (max-width: 520px){ .info-block dl { grid-template-columns: 1fr; gap: 2px 0; } .info-block dd { margin-bottom: 10px; } }

/* ---------- Checklist / bullets with tick ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px;
  background: var(--gold-soft); color: var(--gold-dark); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery .ph { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px){ .gallery { grid-template-columns: repeat(2,1fr);} }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-actions { display: grid; gap: 12px; margin: 18px 0 26px; }
.contact-actions a { display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 500; }
.contact-actions a:hover { border-color: var(--gold); color: var(--gold-dark); }
.contact-actions svg { width: 22px; height: 22px; color: var(--gold-dark); flex: 0 0 auto; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,.2);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px){ .field--row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: #e8f5ec; color: #1e6b3a; border: 1px solid #b7ddc3; }
.form-status.is-err { display: block; background: #fdecea; color: #96271c; border: 1px solid #f3c4bd; }
.field-error { color: #c0392b; font-size: .85rem; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field.has-error .field-error { display: block; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.25rem; }
.prose .updated { color: var(--muted); font-size: .92rem; }
.callout { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 18px 0; color: #5a4a24; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c4d4; padding: 60px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b9c4d4; }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand__name b { color: #fff; }
.footer-brand .brand__name span { color: #8b98ab; }
.footer-legal { margin-top: 16px; line-height: 1.7; }
.footer-legal b { color: #dfe6f0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  color: #8b98ab; font-size: .88rem;
}
.footer-bottom a { color: #8b98ab; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.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; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
