/* =============================================
   CONTACT.CSS — APEX MENTORS
   Aesthetic: Warm, Fresh, Human / Form-Focused
   ============================================= */

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

:root {
  --warm: #FBF8F4;
  --warm2: #F3EEE6;
  --ink: #151515;
  --mid: #5E5E5E;
  --muted: #9A9A9A;
  --border: #E0D9CF;
  --accent: #1A56DB;
  --accent2: #1140B0;
  --green: #059669;
  --white: #FFFFFF;
  --font-display: 'Fraunces', serif;
  --font-body: 'Cabinet Grotesk', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--warm); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.4rem 0; background: rgba(251,248,244,0.92); backdrop-filter: blur(20px); transition: all 0.3s; }
.nav.scrolled { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 0.15rem; }
.logo-apex { font-family: var(--font-body); font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: 0.06em; }
.logo-mentors { font-family: var(--font-body); font-size: 0.6rem; font-weight: 500; color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 2rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: 0.85rem; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 1rem; padding: 0.6rem 1.4rem; background: var(--accent); color: var(--white); text-decoration: none; font-size: 0.8rem; font-weight: 700; border-radius: 100px; transition: background 0.3s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent2); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* CONTACT HERO */
.contact-hero { min-height: 100vh; padding: 8rem 2rem 5rem; position: relative; overflow: hidden; display: flex; align-items: center; }
.ch-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ch-shape { position: absolute; border-radius: 50%; }
.s1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(26,86,219,0.06) 0%, transparent 70%); top: -200px; right: -100px; animation: floatShape 10s ease-in-out infinite; }
.s2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(5,150,105,0.05) 0%, transparent 70%); bottom: -100px; left: -100px; animation: floatShape 8s ease-in-out infinite reverse; }
@keyframes floatShape { 0%,100%{transform:scale(1) translate(0,0)} 50%{transform:scale(1.05) translate(15px,-15px)} }
.ch-dots {
  position: absolute; width: 200px; height: 200px;
  background-image: radial-gradient(circle, rgba(26,86,219,0.12) 1px, transparent 1px);
  background-size: 20px 20px; top: 30%; right: 50%;
}
.ch-inner { max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: flex-start; position: relative; z-index: 2; }
.ch-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 1.5rem; }
.ch-text h1 { font-family: var(--font-display); font-size: clamp(3rem, 5.5vw, 5rem); font-weight: 700; color: var(--ink); line-height: 1.05; margin-bottom: 1.75rem; }
.ch-text h1 em { color: var(--accent); font-style: italic; }
.ch-text p { font-size: 1.05rem; line-height: 1.8; color: var(--mid); margin-bottom: 2.5rem; }
.ch-trust { display: flex; flex-direction: column; gap: 0.75rem; }
.ct-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.ct-item i { color: var(--green); font-size: 1rem; }

/* FORM CARD */
.ch-form-wrap { position: relative; }
.form-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); box-shadow: 0 24px 80px rgba(0,0,0,0.08);
  overflow: hidden; animation: cardRise 0.8s var(--ease) 0.4s both;
}
@keyframes cardRise { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.form-header { background: var(--accent); padding: 2rem 2.5rem; }
.form-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.form-header p { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.form-body { padding: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink); letter-spacing: 0.03em; }
.field label span { color: var(--accent); }
.field input, .field textarea {
  padding: 0.85rem 1rem; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
  background: var(--warm); outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
  background: var(--warm); outline: none; appearance: none; cursor: pointer;
  transition: border-color 0.3s;
}
.select-wrap select:focus { border-color: var(--accent); }
.select-wrap i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.8rem; pointer-events: none; }
.submit-btn {
  width: 100%; padding: 1rem; background: var(--accent); color: var(--white);
  border: none; border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: all 0.3s; display: flex; align-items: center;
  justify-content: center; gap: 0.5rem; margin-top: 0.5rem;
}
.submit-btn:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(26,86,219,0.3); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; justify-content: center; }
.form-note i { color: var(--green); }

/* SUCCESS CARD */
.success-card {
  background: var(--white); border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.08); padding: 3rem 2.5rem; text-align: center;
  animation: cardRise 0.6s var(--ease) both;
}
.sc-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(5,150,105,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--green); }
.success-card h2 { font-family: var(--font-display); font-size: 2rem; color: var(--ink); margin-bottom: 0.75rem; }
.success-card > p { font-size: 0.95rem; color: var(--mid); margin-bottom: 2rem; line-height: 1.75; }
.sc-next { background: var(--warm); border-radius: 8px; padding: 1.5rem; text-align: left; margin-bottom: 2rem; }
.sc-next strong { font-size: 0.85rem; color: var(--ink); display: block; margin-bottom: 0.75rem; }
.sc-next ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.sc-next li { font-size: 0.88rem; color: var(--mid); line-height: 1.6; }
.sc-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: var(--white); text-decoration: none; padding: 0.85rem 2rem; font-size: 0.9rem; font-weight: 700; border-radius: 8px; transition: all 0.3s; }
.sc-btn:hover { background: var(--accent2); }

/* INFO SECTION */
.info-section { padding: 5rem 2rem; background: var(--warm2); }
.info-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-card {
  background: var(--white); border-radius: 12px; padding: 2.5rem;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.07); }
.ic-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(26,86,219,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent); margin-bottom: 1.5rem; }
.info-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.info-card p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }
.ic-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--accent); text-decoration: none; font-weight: 600; margin-top: 1rem; transition: gap 0.3s; }
.ic-link:hover { gap: 0.7rem; }
.hours-table { display: flex; flex-direction: column; gap: 0.75rem; }
.ht-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.ht-row:last-child { border-bottom: none; padding-bottom: 0; }
.ht-row span { color: var(--mid); }
.ht-row strong { color: var(--ink); font-weight: 600; }
.ic-phone { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.3s; }
.ic-phone:hover { color: var(--accent2); }
.ic-email { font-size: 0.88rem; color: var(--accent); text-decoration: none; display: block; margin: 0.75rem 0 1.25rem; }
.ic-socials { display: flex; gap: 0.6rem; }
.ic-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--mid); font-size: 0.9rem; text-decoration: none; transition: all 0.3s; }
.ic-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* MAP */
.map-section { padding: 4rem 2rem; background: var(--warm2); }
.map-embed-wrap { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.map-placeholder { width: 100%; height: 260px; border-radius: 12px; overflow: hidden; }
.map-placeholder iframe { display: block; }
.map-directions-link { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: var(--white); text-decoration: none; padding: 0.7rem 1.5rem; font-size: 0.82rem; font-weight: 700; border-radius: 100px; transition: all 0.3s; }
.map-directions-link:hover { background: var(--accent2); transform: translateY(-1px); }

/* FAQ */
.faq-section { padding: 6rem 2rem; background: var(--white); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.section-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.faq-inner h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--ink); margin-bottom: 3rem; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer; gap: 1rem; font-family: var(--font-body);
  text-align: left;
}
.faq-q span { font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.faq-q i { flex-shrink: 0; color: var(--accent); transition: transform 0.3s; font-size: 0.9rem; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { font-size: 0.9rem; line-height: 1.8; color: var(--mid); padding-bottom: 1.5rem; }

/* FOOTER */
.footer { background: var(--ink); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-apex { color: var(--white); }
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.3); line-height: 1.7; margin-top: 0.75rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; text-decoration: none; transition: all 0.3s; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-links h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { text-decoration: none; font-size: 0.84rem; color: rgba(255,255,255,0.35); transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-contact h4 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-contact p { font-size: 0.83rem; color: rgba(255,255,255,0.35); margin-bottom: 0.7rem; display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5; }
.footer-contact i { color: var(--accent); width: 12px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.2); flex-wrap: wrap; gap: 1rem; }
.footer-bottom i { color: var(--accent); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ch-inner { grid-template-columns: 1fr; }
  .info-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--warm); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
