/* ───────────────────────────────────────────
   MingTianElektronica — single-page site
   ─────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --bg:        #0d0f12;
  --surface:   #13161b;
  --surface2:  #1a1e25;
  --border:    #252b35;
  --accent:    #e8a838;      /* warm amber */
  --accent2:   #c87d1e;
  --text:      #e2e6ee;
  --muted:     #7a8499;
  --radius:    6px;
  --gap:       2rem;
  --max-w:     1100px;
  --font:      'Inter', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::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: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  height: 64px;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo-mark {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 2rem;
}
nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  text-align: center;
  padding: 6rem 2rem 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232,168,56,0.10) 0%, transparent 70%),
    var(--bg);
}
.hero-inner { max-width: 640px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── SERVICE SECTIONS ── */
.service-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-intro {
  margin-bottom: 2.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.section-intro p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
}

/* ── GALLERY ── */
.gallery {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.three-up { grid-template-columns: repeat(3, 1fr); }
.two-up   { grid-template-columns: repeat(2, 1fr); }

figure {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
figure:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}

/* placeholder pattern when no image is loaded */
.img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,0.025) 18px,
      rgba(255,255,255,0.025) 19px
    );
}

figcaption {
  padding: 0.5rem 0.9rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── SERVICE BULLETS ── */
.service-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  list-style: none;
  padding: 0;
}
.service-bullets li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.service-bullets li::before {
  content: '✦ ';
  color: var(--accent);
  font-size: 0.6rem;
  vertical-align: middle;
}

/* ── DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── CONTACT ── */
.contact-section {
  padding: 5rem 2rem 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.contact-card {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.contact-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.contact-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  transition: border-color 0.2s, color 0.2s;
  min-width: 280px;
  justify-content: center;
}
a.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .three-up { grid-template-columns: repeat(2, 1fr); }
  .two-up   { grid-template-columns: 1fr; }
  nav { gap: 1.2rem; }
}
@media (max-width: 480px) {
  .three-up { grid-template-columns: 1fr; }
  nav { display: none; }
}
