/* A.R. Traders — one motif: the open ring from the logo. */

/* ---------- Tokens ---------- */
:root {
  --ground: #f5f7f0;
  --surface: #e8eedf;
  --ink: #0f2618;
  --ink-soft: #46594c;
  --green: #117d36;
  --field: #0e6b2e;
  --green-deep: #0b3d22;
  --green-pale: #dcebd3;
  --leaf: #8dc63f;
  --sun: #f5b400;
  --orange: #ef7f1a;
  --on-deep: #eef5e8;

  --font: "Chillax", "Anek Bangla", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --step-head: clamp(2.125rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.5rem, 0.3rem + 5.2vw, 5.25rem);

  --lead-display: 1.08;
  --margin: clamp(16px, 3.2vw, 48px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --round: 999px;
}

:lang(bn) {
  --lead-display: 1.22;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: var(--margin); top: -100px;
  background: var(--sun); color: var(--ink); padding: 10px 18px;
  border-radius: var(--round); z-index: 50; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--margin); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3 { letter-spacing: 0; }

h1, h2 { text-wrap: balance; }

h2 {
  font-size: var(--step-head);
  line-height: var(--lead-display);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: var(--round);
  background: var(--sun); color: var(--ink);
  font-size: var(--step-body); font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.btn:hover { background: #ffc61a; transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #0d6a2c; }

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--leaf);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.link:hover { text-decoration-color: var(--green); color: var(--green); }

/* ---------- Contact strip + header ---------- */
.strip {
  background: var(--green-deep); color: var(--on-deep);
  font-size: var(--step-small);
}
.strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px;
  min-height: 40px;
}
.strip a { text-decoration: none; transition: color 0.2s; }
.strip a:hover { color: var(--sun); }
.strip__lang { margin-left: auto; font-weight: 500; }

.header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 84px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 600; font-size: var(--step-lead);
  letter-spacing: -0.02em; line-height: 1;
}
.brand img { width: 52px; height: auto; }
.brand span { color: var(--green-deep); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--green); }
.header .btn { min-height: 48px; padding: 0 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 124px);
  display: grid; align-items: center;
  overflow: hidden;
  padding-block: 48px 72px;
}
.hero__text { position: relative; z-index: 2; max-width: min(48vw, 720px); }
.hero h1 {
  font-size: var(--step-display);
  line-height: var(--lead-display);
  letter-spacing: -0.035em;
  color: var(--green-deep);
}
:lang(bn) .hero h1 { letter-spacing: 0; }
.hero__lede {
  margin-top: 28px; max-width: 30em;
  font-size: var(--step-body);
}
.hero__actions {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}

/* the ring: yellow outer arc, green band, photograph inside */
.ring {
  position: absolute; z-index: 1;
  width: 118vh; height: 118vh;
  left: max(51vw, calc(80vw - 59vh));
  top: calc(52% - 59vh);
  border-radius: 50%;
}
.ring::before {
  content: ""; position: absolute; inset: -5.2vh;
  border-radius: 50%;
  border: 3vh solid transparent;
  border-left-color: var(--sun);
  border-bottom-color: var(--orange);
  transform: rotate(18deg);
  animation: arc-drift 26s linear infinite;
}
.ring__band {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--green);
  padding: 3.4vh;
}
.ring__photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-deep);
}
.ring__photo img {
  width: 100%; height: 100%; object-fit: cover;
}

@keyframes arc-drift { to { transform: rotate(378deg); } }

/* ---------- About: deep panel ---------- */
.about {
  margin: var(--gap-section) 20px 0;
  background: var(--green-deep); color: var(--on-deep);
  position: relative; overflow: hidden;
  min-height: 96svh;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 32%);
  gap: 48px;
  padding: clamp(32px, 4vw, 64px);
}
.about h2 { color: #fff; max-width: 9em; }
.about__shape {
  position: absolute;
  width: 38vw; aspect-ratio: 1;
  left: clamp(32px, 4vw, 64px);
  bottom: calc(-38vw / 5);
  border-radius: 50%;
  overflow: hidden;
  border: 2.2vw solid var(--green);
}
.about__shape img { width: 100%; height: 100%; object-fit: cover; }
.about__roles { display: grid; gap: 44px; align-content: start; padding-top: 8px; }
.about__roles h3 { font-size: var(--step-lead); line-height: 1.25; color: var(--sun); }
.about__roles p { margin-top: 10px; }
.about__tag {
  margin-top: 4px;
  font-size: var(--step-lead); line-height: 1.35; color: #fff; font-weight: 500;
}

/* ---------- Products: two-ended rows ---------- */
.products {
  margin-top: var(--gap-section);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.products__aside { position: sticky; top: 32px; }
.products__aside p { margin-top: 20px; max-width: 30em; }
.products__pic {
  margin-top: 40px;
  width: min(100%, 420px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 14px solid var(--leaf);
}
.products__pic img { width: 100%; height: 100%; object-fit: cover; }
.tally {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.tally__count { font-weight: 500; }

.list { max-width: 600px; }
.list__group + .list__group { margin-top: 40px; }
.list__group h3 {
  font-size: var(--step-body); font-weight: 500; letter-spacing: 0;
  color: var(--ink-soft); margin-bottom: 6px;
}
.row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  min-height: 46px; padding: 9px 12px;
  margin-inline: -12px; width: calc(100% + 24px);
  border: 0; border-radius: 12px; background: transparent;
  text-align: left; cursor: pointer;
  transition: background-color 0.2s;
}
.row:hover { background: var(--surface); }
.row__name { display: flex; align-items: baseline; gap: 12px; font-size: var(--step-body); }
.row__name::before {
  content: ""; flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--green);
  transform: translateY(2px);
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.row__use {
  font-size: var(--step-small); color: var(--ink-soft);
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row[aria-pressed="true"] .row__name { font-weight: 600; color: var(--green-deep); }
.row[aria-pressed="true"] .row__name::before { background: var(--green); transform: translateY(2px) scale(1.15); }
.list__note { margin-top: 36px; color: var(--ink-soft); max-width: 32em; }

/* ---------- How: tiles that grow ---------- */
.how {
  margin-top: var(--gap-section);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 10px;
}
.how h2 { grid-column: 1 / 8; grid-row: 1; align-self: start; max-width: 8em; padding-bottom: 32px; }
.tile {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.tile__pic { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.tile__pic img, .tile__pic video { width: 100%; height: 100%; object-fit: cover; }
.tile--1 { grid-column: 1 / 4; grid-row: 2; align-self: end; height: 30vh; background: var(--leaf); }
.tile--2 { grid-column: 4 / 8; grid-row: 2; align-self: end; height: 44vh; background: var(--sun); }
.tile--3 { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; height: 60vh; background: var(--green); }
.tile--1 .tile__pic { width: min(22vh, 80%); }
.tile--2 .tile__pic { width: min(33vh, 80%); }
.tile--3 .tile__pic { width: min(48vh, 86%); }
.step { padding-top: 20px; padding-right: 16px; }
.step--1 { grid-column: 1 / 4; }
.step--2 { grid-column: 4 / 8; }
.step--3 { grid-column: 8 / 13; }
.step h3 { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; }
.step p { margin-top: 6px; max-width: 26em; }

/* ---------- Who it's for: paragraph with picture words ---------- */
.who { margin-top: var(--gap-section); }
.who__para {
  max-width: 26em;
  font-size: clamp(1.375rem, 0.9rem + 1.6vw, 2.25rem);
  line-height: 1.32; font-weight: 500; letter-spacing: -0.015em;
}
:lang(bn) .who__para { letter-spacing: 0; line-height: 1.45; }
.slot {
  display: inline-block; vertical-align: -0.16em;
  width: 1.9em; height: 1em; margin-inline: 0.12em;
  border-radius: var(--round); overflow: hidden;
  background: var(--surface);
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.who__more {
  margin-top: 72px; margin-left: 50%;
  max-width: 30em;
}
.who__more p { margin-bottom: 24px; }

/* ---------- Enquiry: clip-out coupon ---------- */
.enquiry { margin-top: var(--gap-section); }
.coupon {
  --notch: 28px;
  margin-inline: auto; max-width: 1180px;
  display: grid; grid-template-columns: 46fr 54fr;
  background: var(--green);
  color: #fff;
}
.coupon__left {
  position: relative;
  padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  border-right: 5px dotted var(--ground);
}
.coupon__left::before,
.coupon__left::after {
  content: ""; position: absolute;
  width: var(--notch); height: var(--notch);
  border-radius: 50%; background: var(--ground);
  right: calc(var(--notch) / -2 - 2.5px);
}
.coupon__left::before { top: calc(var(--notch) / -2); }
.coupon__left::after { bottom: calc(var(--notch) / -2); }
.coupon__left h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.coupon__left p { max-width: 24em; }
.coupon__left .alt a { color: #fff; font-weight: 600; }
.coupon__form { padding: 48px; display: grid; gap: 10px; }

.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.intent legend { margin-bottom: 10px; font-weight: 500; }
.intent label {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; border-radius: var(--round);
  background: var(--field); cursor: pointer; font-weight: 500;
  transition: background-color 0.2s;
}
.intent input { position: absolute; opacity: 0; }
.intent label:has(input:checked) { background: #fff; color: var(--green-deep); }
.intent label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }

.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 20px;
  border: 0; border-radius: 14px;
  background: var(--field); color: #fff;
  font-size: var(--step-body);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field ::placeholder { color: #cfe8d6; opacity: 1; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 0; background: #0b5c27; }

.submit {
  margin-top: 6px;
  min-height: 58px; width: 100%;
  background: var(--green-deep); color: #fff;
}
.submit:hover { background: #072a17; }

/* address under the coupon */
.visit {
  margin: 120px auto 0; max-width: 1180px;
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 40px 64px; align-items: center;
}
.visit__pic {
  width: clamp(160px, 18vw, 260px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 10px solid var(--sun);
}
.visit__pic img { width: 100%; height: 100%; object-fit: cover; }
.visit h3 { font-size: var(--step-lead); line-height: 1.25; margin-bottom: 10px; }
.visit address { font-style: normal; }
.visit ul { display: grid; gap: 4px; }
.visit .link { display: inline-block; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--gap-section);
  background: var(--green-pale);
  padding-top: 64px;
}
.footer__name {
  display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 32px);
}
.footer__name img { width: clamp(84px, 13vw, 210px); height: auto; flex: none; }
.footer__name p {
  font-size: clamp(3rem, 12.4vw, 13rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.8;
  color: var(--green-deep); white-space: nowrap;
  padding-bottom: 0.04em;
}
.footer__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.footer__grid h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.footer__grid li { margin-top: 4px; }
.footer__grid a { text-decoration: none; transition: color 0.2s; }
.footer__grid a:hover { color: var(--green); }
.footer__credits {
  margin-top: 56px;
  font-size: var(--step-small); color: var(--ink-soft); max-width: 60ch;
}
.footer__credits a { color: inherit; }
.footer__end {
  margin-top: 32px; padding-block: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: var(--step-small);
}
.footer__end .btn { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }

/* ---------- Phone action bar ---------- */
.bar { display: none; }

/* ---------- Motion ---------- */
.js [data-rise] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .is-in [data-rise], .js [data-rise].is-in { opacity: 1; transform: none; }

.js .ring__photo { clip-path: circle(0% at 30% 50%); }
.js .ring__photo img { transform: scale(1.12); }
.js .is-in .ring__photo { clip-path: circle(75% at 50% 50%); transition: clip-path 1.1s var(--ease-out) 0.15s; }
.js .is-in .ring__photo img { transform: scale(1); transition: transform 1.6s var(--ease-out) 0.15s; }

.tile__pic img { transition: transform 0.6s var(--ease-out); }
.tile:hover .tile__pic img { transform: scale(1.06); }
.who .slot img { animation: slot-drift 9s ease-in-out infinite alternate; }
@keyframes slot-drift { from { transform: scale(1); } to { transform: scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .ring__photo { clip-path: none; }
  .js .ring__photo img { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero { min-height: 0; display: block; padding-block: 40px 0; }
  .hero__text { max-width: 680px; }
  .hero h1 { font-size: clamp(2.5rem, 8.4vw, 5rem); }
  .ring-holder { position: relative; height: 54vw; margin-top: 56px; overflow: hidden; margin-inline: calc(var(--margin) * -1); }
  .ring { width: 96vw; height: 96vw; left: 14vw; top: 8vw; }
  .ring::before { inset: -4vw; border-width: 2.8vw; }
  .ring__band { padding: 3vw; }
  .header .btn { margin-left: auto; }
  .about { grid-template-columns: 1fr; min-height: 0; padding-bottom: 46vw; }
  .about__shape { width: 52vw; bottom: calc(-52vw / 5); border-width: 3vw; }
  .about__roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .about__roles > :nth-child(n + 4) { grid-column: 1 / -1; }
  .products { grid-template-columns: 1fr; }
  .products__aside { position: static; }
  .products__pic { display: none; }
  .visit { grid-template-columns: auto 1fr; }
  .visit > :last-child { grid-column: 2; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .strip__mail, .strip__lang { display: none; }
  .header .wrap { min-height: 68px; gap: 12px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 42px; }
  .header .btn { display: none; }
  .header__lang { margin-left: auto; font-weight: 500; text-decoration: none; }

  .hero { padding-top: 28px; }
  .hero__text { max-width: none; }
  .hero h1 { font-size: 10.6vw; }
  .hero__lede { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .ring-holder { height: 72vw; margin-top: 48px; }
  .ring { width: 124vw; height: 124vw; left: -12vw; top: 9vw; }
  .ring::before { inset: -5vw; border-width: 3.6vw; }
  .ring__band { padding: 4vw; }

  .about { margin-inline: 10px; padding: 28px 20px 86vw; }
  .about h2 { font-size: 9vw; }
  .about__roles { grid-template-columns: 1fr; gap: 28px; }
  .about__shape { width: 86vw; left: calc(50% - 43vw); bottom: calc(-86vw / 4); border-width: 5vw; }

  .row { min-height: 48px; flex-wrap: wrap; row-gap: 0; }
  .row__use { width: 100%; text-align: left; white-space: normal; padding-left: 28px; }

  .how { display: block; }
  .how h2 { padding-bottom: 24px; }
  .tile { height: auto !important; }
  .tile--1 { aspect-ratio: 100 / 34; }
  .tile--2 { aspect-ratio: 100 / 46; }
  .tile--3 { aspect-ratio: 100 / 62; }
  .tile--1 .tile__pic { width: 26vw; }
  .tile--2 .tile__pic { width: 36vw; }
  .tile--3 .tile__pic { width: 50vw; }
  .step { padding: 16px 0 28px; }

  .who__para { font-size: 5.5vw; max-width: none; }
  .slot { width: 1.5em; }
  .who__more { margin: 48px 0 0; }

  .coupon { grid-template-columns: 1fr; margin-inline: -4px; }
  .coupon__left { padding: 32px 22px; border-right: 0; border-bottom: 5px dotted var(--ground); }
  .coupon__left::before,
  .coupon__left::after { top: auto; right: auto; bottom: calc(var(--notch) / -2 - 2.5px); }
  .coupon__left::before { left: calc(var(--notch) / -2); }
  .coupon__left::after { right: calc(var(--notch) / -2); }
  .coupon__form { padding: 28px 22px 32px; }
  .intent label, .field input { min-height: 54px; }

  .visit { grid-template-columns: 1fr; margin-top: 72px; gap: 28px; }
  .visit > :last-child { grid-column: auto; }

  .footer { padding-top: 40px; padding-bottom: 76px; }
  .footer__name { flex-direction: column; align-items: flex-start; }
  .footer__name p { font-size: 17.5vw; white-space: normal; line-height: 0.9; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--green-deep);
    transition: transform 0.3s var(--ease-out);
  }
  .bar.is-away { transform: translateY(110%); }
  .bar .btn { min-height: 50px; padding: 0 12px; }
  .bar .btn:not(.btn--green) { background: var(--sun); }
}
@media (min-width: 721px) {
  .header__lang { display: none; }
}
