/* =========================================
   TheChurchOp — style.css
   ========================================= */

:root {
  --blue: #185FA5;
  --blue-dark: #0C447C;
  --blue-light: #E6F1FB;
  --blue-mid: #B5D4F4;
  --dark: #1a1a1a;
  --gray: #64646A;
  --gray-light: #F5F7FA;
  --border: #E0E0E0;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  line-height: 1.25;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand { display: flex; flex-direction: column; gap: 1px; }

.nav-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo em { font-style: normal; color: var(--blue); }

.nav-tag {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-cta {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 0.5px solid var(--blue);
  color: var(--blue);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover { background: var(--blue); color: var(--white); }

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 0.5px solid var(--border);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  color: var(--dark);
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.hero h1 em { font-style: italic; color: var(--blue); }

.tagline {
  font-size: 17px;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-sub {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-full { width: 100%; text-align: center; display: block; }

/* PROOF */
.proof {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2.5rem 0;
}

.proof-text { font-size: 16px; color: var(--blue-dark); line-height: 1.7; }
.proof-attr { font-size: 12px; color: var(--blue); margin-top: 8px; }

/* SECTIONS */
.section { padding: 4rem 0; border-bottom: 0.5px solid var(--border); }
.section-alt { background: var(--gray-light); }

.section h2 {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.section-sub {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 580px;
}

/* ABOUT */
.about-block { display: flex; gap: 1.75rem; align-items: flex-start; }

.about-photo {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 0.5px solid var(--border);
}

.about-name { font-size: 16px; font-weight: 500; color: var(--dark); margin-bottom: 3px; font-family: 'Lora', serif; }
.about-title { font-size: 12px; color: var(--blue); margin-bottom: 1rem; letter-spacing: 0.02em; }

.about-text p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 500; color: var(--dark); }

/* PROJECTS */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.project-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: 1.5px solid var(--white);
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
}

.project-card h3 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--dark); margin-bottom: 5px; }
.project-card p { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* STEPS */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 0.5px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  min-width: 24px;
  padding-top: 2px;
  letter-spacing: 0.03em;
}

.step h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--dark); margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* CREDENTIALS */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.cred-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.cred-num { font-size: 30px; font-weight: 500; color: var(--blue); font-family: 'Lora', serif; }
.cred-label { font-size: 12px; color: var(--gray); margin-top: 6px; line-height: 1.45; }

/* FORM */
.freebie-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.freebie-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.form-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }

.form-group label {
  font-size: 11px;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.optional { font-weight: 400; color: #bbb; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 0.5px solid #d4d4d4;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  background: #fafafa;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.65; }

/* FILE UPLOAD */
.file-upload {
  position: relative;
  border: 1.5px dashed #d4d4d4;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fafafa;
}

.file-upload:hover, .file-upload.dragover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray);
  font-size: 14px;
  pointer-events: none;
}

.file-upload-label svg { color: var(--blue); }

.file-hint {
  font-size: 11px;
  color: #aaa;
}

.file-name {
  font-size: 12px;
  color: var(--blue);
  margin-top: 6px;
  min-height: 16px;
}

.status { font-size: 13px; color: #c0392b; margin-top: 10px; text-align: center; min-height: 20px; }

/* RESULT */
.result-card {
  background: var(--white);
  border: 0.5px solid var(--blue-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  display: none;
}

.result-card.visible { display: block; }

.result-header { margin-bottom: 1.25rem; }
.result-title { font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.result-sub { font-size: 14px; color: var(--gray); }

.brief-preview {
  background: var(--gray-light);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 13.5px;
  color: #333;
  line-height: 1.85;
  white-space: pre-wrap;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}

.result-note {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* FOOTER */
.footer {
  padding: 2rem 1.5rem;
  border-top: 0.5px solid var(--border);
  background: var(--gray-light);
}

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

.footer-brand {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--dark);
}

.footer-brand em { font-style: normal; color: var(--blue); }

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--gray);
}

.footer-links a { color: var(--gray); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .about-block { flex-direction: column; align-items: center; text-align: center; }
  .nav-cta { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
}
