/* Johns and Bhatia - Static Site Styles */

:root {
  --color-primary: #74B0E2;
  --color-secondary: #080C3A;
  --color-text: #33373D;
  --color-text-light: #666;
  --color-bg: #FFFFFF;
  --color-bg-light: #f8f9fa;
  --color-border: #e0e0e0;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica Neue, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--color-secondary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1em;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  max-height: 140px;
  width: auto;
}

.contact-bar {
  text-align: right;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-bar a {
  color: var(--color-text);
}

/* Navigation */
.main-nav {
  background: var(--color-secondary);
  padding: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 15px 25px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary);
  color: #fff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a2050 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

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

/* Content Sections */
.section {
  padding: 60px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
}

/* Team List (Row Layout) */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.team-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--color-border);
}

.team-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.team-row-photo {
  flex-shrink: 0;
  width: 200px;
}

.team-row-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-row-info {
  flex: 1;
}

.team-row-info h2 {
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.team-row-info .title {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.team-row-info p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* Legacy Team Grid (keeping for reference) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-member {
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-member-info {
  padding: 25px;
}

.team-member h3 {
  margin-bottom: 5px;
}

.team-member .title {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Projects 2x2 Grid */
.projects-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .projects-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project-card-info {
  padding: 20px;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Project Detail Page */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
}

.project-detail img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
}

.project-meta {
  background: var(--color-bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.project-meta p {
  margin: 0;
}

.project-meta strong {
  color: var(--color-secondary);
}

/* About Page */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.philosophy-item {
  padding: 25px;
  background: var(--color-bg);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.philosophy-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Contact Page */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-form {
  background: var(--color-bg-light);
  padding: 40px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-primary);
}

.site-footer a:hover {
  color: #fff;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-weight: 500;
}

.back-link::before {
  content: '←';
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-bar {
    text-align: center;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a {
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 50px 0;
  }

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

  .section {
    padding: 40px 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 25px;
  }

  /* Team row responsive */
  .team-row {
    flex-direction: column;
    gap: 20px;
  }

  .team-row-photo {
    width: 150px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    text-align: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
