/* ================================================================
   CONTACT PAGE — CSS
   Same design tokens, navbar, footer as the rest of the site.
   Hero: blurred church photo (unique to contact) with dark overlay.
   Body: two-column form + info card layout.
   ================================================================ */

/* ── 0. TOKENS ───────────────────────────────────────────────── */
:root {
  --ink:         #111111;
  --ink-soft:    #444444;
  --ink-muted:   #777777;
  --surface:     #ffffff;
  --surface-off: #f7f7f7;
  --surface-mid: #ececec;
  --border:      rgba(0,0,0,0.08);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;

  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.06);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.09);

  --card-pad:    2.25rem;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 1. RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--surface-off);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 2. NAVBAR ───────────────────────────────────────────────── */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.church-logo { height: 40px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.4rem; font-weight: 600; color: var(--ink); font-family: 'Poppins', sans-serif; }

.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links li a {
  position: relative; text-decoration: none; color: #333;
  font-weight: 500; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  transition: color 0.3s ease; display: inline-block;
  font-family: 'Poppins', sans-serif;
}
.nav-links li a::after {
  content: ""; position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--ink); transition: width 0.3s ease;
}
.nav-links li a:hover { color: var(--ink); }
.nav-links li a:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger .line { width: 25px; height: 3px; background: #333; border-radius: 3px; transition: all 0.4s ease; }
.burger.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active .line:nth-child(2) { opacity: 0; }
.burger.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    flex-direction: column; position: absolute;
    top: 70px; right: 2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1rem 0; width: 220px;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(-20px);
    pointer-events: none; transition: all 0.3s ease;
  }
  .nav-links.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links li a { padding: 1rem 1.5rem; width: 100%; display: block; }
}

/* ── 3. HERO ─────────────────────────────────────────────────── */
/*
  Uses the real church photo with a blur + overlay treatment.
  This is unique to the contact page — gives it a warm, personal feel
  while still matching the site's dark hero height/typography.
*/
.contact-hero {
  position: relative;
  height: 58vh; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}

/* Blurred photo background */
.blurred-bg {
  position: absolute; inset: 0;
  background: url('../static/images/Dharmiktachurch.jpg') center/cover no-repeat;
  filter: blur(4px) brightness(0.75);
  transform: scale(1.05); /* prevents blur edge bleed */
  z-index: 0;
}

/* Dark overlay — matches other heroes' darkness level */
.overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Hero text — exact same class/values as every other page hero */
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 2rem;
  animation: heroIn 0.85s var(--ease-out) both;
  font-family: 'Poppins', sans-serif;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content .eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 0.9rem; color: #fff;
  font-family: 'Poppins', sans-serif;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300; color: rgba(255,255,255,0.85); line-height: 1.7;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 600px) {
  .contact-hero  { height: auto; min-height: 0; padding: 4rem 0 3rem; }
  .hero-content  { padding: 1.5rem 1.25rem; }
}

/* ── 4. CONTACT SECTION ──────────────────────────────────────── */
.contact-section {
  padding: 5rem 2rem 6rem;
  background: var(--surface-off);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Shared card base ── */
.contact-form,
.contact-info {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  transition: box-shadow 0.3s ease;
}

.contact-form:hover,
.contact-info:hover { box-shadow: var(--shadow-md); }

/* ── Section heading — same as .about-heading ── */
.contact-form h2,
.contact-info h2 {
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); line-height: 1.2;
  padding-bottom: 0.8rem; margin-bottom: 1.75rem;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.contact-form h2::after,
.contact-info h2::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--ink); border-radius: 2px;
}

/* ── 5. FORM ─────────────────────────────────────────────────── */
#contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 400;
  color: var(--ink); background: var(--surface-off);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-family: 'Poppins', sans-serif;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--ink-muted); font-weight: 300;
}

#contact-form textarea {
  resize: vertical; min-height: 150px;
}

/* Submit button — same as .about-cta-btn style */
.cta-button {
  align-self: flex-start;
  padding: 0.85rem 2.2rem;
  background: var(--ink); color: #fff;
  border: none; border-radius: 50px;
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.04em;
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  font-family: 'Poppins', sans-serif;
}

.cta-button:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-button:active { transform: translateY(0); }

/* Success / error message injected by Email.js */
#form-status {
  font-size: 0.88rem; font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  display: none;
}

#form-status.success {
  display: block;
  background: #f0faf5; color: #1a7a4a;
  border: 1px solid rgba(26,122,74,0.2);
}

#form-status.error {
  display: block;
  background: #fdf2f2; color: #c0392b;
  border: 1px solid rgba(192,57,43,0.2);
}

/* ── 6. CONTACT INFO ─────────────────────────────────────────── */
.contact-info-items {
  display: flex; flex-direction: column; gap: 1.1rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
}

.contact-info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--surface-off);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; color: var(--ink);
  margin-top: 0.1rem;
  transition: background 0.25s ease;
}

.contact-info-item:hover .contact-info-icon {
  background: var(--ink); color: #fff;
}

.contact-info-text {
  display: flex; flex-direction: column; gap: 0.15rem;
}

.contact-info-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-family: 'Poppins', sans-serif;
}

.contact-info-value {
  font-size: 0.92rem; font-weight: 400;
  color: var(--ink-soft); line-height: 1.5;
  font-family: 'Poppins', sans-serif;
}

.contact-info-value a {
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.25s ease;
}
.contact-info-value a:hover { color: var(--ink); }

/* Social links subheading */
.contact-info h3 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-muted); margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.contact-social-icons {
  display: flex; gap: 0.75rem;
}

.contact-social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-off);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
}

.contact-social-icon:hover {
  background: var(--ink); color: #fff;
  border-color: var(--ink); transform: translateY(-3px);
}

/* ── 7. MAP EMBED (optional — uses same card style) ──────────── */
.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0; /* removes inline bottom gap */
}

.map-embed iframe {
  width: 100%; height: 200px;
  border: none; display: block;
  filter: grayscale(30%);
}

/* ── 8. FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--surface); color: #333;
  padding: 4rem 2rem 2rem; border-top: 1px solid var(--border);
  font-family: 'Poppins', sans-serif;
}
.footer-content {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: auto;
}
.footer-section { flex: 1; min-width: 240px; padding-top: 1rem; border-top: 2px solid #ccc; }
.footer-section h3 { font-size: 1.15rem; margin-bottom: 1rem; font-weight: 600; color: var(--ink); }
.footer-section p,
.footer-section li { font-size: 0.95rem; color: #333; margin: 0.5rem 0; }
.footer-section a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: #0056b3; text-decoration: underline; }
.footer-section ul { list-style: none; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icon { font-size: 1.4rem; color: #333; transition: color 0.3s ease, transform 0.3s ease; }
.social-icon:hover { color: #007bff; transform: translateY(-3px); }
.footer-bottom { margin-top: 2rem; text-align: center; color: var(--ink-muted); font-size: 0.9rem; }
.footer-bottom .divider { height: 1px; background: var(--border); margin-bottom: 1rem; }

@media (max-width: 768px) {
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .social-icons   { justify-content: center; }
}

/* ── 9. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-section    { padding: 3.5rem 1.25rem 4rem; }
  .contact-container  { grid-template-columns: 1fr; }
  .contact-form,
  .contact-info       { padding: 1.75rem; }
  .cta-button         { width: 100%; text-align: center; align-self: stretch; }
}

@media (max-width: 480px) {
  .contact-section   { padding: 2.5rem 1rem 3.5rem; }
  .contact-form,
  .contact-info      { padding: 1.4rem; }
  .contact-form h2,
  .contact-info h2   { font-size: 1.3rem; }
}

/* ── 10. ACCESSIBILITY ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}