/*
 * Contact Page Template — Samanvi Technologies
 * Paired with: page-templates/template-contact.php
 */

/* ── wd-ai-visual orbital (self-contained; home.css not loaded here) ── */
.contact-hero-inner .wd-ai-visual {
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.contact-hero-inner .wd-ai-visual circle {
  fill: none; stroke: #00a896; stroke-width: 1; opacity: 0.35;
  transform-origin: center;
  animation: wdOrbit 18s linear infinite;
}
.contact-hero-inner .wd-ai-visual circle:nth-child(2) { animation-duration: 24s; animation-direction: reverse; }
.contact-hero-inner .wd-ai-visual circle:nth-child(3) { animation-duration: 30s; }
.contact-hero-inner .wd-ai-mark {
  opacity: 0.95;
  filter: drop-shadow(0 0 14px rgba(0,168,150,0.55));
  transform-box: view-box; transform-origin: 140px 140px;
  animation: wdMarkBreath 4.5s ease-in-out infinite;
}
.contact-hero-inner .wd-ai-visual .node {
  fill: #5ee0c4; stroke: none;
  transform-box: view-box; transform-origin: 140px 140px;
  animation: wdNodeOrbitOuter 22s linear infinite, wdNodeBlink 3s ease-in-out infinite;
}
.contact-hero-inner .wd-ai-visual .node:nth-child(6) { animation: wdNodeOrbitMiddle 18s linear infinite reverse, wdNodeBlink 3s ease-in-out 0.5s infinite; }
.contact-hero-inner .wd-ai-visual .node:nth-child(7) { animation: wdNodeOrbitMiddle 18s linear infinite reverse, wdNodeBlink 3s ease-in-out 1s infinite; }
.contact-hero-inner .wd-ai-visual .node:nth-child(8) { animation: wdNodeOrbitMiddle 18s linear infinite reverse, wdNodeBlink 3s ease-in-out 1.5s infinite; }
@keyframes wdOrbit            { to { transform: rotate(360deg); } }
@keyframes wdNodeOrbitOuter   { to { transform: rotate(360deg); } }
@keyframes wdNodeOrbitMiddle  { to { transform: rotate(360deg); } }
@keyframes wdMarkBreath { 0%,100%{transform:scale(1);opacity:.95} 50%{transform:scale(1.06);opacity:1} }
@keyframes wdNodeBlink  { 0%,100%{opacity:.4;r:2}                50%{opacity:1;r:3.5}              }

/* ════════════════════════════════
   GENERATEPRESS OVERRIDES
════════════════════════════════ */
body.page-template-page-templates-template-contact-php .site-content,
body.page-template-page-templates-template-contact-php .site-inner,
body.page-template-page-templates-template-contact-php #primary,
body.page-template-page-templates-template-contact-php .site-main,
body.page-template-page-templates-template-contact-php article,
body.page-template-page-templates-template-contact-php .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-template-page-templates-template-contact-php .entry-header,
body.page-template-page-templates-template-contact-php .entry-title,
body.page-template-page-templates-template-contact-php .entry-content,
body.page-template-page-templates-template-contact-php .post-image,
body.page-template-page-templates-template-contact-php .featured-image,
body.page-template-page-templates-template-contact-php .generate-featured-image,
body.page-template-page-templates-template-contact-php .generate-page-header,
body.page-template-page-templates-template-contact-php .entry-footer {
  display: none !important;
}

body.page-template-page-templates-template-contact-php #contact-page-wrapper {
  display: block !important;
  width: 100%;
  overflow-x: hidden;
}

/* ════════════════════════════════
   CSS VARIABLES
════════════════════════════════ */
:root {
  --black:       #091628;
  --off-black:   #0d2040;
  --white:       #ffffff;
  --off-white:   #edf5f8;
  --teal:        #00A896;
  --teal-dark:   #028090;
  --blue:        #1f4e8a;
  --blue-light:  rgba(31,78,138,0.08);
  --blue-border: rgba(31,78,138,0.22);
  --muted:       #6fa3c0;
}

/* ════════════════════════════════
   PAGE HERO
════════════════════════════════ */
.contact-hero {
  min-height: 52vh;
  background: linear-gradient(145deg, #091628 0%, #1f4e8a 55%, #091628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 5rem 5rem;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(31,78,138,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.contact-hero-inner { position: relative; z-index: 2; }

.contact-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.contact-hero-eyebrow::before,
.contact-hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--teal);
  opacity: 0.5;
}

.contact-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.contact-hero h1 span { color: var(--teal); }

.contact-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ════════════════════════════════
   MAIN CONTACT SECTION
════════════════════════════════ */
.contact-main {
  background: var(--off-white);
  padding: 5rem 5rem 7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Chat trigger card */
.contact-cta-card {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  border-radius: 16px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue), var(--teal));
}

.cta-card-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2d6abf);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 32px rgba(31,78,138,0.3);
}
.cta-card-icon svg { color: #fff; }

.contact-cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contact-cta-card h2 span { color: var(--blue); }

.contact-cta-card p {
  font-size: 0.95rem;
  color: #4a6a82;
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 2.5rem;
}

/* Chat button */
.btn-open-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.1rem 2.8rem;
  background: var(--teal);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 8px 28px rgba(0,168,150,0.3);
  width: 100%;
  max-width: 340px;
}
.btn-open-chat:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,168,150,0.4);
}

.btn-chat-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.btn-chat-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: 360px;
  height: 100%;
  border-radius: 6px;
  border: 2px solid rgba(0,168,150,0.25);
  animation: chat-ring 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes chat-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

.chat-open-note {
  font-size: 0.78rem;
  color: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.chat-open-note span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.contact-cta-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: rgba(0,0,0,0.2);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-cta-divider::before,
.contact-cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(31,78,138,0.12);
}

.alt-contact-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.alt-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--blue-border);
  border-radius: 4px;
  background: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.alt-contact-btn:hover {
  background: var(--blue-light);
  border-color: rgba(31,78,138,0.45);
  transform: translateY(-1px);
}
.alt-contact-btn svg { flex-shrink: 0; }

/* Info panel */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--teal);
}

.info-panel-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.info-panel-sub {
  font-size: 0.92rem;
  color: #4a6a82;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.contact-detail-card {
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-detail-card:hover {
  box-shadow: 0 6px 24px rgba(31,78,138,0.1);
  transform: translateY(-2px);
}
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-detail-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-detail-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}
.contact-detail-value a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-detail-value a:hover { color: var(--teal); }
.contact-detail-note {
  font-size: 0.78rem;
  color: #7a9ab2;
  margin-top: 0.2rem;
}

.response-promise {
  background: linear-gradient(135deg, #091628, #1f4e8a);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.25rem;
}
.response-promise-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(0,168,150,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.response-promise-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}
.response-promise-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
  font-family: 'Inter', sans-serif;
}

/* ════════════════════════════════
   REACH SECTION
════════════════════════════════ */
.reach-section {
  background: var(--white);
  padding: 5rem 5rem;
  border-top: 1px solid rgba(31,78,138,0.08);
}
.reach-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.reach-header .section-eyebrow { justify-content: center; }
.reach-header .section-eyebrow::before { display: none; }
.reach-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1.15;
}
.reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.reach-card {
  border: 1.5px solid var(--blue-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--off-white);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.reach-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.reach-card:hover {
  border-color: rgba(31,78,138,0.4);
  box-shadow: 0 10px 32px rgba(31,78,138,0.1);
  transform: translateY(-4px);
}
.reach-card:hover::after { transform: scaleX(1); }

.reach-card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 1.25rem;
  transition: all 0.25s;
}
.reach-card:hover .reach-card-icon {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31,78,138,0.3);
}
.reach-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.reach-card-value {
  font-size: 0.9rem;
  color: #4a6a82;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}
.reach-card-value a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.reach-card-value a:hover { color: var(--teal); }
.reach-card-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ════════════════════════════════
   FAQ SECTION
════════════════════════════════ */
.faq-section {
  background: var(--off-white);
  padding: 5rem 5rem;
}
.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-header .section-eyebrow { justify-content: center; }
.faq-header .section-eyebrow::before { display: none; }
.faq-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(31,78,138,0.1); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.faq-item.open .faq-question .faq-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
  font-size: 0.92rem;
  color: #4a6a82;
  line-height: 1.85;
}
.faq-item.open .faq-answer { display: block; }

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #091628 0%, #1f4e8a 45%, #028090 100%);
  padding: 9rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: 'SAMANVI';
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22vw;
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: -5px;
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,168,150,0.8);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.cta-eyebrow::before, .cta-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: rgba(0,168,150,0.5);
}
.cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.cta-headline span { color: var(--teal); }
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  margin: 0 auto 3.5rem;
  max-width: 420px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  border: 1px solid var(--teal);
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); transform: translateY(-2px); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-main  { padding: 4rem 2.5rem 5rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .reach-section, .faq-section { padding: 4rem 2.5rem; }
  .reach-grid    { grid-template-columns: 1fr; gap: 1rem; }
  .cta-section   { padding: 6rem 2.5rem; }
}
@media (max-width: 640px) {
  .contact-hero     { padding: 8rem 1.5rem 4rem; }
  .contact-hero h1  { letter-spacing: -1px; }
  .contact-cta-card { padding: 2rem 1.5rem; }
  .alt-contact-row  { flex-direction: column; align-items: stretch; }
  .cta-buttons      { flex-direction: column; align-items: center; }
  .reach-section, .faq-section { padding: 3.5rem 1.5rem; }
}
