/*
Theme Name: YDI — You Deserve Immigration
Theme URI: https://youdeserveimmigration.com
Author: You Deserve Immigration
Description: Custom theme converted from the static You Deserve Immigration site. Carries the original design system, topbar, navigation and footer verbatim.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ydi
*/

:root {
  --navy: #0F2A3D; --navy-2: #163D57; --pine: #1F5B4A; --teal: #147D82; --gold: #B8863B;
  --paper: #FFFFFF; --mist: #F4F6F7; --line: #E1E5E8; --text: #1B2430; --text-soft: #5B6570;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', sans-serif; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display-serif { font-family: 'Newsreader', serif; font-weight: 550; letter-spacing: -0.01em; line-height: 1.15; color: var(--navy); }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content:""; width:18px; height:2px; background:var(--gold); display:inline-block; }
.text-soft { color: var(--text-soft); }
.lead-p { font-size: 17px; line-height: 1.7; color: var(--text-soft); }
.topbar { background: var(--navy); color: #A9BDCB; font-size: 12.5px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar-right { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.topbar a { color: #A9BDCB; text-decoration: none; transition: color .15s ease; }
.topbar a:hover { color: #fff; }
.topbar .contact-link { display: inline-flex; align-items: center; gap: 6px; }
.topbar .contact-link svg { width: 13px; height: 13px; }
.topbar .tdivider { width: 1px; height: 13px; background: rgba(255,255,255,0.18); display: inline-block; }
.topbar .social-row { display: flex; align-items: center; gap: 10px; }
.topbar .social-row a { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; opacity: .85; }
.topbar .social-row a:hover { opacity: 1; }
.topbar .social-row svg { width: 13px; height: 13px; }

.navbar { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: 0; padding-bottom: 0; box-shadow: 0 1px 0 rgba(15,42,61,0.03); }
.navbar .container { min-height: 86px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.navbar-brand { display: flex; align-items: center; padding: 0 !important; margin: 0 !important; order: 1; }
.navbar-brand img { height: 50px; width: auto; display: block; }
.nav-actions { order: 2; display: flex; align-items: center; gap: 14px; }
#mainNav { order: 3; width: 100%; }
@media (min-width: 1200px) {
  .navbar .container { flex-wrap: nowrap; }
  #mainNav { order: 2; width: auto; flex: 1 1 auto; }
  .nav-actions { order: 3; flex-shrink: 0; }
  .navbar-brand img { height: 46px; }
}
@media (min-width: 1400px) { .navbar-brand img { height: 54px; } }
@media (max-width: 575.98px) { .navbar-brand img { height: 44px; } }
/* --- accessibility: focus visibility + tap targets (audit fixes) --- */
:where(a, button, select, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
.navbar-nav .nav-link:focus-visible { background: var(--mist); }

/* WCAG 2.2 SC 2.5.8 — 24px minimum target, at every width not just touch */
.topbar .contact-link { padding: 6px 0; }
.topbar .social-row a { width: 32px; height: 32px; }
footer ul li a { display: inline-block; padding: 7px 0; }
footer ul li { margin-bottom: 2px; }
.footer-bottom .legal-links a { display: inline-block; padding: 6px 0; }
.footer-bottom { gap: 6px 12px; }

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/page-hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: .14;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
/* --- RCIC consultant profile: centred photo, details below --- */
.consultant-head { max-width: 620px; margin: 0 auto clamp(24px, 4vh, 44px); text-align: center; }
.consultant-head .eyebrow { justify-content: center; }
.consultant-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(28px, 4.5vh, 52px) clamp(22px, 4vw, 56px);
  text-align: center;
}
.consultant-photo {
  display: block;
  margin: 0 auto;
  width: clamp(170px, 20vw, 240px);
  height: auto;
  aspect-ratio: 3 / 3.5;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  /* white frame + hairline ring + shadow so the portrait reads against the panel */
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 38px -16px rgba(15, 42, 61, .38);
}
.consultant-name {
  font-size: clamp(22px, 1.4vw + 1vh, 28px);
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  color: var(--navy);
}
.consultant-role {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin: 8px 0 0;
}
.consultant-bio {
  max-width: 62ch;
  margin: clamp(14px, 2vh, 20px) auto 0;
  text-align: left;          /* centred long copy is hard to read */
  font-size: clamp(14.5px, .5vw + .35vh, 16px);
  line-height: 1.7;
  color: var(--text-soft);
}
@media (max-width: 575.98px) { .consultant-bio { text-align: left; } }

/* --- relative / viewport-based sizing (fluid across screen sizes) --- */
/* Buttons are anchors — Bootstrap underlines them by default */
.btn-gold, .btn-outline-brand, .btn-brand, .btn-gold-nav, .footer-cta-phone {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-gold:hover, .btn-outline-brand:hover, .btn-brand:hover, .btn-gold-nav:hover { text-decoration: none; }
.footer-cta-phone { display: inline-flex; }

:root {
  --chrome-h: 126px;            /* topbar + sticky navbar */
  --sp-section: clamp(40px, 6vh, 88px);
  --sp-section-sm: clamp(28px, 4.5vh, 64px);
}
@media (min-width: 1200px) { :root { --chrome-h: 132px; } }

/* Hero fills the first screen so the CTAs are always above the fold */
.hero { display: flex; align-items: center; }
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.4vh, 60px) 0;
  width: 100%;
}
.hero { min-height: calc(100vh - var(--chrome-h)); }
@supports (height: 100svh) { .hero { min-height: calc(100svh - var(--chrome-h)); } }
.hero { max-height: 900px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(10px, .8vw, 12px);
  letter-spacing: .08em; text-transform: uppercase; color: #CBD6DD;
  border: 1px solid rgba(255,255,255,0.25);
  padding: clamp(5px, .7vh, 7px) clamp(11px, 1vw, 15px);
  border-radius: 3px;
  margin-bottom: clamp(12px, 1.9vh, 26px);
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }

.hero-title {
  color: #fff;
  font-size: clamp(32px, 2.4vw + 1.2vh, 56px);
  line-height: 1.08;
  max-width: 17ch;
  margin: 0;
}
.hero-lead {
  color: #C3CDD4;
  max-width: 56ch;
  font-size: clamp(14.5px, .55vw + .45vh, 18px);
  line-height: 1.62;
  margin-top: clamp(10px, 1.6vh, 22px);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(16px, 2.5vh, 30px);
}
.hero-stats {
  display: flex; flex-wrap: wrap;
  margin-top: clamp(18px, 3vh, 52px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: clamp(14px, 2vh, 28px);
  gap: 0;
}
.hero-stat { padding-right: clamp(20px, 3vw, 40px); margin-right: clamp(20px, 3vw, 40px); border-right: 1px solid rgba(255,255,255,0.15); }
.hero-stat:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.hero-stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(20px, 1.2vw + .7vh, 30px);
  font-weight: 600; color: #fff; line-height: 1.1;
}
.hero-stat-label { font-size: clamp(10.5px, .75vw, 12px); color: #9DACB6; margin-top: 3px; }

/* Fluid section rhythm across every page */
section.py-5 { padding-top: var(--sp-section) !important; padding-bottom: var(--sp-section) !important; }
section.pb-5 { padding-bottom: var(--sp-section) !important; }
.page-hero { padding: clamp(38px, 6.5vh, 84px) 0; }
.page-hero h1 { font-size: clamp(28px, 2vw + 1vh, 46px); line-height: 1.12; }
.page-hero p { font-size: clamp(14.5px, .5vw + .35vh, 17px); }
.footer-main { padding-top: clamp(36px, 5.5vh, 56px) !important; }
.cta-band { padding: clamp(22px, 3.2vh, 40px) clamp(20px, 3vw, 44px); }

@media (max-width: 767.98px) {
  .hero { min-height: 0; max-height: none; }
  .hero-stat { padding-right: clamp(14px, 4vw, 26px); margin-right: clamp(14px, 4vw, 26px); }
}
/* --- mobile refinements --- */
@media (max-width: 767.98px) {
  .topbar { font-size: 12px; padding: 8px 0; }
  .topbar-right { width: 100%; margin-left: 0; justify-content: center; gap: 4px 16px; }
  .topbar .tdivider { display: none; }
  .topbar .contact-link { padding: 5px 0; }
  .topbar .social-row a { width: 30px; height: 30px; }
  /* g-5 gutters (48px) overflow a full-width .container by 12px per side on phones */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  footer ul li { margin-bottom: 2px; }
  footer ul li a { display: inline-block; padding: 7px 0; }
  .page-hero h1 { font-size: 30px; }
  .cta-band { text-align: center; justify-content: center !important; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
}

.navbar-nav { gap: 2px; }
.navbar-nav .nav-link { font-weight: 600; font-size: 13.8px; color: var(--navy) !important; padding: 10px 12px !important; border-radius: 6px; transition: background .15s ease; white-space: nowrap; }
.navbar-nav .nav-item.dropdown:hover .nav-link, .navbar-nav .nav-link:hover { background: var(--mist); }
.navbar-nav .dropdown-toggle::after { margin-left: 6px; vertical-align: 2px; opacity: .5; }
.navbar-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 44px -20px rgba(15,42,61,0.28); padding: 10px; margin-top: 6px; }
.dropdown-header-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding: 8px 12px 4px; }
.dropdown-item { font-size: 13.6px; border-radius: 6px; padding: 8px 12px; color: var(--text); }
.dropdown-item:hover { background: var(--mist); color: var(--pine); }
.mega-menu { width: min(860px, 92vw); max-height: 80vh; overflow-y: auto; padding: 20px; }
.mega-menu .mega-col { padding: 0 4px; }
@media (min-width: 768px) {
  .mega-menu .mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 22px; margin-left: -1px; }
}
.mega-menu .dropdown-header-label { padding-top: 0; }
.mega-menu .dropdown-item { white-space: normal; }

.cta-cluster { display: flex; align-items: center; gap: 14px; }
.topbar .contact-phone { font-family: 'IBM Plex Mono', monospace; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.topbar .contact-phone svg { color: var(--gold); }
.btn-gold-nav { background: var(--gold); color: #16110A; font-weight: 700; font-size: 13.5px; padding: 10px 20px; border-radius: 4px; border: 1px solid var(--gold); transition: all .2s ease; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-gold-nav:hover { background: #A5762F; color: #16110A; }
.mobile-book-btn { display: none; }
@media (max-width: 1199.98px) {
  .nav-actions .btn-gold-nav { display: none; }
  #mainNav .mobile-book-btn { display: block; width: 100%; text-align: center; margin-top: 14px; padding: 13px; }
}

.phone-inline { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; color: var(--text-soft); }
.btn-brand { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: 4px; border: 1px solid var(--navy); transition: all .2s ease; }
.btn-brand:hover { background: var(--navy-2); color: #fff; }
.btn-outline-brand { border: 1px solid rgba(255,255,255,0.5); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: 4px; background: transparent; transition: all .2s ease; }
.btn-outline-brand:hover { background: #fff; color: var(--navy); }
.btn-gold { background: var(--gold); color: #16110A; font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 4px; border: 1px solid var(--gold); transition: all .2s ease; white-space: nowrap; }
.btn-gold:hover { background: #A5762F; color: #16110A; }
.page-hero { position: relative; background: linear-gradient(180deg, var(--navy) 0%, #0B2130 100%); color: #fff; overflow: hidden; padding: 72px 0 56px; }
.page-hero-bg { position: absolute; inset: 0; background-image: url('assets/page-hero-bg.jpg'); background-size: cover; background-position: center 30%; opacity: 0.12; mix-blend-mode: luminosity; }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9DACB6; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); max-width: 22ch; margin-top: 10px; }
.page-hero p { color: #C3CDD4; max-width: 60ch; font-size: 16.5px; margin-top: 14px; }
.breadcrumb-bar { background: var(--mist); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.breadcrumb-bar a { color: var(--text-soft); text-decoration: none; } .breadcrumb-bar a:hover { color: var(--navy); }
article.content-body { max-width: 780px; }
article.content-body h2 { font-size: 26px; margin-top: 44px; margin-bottom: 14px; }
article.content-body h2:first-child { margin-top: 0; }
article.content-body h3 { font-size: 19px; margin-top: 28px; margin-bottom: 10px; color: var(--pine); }
article.content-body h4 { font-size: 15.5px; margin-top: 22px; margin-bottom: 8px; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; font-family:'IBM Plex Mono',monospace; font-weight:600; }
article.content-body p { font-size: 15.5px; line-height: 1.75; color: var(--text-soft); margin-bottom: 14px; }
article.content-body ul, article.content-body ol { font-size: 15.5px; line-height: 1.75; color: var(--text-soft); padding-left: 22px; margin-bottom: 18px; }
article.content-body li { margin-bottom: 8px; }
article.content-body li::marker { color: var(--gold); }
.side-cta { background: var(--mist); border-radius: 8px; padding: 28px 26px; position: sticky; top: 100px; }
.side-cta h4 { font-family:'Newsreader',serif; color: var(--navy); font-size: 20px; font-weight:600; }
.side-cta p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.side-cta hr { border-color: var(--line); }
.side-cta .item { font-size: 13.5px; color: var(--text-soft); display:flex; gap:8px; margin-bottom:8px; }
.cta-band { background: linear-gradient(120deg, var(--navy), var(--pine)); border-radius: 8px; color: #fff; padding: 48px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: url('assets/cta-band-bg.jpg'); background-size: cover; background-position: center; opacity: 0.16; mix-blend-mode: luminosity; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); max-width: 24ch; }
.stub-card { border: 1px dashed var(--line); border-radius: 8px; padding: 40px; text-align:center; background: var(--mist); }

.footer-cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--pine) 130%); padding: 44px 0; position: relative; overflow: hidden; }
.footer-cta-band::after { content: ""; position: absolute; inset: 0; background-image: url('assets/cta-band-bg.jpg'); background-size: cover; background-position: center; opacity: 0.14; mix-blend-mode: luminosity; }
.footer-cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-cta-band h3 { color: #fff; font-size: clamp(20px, 2.4vw, 27px); margin: 0; max-width: 32ch; }
.footer-cta-band p { color: #C3CDD4; font-size: 14px; margin: 6px 0 0; }
.footer-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-cta-phone { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 600; }
.footer-cta-phone svg { width: 18px; height: 18px; color: var(--gold); }
.footer-cta-phone:hover { color: var(--gold); }

footer { background: var(--navy); color: #9DACB6; }
footer .footer-main { padding: 56px 0 0; }
footer h4 { color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; }
footer ul { list-style: none; padding: 0; margin: 0; } footer ul li { margin-bottom: 10px; }
footer a { color: #9DACB6; text-decoration: none; font-size: 13.5px; transition: color .15s ease; } footer a:hover { color: #fff; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.footer-logo img { height: 46px; width: auto; display: block; }
.footer-about { font-size: 13.5px; line-height: 1.7; color: #8296A3; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; }
.footer-social a:hover { border-color: var(--gold); background: rgba(184,134,58,0.1); }
.footer-social svg { width: 15px; height: 15px; }
.footer-badge-row { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; color: #8296A3; }
.footer-badge-row svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; }
.footer-bottom { padding: 20px 0; font-size: 12.5px; color: #718293; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal-links { display: flex; gap: 20px; align-items: center; }
.footer-bottom .legal-links a { color: #8296A3; font-size: 12.5px; }
.footer-bottom .legal-links a:hover { color: #fff; }
