/* style.css - JTOP Ministries Redesign */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #121F3D;
  /* Deep Navy */
  --accent-color: #D3A74A;
  /* Original J-TOP Gold */
  --bg-white: #FFFFFF;
  --bg-light: #F7F9FA;
  /* Light Warm Gray */
  --text-dark: #121826;
  --text-light: #FFFFFF;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

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

/* Base Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d162b 100%);
  color: var(--text-light);
}

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

h2.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #121F3D;
}

.btn-primary:hover {
  background-color: #E2B75A;
  color: #121F3D;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(211, 167, 74, 0.3);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #0d162b;
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(18, 31, 61, 0.2);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(18, 31, 61, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(18, 31, 61, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}

.logo-mark {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1.1;
  text-transform: uppercase;
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.nav-cta {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

@media (min-width: 1025px) {
  .nav-cta-mobile {
    display: none;
  }
}

@media (max-width: 1250px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-cta {
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-mark {
    margin-right: 10px !important;
  }
}

/* Footer */
footer {
  background: linear-gradient(to top, #0A1224 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.footer-col p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p.tagline {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-service-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.1);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 31, 61, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(18, 31, 61, 0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.card-description {
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .logo-text {
    display: none;
  }

  .nav-container {
    padding: 1rem;
  }

  .collage-hero-wrapper>div {
    min-height: 400px !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
  }

  /* Force inline flex containers to stack predictably on mobile */
  div[style*="flex-wrap: wrap"] {
    gap: 2rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  div[style*="min-width: 300px"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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