/* P3 Safety Solutions — Design System v2 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--green);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { top: 0; }

:root {
  --green:       #99ff00;
  --green-dark:  #7acc00;
  --green-text:  #4a7a00;   /* accessible green for text on light backgrounds */
  --dark:        #3e4346;
  --dark-2:      #2e3235;
  --gray:        #b8bdc1;
  --gray-light:  #f0f1f2;
  --white:       #ffffff;
  --text:        #3e4346;
  --text-muted:  #5c6574;   /* darkened from #6b7280 → ~6:1 contrast on white (was 4.84:1) */

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-width: 1200px;
  --section-pad: 80px 40px;
  --radius: 4px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ─── UTILITIES ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title.light { color: var(--white); }

.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.btn-full { width: 100%; text-align: center; }

/* ─── FOCUS STYLES (WCAG 2.1 AA) ─── */
.btn:focus-visible,
.site-nav a:focus-visible,
.filter-btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Visually hidden utility for aria-live regions */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--dark);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-tagline {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.header-contact-info a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.header-contact-info a:hover { color: var(--white); }

/* ─── NAV ─── */
.site-nav {
  background: var(--dark-2);
  border-bottom: 3px solid var(--green);
}

.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-portals {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-portals a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-portals a:hover {
  color: var(--dark);
  background: var(--green);
  border-color: var(--green);
}

.site-nav a {
  display: block;
  padding: 13px 20px;
  color: var(--gray);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--green);
  padding: 14px 40px;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-divider {
  color: rgba(62,67,70,0.3);
  font-size: 20px;
}

/* ─── SERVICES SPLIT ─── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-card {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-bg { transform: scale(1.04); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,50,53,0.95) 0%, rgba(46,50,53,0.3) 60%, transparent 100%);
}

.service-card-body {
  position: relative;
  z-index: 1;
  padding: 36px;
}

.service-card-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  display: block;
}

.service-card h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  max-width: 340px;
}

/* ─── COURSE CARDS ─── */
.courses-section {
  background: var(--gray-light);
  padding: 56px 40px;
}

.courses-header {
  margin-bottom: 40px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.course-card-header {
  background: var(--dark);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
}

.course-card-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.course-duration {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--dark);
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.course-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.course-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--gray-light);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── ABOUT STRIP ─── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.about-content {
  background: var(--dark);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .section-label { color: var(--green); }

.about-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 480px;
}

.about-img {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--green);
  padding: 64px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(62,67,70,0.75);
  margin-bottom: 32px;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--dark);
  padding: 48px 40px 36px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.87);  /* was 0.65 ~5.3:1 → 0.87 ~8.3:1 on --dark */
  max-width: 560px;
}

/* ─── CONTENT SECTIONS (inner pages) ─── */
.content-section {
  padding: var(--section-pad);
}

.content-section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-section.alt { background: var(--gray-light); }
.content-section.dark { background: var(--dark); }

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
}

.content-section.dark h2 { color: var(--white); }

.content-section h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
}

.content-section p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 760px;
}

.content-section.dark p { color: rgba(255,255,255,0.7); }

/* ─── NOTICE BANNER ─── */
.notice-banner {
  background: var(--dark-2);
  border-left: 4px solid var(--green);
  padding: 14px 40px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.notice-banner .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.notice-banner a { color: var(--green); font-weight: 600; text-decoration: none; }
.notice-banner a:hover { text-decoration: underline; }

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 7px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #d0d4d8;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.course-row.hidden { display: none; }

.no-results {
  display: none;
  padding: 32px 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ─── TRAINING PHOTO STRIP ─── */
.training-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 260px;
}

.training-photo-strip-item {
  background-size: cover;
  background-position: center;
}

@media (max-width: 600px) {
  .training-photo-strip {
    grid-template-columns: repeat(2, 1fr);
    height: 320px;
  }
}

/* ─── COURSE LIST (training page) ─── */
.full-course-list {
  padding: var(--section-pad);
  background: var(--white);
}

.full-course-list .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.course-row {
  display: block;
  border-bottom: 1px solid var(--gray-light);
}

.course-row:nth-child(even) { background: #f7f8f9; }

.course-row:last-child { border-bottom: none; }

.course-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 24px;
  cursor: pointer;
  user-select: none;
}

.course-row-main:hover .course-row-name {
  color: var(--primary);
}

.course-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.course-row-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.15s;
}

.course-row-meta {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.course-row-toggle {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.course-row-main:hover .course-row-toggle {
  color: var(--primary);
}

.chevron-icon {
  transition: transform 0.25s ease;
}

.course-row-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.course-row-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.course-row-detail.open {
  max-height: 500px;
}

.course-row-detail-inner {
  padding: 0 24px 20px;
}

.course-row-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.course-detail-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-detail-chip {
  font-size: 12px;
  padding: 3px 10px;
  background: #f2f2f2;
  border-radius: 20px;
  color: var(--text-muted);
}

/* ─── CREDENTIALS SECTION ─── */
.credentials-section {
  padding: var(--section-pad);
  background: var(--white);
}

.credentials-section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.credentials-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.credentials-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.credentials-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.credentials-logos img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.credentials-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.credentials-divider {
  width: 1px;
  align-self: stretch;
  background: var(--gray-light);
  border: none;
  margin: 0 40px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .credentials-logos { gap: 20px; }
  .credentials-logos img { height: 36px; }
}

/* ─── REVIEWS SECTION ─── */
.reviews-section {
  padding: var(--section-pad);
  background: var(--dark);
}

.reviews-section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-rating {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.reviews-score {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.reviews-stars {
  font-size: 28px;
  color: #f5a623;
  letter-spacing: 2px;
}

.reviews-count {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: color 0.15s;
}

.reviews-count:hover { color: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars {
  font-size: 16px;
  color: #f5a623;
  letter-spacing: 1px;
}

.review-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-style: italic;
  flex: 1;
}

.review-author {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-score { font-size: 44px; }
}

/* ─── CLIENTS SECTION ─── */
.clients-section {
  padding: var(--section-pad);
  background: var(--gray-bg, #f8f8f8);
}

.clients-section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.clients-group-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 12px;
}

.clients-group p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .clients-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── TWO-COL LIST ─── */
.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  list-style: none;
  margin-bottom: 28px;
}

.two-col-list li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.two-col-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* ─── CONTACT FORM ─── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-info-panel .section-label { color: var(--green); }

.contact-info-panel {
  background: var(--dark);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.contact-detail-text:hover { color: var(--green); }

.contact-form-panel {
  background: var(--gray-light);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e2e4;
  background: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea { height: 120px; resize: vertical; }

/* ─── PHOTO GRID ─── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.photo-grid-item {
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark-2);
  border-top: 3px solid var(--green);
  padding: 40px;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
}

.footer-logo img { width: 100%; height: 100%; object-fit: contain; }

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 12px;
  color: var(--gray);   /* was rgba(184,189,193,0.5) ~3.2:1 → #b8bdc1 at full opacity ~6.4:1 on dark-2 */
  text-align: right;
}

/* ─── FORM MESSAGES ─── */
.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

.form-message.success { background: #e8f5e9; color: #2e7d32; }
.form-message.error   { background: #fdecea; color: #c62828; }

/* ─── TEAM SECTION ─── */
.team-section {
  padding: var(--section-pad);
  background: var(--gray-light);
}

.team-section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-featured {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.team-featured .team-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.team-featured-body {
  flex: 1;
}

.team-featured-body .team-name {
  text-align: left;
  margin-bottom: 2px;
}

.team-featured-body .team-title {
  text-align: left;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 130px));
  gap: 32px;
  justify-content: center;
  margin-top: 32px;
}

.team-card {
  text-align: center;
  width: 140px;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
  transition: opacity 0.15s;
}

.team-card:hover {
  opacity: 0.8;
}

.team-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.05em;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.2;
}

.team-title {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.team-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--green-text);
  border: 1px solid var(--green-text);
  border-radius: 3px;
  padding: 2px 6px;
  text-decoration: none;
  line-height: 1.5;
  transition: background 0.15s, color 0.15s;
}
.team-badge:hover {
  background: var(--green-text);
  color: #fff;
}

/* ─── CHATBOT FLOAT ─── */
.chatbot-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}

.chatbot-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --section-pad: 56px 24px; }
  .container { padding: 0 24px; }
  .hero h1 { font-size: 48px; }
  .section-title { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-img { min-height: 280px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-info-panel { padding: 48px 32px; }
  .contact-form-panel { padding: 48px 32px; }
  .two-col-list { grid-template-columns: 1fr; }
  .site-header { padding: 0 24px; }
  .site-nav-inner { padding: 0 24px; }
  .nav-portals { display: none; }
  /* Nav — allow horizontal scroll if items overflow */
  .site-nav ul { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav a { padding: 13px 14px; font-size: 13px; }
  /* Team */
  .team-featured { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .team-featured-body .team-name,
  .team-featured-body .team-title,
  .team-bio { text-align: center; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 130px)); gap: 20px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 40px; }
  .hero-ctas { flex-direction: column; }
  .courses-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
  .trust-bar-inner { gap: 16px; }
  .trust-divider { display: none; }
  /* Header — hide contact info, keep logo + button */
  .header-contact-info { display: none; }
  .header-tagline { font-size: 13px; }
  /* Nav items — tighter on small screens */
  .site-nav a { padding: 12px 10px; font-size: 12px; }
  /* Course rows — stack on mobile */
  .course-row-main { flex-direction: column; gap: 4px; align-items: flex-start; }
  .course-row-meta { white-space: normal; }
  .course-row-right { flex-direction: row; align-items: center; gap: 10px; }
  /* Filter bar — smaller buttons */
  .filter-btn { font-size: 11px; padding: 6px 12px; }
  /* CTA banner */
  .cta-banner h2 { font-size: 32px; }
  /* Team — 2 cols, last item centered */
  .team-grid { grid-template-columns: repeat(3, minmax(0, 110px)); gap: 16px; }
}
