/*
Theme Name: Visa Pivot Immigration
Theme URI:  https://vpic.ca
Author:   Visa Pivot Immigration Canada
Description: RCIC-certified immigration consultants. Elementor & page builder compatible.
Version:   3.0.0
License:   GNU General Public License v2 or later
Text Domain: visa-pivot
Tags:    custom-logo, custom-menu, post-thumbnails, full-width-template
*/

/* ═══════════════════════════════════════════════════
  RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 font-family: 'DM Sans', sans-serif;
 font-size: 15px;
 line-height: 1.7;
 color: #002147;       /* Dark Navy — WCAG AA on white */
 background: #ffffff;
 -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }
ul  { list-style: none; margin: 0; padding: 0; }
p  { margin: 0 0 1em; }

/* ═══════════════════════════════════════════════════
  TYPOGRAPHY — WCAG AA Contrast
  Rule: Dark bg → #FFFFFF | Light bg → #002147 / #333333
═══════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
 font-family: 'Playfair Display', serif;
 font-weight: 800;
 line-height: 1.2;
 margin: 0 0 .75em;
 color: #002147;       /* Dark Navy on light backgrounds */
}
/* On dark backgrounds — force white */
.section-dark h1, .section-dark h2, .section-dark h3,
.cta-section h1, .cta-section h2, .cta-section h3,
.hero h1, .hero h2,
.msf-section h1, .msf-section h2 { color: #ffffff; }

/* ═══════════════════════════════════════════════════
  LOGO — Circular, transparent background
  File: assets/images/logo.png (200×200 transparent PNG)
  Display: 70×70 via CSS, auto-set via WP Customizer
═══════════════════════════════════════════════════ */
.custom-logo-link {
 display: inline-flex;
 align-items: center;
 text-decoration: none;
 flex-shrink: 0;
}
.custom-logo-link img,
.custom-logo,
a.logo .logo-img,
.logo-img {
 display: block;
 height: 76px;
 width: 76px;
 border-radius: 0;      /* PNG already circular — no CSS clip needed */
 object-fit: contain;
 object-position: center;
 background: transparent;
 filter: drop-shadow(0 2px 8px rgba(0,0,0,.28));
 flex-shrink: 0;
 transition: filter .2s, transform .2s;
}
a.logo:hover .logo-img,
a.logo:hover .custom-logo-link img {
 filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
 transform: scale(1.04);
}
a.logo {
 display: inline-flex;
 align-items: center;
 text-decoration: none;
 flex-shrink: 0;
}
/* Mobile: scale down */
@media (max-width: 768px) {
 .custom-logo-link img, .custom-logo, a.logo .logo-img, .logo-img {
  height: 58px !important;
  width: 58px !important;
 }
}
@media (max-width: 480px) {
 .custom-logo-link img, .custom-logo, a.logo .logo-img, .logo-img {
  height: 50px !important;
  width: 50px !important;
 }
}

/* ═══════════════════════════════════════════════════
  NAVIGATION — Hover-triggered dropdown
═══════════════════════════════════════════════════ */
.dd-wrap { position: relative; }
.dd-menu {
 display: none;
 position: absolute;
 top: 100%;
 left: 50%;
 transform: translateX(-50%);
 width: 270px;
 background: rgba(13,33,64,.98);
 backdrop-filter: blur(16px);
 border: 1px solid rgba(57,159,216,.2);
 border-top: 3px solid #399fd8;
 border-radius: 0 0 14px 14px;
 padding: 8px 8px 12px;
 z-index: 9000;
 box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.dd-wrap:hover .dd-menu,
.dd-wrap.open .dd-menu { display: block; }
.dd-menu a {
 display: flex; align-items: center; gap: 8px; padding: 10px 14px;
 font-size: 13px; color: rgba(255,255,255,.7); border-radius: 8px;
 transition: all .2s;
}
.dd-menu a:hover { color: #fff; background: rgba(57,159,216,.12); }

/* Nav Assessment sticky red button */
.nav-assessment {
 background: #fc1a19 !important;
 color: #ffffff !important;
 font-weight: 700 !important;
 text-transform: uppercase;
 letter-spacing: .5px;
 border-radius: 8px;
 white-space: nowrap;
 flex-shrink: 0;
}
.nav-assessment:hover {
 background: #00bf63 !important;
 opacity: 1;
}

/* ═══════════════════════════════════════════════════
  BUTTONS — Red/Green CTA system
  ✓ #fc1a19 → #00bf63 on hover (all interactive elements)
═══════════════════════════════════════════════════ */
.btn { 
 display: inline-flex; align-items: center; justify-content: center;
 gap: 7px; border-radius: 10px; font-family: 'DM Sans', sans-serif;
 font-weight: 600; text-decoration: none; transition: all .25s;
 cursor: pointer; border: none; line-height: 1;
 white-space: nowrap;
}
.btn-primary {
 background: #fc1a19;
 color: #ffffff !important;
 font-weight: 700;
}
.btn-primary:hover {
 background: #00bf63;     /* RED → GREEN transition */
 color: #ffffff !important;
 transform: translateY(-2px);
 box-shadow: 0 8px 28px rgba(0,191,99,.35);
 opacity: 1;
}
.btn-green {
 background: #00bf63 !important;
 color: #ffffff !important;
 font-weight: 700;
}
.btn-green:hover {
 background: #009e52 !important;
 transform: translateY(-2px);
 opacity: 1;
}
.btn-white {
 background: #ffffff;
 color: #002147 !important;
 font-weight: 600;
}
.btn-white:hover {
 background: #f5f5f5;
 transform: translateY(-1px);
 opacity: 1;
}
.btn-outline {
 background: transparent;
 border: 2px solid currentColor;
}
.btn-outline:hover {
 background: rgba(57,159,216,.08);
 border-color: #399fd8;
 color: #399fd8;
 opacity: 1;
}
.btn-sm { font-size: 13px;  padding: 9px 18px; }
.btn-md { font-size: 14px;  padding: 12px 24px; }
.btn-lg { font-size: 15px;  padding: 14px 30px; }
.btn-xl { font-size: 15.5px; padding: 17px 40px; }

/* ═══════════════════════════════════════════════════
  COLOR CONTRAST RULES
  WCAG AA: contrast ratio ≥ 4.5:1
═══════════════════════════════════════════════════ */

/* Consultant credentials — DARK GREY on light card bg ✓ */
.c-cred {
 display: flex;
 align-items: center;
 gap: 8px;
 font-size: 13px;
 font-weight: 600;
 color: #333333 !important;  /* Dark charcoal — visible on #f0f4f8 */
 background: #f0f4f8;
 border: 1px solid rgba(0,0,0,.10);
 padding: 9px 14px;
 border-radius: 9px;
}
.c-cred strong { color: #002147 !important; font-weight: 800; }
.c-cred span  { font-size: 16px; flex-shrink: 0; }

/* Footer brand description — Light Silver on dark bg ✓ */
.f-brand {
 color: #D3D3D3 !important;  /* Light Silver — visible on dark navy */
 font-size: 13.5px;
 line-height: 1.82;
 margin: 16px 0 12px;
 max-width: 280px;
}

/* Footer links — visible on dark bg */
footer a { color: rgba(255,255,255,.65); }
footer a:hover { color: #ffffff; opacity: 1; }

/* ═══════════════════════════════════════════════════
  WHATSAPP FLOATING WIDGET
  Positioned: right side, 160px from bottom
  Clear of: sticky CTA bar, scrollbar, footer links
═══════════════════════════════════════════════════ */
#wa-widget {
 position: fixed;
 bottom: 160px;        /* Clears 70px sticky bar + 90px margin */
 right: 28px;         /* Clear of scrollbar (16px) */
 z-index: 9000;
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 gap: 12px;
}
.wa-fab {
 width: 58px; height: 58px;
 border-radius: 50%;
 background: linear-gradient(135deg, #25d366, #128c3f);
 display: flex; align-items: center; justify-content: center;
 box-shadow: 0 6px 28px rgba(37,211,102,.45);
 cursor: pointer; border: none;
 transition: transform .2s, box-shadow .2s;
}
.wa-fab:hover {
 transform: scale(1.1);
 box-shadow: 0 10px 36px rgba(37,211,102,.55);
}
@media (max-width: 768px) {
 #wa-widget { bottom: 140px; right: 16px; }
 .wa-fab  { width: 50px; height: 50px; }
}
@media (max-width: 480px) {
 #wa-widget { bottom: 120px; right: 12px; }
 .wa-bubble-card { max-width: calc(100vw - 32px); }
}

/* ═══════════════════════════════════════════════════
  FOOTER WHATSAPP BUTTON — Full hit-box
═══════════════════════════════════════════════════ */
.f-wa-btn {
 display: block;
 width: fit-content;
 padding: 12px 20px;
 margin-top: 14px;
 background: #25d366;
 color: #ffffff !important;
 border-radius: 10px;
 font-size: 13.5px;
 font-weight: 700;
 text-decoration: none;
 transition: background .2s, transform .15s;
 cursor: pointer;
 white-space: nowrap;
 line-height: 1.3;
}
.f-wa-btn:hover { background: #1da855; transform: translateY(-2px); opacity: 1; }

/* ═══════════════════════════════════════════════════
  SEARCH FORM (searchform.php)
═══════════════════════════════════════════════════ */
.vp-search-form {
 display: flex; align-items: stretch;
 background: #ffffff;
 border: 2px solid #e4eaf2;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: 0 2px 14px rgba(18,38,72,.07);
 transition: border-color .2s, box-shadow .2s;
 width: 100%;
}
.vp-search-form:focus-within {
 border-color: #399fd8;
 box-shadow: 0 0 0 3px rgba(57,159,216,.12);
}
.vp-search-input {
 flex: 1; border: none; outline: none;
 padding: 14px 18px;
 font-family: 'DM Sans', sans-serif; font-size: 15px;
 color: #002147;       /* Dark Navy on white bg */
 background: transparent; min-width: 0;
 -webkit-appearance: none;
}
.vp-search-input::placeholder     { color: #8a9ab5; }
.vp-search-input::-webkit-search-cancel-button { display: none; }
.vp-search-btn {
 display: inline-flex; align-items: center; gap: 7px;
 background: #fc1a19; border: none; color: #ffffff;
 padding: 14px 22px; font-family: 'DM Sans', sans-serif;
 font-size: 13.5px; font-weight: 700; cursor: pointer;
 transition: background .2s; flex-shrink: 0;
 text-transform: uppercase; white-space: nowrap;
}
.vp-search-btn:hover { background: #00bf63; }

/* ═══════════════════════════════════════════════════
  CIRCULAR NAVIGATION CHIPS (service page Next Steps)
═══════════════════════════════════════════════════ */
.ns-related-link {
 display: inline-flex; align-items: center; gap: 7px;
 background: #ffffff; border: 1.5px solid #e4eaf2;
 border-radius: 10px; padding: 10px 18px;
 font-size: 13.5px; font-weight: 600; color: #002147;
 text-decoration: none;
 transition: border-color .2s, background .2s, transform .2s;
}
.ns-related-link:hover {
 border-color: #399fd8; background: rgba(57,159,216,.06);
 transform: translateY(-2px); opacity: 1;
}

/* ═══════════════════════════════════════════════════
  PAGE BUILDER / ELEMENTOR COMPATIBILITY
═══════════════════════════════════════════════════ */
.elementor-section { max-width: 100%; }
.vp-page-content, .vp-single-content {
 padding: 100px 5% 80px; max-width: 1200px; margin: 0 auto;
}
body.elementor-page .vp-page-content,
body.elementor-page .vp-single-content { padding: 0; max-width: 100%; }

/* ═══════════════════════════════════════════════════
  ACCESSIBILITY
═══════════════════════════════════════════════════ */
.screen-reader-text {
 position: absolute; width: 1px; height: 1px;
 overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.screen-reader-text:focus {
 clip: auto; width: auto; height: auto;
 background: #eeeeee; color: #002147;
 padding: 12px 20px; top: 5px; left: 5px; z-index: 100000;
 display: block; font-size: 14px; font-weight: 700;
}

/* ═══════════════════════════════════════════════════
  MOBILE RESPONSIVE — Full breakpoint coverage
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
 .footer-top { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
 .svc-grid  { grid-template-columns: 1fr 1fr !important; }
 .grid-4   { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 900px) {
 .about-hero-grid { grid-template-columns: 1fr !important; }
 .consultant-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
 .contact-wrap   { grid-template-columns: 1fr !important; gap: 32px !important; }
 .blog-grid-3, .news-grid { grid-template-columns: 1fr 1fr !important; }
 .subtype-grid-3  { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
 .nav-links, .nav-r .btn-white { display: none !important; }
 .nav-assessment      { display: none !important; }
 .burger            { display: flex !important; }
 .hero-body {
  padding: 100px 5% 60px !important; margin-left: 0 !important;
  max-width: 100% !important; text-align: center;
 }
 .hero-actions { justify-content: center; flex-wrap: wrap; gap: 12px; }
 .hero-stats  {
  position: static !important; width: 100% !important;
  margin: 24px auto 0 !important; flex-wrap: wrap;
  justify-content: center; padding: 0 5%;
 }
 .section  { padding: 56px 5% !important; }
 .cta-section { padding: 56px 5% !important; }
 .why-grid { grid-template-columns: 1fr !important; }
 .svc-grid { grid-template-columns: 1fr !important; }
 .msf-card { padding: 32px 20px !important; }
 .footer-top { grid-template-columns: 1fr !important; gap: 32px !important; }
 .footer-top > div:first-child { grid-column: 1 / -1; }
 .sticky-cta-left { display: none !important; }
 #sticky-cta { padding: 10px 4% !important; }
 .page-hero { padding: 110px 5% 56px !important; text-align: center; }
 .page-hero h1 { font-size: clamp(24px,6vw,36px) !important; }
}
@media (max-width: 600px) {
 .blog-grid-3, .news-grid, .subtype-grid-3 { grid-template-columns: 1fr !important; }
 .form-row-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
 .vp-h1 { font-size: clamp(26px,8vw,36px) !important; }
 .vp-h2 { font-size: clamp(20px,6.5vw,30px) !important; }
 .btn-xl { font-size: 14px !important; padding: 14px 24px !important; }
 .cta-buttons {
  flex-direction: column !important; align-items: stretch !important;
  gap: 12px !important;
 }
 .cta-buttons .btn { width: 100% !important; justify-content: center !important; }
 .guarantee-strip { flex-wrap: wrap !important; gap: 8px !important; }
 .guarantee-item { flex: 1 1 calc(50% - 4px) !important; font-size: 12px !important; }
 .footer-bot { flex-direction: column !important; gap: 12px !important; text-align: center; }
 .stat-pill  { min-width: calc(50% - 6px); }
 .msf-options { grid-template-columns: 1fr 1fr !important; }
}

/* ═══════════════════════════════════════════════════
  PRINT
═══════════════════════════════════════════════════ */
@media print {
 #wa-widget, .sticky-cta, #sticky-bar, nav { display: none !important; }
 a::after { content: " (" attr(href) ")"; font-size: 11px; color: #666; }
}

/* ═══════════════════════════════════════════════════════════════════
  MOBILE RESPONSIVE SYSTEM — appended to style.css
  These rules supplement the self-contained page templates.
  For Elementor / page builder compatibility.
═══════════════════════════════════════════════════════════════════ */
@media (max-width:1100px) {
 .footer-top { grid-template-columns:1fr 1fr !important; gap:40px !important; }
 .svc-grid  { grid-template-columns:1fr 1fr !important; }
}
@media (max-width:900px) {
 .about-hero-grid, .consultant-grid { grid-template-columns:1fr !important; }
 .contact-wrap { grid-template-columns:1fr !important; gap:32px !important; }
 .blog-grid-3, .news-grid { grid-template-columns:1fr 1fr !important; }
}
@media (max-width:768px) {
 .nav-links, .nav-r .btn-white, .nav-r .nav-assessment { display:none !important; }
 .burger  { display:flex !important; }
 #nav    { height:72px; }
 .hero-body { padding:88px 5% 60px !important; margin-left:0 !important; max-width:100% !important; text-align:center; }
 .hero-bg  { background-position:center center !important; background-attachment:scroll !important; }
 .hero-actions { flex-direction:column; align-items:stretch; max-width:340px; margin:0 auto 24px; gap:10px !important; }
 .hero-actions .btn { width:100% !important; justify-content:center; }
 .hero-stats { position:static !important; width:100% !important; flex-wrap:wrap; justify-content:center; }
 .stat-pill { flex:1; min-width:calc(50% - 4px); }
 .svc-grid  { grid-template-columns:1fr !important; }
 .section, .section-bg { padding:48px 5% !important; }
 .cta-section { padding:52px 5% !important; }
 .cta-buttons { flex-direction:column !important; align-items:stretch !important; gap:12px !important; }
 .cta-buttons .btn { width:100% !important; justify-content:center !important; }
 .footer-top { grid-template-columns:1fr !important; gap:28px !important; text-align:center; }
 .footer-bot { flex-direction:column !important; gap:10px !important; text-align:center; }
 .why-grid, .process-timeline { grid-template-columns:1fr !important; }
 .msf-card  { padding:28px 18px; border-radius:16px; }
 .msf-fields { grid-template-columns:1fr !important; }
 .form-row-2, .svc-form-row { grid-template-columns:1fr !important; }
 #sticky-cta { padding:10px 4% !important; }
 .sticky-cta-left { display:none !important; }
 .sticky-cta-right { width:100% !important; justify-content:center !important; gap:8px !important; }
 .page-hero { padding:100px 5% 52px !important; text-align:center !important; }
 #wa-widget { bottom:130px; right:14px; }
 input[type="text"], input[type="email"], input[type="tel"],
 input[type="search"], select, textarea { font-size:16px !important; }
 .btn, a.btn, button.btn { min-height:44px; }
}
@media (max-width:480px) {
 .custom-logo-link img, .custom-logo, a.logo .logo-img, .logo-img { height:58px !important; width:58px !important; }
 .vp-h1 { font-size:clamp(24px,8vw,32px) !important; }
 .vp-h2 { font-size:clamp(20px,7vw,28px) !important; }
 .btn-xl { font-size:13.5px !important; padding:13px 20px !important; }
 .blog-grid-3, .news-grid { grid-template-columns:1fr !important; }
 #wa-widget { bottom:115px; right:10px; }
}
@media (prefers-reduced-motion:reduce) {
 *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
 html { scroll-behavior:auto; }
}

/* ═══════════════════════════════════════════════════
  FIX: Phone number — Pure White (#FFFFFF) across
  all pages, all scroll states (normal + stuck nav)
═══════════════════════════════════════════════════ */
#nav .phone-number,
#nav a[href^="tel:"],
.nav-top a[href^="tel:"],
.header-top a[href^="tel:"],
nav a[href^="tel:"] {
 color: #FFFFFF !important;
 opacity: 1 !important;
}
#nav.stuck .phone-number,
#nav.stuck a[href^="tel:"],
.nav-top a[href^="tel:"],
.header-top a[href^="tel:"] {
 color: #FFFFFF !important;
 opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════
  HERO: Parliament Hill background — mobile centering
  Keeps landmark buildings visible on small screens
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
 .hero-bg {
  background-position: center center !important;
  background-attachment: scroll !important;
 }
}

/* ═══════════════════════════════════════════════════
  RCIC-IRB Badge Overlay — About page
═══════════════════════════════════════════════════ */
.c-rcic-overlay {
 position: absolute;
 bottom: -18px;
 left: -14px;
 background: #fff;
 border-radius: 14px;
 padding: 6px;
 box-shadow: 0 8px 28px rgba(0,0,0,.22);
 max-width: 140px;
}
.c-rcic-overlay img {
 width: 100%;
 height: auto;
 display: block;
 border-radius: 8px;
}
@media (max-width: 768px) {
 .c-rcic-overlay {
  max-width: 100px;
  bottom: -12px;
  left: -8px;
 }
}
