/* ============================================
   mdlr.casa — Global Styles
   ============================================ */

:root {
  --bg:        #0e0e0e;
  --surface:   #1a1a1a;
  --border:    #2a2a2a;
  --accent:    #c8a96e;   /* warm gold — editable */
  --text:      #e8e8e8;
  --muted:     #888;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --radius:    8px;
  --max-width: 900px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero .label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--muted);
  margin-left: 0.75rem;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

/* ── Sections ── */
section { padding: 4rem 0; border-bottom: 1px solid var(--border); }

section:last-of-type { border-bottom: none; }

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--accent); }

.card .card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.card p  { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }

.card-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--mono);
}

/* ── Subdomains Hub ── */
.subdomain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.subdomain-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.subdomain-chip:hover { border-color: var(--accent); text-decoration: none; }

.subdomain-chip .icon { font-size: 1.25rem; }

.subdomain-chip .info .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.subdomain-chip .info .desc {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  border-top: 1px solid var(--border);
}

/* ── Lang Toggle ── */
.lang-toggle {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface);
}

.lang-toggle .active-lang {
  color: var(--accent);
  font-weight: 600;
}

.lang-toggle .sep {
  color: var(--border);
  font-weight: 400;
}
/* ── Chip Icon ── */
.chip-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav .inner {
    flex-wrap: wrap;
    gap: 0;
    position: relative;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    order: 3;
  }

  nav ul.open { display: flex; }

  nav ul li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }

  .hamburger {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .lang-toggle {
    order: 3;
    margin-left: 0;
    margin-right: 0;
  }

  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2.25rem; }

  .cards { grid-template-columns: 1fr; }
  .subdomain-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav ul { gap: 1rem; }
  .hero  { padding: 3rem 0 2rem; }
  .lang-toggle { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
}