/* ==========================================================================
   AvantGarde Pvt Ltd — corporate stylesheet
   Restrained B2B design: white and light-grey surfaces, deep slate for
   contrast bands, the print identity's red (#CD4239) used sparingly as an
   accent. Sentence-case headings, hairline rules, minimal motion.
   ========================================================================== */

:root {
  color-scheme: light only;

  /* surfaces */
  --white: #FFFFFF;
  --paper: #F6F7F8;
  --paper-2: #EDEFF1;
  --slate: #16232F;          /* dark contrast bands */
  --slate-2: #1E3040;

  /* brand + text */
  --red: #CD4239;
  --red-dark: #A9322A;
  --ink: #15191D;
  --body: #4A555F;
  --muted: #626D78;
  --line: #DFE3E7;
  --line-dark: rgba(255, 255, 255, 0.16);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(21, 25, 29, 0.05);
  --shadow-md: 0 12px 28px -18px rgba(21, 25, 29, 0.35);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(205, 66, 57, 0.18); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.35rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); letter-spacing: -0.008em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--tight { padding: clamp(44px, 5.5vw, 72px) 0; }
.section--paper2 { background: var(--paper); border-block: 1px solid var(--line); }

.section--ink { background: var(--slate); color: rgba(255, 255, 255, 0.78); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink p { color: rgba(255, 255, 255, 0.74); }
.section--ink .lead { color: rgba(255, 255, 255, 0.9); }

/* ---------- Eyebrow / section heads ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.section--ink .eyebrow { color: #F08277; }
.section--ink .eyebrow::before { background: #F08277; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink); font-weight: 400; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); box-shadow: none; }
.section--ink .btn--ghost,
.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}

.logo { text-decoration: none; display: inline-block; }
.logo--img {
  display: flex;
  align-items: center;
  gap: 15px;
  line-height: 0;
}
.logo--img img { height: 60px; width: auto; }
.logo small {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--body);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.22s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn::after { display: none; }
.nav .btn, .nav .btn[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 19px; height: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.22s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(74vh, 620px);
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--slate);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 30, 0.9) 0%, rgba(14, 22, 30, 0.68) 44%, rgba(14, 22, 30, 0.22) 78%, rgba(14, 22, 30, 0.35) 100%),
    linear-gradient(180deg, rgba(14, 22, 30, 0.4) 0%, rgba(14, 22, 30, 0.1) 45%, rgba(14, 22, 30, 0.5) 100%);
}
.hero__inner { position: relative; padding: clamp(72px, 10vw, 112px) 0; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero h1 em { font-style: normal; color: inherit; }
.hero p { max-width: 58ch; font-size: clamp(1rem, 1.35vw, 1.12rem); color: rgba(255, 255, 255, 0.85); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero .eyebrow::before { background: var(--red); width: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero--page { min-height: min(46vh, 400px); }
.hero--page h1 { max-width: 24ch; }

/* ---------- Stats ---------- */

.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 28px 36px 0; position: relative; }
.stat + .stat { padding-left: 32px; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 38px; bottom: 38px;
  width: 1px;
  background: var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Layout helpers ---------- */

.split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5.5vw, 76px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.section--ink .media-frame { border-color: rgba(255, 255, 255, 0.14); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-frame--tall img { aspect-ratio: 3 / 4; }
.media-frame--wide img { aspect-ratio: 16 / 9; }
.media-frame figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(21, 25, 29, 0.78);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 15px;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #CDD3D9; transform: translateY(-3px); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: 0.95rem; }
.card__index {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.card__link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.card__link:hover { color: var(--red); }
.card__link .arrow { transition: transform 0.2s var(--ease); }
.card__link:hover .arrow { transform: translateX(3px); }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { padding-left: 34px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 18px; height: 2px;
  background: var(--red);
}
.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.008em;
}
.section--ink .feature-list strong { color: var(--white); }
.feature-list span { color: var(--muted); font-size: 0.96rem; }
.section--ink .feature-list span { color: rgba(255, 255, 255, 0.7); }

/* ---------- Spec tables ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding-bottom: 14px;
}
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.spec-table thead th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  border-bottom-color: #CDD3D9;
  white-space: nowrap;
}
.spec-table tbody th { font-weight: 500; width: 46%; color: var(--ink); }
.spec-table td { color: var(--body); }
.spec-table tbody tr:nth-child(even) { background: #FAFBFB; }
.table-scroll { overflow-x: auto; }
.table-scroll .spec-table { min-width: 430px; }

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.process__step { background: var(--white); padding: 28px 26px 30px; }
.section--ink .process { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.14); }
.section--ink .process__step { background: var(--slate); }
.section--paper2 .process__step { background: var(--white); }
.process__step b {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.process__step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process__step p { font-size: 0.93rem; color: var(--muted); }
.section--ink .process__step p { color: rgba(255, 255, 255, 0.7); }

/* ---------- CTA ---------- */

.cta { background: var(--slate); color: rgba(255, 255, 255, 0.78); }
.cta .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, 0.74); max-width: 56ch; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5.5vw, 72px); align-items: start; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.contact-list li { border-top: 1px solid var(--line); padding-top: 18px; color: var(--body); }
.contact-list b {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--red); }

.form {
  display: grid;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 12px 13px;
  border: 1px solid #CDD3D9;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA4AD; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(205, 66, 57, 0.12);
}
.field textarea { resize: vertical; min-height: 128px; }
.form__note { font-size: 0.84rem; color: var(--muted); }
.form__note a { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #10191F;
  color: rgba(255, 255, 255, 0.66);
  padding: clamp(48px, 6vw, 76px) 0 26px;
}
.site-footer .logo small { color: rgba(255, 255, 255, 0.5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li { font-size: 0.93rem; }
.site-footer a { text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- Reveal (subtle) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 20px 26px 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(3)::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 4px var(--gutter) 22px;
    transform: translateY(-140%);
    transition: transform 0.28s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; }
  .site-header .logo small { display: none; }
  .site-header .wrap { min-height: 84px; }
  .logo--img img { height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
}

/* footer wordmark sits slightly smaller than the header lockup */
.site-footer .logo--img img { height: 38px; }
.site-footer .logo--img small { border-left-color: var(--line-dark); }

/* legibility corrections on the dark contrast bands */
.section--ink .section-head p { color: rgba(255, 255, 255, 0.74); }
.section--ink .process__step b,
.section--ink .card__index { color: #F08277; }
.section--ink .form__note,
.section--ink .contact-list b { color: rgba(255, 255, 255, 0.6); }
.section--ink .spec-table caption { color: var(--white); }
.section--ink .spec-table th,
.section--ink .spec-table td { border-bottom-color: rgba(255, 255, 255, 0.14); }
.section--ink .spec-table tbody th { color: var(--white); }
.section--ink .spec-table td { color: rgba(255, 255, 255, 0.74); }
