/* Agile Explorations — palette carried over from the previous (arcana-themed) site */
:root {
  --bg: #f7f7f7;
  --fg: #474747;
  --fg-bold: #4c4c4c;
  --fg-light: #999;
  --border: #e0e0e0;
  --accent: #049db5;
  --accent-dark: #037e91;
  --accent-fg: #fff;
  --card-bg: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand img {
  width: 180px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--fg-bold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  background: url("/images/AgileExplorations-site-header-brightened.jpg") center 35% / cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(rgba(20, 40, 45, 0.55), rgba(20, 40, 45, 0.35));
}

.hero-content {
  padding-top: 7rem;
  padding-bottom: 7rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.button:hover { background: var(--accent-dark); }

.button-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: calc(0.7rem - 2px) calc(1.5rem - 2px);
}

.button-outline:hover {
  background: var(--accent);
  color: var(--accent-fg);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  color: var(--fg-bold);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  color: var(--fg-light);
  margin: 1rem auto 0;
  max-width: 640px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  color: var(--fg-bold);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

/* Services */
.service-card { text-align: center; }

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

.service-icon svg { width: 100%; height: 100%; }

/* Projects */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
}

.project-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 16px;
}

.project-tagline {
  color: var(--fg-light);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* Contact */
.form-wrap {
  max-width: 760px;
  margin: 2rem auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.form-wrap iframe { display: block; border: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
  color: var(--fg-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav { gap: 1rem; }

  .hero-content {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-content h1 { font-size: 1.9rem; }

  .hero-content p { font-size: 1.05rem; }

  .section { padding: 2.75rem 0; }
}
