/* ============================================================
   TIFEC Professional Training Programs
   Brand: calm, warm, aspirational
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --teal: #028090;
  --teal-dark: #016b79;
  --teal-light: #e8f5f6;
  --teal-mid: #b2dde2;
  --text: #1a1a1a;
  --muted: #555;
  --white: #ffffff;
  --bg-soft: #f7fafa;
  --border: #e3ecec;

  /* dark + accent tones (matched to caymanessentialcare palette) */
  --ink: #0e1f22;          /* darkest charcoal-teal */
  --ink-soft: #2d4448;     /* dark slate teal */
  --gold: #c9a84c;         /* brass accent */
  --gold-light: #e3c878;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(2, 128, 144, 0.08);
  --shadow-hover: 0 18px 50px rgba(2, 128, 144, 0.16);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.3px; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
em { font-style: italic; color: var(--teal); }
h1 em, h2 em, h3 em { font-weight: 500; }

p { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-teal-light { background: var(--teal-light); }
.text-center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal-mid); }
.btn-outline:hover { background: var(--teal-light); color: var(--teal-dark); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 31, 34, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* nav outline button adapts to the dark bar */
.nav .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.nav .btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(150deg, var(--ink) 0%, #013f48 60%, #015462 100%);
  padding: 100px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(2,128,144,0.4) 0%, rgba(2,128,144,0) 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0) 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; max-width: 880px; text-align: center; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero h1 { margin-bottom: 22px; color: #fff; }
.hero h1 em { color: var(--gold); }
.hero p { font-size: 1.25rem; max-width: 660px; margin: 0 auto 36px; color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* hero outline button on the dark backdrop */
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  text-align: center;
  padding: 38px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-mid); }
.pillar-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { font-size: 0.98rem; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--teal-mid); }
.course-card:hover::before { transform: scaleX(1); }
.course-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.course-card h3 { margin-bottom: 12px; }
.course-card p { font-size: 1rem; margin-bottom: 20px; }
.course-card .meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.course-card .meta span { display: flex; align-items: center; gap: 8px; }
.course-card .meta svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.course-card .card-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.course-card .card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.course-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Quote / social proof ---------- */
.quote-section {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(2,128,144,0.28) 0%, rgba(2,128,144,0) 70%);
  border-radius: 50%;
}
.quote-section .container { max-width: 820px; position: relative; z-index: 2; }
.quote-section blockquote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.3;
  font-weight: 500;
}
.quote-section blockquote em { color: var(--gold); font-style: italic; }
.quote-section .sub { margin-top: 22px; color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.quote-section .sub::before {
  content: '';
  display: block;
  width: 54px; height: 2px;
  background: var(--gold);
  margin: 0 auto 22px;
  border-radius: 2px;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  border: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-group label .req { color: var(--teal); }
.form-control {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  transition: var(--transition);
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(2,128,144,0.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23028090' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 11px; }
.checkbox-row input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; cursor: pointer; }
.checkbox-row label { font-weight: 400; color: var(--muted); font-size: 0.95rem; cursor: pointer; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--radius);
  color: var(--teal-dark);
}
.form-success.show { display: block; animation: fadeUp 0.5s ease; }
.form-success svg { width: 52px; height: 52px; color: var(--teal); margin: 0 auto 14px; }
.form-success h3 { color: var(--teal-dark); margin-bottom: 8px; }
.form-success p { color: var(--teal-dark); opacity: 0.85; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Course detail page ---------- */
.course-hero { background: var(--teal-light); padding: 70px 0; }
.course-hero .container { max-width: 900px; }
.course-hero .breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.course-hero .breadcrumb a { color: var(--teal); }
.course-hero h1 { margin-bottom: 18px; }
.course-hero .facilitator { font-size: 1.1rem; color: var(--muted); }
.course-hero .facilitator strong { color: var(--text); }

.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.course-main h2 { margin: 0 0 20px; }
.course-main h2:not(:first-child) { margin-top: 48px; }
.course-main ul { margin: 0 0 10px; padding-left: 0; list-style: none; }
.course-main ul li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.course-main ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 16px; height: 16px;
  background: var(--teal-light);
  border-radius: 50%;
}
.course-main ul li::after {
  content: '';
  position: absolute;
  left: 5px; top: 21px;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 10px; }
.fact {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.fact .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
.fact .value { font-weight: 500; color: var(--text); font-size: 0.98rem; }

/* sidebar */
.course-sidebar {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.course-sidebar h3 { font-size: 1.4rem; margin-bottom: 6px; }
.course-sidebar .side-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.price-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.price-option:hover { border-color: var(--teal-mid); }
.price-option.featured { border-color: var(--gold); background: var(--teal-light); position: relative; }
.price-option.featured::after {
  content: 'Best value';
  position: absolute;
  top: -10px; right: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
}
.price-option .po-name { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.price-option .po-amount { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--text); margin: 2px 0; }
.price-option .po-detail { font-size: 0.85rem; color: var(--muted); }
.price-option.featured .po-amount { color: var(--teal-dark); }
.sidebar-tbc { text-align: center; padding: 20px; background: var(--bg-soft); border-radius: var(--radius-sm); color: var(--muted); margin-bottom: 16px; }

/* assessment table */
.assess-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.assess-table td { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.assess-table td:last-child { text-align: right; font-weight: 600; color: var(--teal); font-family: var(--serif); font-size: 1.15rem; }

/* ---------- About page ---------- */
.about-hero { padding: 80px 0 50px; text-align: center; }
.about-hero .container { max-width: 760px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.12rem; margin-bottom: 22px; line-height: 1.8; }
.prose h2 { margin: 44px 0 18px; }

/* ---------- Pay / deposit ---------- */
.pay-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.pay-card h3 { margin-bottom: 8px; }
.bank-details { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 24px; margin-top: 10px; }
.bank-details dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.bank-details dt { font-weight: 600; color: var(--text); }
.bank-details dd { color: var(--muted); }
.callout {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--teal-dark);
  font-size: 0.97rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 30px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-logo img { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer p { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 300px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.footer ul a:hover { color: var(--teal-mid); }
.footer .contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; font-size: 0.93rem; color: rgba(255,255,255,0.65); }
.footer .contact-item svg { width: 17px; height: 17px; color: var(--teal-mid); margin-top: 3px; flex-shrink: 0; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer .socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer .socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 90;
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
@keyframes waPulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 18px 24px 28px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .course-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 70px 0 80px; }
}
