/* ==========================================================================
   MICHAILOS.GR — Μέταλλον Μιχαήλος (Architectural Steel & Engineering)
   Deep Steel Slate (#0F172A) | Clean Off-White (#F8FAFC) | Copper Accent (#D97706)
   ========================================================================== */

:root {
  --steel-950: #0b1120;
  --steel-900: #0f172a;
  --steel-800: #1e293b;
  --steel-700: #334155;
  --steel-500: #64748b;
  --steel-200: #e2e8f0;
  --steel-100: #f1f5f9;
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1220px;
  --radius: 6px;
  --header-h: 76px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--steel-900);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1.1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 6.5vw, 5.75rem) 0; }
.section-dark { background: var(--steel-900); color: #f8fafc; }
.section-alt { background: var(--steel-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #fbbf24; }

.lead { font-size: clamp(1.02rem, 1.35vw, 1.18rem); color: var(--steel-700); line-height: 1.72; }
.section-dark .lead, .hero .lead, .page-hero .lead { color: #cbd5e1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: #fff; color: var(--steel-900) !important; }
.btn-outline-dark { background: transparent; color: var(--steel-900) !important; border-color: var(--steel-700); }
.btn-outline-dark:hover { background: var(--steel-900); color: #fff !important; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: flex;
  flex-direction: column;
  color: #fff !important;
  font-family: var(--font-display);
  line-height: 1.05;
}
.brand-main { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-main span { color: var(--accent); }
.brand-sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; color: #94a3b8; text-transform: uppercase; margin-top: 2px; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  border-radius: var(--radius);
}
.main-nav a:hover, .main-nav a.active { color: #fbbf24; background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--steel-950);
  padding: 1.5rem; transform: translateX(100%); transition: transform var(--transition); z-index: 999;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 0.95rem 0; color: #f8fafc; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3.5rem) 0 4rem;
  background: var(--steel-950);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.36) contrast(1.08); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,17,32,0.92) 0%, rgba(11,17,32,0.65) 55%, rgba(11,17,32,0.38) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.stats-strip {
  background: var(--steel-800);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
  color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: #fbbf24; line-height: 1.1; }
.stat-item span { font-size: 0.86rem; color: #cbd5e1; }

/* Internal Page Hero */
.page-hero {
  padding: calc(var(--header-h) + 3.25rem) 0 3rem;
  background: linear-gradient(135deg, var(--steel-950) 0%, var(--steel-800) 100%);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,0.09); border-color: var(--accent); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel-800); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.4rem; }
.card-count {
  position: absolute; bottom: 0.65rem; right: 0.65rem;
  background: rgba(15,23,42,0.84); color: #fff; font-size: 0.74rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 3px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--steel-200);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.service-num { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; color: var(--accent-dark); letter-spacing: 0.12em; margin-bottom: 0.6rem; }

.check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.35rem; font-size: 0.95rem; color: var(--steel-700); }
.check-list li::before { content: '▪'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Filter Bar & Project Lightbox */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.55rem 1.05rem; font-size: 0.85rem; font-weight: 600;
  background: var(--surface); color: var(--steel-800); border: 1px solid var(--steel-200);
  border-radius: var(--radius); cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }

.modal {
  position: fixed; inset: 0; background: rgba(11,17,32,0.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--steel-900); color: #fff; border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); max-width: 980px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 1.5rem;
}
.modal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.modal-close { background: rgba(255,255,255,0.1); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.modal-stage { text-align: center; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.modal-stage img { max-height: 60vh; margin: 0 auto; object-fit: contain; }
.modal-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.modal-thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 3px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; flex-shrink: 0; }
.modal-thumbs img.active, .modal-thumbs img:hover { opacity: 1; border-color: var(--accent); }

/* Forms */
.input, .textarea {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font-sans); font-size: 0.95rem;
  border: 1px solid #cbd5e1; border-radius: var(--radius); background: #fff;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.4rem; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500; }
.alert-ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert-err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

/* Footer */
.site-footer { background: var(--steel-950); color: #94a3b8; padding: 4rem 0 2rem; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-title { color: #fff; font-family: var(--font-display); font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fbbf24; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.84rem; }
