/* Mati & Light Custom Design System - Architectural Bento Grid Motif */
:root {
  --color-ink: #2f2c19;
  --color-surface: #f4f8f3;
  --color-surface-card: #e8efe7;
  --color-accent: #bca51b;
  --color-supporting: #553ec4;
  --color-border: #c8d4c5;
  --color-text-muted: #5e6359;
  --font-main: 'IBM Plex Sans', 'Anek Bangla', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

body {
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-main);
  line-height: 1.65;
  font-size: 16px;
}

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

/* Blueprint Line Motif */
.blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(47, 44, 25, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 44, 25, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Header & Nav */
header.site-header {
  border-bottom: 2px solid var(--color-ink);
  background: rgba(244, 248, 243, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo .dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  display: inline-block;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav.main-nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.demo-badge {
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-tile {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 44, 25, 0.08);
}

/* Corner marks motif */
.bento-tile::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--color-ink);
  border-left: 2px solid var(--color-ink);
}
.bento-tile::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border-bottom: 2px solid var(--color-ink);
  border-right: 2px solid var(--color-ink);
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }

@media (max-width: 900px) {
  .col-span-8, .col-span-6, .col-span-4 { grid-column: span 12; }
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--color-ink);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--color-ink);
  display: block;
}

.annotation-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-supporting);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Section styling */
section.page-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-tag {
  color: var(--color-supporting);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--color-ink);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-surface);
}

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

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

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

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-ink);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: 2px solid var(--color-supporting);
}

.hp-field {
  display: none !important;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--color-ink);
  font-weight: 600;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Blog Article Modal / Details */
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer.site-footer {
  background: var(--color-ink);
  color: var(--color-surface);
  padding: 3rem 0;
  margin-top: 4rem;
}

footer a {
  color: var(--color-accent);
}
