/**
 * Aalay Collective — group website
 * Colours and type carried over from the original holding page.
 */

:root {
  --primary: #0b4a45;
  --primary-hover: #083b37;
  --secondary: #062f2b;
  --primary-rgb: 11, 74, 69;
  --secondary-rgb: 6, 47, 43;
  --accent: #e5e56a;          /* the dot in the logo */
  --accent-hover: #d8d84f;
  --text: #062f2b;
  --muted: rgba(var(--secondary-rgb), 0.66);
  --bg: #ffffff;
  --bg-muted: rgba(176, 141, 87, 0.08);
  --tint: #f7f5ef;
  --border: rgba(var(--secondary-rgb), 0.14);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
  --ring: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
  --radius: 5px;
  --header-h: 111px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* --- Logo: unchanged from the original holding page (same image, size and position) --- */
.brand-mark {
  width: 102px;
  height: 70px;
  border-radius: var(--radius);
  /* Use logo file, fall back to gradient if image can't load */
  background: url("../images/Collective_BlackOnWhite@300x-8.png") center / contain no-repeat;
  position: relative;
  left: 12px;
  position: relative;
  top: -5px;

  transform:scale(1.9);
  -ms-transform:scale(1.9); /* IE 9 */
  -moz-transform:scale(1.9); /* Firefox */
  -webkit-transform:scale(1.9); /* Safari and Chrome */
  -o-transform:scale(1.9); /* Opera */
}

body.site {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.site a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header (same position and spacing as before) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.16s ease;
}

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

.nav .nav-cta {
  color: #fff;
  background: var(--primary);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav .nav-cta:hover {
  color: #fff;
  background: var(--primary-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  content: "";
}

.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after  { position: absolute; top: 6px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .company-link:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-ghost:hover { border-color: rgba(var(--primary-rgb), 0.45); }

.btn-accent { background: var(--accent); color: var(--secondary) !important; }
.btn-accent:hover { background: var(--accent-hover); }

/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + 110px) 0 110px;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 70%);
}

.hero-title {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 229, 106, 0.25);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 660px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-tint {
  background: var(--tint);
}

.section-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin: 0 0 44px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.split .section-title { margin-bottom: 0; }

.prose p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--muted);
}

.prose strong, .prose em { color: var(--text); }

/* --- Companies --- */
.company-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.company {
  grid-column: span 3;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* 2 x 2 grid */

.company:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.company::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.company-num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(var(--secondary-rgb), 0.3);
}

.company-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.company-name {
  margin: 8px 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.company-desc {
  flex: 1;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

.company-link {
  align-self: flex-start;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--primary) !important;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
  padding-bottom: 2px;
}

.company-link:hover {
  border-bottom-color: var(--primary);
}

.company-link.is-soon {
  color: var(--muted) !important;
  border-bottom: 0;
  font-weight: 500;
}

/* --- Values --- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.value p {
  margin: 0;
  color: var(--muted);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--primary);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

/* --- Contact --- */
.contact {
  background: var(--secondary);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.on-dark { color: #fff; }
.section-label.on-dark { color: var(--accent); }
.contact .section-title { margin-bottom: 14px; }

.contact-sub {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Contact form --- */
.contact-card {
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.contact-form { display: grid; gap: 18px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(var(--secondary-rgb), 0.85);
}

.field .optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--ring);
}

.field.has-error input,
.field.has-error textarea { border-color: #b43c3c; }

.field-error { font-size: 0.82rem; color: #b43c3c; }

.form-alert {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(180, 60, 60, 0.3);
  background: rgba(180, 60, 60, 0.08);
  font-size: 0.92rem;
}

.form-submit { justify-self: start; cursor: pointer; font-family: inherit; }

.form-success h3 { margin: 0 0 8px; font-size: 1.3rem; }
.form-success p { margin: 0; color: var(--muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Footer --- */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-companies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-companies a:hover { color: var(--text); }

.copyright {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .values { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  :root { --header-h: 103px; }

  .header { padding: 16px 18px; }
  .container { padding: 0 18px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }

  .hero { padding: calc(var(--header-h) + 60px) 0 70px; }
  .section { padding: 70px 0; }

  .company-grid { grid-template-columns: 1fr; }
  .company,
  .company:nth-child(4),
  .company:nth-child(5) {
    grid-column: auto;
  }

  .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
