/* ==========================================================================
   Indobanyan Brands — shared styles
   Plain CSS, no build. Used by the homepage and all brand stub pages.
   ========================================================================== */

:root {
  /* Palette (from flyer) */
  --teal-900: #14403f;   /* hero / footer dark teal */
  --teal-800: #1a4f4d;
  --teal-accent: #6fa8a3; /* muted teal used for the second hero line + accents */
  --teal-link: #3f7c78;
  --band: #eef4f3;        /* off-white "what we do" band */
  --ink: #16302f;         /* body text on light */
  --ink-soft: #45605e;    /* secondary text */
  --white: #ffffff;
  --card-border: #e3ece9;
  --tag-bg: #eef4f3;
  --tag-ink: #3f7c78;

  /* Brand accents */
  --ivei-accent: #57bfae;
  --divine-accent: #e0a02a;
  --happy-accent: #2f4d33;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 64, 63, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------------- Hero --- */
.hero {
  background: var(--teal-900);
  color: var(--white);
  padding: 40px 0 64px;
}

.hero__logo {
  display: inline-block;
  background: var(--white);
  border-radius: 14px;
  padding: 18px 26px;
  box-shadow: var(--shadow);
}
.hero__logo img { height: 120px; width: auto; }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 40px 0 20px;
  letter-spacing: -0.5px;
}
.hero__title span { display: block; color: var(--teal-accent); }

.hero__lead {
  max-width: 620px;
  font-size: 1.075rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 32px;
}

.pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.hero__scroll { margin-top: 40px; }

.scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-900);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.scroll-btn:hover,
.scroll-btn:focus-visible {
  background: var(--teal-accent);
  color: var(--white);
  transform: translateY(-2px);
  outline: none;
}
.scroll-btn__arrow { animation: nudge 1.6s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ------------------------------------------------------ What we do band --- */
.band {
  background: var(--band);
  text-align: center;
  padding: 56px 0;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-link);
  font-weight: 700;
  margin: 0 0 16px;
}
.band__title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.25;
}
.band__title em { font-style: normal; color: var(--teal-accent); }

/* --------------------------------------------------------- Brand grid --- */
.brands { padding: 64px 0 24px; text-align: center; }
.brands__title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 800;
  color: var(--teal-900);
  margin: 6px 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 64, 63, 0.14);
  border-color: var(--teal-accent);
  outline: none;
}
/* Hover lift only on hover-capable devices (avoids sticky :hover on touch) */
@media (hover: hover) {
  .tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 64, 63, 0.14);
    border-color: var(--teal-accent);
  }
}

.tile__logo {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tile__logo img {
  width: 100%;
  max-width: 300px;
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

.tile__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-link);
  margin: 0 0 10px;
}

/* Summary + tags reveal.
   Touch devices: driven ONLY by .is-open (JS toggle) so a re-tap can collapse
   it — a sticky :hover/:focus would otherwise keep it open.
   Hover-capable devices: also reveal on :hover / :focus-within. */
.tile__reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.tile.is-open .tile__reveal {
  max-height: 400px;
  opacity: 1;
}
@media (hover: hover) {
  .tile:hover .tile__reveal,
  .tile:focus-within .tile__reveal {
    max-height: 400px;
    opacity: 1;
  }
}

.tile__summary { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem;
  background: var(--tag-bg);
  color: var(--tag-ink);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.tile__cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--teal-900);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tile__cta:hover,
.tile__cta:focus-visible {
  background: var(--teal-link);
  outline: none;
}

/* ------------------------------------------------------ One root band --- */
.oneroot {
  background: var(--teal-800);
  color: var(--white);
  padding: 56px 0;
  margin-top: 40px;
}
.oneroot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.oneroot__text { max-width: 560px; }
.oneroot__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  margin: 0 0 16px;
}
.oneroot__title span { color: var(--teal-accent); }
.oneroot__body { color: rgba(255, 255, 255, 0.8); margin: 0; }

.stats { display: flex; gap: 48px; }
.stat__num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--teal-accent);
  line-height: 1;
}
.stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* ------------------------------------------------------------- Footer --- */
.footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 24px 0;
  font-size: 0.85rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer strong { color: var(--white); font-weight: 700; }
.footer a { color: inherit; }

/* ------------------------------------------------------ Brand stub page --- */
.stub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 24px;
}
.stub__logo img { max-height: 200px; max-width: 100%; width: auto; }
.stub__badge {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--stub-accent, var(--teal-link));
}
.stub__title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0; }
.stub__msg { color: var(--ink-soft); max-width: 440px; margin: 0; }
.stub__back {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal-link);
  text-decoration: none;
  font-weight: 700;
}
.stub__back:hover { text-decoration: underline; }
.stub__rule {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--stub-accent, var(--teal-accent));
}

/* --------------------------------------------------------- Responsive --- */

/* Tablet: two columns */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phone: single column, tighter spacing, larger touch targets */
@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }

  .hero { padding: 28px 0 48px; }
  .hero__logo { padding: 14px 18px; }
  .hero__logo img { height: 92px; }
  .hero__title { margin: 28px 0 16px; }
  .hero__lead { font-size: 1rem; }

  .band { padding: 44px 0; }
  .brands { padding: 48px 0 16px; }

  .grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .tile { padding: 24px 20px; }
  .tile__logo { min-height: 160px; }
  .tile__logo img { max-width: 320px; max-height: 170px; }

  .oneroot { padding: 44px 0; }
  .oneroot__inner { gap: 28px; }
  .stats { gap: 36px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .tile,
  .tile__reveal { transition: none !important; }
  .scroll-btn__arrow { animation: none !important; }
}
