/*
Theme Name: Tricon Infotech
Theme URI: https://triconinfotech.ca/
Author: Tricon Infotech
Description: Purpose-built corporate WordPress theme for Tricon Infotech Canada.
Version: 2.2.1
Text Domain: tricon
*/

:root {
  --paper: #f7f6f2;
  --white: #ffffff;
  --navy: #081a33;
  --navy-2: #10294d;
  --blue: #1859d9;
  --blue-dark: #1046b1;
  --accent: #2868ff;
  --teal: #5f8fff;
  --ink: #0b1728;
  --body: #536176;
  --soft: #e9edf2;
  --line: #d7dde5;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(76px, 9vw, 132px);
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.section { padding-block: var(--section); }
.surface-white { background: var(--white); }
.surface-navy { background: var(--navy); color: var(--white); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .17em; line-height: 1; text-transform: uppercase; }
.kicker::before { width: 26px; height: 2px; background: currentColor; content: ""; }
.surface-navy .kicker { color: #78a4ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 520; letter-spacing: -.04em; line-height: 1.08; }
h1 { max-width: 780px; margin-bottom: 28px; font-size: clamp(48px, 6vw, 78px); }
h2 { max-width: 820px; margin-bottom: 24px; font-size: clamp(38px, 4.5vw, 60px); }
h3 { margin-bottom: 14px; font-size: clamp(22px, 2vw, 28px); }
.surface-navy h2, .surface-navy h3 { color: var(--white); }
.lead { max-width: 690px; color: var(--body); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; }
.surface-navy .lead { color: #b8c4d2; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--blue); font-size: 15px; font-weight: 650; transition: gap var(--ease), color var(--ease); }
.text-link:hover { gap: 15px; color: var(--blue-dark); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font-size: 15px; font-weight: 650; transition: background var(--ease), color var(--ease), border var(--ease); }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.button-outline:hover { color: var(--white); background: var(--navy); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr); gap: clamp(40px, 7vw, 110px); align-items: end; margin-bottom: 66px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro p { margin-bottom: 6px; color: var(--body); }

/* Header and refined brand */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(215, 221, 229, .88); background: rgba(247, 246, 242, .94); backdrop-filter: blur(18px); }
.nav-shell { display: grid; min-height: 84px; grid-template-columns: auto 1fr auto; gap: 42px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; }
.brand-symbol { width: 39px; height: 39px; flex: 0 0 auto; }
.brand-name { color: var(--navy); font-size: 17px; font-weight: 760; letter-spacing: .055em; line-height: 1; }
.nav-links { display: flex; justify-content: flex-end; gap: clamp(22px, 2.7vw, 40px); align-items: center; }
.nav-links a { position: relative; color: #233249; font-size: 14px; font-weight: 540; }
.nav-links a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--blue); content: ""; transform: scaleX(0); transform-origin: right; transition: transform var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { min-height: 42px; padding-inline: 19px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; color: var(--navy); background: transparent; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 23px; height: 1.5px; margin: 5px auto; background: currentColor; content: ""; transition: transform var(--ease), opacity var(--ease); }

/* Hero and lightweight delivery timeline */
.hero { overflow: hidden; padding-block: clamp(76px, 8vw, 118px) 0; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, .85fr); gap: clamp(58px, 7vw, 110px); align-items: center; }
.hero-copy { padding-bottom: 72px; }
.hero-copy .lead { max-width: 650px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.delivery-architecture { position: relative; min-height: 570px; }
.delivery-architecture::before { position: absolute; top: 52px; bottom: 52px; left: 34%; width: 1.5px; background: #2868ff; content: ""; }
.delivery-architecture::after { position: absolute; top: 52px; bottom: 52px; left: calc(34% - 4px); width: 9px; border-top: 1.5px solid #2868ff; border-bottom: 1.5px solid #2868ff; content: ""; }
.architecture-stage { position: absolute; left: 34%; display: grid; width: 60%; grid-template-columns: 50px 1fr; gap: 22px; align-items: center; padding-left: 54px; }
.architecture-stage::before { position: absolute; top: 50%; left: -9px; width: 17px; height: 17px; border: 2px solid #2868ff; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px var(--paper); content: ""; transform: translateY(-50%); }
.architecture-stage::after { position: absolute; top: 50%; left: 9px; width: 34px; height: 1px; background: #7fa4ff; content: ""; }
.architecture-stage:nth-child(1) { top: 78px; }
.architecture-stage:nth-child(2) { top: 196px; }
.architecture-stage:nth-child(3) { top: 314px; }
.architecture-stage:nth-child(4) { top: 432px; }
.architecture-stage small { color: #2868ff; font-size: 14px; font-weight: 700; }
.architecture-stage div { display: grid; gap: 6px; }
.architecture-stage strong { color: var(--navy); font-size: 18px; font-weight: 650; letter-spacing: .08em; }
.architecture-stage span { color: var(--body); font-size: 14px; }
.capability-band { position: relative; z-index: 4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .64); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.capability { display: flex; min-height: 88px; align-items: center; gap: 14px; padding: 18px 26px; border-left: 1px solid var(--line); color: #27374d; font-size: 14px; font-weight: 600; }
.capability:first-child { border-left: 0; }
.capability svg { width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.capability:nth-child(2) svg, .capability:nth-child(4) svg { stroke: var(--teal); }

/* Expertise */
.expertise-section { padding-top: clamp(54px, 6vw, 84px); }
.expertise-section .section-intro { display: block; margin-bottom: 42px; }
.expertise-section .section-intro h2 { max-width: none; font-size: clamp(34px, 3.2vw, 46px); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.expertise-card { min-height: 260px; padding: 32px 38px 28px 0; border-right: 1px solid var(--line); }
.expertise-card + .expertise-card { padding-left: 38px; }
.expertise-card:last-child { border-right: 0; }
.expertise-icon { width: 44px; height: 44px; margin-bottom: 22px; fill: none; stroke: var(--blue); stroke-width: 1.4; }
.expertise-card:nth-child(2) .expertise-icon { stroke: var(--teal); }
.expertise-card h3 { font-size: clamp(21px, 2vw, 27px); }
.expertise-card p { max-width: 390px; color: var(--body); font-size: 15px; }
.expertise-card .text-link { margin-top: 8px; }

/* Purposeful delivery graphic */
.approach-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(450px, 1fr); gap: clamp(60px, 9vw, 138px); align-items: center; }
.approach-copy .lead { margin-bottom: 38px; }
.principles { display: grid; gap: 0; border-top: 1px solid #30435e; }
.principle { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding-block: 20px; border-bottom: 1px solid #30435e; }
.principle span { color: #78a4ff; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.principle strong { color: var(--white); font-weight: 560; }
.delivery-map { position: relative; min-height: 560px; }
.delivery-map::before { position: absolute; top: 54px; bottom: 54px; left: 50%; width: 1px; background: #38506d; content: ""; }
.delivery-step { position: absolute; width: 42%; padding: 21px 22px; border: 1px solid #38506d; background: var(--navy); }
.delivery-step::after { position: absolute; top: 50%; width: 20%; height: 1px; background: #38506d; content: ""; }
.delivery-step:nth-child(odd) { left: 0; }
.delivery-step:nth-child(odd)::after { left: 100%; }
.delivery-step:nth-child(even) { right: 0; }
.delivery-step:nth-child(even)::after { right: 100%; }
.delivery-step:nth-child(1) { top: 20px; }
.delivery-step:nth-child(2) { top: 155px; }
.delivery-step:nth-child(3) { top: 290px; }
.delivery-step:nth-child(4) { top: 425px; }
.delivery-step small { display: block; margin-bottom: 8px; color: #78a4ff; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.delivery-step strong { color: var(--white); font-size: 18px; font-weight: 560; }

/* Training and company */
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.training-item { min-height: 330px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.training-item .type { display: block; margin-bottom: 80px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.training-item p { color: var(--body); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr); gap: clamp(60px, 8vw, 124px); align-items: start; }
.company-principles { display: grid; border-top: 1px solid var(--line); }
.company-principles div { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.company-principles span { color: var(--accent); font-size: 12px; font-weight: 750; }
.company-principles strong { font-weight: 580; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.insight-card { min-height: 250px; padding: 34px 38px 28px 0; border-right: 1px solid var(--line); }
.insight-card + .insight-card { padding-left: 38px; }
.insight-card:last-child { border-right: 0; }
.insight-card small { display: block; margin-bottom: 56px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.insight-card h3 { font-size: 23px; }
.insight-card p { color: var(--body); font-size: 14px; }

/* Contact and footer */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: clamp(60px, 9vw, 150px); align-items: end; }
.contact-grid h2 { max-width: 760px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.contact-details { border-top: 1px solid #30435e; }
.contact-line { display: grid; grid-template-columns: 86px 1fr; gap: 24px; padding-block: 18px; border-bottom: 1px solid #30435e; }
.contact-line span { color: #7f91a7; font-size: 11px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.contact-line a, .contact-line address { color: var(--white); font-size: 15px; font-style: normal; }
.site-footer { padding-block: 58px 28px; color: #a8b4c3; background: #061428; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 60px; }
.site-footer .brand-name { color: var(--white); }
.footer-summary { max-width: 340px; margin-top: 24px; font-size: 14px; }
.footer-column h3 { margin-bottom: 19px; color: var(--white); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.footer-column a, .footer-column address { display: block; margin-block: 9px; color: #a8b4c3; font-size: 14px; font-style: normal; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid #263750; font-size: 12px; }

@media (max-width: 1020px) {
  .nav-shell { grid-template-columns: auto 1fr auto; }
  .nav-links { position: fixed; z-index: 99; top: 84px; right: 0; left: 0; display: none; min-height: calc(100vh - 84px); align-content: start; justify-content: start; padding: 38px var(--gutter); background: var(--paper); }
  .nav-links.open { display: grid; }
  .nav-links a { font-size: 24px; }
  .nav-contact { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .menu-toggle[aria-expanded="true"] span { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-6.5px) rotate(-45deg); }
  .hero-grid, .approach-grid, .company-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 12px; }
  .delivery-architecture { min-height: 500px; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .capability:nth-child(4) { border-top: 1px solid var(--line); }
  .training-grid, .insights-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(43px, 13vw, 60px); }
  h2 { font-size: clamp(35px, 10vw, 48px); }
  .nav-shell { min-height: 74px; }
  .nav-links { top: 74px; min-height: calc(100vh - 74px); }
  .brand-name { font-size: 14px; }
  .brand-symbol { width: 34px; height: 34px; }
  .hero { padding-top: 62px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .delivery-architecture { min-height: 430px; }
  .delivery-architecture::before { top: 24px; bottom: 24px; left: 14px; }
  .delivery-architecture::after { top: 24px; bottom: 24px; left: 10px; }
  .architecture-stage { position: relative; top: auto !important; left: auto; width: auto; min-height: 94px; grid-template-columns: 38px 1fr; gap: 14px; margin-left: 14px; padding-left: 38px; }
  .architecture-stage::before { left: -8px; }
  .architecture-stage::after { left: 9px; width: 22px; }
  .capability-grid, .training-grid, .insights-grid { grid-template-columns: 1fr; }
  .capability, .capability:nth-child(2) { border-top: 1px solid var(--line); border-left: 0; }
  .capability:first-child { border-top: 0; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card, .expertise-card + .expertise-card { min-height: auto; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .training-item { min-height: 260px; padding: 30px; }
  .training-item .type { margin-bottom: 50px; }
  .insight-card, .insight-card + .insight-card { min-height: auto; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .insight-card small { margin-bottom: 28px; }
  .delivery-map { min-height: auto; }
  .delivery-map::before { top: 0; bottom: 0; left: 16px; }
  .delivery-step, .delivery-step:nth-child(even), .delivery-step:nth-child(odd) { position: relative; top: auto; right: auto; left: auto; width: auto; margin: 0 0 18px 36px; }
  .delivery-step::after { display: none; }
  .contact-line { grid-template-columns: 72px 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
