/* ── Grainique Portfolio — Stylesheet ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:       #F8F7F4;
  --ink:      #1A1A1A;
  --muted:    #666666;
  --accent:   #2C2C2C;
  --divider:  #E0DDD8;
  --card-bg:  #FFFFFF;
  --font:     'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--divider);
  padding: 20px 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--muted); }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--ink); }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--divider);
}

.hero-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 24px;
}

.hero h1 strong { font-weight: 600; }

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── Section ── */
section { padding: 80px 0; }

section + section { border-top: 1px solid var(--divider); }

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.section-heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── Brand cards ── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.brand-card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 40px 36px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.brand-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.brand-card-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--ink);
}

.brand-card-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 32px;
}

.brand-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.brand-card:hover .brand-card-link::after {
  transform: translateX(4px);
}

/* Brand status badge */
.brand-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.status-live { background: #e8f5e9; color: #2e7d32; }
.status-prelaunce { background: #fff8e1; color: #f57f17; }
.status-prelaunch { background: #fff8e1; color: #f57f17; }
.status-development { background: #e3f2fd; color: #1565c0; }

/* ── About strip ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-item {}
.stat-number {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ── Contact page ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 80px 0;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 15px;
}

.contact-detail {
  margin-bottom: 16px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 15px;
  color: var(--ink);
}

.contact-detail-value a {
  color: var(--ink);
  text-decoration: none;
}

.contact-detail-value a:hover { text-decoration: underline; }

/* ── Form ── */
form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

input, select, textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
}

textarea { resize: vertical; min-height: 140px; }

select { appearance: none; cursor: pointer; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-logo span { color: var(--muted); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  width: 100%;
  margin-top: 8px;
}

/* ── Success / Error ── */
.message-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.message-box { max-width: 480px; }

.message-icon {
  font-size: 40px;
  margin-bottom: 24px;
}

.message-box h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.message-box p {
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
}

/* ── Brand pages ── */
.brand-facts .fact-value { display: block; font-size: 16px; font-weight: 500; margin-top: 2px; }
.btn + .btn-outline { margin-top: 0; }
@media (max-width: 600px) { .hero .btn-outline { margin: 12px 0 0 0 !important; display: inline-block; } }
