/* ==========================================================================
   Phillip Au & Associates – main stylesheet
   Tokens → base → layout → components → pages → responsive
   ========================================================================== */
:root {
  --green: #699900;
  --green-dark: #577f00;
  --green-band: #a4c264;
  --accent: #07c972;
  --navy: #0b1c2e;
  --navy-soft: #233242;
  --tint: #f5f9fc;
  --muted: #69727d;
  --white: #fff;
  --font: "Gothic A1", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 24px 48px -16px rgba(11, 28, 46, .22);
  --radius: 8px;
  --header-h: 99px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 1000; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1208px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-tint { background: var(--tint); }
.mt-xl { margin-top: 72px; }
.mt-lg { margin-top: 40px; }
.text-green { color: var(--green); }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.625rem; }
.max-w { max-width: 880px; margin-inline: auto; }
.max-w-sm { max-width: 560px; margin-inline: auto; }
.rounded { border-radius: 12px; }
.eyebrow { font-size: 1.0625rem; letter-spacing: .09em; text-transform: uppercase; color: var(--green); margin-bottom: 1em; }
.eyebrow-light { color: #fff; }
.eyebrow-green { color: var(--accent); }
.d-only { display: inline; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: .75em 2.2em; font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--green-dark); }
.btn-lg { padding: 1em 2.4em; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; border-radius: 999px; padding-block: 1em; }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; flex: none; }
.icon-lg { width: 40px; height: 40px; color: var(--green); }
.icon-xl { width: 64px; height: 64px; color: var(--green); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 2px 20px rgba(11, 28, 46, .06); height: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { width: 150px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav > ul { display: flex; align-items: center; gap: 32px; }
.nav-link { text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; }
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.nav-link .caret { width: 12px; height: 12px; }
.has-sub { position: relative; }
.sub-menu { position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 8px 20px; text-decoration: none; }
.sub-menu a:hover { color: var(--green); background: var(--tint); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background-size: cover; background-position: center; }
.hero h1 { color: #fff; }
.hero-shade { position: absolute; inset: 0; background: rgba(11, 28, 46, .25); }
.hero-inner { position: relative; }
.hero-sub { font-size: 1.5rem; margin: 1.2em 0 1.4em; }
.hero-home { min-height: 917px; display: flex; align-items: center; }
.hero-home h1 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 900px; margin: 0 auto; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero-faq { min-height: 530px; display: flex; align-items: center; background-position: right center; background-color: #17332b; }
.hero-shade-left { background: linear-gradient(90deg, rgba(10, 30, 28, .7) 0%, rgba(10, 30, 28, .35) 45%, rgba(10, 30, 28, 0) 75%); }
.hero-faq h1 { max-width: 560px; font-size: clamp(1.9rem, 3.6vw, 3rem); hyphens: auto; }
.hero-faq .eyebrow { color: var(--green-band); }
.hero-faq .hero-sub { font-size: 1.0625rem; margin: 1.6em 0 1em; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-top { align-items: start; }
.split-media img { width: 100%; max-width: 460px; }
.split-body h2 { margin-bottom: .8em; }
.sticky { position: sticky; top: 130px; }
.lead-text { font-size: 1.125rem; line-height: 1.9; }
.prose p { margin-bottom: 1.1em; }
.prose strong, .split-body strong { font-weight: 700; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 54px; margin-top: 56px; }
.cards-home { grid-template-columns: repeat(2, minmax(0, 372px)); justify-content: center; }
.cards-services { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-service { display: block; height: 100%; padding: 36px 40px 40px; text-decoration: none; text-align: left; transition: transform .25s, box-shadow .25s; }
.card-service:hover { transform: translateY(-4px); }
.card-service .icon-xl { margin-bottom: 36px; }
.card-service h3 { font-size: 1.5rem; margin-bottom: .35em; }
.card-service p { font-size: .9375rem; margin: 0; line-height: 1.8; }
.cards-why { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.card-why { padding: 40px 36px; text-align: left; }
.card-why h3 { font-size: 1.25rem; margin: 20px 0 14px; }
.card-why p { font-size: .9375rem; margin: 0; line-height: 1.8; }

/* ---------- Partner band ---------- */
.band-green { background: var(--green-band); color: #fff; padding: 36px 0 56px; }
.band-kicker { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 36px; }
.band-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.on-dark { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.logo-cloud { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: center; }
.logo-cloud img { height: 65px; width: auto; max-width: 150px; object-fit: contain; }
.logo-cloud-row { margin-top: 24px; }
.band-sub { margin-top: 72px; }

/* ---------- Icon list ---------- */
.icon-list { margin-top: 32px; display: grid; gap: 24px; }
.icon-list li { display: flex; gap: 20px; align-items: flex-start; }
.icon-list h3 { font-size: 1.5rem; margin-bottom: .3em; }
.icon-list p { margin: 0; line-height: 1.8; }
.icon-list .icon-lg { width: 36px; height: 36px; margin-top: 4px; }

/* ---------- Testimonials / slider ---------- */
.testimonials h2 { margin-bottom: 40px; }
.slider { position: relative; }
.slider-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px; align-items: flex-start; }
.slider-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 calc((100% - 60px) / 3); scroll-snap-align: start; background: var(--tint); border-radius: 12px; padding: 40px; }
.review h3 { font-size: 1.375rem; line-height: 1.2; margin: 18px 0 14px; }
.review p { font-size: .9375rem; line-height: 1.85; }
.reviewer { color: var(--accent); font-size: .8125rem; margin: 22px 0 0; }
.stars { width: 99px; }
.slider-btn { position: absolute; top: 45%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 16px rgba(11, 28, 46, .18); cursor: pointer; display: grid; place-items: center; }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-btn.prev { left: -22px; }
.slider-btn.next { right: -22px; }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c4c8cc; cursor: pointer; }
.slider-dots button[aria-selected="true"] { background: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1c2e; color: #fff; padding: 84px 0 72px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-info address { margin: 24px 0 36px; line-height: 2; font-size: 1.0625rem; }
.footer-phone { font-size: 1.625rem; font-weight: 700; margin: 0; }
.footer-phone a { text-decoration: none; }
.footer-mail { color: var(--green); font-size: 1.0625rem; }
.copyright { font-size: .875rem; margin-top: 56px; }
.footer-signup h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .6em; }
.footer-signup > p { font-size: 1.0625rem; line-height: 1.8; }
.signup-form { margin-top: 36px; }
.signup-field { display: flex; align-items: center; background: var(--navy-soft); border-radius: var(--radius); padding-right: 12px; }
.signup-field input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 20px 30px; font-size: 1.0625rem; }
.signup-field input::placeholder { color: #fff; opacity: 1; }
.signup-field button { background: none; border: 0; color: var(--green); cursor: pointer; padding: 8px; }
.signup-field .icon { width: 26px; height: 26px; }
.fineprint { font-size: .875rem; margin-top: 18px; }
.fineprint a { color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 20px 22px; margin-top: 56px; align-items: center; }
.badges img { width: 84px; height: auto; border-radius: 6px; }

/* ---------- Forms ---------- */
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .check { font-weight: 700; font-size: .9375rem; }
.field abbr { color: #c62828; text-decoration: none; font-weight: 400; }
.field small { color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9d1d9; border-radius: 6px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(105, 153, 0, .25); }
.field [aria-invalid="true"] { border-color: #c62828; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; border: 1px solid #c9d1d9; border-radius: 6px; padding: 12px 14px; }
.form-stack .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-size: .9375rem; }
.form-status.ok { color: #1b7a3a; }
.form-status.err { color: #c62828; }
.signup-form .form-status { color: #fff; }
.signup-form .form-status.err { color: #ff9c9c; }

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 28, 46, .6); }
.modal-panel { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 12px; padding: 40px; box-shadow: var(--shadow-card); }
.modal-panel h2 { font-size: 1.75rem; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.modal-close .icon { width: 22px; height: 22px; }
body.modal-open { overflow: hidden; }

/* ---------- Accordion ---------- */
.accordion { margin-top: 48px; }
.acc-item h3 { margin: 0; font-size: 1.375rem; }
.acc-item h3 button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; background: none; border: 0; text-align: left; cursor: pointer; font-weight: 700; font-size: inherit; line-height: 1.3; }
.acc-item h3 button[aria-expanded="true"] { color: var(--green); }
.acc-icon { width: 22px; height: 22px; }
.acc-panel { padding: 8px 0 24px 16px; }
.acc-panel p { margin-bottom: 1em; }

/* ---------- Lists ---------- */
.bullets { list-style: disc; padding-left: 1.2em; display: grid; gap: .45em; }
.ticks { display: grid; gap: .5em; margin: 1em 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--green); margin-top: .3em; width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- Contacts ---------- */
.offices h3 { font-size: 1.25rem; }
.offices a { color: var(--accent); text-decoration: none; }
.offices a:hover { text-decoration: underline; }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 32px; max-width: 920px; margin-inline: auto; }
.office-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.office-grid p { line-height: 1.9; }
.map { margin-top: 32px; border-radius: 12px; overflow: hidden; height: 420px; background: #e6edf3; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- About: team ---------- */
.team h2 { margin-bottom: .4em; }
.people { display: grid; gap: 40px; justify-content: center; margin-top: 56px; align-items: start; }
.people-1 { grid-template-columns: 260px; }
.people-3 { grid-template-columns: repeat(3, 1fr); }
.people-2 { grid-template-columns: repeat(2, 260px); gap: 120px; }
.person img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; background: var(--tint); }
.people-1 .person img { width: 200px; }
.person h3 { font-size: 1.125rem; margin-bottom: 0; }
.person h3 span { font-weight: 400; }
.person .role { color: var(--green); font-size: .9375rem; margin: 0 0 12px; }
.person .focus { margin: 0 0 6px; font-size: .9375rem; line-height: 1.5; }
.person .focus small { display: block; font-size: .75rem; color: var(--muted); }

/* ---------- Visa pages ---------- */
.subclass { color: var(--green); font-size: 1.5rem; font-weight: 700; margin: 0 0 .7em; }
.visa-row { align-items: center; }
.visa-row img { width: 100%; }
.visa-row-flip > img { order: 0; }
.cards-visa { grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: start; margin-bottom: 64px; }
.card-visa { padding: 36px 40px 40px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.card-visa .prose { flex: 1; font-size: .9375rem; }
.visa-code { color: var(--green); font-size: clamp(1.5rem, 2.4vw, 2.125rem); text-transform: uppercase; margin: 0; }
.card-visa .subtitle { font-size: 1.25rem; font-weight: 700; margin: 0; }
.card-visa p { font-size: .9375rem; }
.visa-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; text-align: center; }
.visa-pair-cards { align-items: start; gap: 32px; }
.visa-feature h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.visa-feature p { font-size: .9375rem; line-height: 1.8; }
.visa-feature img { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 3 / 2; object-fit: cover; }
.visa-pair .visa-feature img { max-width: 560px; }
.visa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; margin: 72px 0 24px; text-align: center; align-items: start; }
.visa-grid .visa-feature:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; max-width: 480px; }
.further { max-width: 620px; margin: 48px auto 0; font-size: .9375rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .primary-nav > ul { gap: 20px; }
  .primary-nav { gap: 24px; }
  .cards-why { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc((100% - 30px) / 2); }
  .band-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .section { padding: 64px 0; }
  .brand img { width: 120px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; box-shadow: 0 16px 24px rgba(11, 28, 46, .12); display: none; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .primary-nav.open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid #eef2f5; }
  .nav-link { padding: 14px 0; width: 100%; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .primary-nav .btn { margin-top: 20px; }
  .hero-home { min-height: 620px; }
  .hero-faq { min-height: 480px; }
  .hero-sub { font-size: 1.25rem; }
  .d-only { display: none; }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-media img { max-width: 100%; margin-inline: auto; }
  .sticky { position: static; }
  .visa-row-flip > img { order: -1; }
  .cards-home, .cards-services, .cards-visa, .visa-pair, .visa-grid, .office-grid, .office-grid-2 { grid-template-columns: 1fr; }
  .cards-home { max-width: 420px; margin-inline: auto; gap: 24px; }
  .cards-services { gap: 24px; }
  .people-3, .people-2 { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .people-2 { max-width: 560px; margin-inline: auto; }
  .review { flex-basis: 100%; }
  .slider-btn { display: none; }
  .band-sub { margin-top: 48px; }
  .site-footer { padding: 64px 0 48px; }
  .badges { gap: 20px; }
  .badges img { width: 72px; }
  .office-grid { text-align: center; gap: 24px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .section { padding: 52px 0; }
  .cards-why, .people-3, .people-2, .field-row { grid-template-columns: 1fr; }
  .card-service { padding: 28px; }
  .card-service .icon-xl { margin-bottom: 24px; }
  .review { padding: 28px; }
  .modal-panel { padding: 28px 20px; }
  .acc-item h3 { font-size: 1.125rem; }
  .acc-panel { padding-left: 0; }
  .logo-cloud { gap: 20px; }
  .logo-cloud img { height: 52px; }
  .signup-field input { padding: 16px 18px; }
  .btn-lg { padding: .9em 1.8em; }
  .map { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
