/*
Theme Name: Trion
Theme URI: https://trioncg.com
Author: Trion
Description: A self-contained, six-page consulting theme for Trion (Home, What We Do, Who We Are, Insights, Industries, Contact), styled in an orange-and-grey IT/data-consulting aesthetic. No plugins required.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trion
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1B2230;
  background: #FFFFFF;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:root {
  --navy: #333333;
  --navy-2: #1E1E1E;
  --blue: #DD6B20;
  --blue-light: #FBEAE0;
  --ink: #262626;
  --grey: #5C5C5C;
  --border: #E2E2E0;
  --bg-alt: #F6F6F4;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.kicker { color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { font-size: 32px; color: var(--navy); line-height: 1.25; }
.section-head p { color: var(--grey); font-size: 17px; margin-top: 14px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #B8551A; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #EDF1F7; }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-navy { border-color: var(--border); color: var(--navy); }
.btn-outline-navy:hover { background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.brand span { color: var(--blue); }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img { max-height: 44px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul.menu { display: flex; gap: 28px; }
.main-nav ul.menu > li { position: relative; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); }
.main-nav .menu-item-has-children > a::after { content: "\25BE"; font-size: 10px; margin-left: 5px; display: inline-block; color: var(--grey); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

.main-nav ul.menu > li.menu-item-has-children { padding-bottom: 8px; margin-bottom: -8px; }
.main-nav ul.sub-menu { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; margin-top: 0; min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 12px 28px rgba(30,30,30,0.12); z-index: 60; }
.main-nav ul.menu > li.menu-item-has-children:hover > ul.sub-menu,
.main-nav ul.menu > li.menu-item-has-children:focus-within > ul.sub-menu { display: flex; }
.main-nav ul.sub-menu li { width: 100%; }
.main-nav ul.sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 14px; white-space: normal; }
.main-nav ul.sub-menu a:hover { background: var(--blue-light); color: var(--blue); }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; transform: translateY(-110%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul.menu { flex-direction: column; gap: 18px; width: 100%; }
  .nav-toggle { display: block; }
  .main-nav ul.sub-menu { position: static; display: flex; box-shadow: none; border: none; margin-top: 10px; margin-left: 12px; padding: 0; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 110px 0 96px; }
.hero .container { max-width: 820px; }
.hero h1 { font-size: 46px; line-height: 1.2; margin-bottom: 20px; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,0.78); margin-bottom: 36px; max-width: 620px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 76px 0; }
.page-hero h1 { font-size: 38px; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 680px; }

.hero-photo, .page-hero-photo { position: relative; background-size: cover; background-position: center; }
.hero-photo::before, .page-hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(51,51,51,0.90), rgba(30,30,30,0.84)); }
.hero-photo .container, .page-hero-photo .container { position: relative; z-index: 1; }

.subsection-intro { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.subsection-intro img { width: 300px; max-width: 100%; height: 190px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.subsection-intro .subsection-intro-text { flex: 1; min-width: 260px; }
.subsection-intro .lead-sm { margin-bottom: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15px; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--blue-light); color: var(--blue); font-weight: 700; margin-bottom: 16px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-light); color: var(--blue); margin-bottom: 16px; }
.card-icon-svg { display: block; }

.list-check { margin-top: 12px; }
.list-check li { position: relative; padding-left: 22px; color: var(--grey); font-size: 15px; margin-bottom: 8px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: 30px; margin-bottom: 22px; }

/* ---------- Values / stats row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.stat-row .stat h4 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.stat-row .stat p { color: var(--grey); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.testimonial p.headline { font-size: 16px; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.testimonial p.quote { font-size: 15px; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.testimonial p.author { font-size: 14px; color: var(--grey); font-weight: 600; }

/* ---------- Contact ---------- */
.expert-band { display: flex; align-items: center; gap: 32px; background: var(--bg-alt); border-radius: 16px; padding: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.expert-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.expert-text { flex: 1; min-width: 240px; }
.expert-text h2 { font-size: 24px; margin-bottom: 8px; color: var(--navy); }
.expert-text p { color: var(--grey); font-size: 15px; margin: 0; }
.expert-name { font-size: 17px; font-weight: 600; color: var(--navy); }
.expert-creds { font-style: italic; font-weight: 400; color: var(--grey); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info .item { margin-bottom: 24px; }
.contact-info .item span.label { display: block; color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-info .item a, .contact-info .item p { font-size: 17px; color: var(--navy); font-weight: 600; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.form-notice.success { background: #E7F6EC; color: #1E6B3C; }
.form-notice.error { background: #FCEBEB; color: #A32D2D; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.82); padding: 56px 0 28px; }

.newsletter-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.newsletter-row h4 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.newsletter-row p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.newsletter-form input[type="email"] { padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; min-width: 240px; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.footer-notice { width: 100%; font-size: 13px; margin-top: 4px; }
.footer-notice.success { color: #9BDDA8; }
.footer-notice.error { color: #F0A0A0; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid .brand { color: #fff; }
.footer-logo { height: 36px; width: auto; display: block; }
.footer-grid p { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 12px; max-width: 320px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: #fff; }
.footer-office { margin-bottom: 16px; }
.footer-office:last-child { margin-bottom: 0; }
.footer-office .office-name { display: block; color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.footer-office .office-address, .footer-office a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-office a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.anchor-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.anchor-nav a { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--navy); }
.anchor-nav a:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* ---------- Partner logos ---------- */
.partner-strip { background: var(--bg-alt); padding: 40px 0; }
.partner-strip-label { text-align: center; color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 22px; }
.partner-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 48px; }
.partner-logo img { height: 32px; width: auto; filter: grayscale(100%); opacity: 0.7; transition: opacity 0.2s ease, filter 0.2s ease; }
.partner-logo img:hover { filter: none; opacity: 1; }
.partner-logo-text { font-size: 18px; font-weight: 700; color: var(--grey); letter-spacing: 0.02em; }

/* ---------- Photo slider ---------- */
.photo-slider { position: relative; overflow: hidden; border-radius: 12px; }
.photo-slider-track { display: flex; transition: transform 0.5s ease; }
.photo-slide { flex: 0 0 100%; position: relative; }
.photo-slide img { width: 100%; height: 440px; object-fit: cover; display: block; border-radius: 12px; }
.photo-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 26px; background: linear-gradient(transparent, rgba(30,30,30,0.75)); color: #fff; font-size: 15px; font-weight: 600; border-radius: 0 0 12px 12px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border); font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; background: rgba(30,30,30,0.4); padding: 7px 10px; border-radius: 999px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.55); cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: #fff; }
.slider-placeholder { border: 2px dashed var(--border); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--grey); }

/* ---------- Training calendar ---------- */
.training-calendar { margin-top: 24px; overflow-x: auto; }
.training-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.training-table th, .training-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.training-table th { color: var(--navy); font-weight: 600; background: var(--bg-alt); }
.training-table td { color: var(--grey); }
.training-table td.prog-name { color: var(--ink); font-weight: 600; }
.slider-placeholder p { margin-bottom: 6px; font-size: 14px; }
@media (max-width: 640px) { .photo-slide img { height: 260px; } }

.subsection { margin-bottom: 64px; }
.subsection:last-child { margin-bottom: 0; }
.subsection h3.title { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.subsection p.lead-sm { color: var(--grey); font-size: 15px; margin-bottom: 24px; max-width: 680px; }
