/* DualBox capstone site */

:root {
  --cold: #2563eb;
  --warm: #ea580c;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 36px rgba(0,0,0,.11), 0 4px 14px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1080px;
  --radius: 14px;
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.narrow { max-width: 46rem; }

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--cold) 30%, var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav { display: flex; gap: 0.125rem; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
}

nav a:hover {
  color: var(--text);
  background: var(--bg);
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 5.5rem;
  background: linear-gradient(140deg, #eff6ff 0%, #fef3c7 55%, #fff7ed 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 10% 50%, rgba(37,99,235,.07) 0%, transparent 70%),
    radial-gradient(ellipse 45% 70% at 90% 40%, rgba(234,88,12,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cold);
  background: rgba(37,99,235,.09);
  border: 1px solid rgba(37,99,235,.18);
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.72;
}

.hero-image { margin: 0; }

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }

.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-intro {
  color: var(--muted);
  margin: 0.1rem 0 2rem;
}

/* ── Features ── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 600px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

.feature-list li {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
  box-shadow: var(--shadow-sm);
}

.feature-list li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cold), #60a5fa);
  border-radius: var(--radius) var(--radius) 0 0;
}

.feature-list li:nth-child(even)::before {
  background: linear-gradient(90deg, var(--warm), #fb923c);
}

.feature-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Materials ── */
.materials-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 720px) {
  .materials-grid { grid-template-columns: 1fr 1fr; }
}

.material-tags {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.material-tags li {
  padding: 0.375rem 0.9rem;
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cold);
}

/* ── Images ── */
.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.hero-image { min-height: 260px; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-item .content-image {
  min-height: 260px;
  max-height: 420px;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover .content-image {
  transform: scale(1.04);
}

.gallery-item figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Documents ── */
.doc-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 520px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .doc-grid { grid-template-columns: repeat(5, 1fr); } }

.doc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: box-shadow var(--ease), transform var(--ease);
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.doc-card:focus-visible {
  outline: 2px solid var(--cold);
  outline-offset: 3px;
}

.doc-preview {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}

.doc-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.doc-title {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  color: var(--cold);
}

.doc-grid li:nth-child(2) .doc-title,
.doc-grid li:nth-child(4) .doc-title,
.doc-grid li:nth-child(5) .doc-title {
  color: var(--warm);
}

/* ── Team ── */
.team-tagline {
  color: var(--muted);
  margin: 0.25rem 0 2rem;
  font-size: 1.0625rem;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 560px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--ease), transform var(--ease);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(234,88,12,.14));
  color: var(--text);
  letter-spacing: -0.01em;
  border: 1.5px solid var(--border);
}

.team-card strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.team-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ── Footer ── */
.site-footer {
  padding: 2.75rem 0;
  background: var(--text);
  color: #94a3b8;
  text-align: center;
}

.site-footer p { margin: 0.3rem 0; }

.site-footer strong { color: #f1f5f9; }

.footer-small {
  font-size: 0.875rem;
  opacity: 0.55;
  margin-top: 0.5rem !important;
}

.footer-contact a {
  color: #93c5fd;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}
