/* Intelligence Builders - Main Stylesheet */

:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-accent: #3b82f6;
  --color-text: #1a202c;
  --color-text-light: #4a5568;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-border: #e2e8f0;
  --max-width: 1100px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / Navigation */
header {
  background: var(--color-primary);
  color: white;
  padding: 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-logo-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: white;
  text-decoration: none;
}

/* Main Content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
}

.page-header h1 {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 2rem;
  color: var(--color-primary);
}

/* Content Section */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.content-section p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  max-width: 720px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h2 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Clickable Card Links */
a.card-link {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.card-link:hover {
  text-decoration: none;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

a.card-link:hover h2 {
  color: var(--color-accent);
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 480px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}

.profile-info .profile-title {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.profile-info p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.125rem;
}

.contact-card .contact-title {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-card .contact-details p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-card address {
  font-style: normal;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }
}
