/* Palette and type follow the GrowedIn Group brand guidelines.
   GrowedIn Store's own identity isn't decided yet, so it borrows the parent's. */
:root {
  --gg-black: #0b0b0b;
  --gg-white: #fefefa;
  --gg-green: #0f766e;
  --gg-grey: #e3e3e3;
  --gg-cyan: #b7f6f1;

  --color-bg: var(--gg-white);
  --color-ink: var(--gg-black);
  --color-muted: #5c5c58;
  --color-subtle: #8a8a85;
  --color-line: var(--gg-grey);
  --color-surface: #ffffff;

  --font-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Wix Madefor Text", ui-sans-serif, system-ui, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --radius: 0.375rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gg-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-height: 4.5rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.nav a { text-decoration: none; }
.nav a:hover { color: var(--color-ink); }

@media (max-width: 36rem) {
  .nav a { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  min-height: min(38rem, 80vh);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.headline {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 30rem;
  margin: var(--space-3) 0 0;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.hero-note {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line);
  max-width: 30rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-note strong {
  font-weight: 600;
  color: var(--color-ink);
}

/* Hero art: products on a shelf, drawn in the group's geometric language */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 0.9;
  width: 100%;
}

.art-dots {
  position: absolute;
  inset: 4% 0 18% 18%;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--gg-green) 55%, transparent) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.art-block {
  position: absolute;
  border-radius: 1.25rem;
  animation: settle 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.art-block-cyan {
  left: 8%;
  bottom: 22%;
  width: 42%;
  height: 58%;
  background: color-mix(in srgb, var(--gg-cyan) 75%, transparent);
  rotate: -6deg;
}

.art-block-green {
  left: 38%;
  bottom: 22%;
  width: 30%;
  height: 40%;
  background: var(--gg-green);
  rotate: 4deg;
  animation-delay: 0.1s;
}

.art-block-grey {
  left: 60%;
  bottom: 22%;
  width: 32%;
  height: 26%;
  background: color-mix(in srgb, var(--gg-grey) 85%, transparent);
  border: 1px solid #d2d2cd;
  rotate: -2deg;
  animation-delay: 0.2s;
}

.art-shelf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 1px;
  background: var(--gg-black);
  transform: translateY(1px);
}

@keyframes settle {
  from { opacity: 0; translate: 0 -18px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 52rem) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: var(--space-5);
    padding-bottom: var(--space-4);
  }
  .hero-art { max-width: 26rem; }
}

/* Sections */
.section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-line);
}

/* Brands */
.brand-grid { display: grid; }

.brand-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.brand-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.brand-card-featured .brand-art {
  height: auto;
  min-height: 15rem;
  border-bottom: 0;
}

.brand-card-featured .brand-body { padding: var(--space-4); }

.brand-art {
  position: relative;
  height: 11rem;
  border-bottom: 1px solid var(--color-line);
}

.brand-art-flexus {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px),
    radial-gradient(ellipse 60% 90% at 50% 0%, #2a2a2a, var(--gg-black) 70%);
  border-bottom-color: var(--gg-black);
}

.mini-card {
  display: grid;
  place-items: center;
  width: 11.5rem;
  aspect-ratio: 85.6 / 54;
  border-radius: 0.45rem;
  background: linear-gradient(170deg, #1a1a1a, #0d0d0d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 30px -12px rgba(0, 0, 0, 0.9);
  rotate: -4deg;
  transition: rotate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mini-card span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #8a8a8a, #ececec 40%, #8a8a8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-card-featured:hover .mini-card { rotate: 0deg; }

.brand-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-3);
}

.brand-name {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-desc {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.brand-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.text-link:hover { border-color: var(--gg-black); }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-subtle);
}

@media (max-width: 52rem) {
  .brand-card-featured { grid-template-columns: 1fr; }
  .brand-card-featured .brand-art { min-height: 11rem; }
}

/* About */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
}

.statement {
  margin: 0;
  max-width: 30rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.5;
}

.about-art {
  position: relative;
  height: 16rem;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%);
}

.circle {
  position: absolute;
  top: 50%;
  width: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: 0 -50%;
}

.circle-hatch {
  left: 22%;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gg-green) 60%, transparent) 0 1.5px, transparent 1.5px 9px);
}

.circle-cyan {
  left: 42%;
  background: color-mix(in srgb, var(--gg-cyan) 70%, transparent);
}

@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
  .about-art { height: 13rem; }
  .circle { width: 9rem; }
}

/* Footer */
.site-footer { padding-top: var(--space-5); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.endorsement-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Guidelines: 120px minimum width for the digital lockup */
.group-logo {
  width: 120px;
  height: auto;
}

.footer-cols {
  display: flex;
  gap: var(--space-5);
}

.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--color-ink); }

.footer-heading {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer-base {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: 0.8125rem;
  color: var(--color-subtle);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
