/* ============================================================
   Ojee Labs — Main Stylesheet
   ============================================================ */

:root {
  --primary:   #e23838;
  --accent:    #37cadd;
  --dark:      #111111;
  --light-bg:  #f8f9fa;
  --text:      #555555;
  --white:     #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

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

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: box-shadow .3s;
}

#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
}

#navbar .logo img { height: 45px; }

#navbar .site-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text);
  max-width: 700px;
  margin: 16px auto 48px;
  line-height: 1.8;
}

/* ── Hero (Section 0) ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background-image: url('/wp-content/uploads/2017/07/2-e1500873585174.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ── Tagline (Section 1) ──────────────────────────────────── */
#tagline {
  background: var(--dark);
  padding: 60px 24px;
}

#tagline .tagline-text {
  text-align: center;
  color: var(--white);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Church App (Section 2) ───────────────────────────────── */
#church-app { background: var(--white); }

.church-app-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.church-app-icon {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
}

.church-app-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.church-app-text { flex: 1; }

.church-app-text p { margin-bottom: 16px; font-size: 16px; line-height: 1.9; }

.donate-area {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s;
}
.btn-primary-custom:hover { background: #c42e2e; color: var(--white); }

@media (max-width: 768px) {
  .church-app-content { flex-direction: column; }
}

/* ── Portfolio (Section 3) ────────────────────────────────── */
#portfolio { background: var(--light-bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.portfolio-item {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  display: block;
  color: var(--dark);
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  color: var(--dark);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f4f4f4;
  padding: 20px;
}

.portfolio-item-info {
  padding: 16px 20px;
}

.portfolio-item-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.portfolio-item-info p {
  font-size: 13px;
  color: var(--text);
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Team (Section 4) ─────────────────────────────────────── */
#team { background: var(--white); }

.team-grid {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  max-width: 280px;
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-bg);
  margin-bottom: 20px;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-byline {
  font-size: 13px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.team-icons { display: flex; justify-content: center; gap: 16px; }

.team-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.team-icons a:hover { background: var(--primary); color: var(--white); }

/* ── About (Section 5) ────────────────────────────────────── */
#about {
  background: var(--white);
  border-top: 1px solid #eee;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-left h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.about-left { font-size: 15px; line-height: 1.9; }
.about-left p { margin-top: 16px; }

.about-right h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.contact-info-list { list-style: none; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i {
  color: var(--primary);
  width: 18px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Contact (Section 8) ──────────────────────────────────── */
#contact {
  background: #dd3333;
  padding: 80px 24px;
}

#contact .section-title { color: var(--white); }
#contact .section-title::after { background: rgba(255,255,255,.5); }
#contact .section-subtitle { color: rgba(255,255,255,.9); }

.contact-form {
  max-width: 620px;
  margin: 0 auto;
}

.contact-form .form-group { margin-bottom: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255,255,255,.15);
  color: var(--white);
  outline: none;
  transition: background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.7); }
.contact-form input:focus,
.contact-form textarea:focus { background: rgba(255,255,255,.25); }
.contact-form textarea { height: 130px; resize: vertical; }

.contact-form .btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.contact-form .btn-submit:hover { background: var(--dark); color: var(--white); }

.form-message { text-align: center; color: var(--white); margin-top: 12px; font-size: 14px; min-height: 20px; }

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  background: #222222;
  color: rgba(255,255,255,.6);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 13px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

/* ── Sub-page layout ──────────────────────────────────────── */
.subpage-wrap {
  padding-top: 70px;
}

.subpage-hero {
  background: var(--dark);
  padding: 60px 24px;
  text-align: center;
}
.subpage-hero h1 { color: var(--white); font-size: 32px; font-weight: 700; }
.subpage-hero p { color: rgba(255,255,255,.7); margin-top: 8px; }

.subpage-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.subpage-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 16px;
}
.subpage-content h2:first-child { margin-top: 0; }

.subpage-content p { margin-bottom: 16px; line-height: 1.8; }

.subpage-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}
.subpage-content ul li { padding: 4px 0; }

.app-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.app-badges a img { height: 44px; }

.app-screenshot { text-align: center; margin: 32px 0; }
.app-screenshot img { max-width: 500px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.congregation-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.congregation-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 20px;
  background: var(--white);
}
.congregation-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.congregation-card a { font-size: 13px; color: var(--accent); display: block; margin-bottom: 4px; }

#congregation-map { height: 420px; border-radius: 8px; margin-top: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.congregation-table-wrap { overflow-x: auto; margin-top: 24px; -webkit-overflow-scrolling: touch; }
.congregation-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.congregation-table th { background: var(--dark); color: var(--white); text-align: left; padding: 10px 14px; font-weight: 600; }
.congregation-table td { padding: 10px 14px; border-bottom: 1px solid #e8e8e8; vertical-align: middle; }
.congregation-table td img { height: 28px; width: auto; display: block; }
.congregation-table tbody tr:last-child td { border-bottom: none; }
.congregation-table tbody tr:hover { background: #f9f9f9; }
.congregation-table td a { color: var(--accent); }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin-bottom: 32px; }
.back-link:hover { color: var(--primary); }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
