/*
  SynthraLab Minimal UI
  Colors: Black/White + Accent gradient (purple/green)
  Font: Inter
*/

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666;
  --border: #eaeaea;

  --accent-start: #7c3aed; /* purple */
  --accent-end: #06b6d4;   /* cyan leaning green */

  --container: 1200px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
}

/* Subpage hero header */
.page-hero { background: #fafafa; border-bottom: 1px solid var(--border); }
.page-hero .inner { padding: 64px 0; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); }
.page-hero p { margin: 0; color: var(--muted); }

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
}

/* Accessibility: Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; outline: 2px solid #fff; box-shadow: 0 0 0 3px rgba(0,0,0,0.4); }

/* Visible focus outlines */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent-start);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 96px 0;
}
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 32px; margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); }
.section-actions { margin-top: 28px; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .brand-mark { width: 28px; height: 28px; }
.brand .brand-text { font-weight: 700; letter-spacing: 0.2px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.main-nav a { color: var(--fg); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { background: #f6f6f6; }
.main-nav a.active { background: #111; color: #fff; }

.header-cta { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-accent {
  color: white;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  box-shadow: var(--shadow-sm);
}
.btn-dark { background: #111; color: #fff; }
.btn-light { background: #f6f6f6; color: #111; }
.btn-outline { border-color: #ddd; color: #111; background: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav-toggle { display: none; background: none; border: 0; padding: 6px; margin-left: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #111; margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: #fafafa; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.display { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right { position: relative; }
.hero-wave { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.06)); }

/* Services */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.bullets { margin: 0; padding-left: 18px; color: #333; }

/* Projects */
.project {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.project-media { aspect-ratio: 16/9; background: #f2f2f2; }
.project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body { padding: 16px 18px 20px; }
.project-body h3 { margin: 0 0 6px; }
.project-body p { margin: 0; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.about .placeholder { aspect-ratio: 4/3; border-radius: var(--radius); background: #f3f3f3; border: 1px dashed #ddd; }
.values { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.values li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.values .icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-form { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
input, textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #ddd; outline: none; background: #fff; }
input:focus, textarea:focus { border-color: var(--accent-start); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.contact-info { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a { color: #111; text-decoration: none; }
.socials { display: flex; gap: 14px; margin-top: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.copy { text-align: right; color: var(--muted); }
.brand-small .brand-mark { width: 22px; height: 22px; }

/* Helpers */
.placeholder { position: relative; overflow: hidden; }
.placeholder::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.08)); }

/* Anchor offset for sticky header */
#home, #services, #projects, #about, #contact { scroll-margin-top: 80px; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .copy { text-align: center; }
}

/* Mobile menu open state */
.main-nav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); }
.main-nav.open ul { flex-direction: column; padding: 12px 20px; }

/* Show CTA on larger screens */
@media (min-width: 769px) {
  .header-cta { display: block; }
}

/* Project Detail Pages */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.project-hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.project-hero-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.project-hero-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-start);
  font-weight: bold;
}

.metrics {
  background: #f8f9fa;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.metrics h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.metric-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-start);
}

.metric-label {
  font-size: 14px;
  color: var(--muted);
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--accent-start);
}

.kpi-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kpi-card li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustments for project pages */
@media (max-width: 768px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .project-hero-image {
    height: 200px;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .metrics {
    margin-top: 20px;
  }
}

/* Map container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  display: block;
}
