/* ==========================================================
   Mardock LLC - Global Stylesheet (Centered Layout)
   ========================================================== */

/* ------------------------------
   Color System & Typography
------------------------------ */
:root {
  --bg: #121418;
  --bg-light: #1a1d22;
  --border: #262a31;
  --text-main: #f0f2f5;
  --text-muted: #a0a5ae;
  --accent: #3abdf8;
  --radius: 12px;
  --max-width: 1100px;
}

/* ------------------------------
   Base Reset
------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  text-align: center;
}

/* ------------------------------
   Shared Layout Wrapper
------------------------------ */
.section, .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ------------------------------
   Header
------------------------------ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
}

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

/* ------------------------------
   Hero Section
------------------------------ */
.hero {
  text-align: center;
  max-width: var(--max-width);
  margin: 70px auto 60px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

/* Center hero buttons */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  color: #121418;
}

/* ------------------------------
   Sections
------------------------------ */
.section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* ------------------------------
   Service Cards
------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center;
}

.service-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------------------------
   Project Cards
------------------------------ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
}

.project-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 340px;
  text-align: left;
}

.project-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

/* ------------------------------
   About Section
------------------------------ */
.about {
  text-align: center;
}

.about p {
  max-width: none;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ------------------------------
   CTA Box
------------------------------ */
.cta {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  text-align: center;
  padding: 45px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 80px;
}

/* ------------------------------
   Projects
------------------------------ */
.section-subtitle {
  color: var(--text-muted);
  margin: 0 auto 10px auto;
  max-width: none; /* match full centered width */
}

.page-intro {
  margin-top: 70px;
  margin-bottom: 50px;
}