/* ============================================================
   CAREER GURU — CONTACT US PAGE STYLESHEET (css/contact.css)
   Preserves brand identity, typography, warm palette & spacing
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO / CONTACT INTRO SECTION
   ------------------------------------------------------------ */
.contact-hero-section {
  padding: 80px 0 64px 0;
  background: linear-gradient(180deg, #FAF7F5 0%, #F5F1EE 100%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(36, 27, 20, 0.06);
}

.contact-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.contact-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange2, #D8440D);
  margin-bottom: 16px;
}

.contact-hero-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.16;
  color: var(--ink, #241B14);
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}

.contact-hero-heading .text-orange {
  color: var(--orange2, #D8440D);
}

.contact-hero-sub {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--sub, #6B5D4E);
  max-width: 620px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   2. CONTACT INFORMATION CARDS (3-COLUMN ROW)
   ------------------------------------------------------------ */
.contact-cards-section {
  padding: 0 0 64px 0;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(36, 27, 20, 0.08);
  box-shadow: 0 12px 32px -8px rgba(36, 27, 20, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px -10px rgba(36, 27, 20, 0.16);
  border-color: rgba(216, 68, 13, 0.25);
}

.contact-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFEDD5;
  color: var(--orange2, #D8440D);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover .contact-icon-box {
  transform: scale(1.08);
  background: #FDE0C2;
}

.contact-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink, #241B14);
  margin: 0 0 10px 0;
}

.contact-card-val {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--charcoal, #3A2E22);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact-card-val:hover {
  color: var(--orange2, #D8440D);
}

.contact-card-sub {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--sub, #6B5D4E);
  margin-top: 8px;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   3. REACH OUT SECTION (IMAGE + FORM)
   ------------------------------------------------------------ */
.reach-out-section {
  padding: 40px 0 90px 0;
  background: #FFFFFF;
}

.reach-out-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: stretch;
}

/* Left: Image Container */
.reach-out-visual {
  position: relative;
  display: flex;
}

.reach-out-img-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream, #FBF2E6);
  border: 1px solid rgba(36, 27, 20, 0.08);
  box-shadow: 0 20px 48px -12px rgba(36, 27, 20, 0.14);
  display: flex;
  flex-direction: column;
}

.reach-out-img-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.reach-out-img-card:hover img {
  transform: scale(1.02);
}

.reach-out-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(180deg, rgba(36, 27, 20, 0) 0%, rgba(36, 27, 20, 0.85) 100%);
  color: #FFFFFF;
}

.reach-out-img-overlay h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #FFFFFF;
}

.reach-out-img-overlay p {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  margin: 0;
}

/* Right: Form Card */
.reach-out-form-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 44px 40px;
  border: 1px solid rgba(36, 27, 20, 0.09);
  box-shadow: 0 20px 48px -12px rgba(36, 27, 20, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 30px;
}

.form-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange2, #D8440D);
  margin-bottom: 8px;
  display: block;
}

.form-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--ink, #241B14);
  margin: 0 0 10px 0;
  line-height: 1.15;
}

.form-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.94rem;
  color: var(--sub, #6B5D4E);
  line-height: 1.55;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal, #3A2E22);
}

.form-group input,
.form-group textarea {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.96rem;
  color: var(--ink, #241B14);
  background: #FAF7F4;
  border: 1.5px solid rgba(36, 27, 20, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  background: #FFFFFF;
  border-color: var(--orange2, #D8440D);
  box-shadow: 0 0 0 4px rgba(216, 68, 13, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A39688;
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  background: linear-gradient(100deg, var(--orange1, #F6890F), var(--orange2, #D8440D));
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 16px 36px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(216, 68, 13, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(216, 68, 13, 0.75);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* ------------------------------------------------------------
   4. NEWSLETTER SECTION (BOTTOM GRADIENT)
   ------------------------------------------------------------ */
.contact-newsletter-section {
  padding: 72px 0 80px 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #4338CA 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.contact-newsletter-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.newsletter-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FDBA74;
  margin-bottom: 12px;
}

.newsletter-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 700;
  margin: 0 0 14px 0;
  line-height: 1.15;
  color: #FFFFFF;
}

.newsletter-sub {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 6px 6px 20px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
  background: linear-gradient(100deg, var(--orange1, #F6890F), var(--orange2, #D8440D));
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(216, 68, 13, 0.5);
}

.newsletter-note {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   5. ANIMATIONS & SCROLL REVEALS
   ------------------------------------------------------------ */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale-in {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   6. RESPONSIVE DESIGN
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reach-out-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reach-out-img-card img {
    min-height: 360px;
    max-height: 420px;
  }

  .reach-out-form-card {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .contact-hero-section {
    padding: 60px 0 48px 0;
  }

  .contact-cards-section {
    margin-top: -20px;
    padding-bottom: 48px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .newsletter-form {
    flex-direction: column;
    padding: 12px;
    border-radius: 20px;
    gap: 10px;
  }

  .newsletter-input {
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .newsletter-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-fade-up,
  .reveal-fade-right,
  .reveal-fade-left,
  .reveal-scale-in,
  .contact-card,
  .reach-out-img-card,
  .form-submit-btn,
  .newsletter-btn {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
