/* =========================
   BRAND + GLOBAL TOKENS
========================= */
:root {
  /* Brand (locked) */
  --primary-teal: #008181;      /* Caribbean Teal */
  --accent-orange: #F5811E;     /* Cider Orange */
  --text-dark: #232323;         /* Charcoal Tide */
  --silver-grey: #C4C4C4;       /* Silver Grey */
  --brand-white: #D9D9D9;       /* Pure White (as provided) */

  /* UI neutrals */
  --bg-white: #FFFFFF;
  --bg-light: #F5F7F7;
  --border-grey: #E1E8E8;

  /* Typography */
  --font-body: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-display: 'Yeseva One', Georgia, serif;

  /* Radius/shadow */
  --radius: 14px;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-med: 0 16px 34px rgba(0, 0, 0, 0.10);
}

/* =========================
   RESET & BASE
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}

a { text-decoration: none; color: inherit; transition: 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 60px 0; }

.section-after-hero { padding-top: 80px; }

.flex { display: flex; gap: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 30px; }

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--primary-teal);
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 2.6rem; }

h2 {
  font-size: 2rem;
  border-left: 5px solid var(--accent-orange);
  padding-left: 15px;
}

p { margin-bottom: 15px; }

.section-heading {
  margin-bottom: 26px;
  max-width: 820px;
}

.section-subtitle {
  margin-top: -10px;
  color: rgba(35, 35, 35, 0.75);
  font-size: 1.05rem;
  font-family: var(--font-body);
}

/* =========================
   HEADER & NAV
========================= */
header {
  background: var(--bg-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-grey);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 28px; width: auto; max-width: 180px; }

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 500;
  position: relative;
}

/* Underline “eye candy” */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.nav-links a:hover {
  color: var(--primary-teal);
  background: rgba(0, 129, 129, 0.06);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active {
  color: var(--primary-teal);
  font-weight: 700;
  background: rgba(245, 129, 30, 0.12);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 8px 12px;
}

.nav-links a:focus-visible,
.mobile-toggle:focus-visible {
  outline: 3px solid rgba(245, 129, 30, 0.55);
  outline-offset: 3px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-teal);
  color: #fff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 18px rgba(0, 129, 129, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #007171;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 129, 129, 0.22);
}

/* =========================
   HERO (Fix paths!)
========================= */
.hero {
  position: relative;
  text-align: center;
  padding: 130px 0 100px;
  overflow: hidden;
}

/* IMPORTANT: CSS is in assets/css, so images must be ../images */
.hero--image {
  background: url("../images/hero-education-01.jpg") center / cover no-repeat;
}

.hero--services {
  background: url("../images/TINE1-4918.jpg") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__content .btn { 
  margin-top: 28px;
}

.hero__content h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.25rem;
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* Soft background section (Fix path!) */
.section-bg-soft {
  background: url("../images/bg-abstract-light.png") center / cover no-repeat;
}

/* =========================
   HOME: FEATURED SERVICES
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.service-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(225, 232, 232, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
}

.service-media { position: relative; }

.service-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.service-icon-wrap {
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(225, 232, 232, 0.9);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.10);
  display: grid;
  place-items: center;
}

.service-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.service-body { padding: 30px 18px 18px; }

.service-body h3 {
  font-family: var(--font-display);
  color: var(--primary-teal);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-body p {
  color: rgba(35, 35, 35, 0.78);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-teal);
  font-weight: 700;
}

.service-link:hover { color: #007171; }

/* Keep existing card class for other pages/areas */
.card {
  background: rgba(245, 247, 247, 0.92);
  padding: 30px;
  border-radius: 12px;
  border-top: 4px solid var(--primary-teal);
}

/* =========================
   CLIENT LOGO STRIP (fix layout + restore hover)
========================= */
.clients-strip {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(225, 232, 232, 0.9);
  border-radius: 14px;
  padding: 18px;
  background: rgba(245, 247, 247, 0.65);

  /* Keep logos horizontal */
  flex-wrap: wrap;
}

.client-logo {
  flex: 1;
  min-width: 160px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
}


.client-logo img {
  max-height: 56px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.25s ease;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================
   SERVICES: INTRO BLOCK (new)
========================= */
.services-intro {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
  padding: 0 18px;
  color: rgba(35, 35, 35, 0.82);
  font-size: 1.08rem;
}

/* =========================
   SERVICES: ACCORDION
========================= */
.accordion {
  display: grid;
  gap: 14px;
  padding: 10px 0 0;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 232, 232, 0.95);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
  transition: background 0.25s ease;
}

.accordion-summary::-webkit-details-marker { display: none; }

.accordion-summary:hover {
  background: rgba(0, 129, 129, 0.06);
}

.accordion-title {
  font-weight: 800;
  color: var(--primary-teal);
  font-size: 1.1rem;
  line-height: 1.25;
  font-family: var(--font-body);
}

.accordion-indicator {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 129, 129, 0.08);
  position: relative;
  flex: 0 0 auto;
  transition: transform 0.25s ease, background 0.25s ease;
}

.accordion-indicator::before,
.accordion-indicator::after {
  content: "";
  position: absolute;
  background: var(--primary-teal);
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.accordion-indicator::before { width: 14px; height: 2px; }
.accordion-indicator::after  { width: 2px; height: 14px; }

.accordion-item[open] .accordion-indicator {
  background: rgba(245, 129, 30, 0.14);
  transform: rotate(90deg);
}
.accordion-item[open] .accordion-indicator::after { height: 0; }

.accordion-panel { padding: 0 18px 18px; }

.list-clean {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

/* Panel layout with image */
.accordion-panel-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 6px;
}

.accordion-panel-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(225, 232, 232, 0.95);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
}

.accordion-panel-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.accordion-item[open] .accordion-panel-media img {
  transform: scale(1.03);
}

.accordion-panel-content p { margin-bottom: 12px; }

/* Why box */
.why-box {
  margin-top: 60px;
  background: rgba(0, 129, 129, 0.04);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(225, 232, 232, 0.9);
}

/* =========================
   SCROLL REVEAL (CSS)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--text-dark);
  color: white;
  padding: 40px 0;
  margin-top: 50px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(196, 196, 196, 0.25);
  margin-top: 30px;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero__content h1 { font-size: 2.4rem; }

  .accordion-panel-grid {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #F3FBFB;
    padding: 14px 20px;
    border-bottom: 2px solid var(--primary-teal);
  }

  .nav-links.active { display: flex; }

  .nav-links a { width: 100%; padding: 12px 10px; border-radius: 10px; }

  .hero { padding: 90px 0 70px; }
  .hero__content h1 { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1.05rem; margin-bottom: 28px; }

  .accordion-panel-grid { grid-template-columns: 1fr; }
  .accordion-panel-media img { height: 210px; }

  .why-box { padding: 26px; }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn, .nav-links a, .accordion-summary, .accordion-indicator, .accordion-panel-media img, .reveal {
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================
   ABOUT PAGE (Solid sections + subtle green gradient feel)
========================= */

.hero--about {
  background: url("../images/TINE1-4918.jpg") center / cover no-repeat;
}

.hero__overlay--about {
  background: linear-gradient(
    135deg,
    rgba(0, 129, 129, 0.55),
    rgba(35, 35, 35, 0.40)
  );
}

.about-section {
  padding: 70px 0;
}

.about-section--intro {
  background: #FFFFFF;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.about-intro__media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(196, 196, 196, 0.45);
  box-shadow: var(--shadow-soft);
}

.about-intro__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-intro__media:hover img {
  transform: scale(1.03);
}

.about-section--soft {
  background: linear-gradient(
    180deg,
    rgba(0, 129, 129, 0.06),
    rgba(0, 129, 129, 0.02)
  );
}

.about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 196, 196, 0.50);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
}

.about-card h3 {
  font-family: var(--font-display);
  color: var(--primary-teal);
  margin-bottom: 12px;
}

.about-section--teal {
  background: var(--primary-teal);
  color: #FFFFFF;
}

.about-section--teal h2 {
  color: #FFFFFF;
  border-left-color: rgba(255, 255, 255, 0.7);
}

.about-panel-head {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}

.about-panel-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-top: -6px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.value-tile {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.value-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.value-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(245, 129, 30, 0.95);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.value-tile h3 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.value-tile p {
  color: rgba(255, 255, 255, 0.86);
}

/* Responsive */
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-intro__media img {
    height: 320px;
  }
  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}
