
/*
Theme Name: WebTMS — Alt Legal Joint Brand
Theme URI: https://www.webtms.com/
Author: Aaron Calilan - www.aaroncalilan.com | aaron4design@gmail.com
Author URI: https://www.altlegal.com/
Description: WebTMS site in the new Alt Legal theme.
Template: Aaron Calilan - www.aaroncalilan.com | aaron4design@gmail.com
Version: 1.0.0
License: Proprietary — Alt Legal, Inc.
Text Domain: webtms-altlegal
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* ── Alt Legal exact brand palette (matched to altlegaldev.wpengine.com) ── */

  /* Primary teal — #019B87 is the exact Alt Legal green */
  --teal-50:  #E5F5F3;
  --teal-100: #B3E4DC;
  --teal-300: #40BFB0;
  --teal-500: #019B87;   /* Alt Legal primary teal   */
  --teal-600: #018B79;   /* hover / focus            */
  --teal-700: #017A6A;   /* pressed / dark variant   */
  --teal-900: #29375B;   /* Alt Legal dark navy      */

  /* Supporting palette — Alt Legal indigo replaces old purple */
  --purple-500: #5466B7;

  /* Neutrals — matched to Alt Legal body text #1E2530 */
  --ink:        #1E2530;
  --slate-700:  #29375B;
  --slate-500:  #4A5568;
  --slate-300:  #CBD5E0;
  --mist:       #F7FAFC;
  --white:      #FFFFFF;

 /* TAG COLORS */
--deep-purple:#792DEB;
--bg-purple:#e7ddfc;

--deep-peach:#fcb737;
--bg-peach:#ffeeaf;

--deep-sky:#217F94;
--bg-sky:#d6f2fd;

--deep-red:#e0041a;
--bg-red:#ffdade;

--deep-clay:#0a879d;
--bg-clay:#bce5ed;

--deep-earth:#6b7f07;
--bg-earth:#eeeeed;

  /* Surface assignments */
  --color-bg:           var(--white);
  --color-bg-alt:       var(--mist);
  --color-bg-inverse:   var(--teal-900);   /* #29375B dark navy */
  --color-text:         var(--ink);
  --color-text-muted:   var(--slate-500);
  --color-text-inverse: var(--white);
  --color-brand:        var(--teal-500);
  --color-brand-hover:  var(--teal-600);
  --color-accent:       var(--purple-500);
  --color-border:       #DDE6E4;

  /* Type — Montserrat for headings (matches Alt Legal ), Inter for body */
  --font-heading: 'Montserrat', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Scale & spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(30, 37, 48, 0.07);
  --shadow-md: 0 8px 24px rgba(1, 155, 135, 0.12);
  --shadow-lg: 0 24px 56px rgba(1, 155, 135, 0.14);
  --maxw:      1180px;
  --shadow:0 4px 16px rgb(72, 107, 102, .28);
}

/* ============================================================
   --- RESET / BASE ---
   ============================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
section {padding:75px 0;}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height:1.3em;
}

h1 {
	font-size: calc(42rem / 16);
	letter-spacing: -.1px;
	line-height: calc(74 / 68);
}

h2 {
	font-size: calc(48rem / 16);
	letter-spacing: -.2px;
	line-height: calc(68 / 56);
  padding-bottom:12px;
}

h3 {
	font-size: calc(34rem / 16);
	letter-spacing: -.2px;
	line-height: calc(54 / 48);
}

h4 {
	font-size: calc(28rem / 16);
	letter-spacing: -.2px;
	line-height: calc(44 / 32);
}

h5 {
	font-size: calc(22rem / 16);
	font-weight: 500;
	letter-spacing: -.2px;
	line-height: calc(32 / 24);
}

h6 {
	font-size: calc(20rem / 16);
	font-weight: 500;
	letter-spacing: -.2px;
	line-height: calc(32 / 20);
}

p,
ul,
ol {
	line-height: calc(28 / 16);
	margin: 0 0 30px;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--color-brand-hover); text-decoration: underline; }

h3.subtitle {color:var( --teal-600);font-size:0.9rem;letter-spacing:0.12em;text-transform:uppercase;margin:0 0 40px 0;}
img { max-width: 100%; height: auto; display: block; }

.rev {color:#fff;}
.des {font-size:1.4rem;padding-bottom:48px;}


/* ============================================================
   --- LAYOUT PRIMITIVES ---
   ============================================================ */

.content-wrap   { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 75px 0; }
.section--tight { padding: 50px 0; }
.section--alt   { background: var(--color-bg-alt); }
.section--ink   { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.section--ink ,
.section--ink h2,
.section--ink h3 { color: var(--color-text-inverse); }

.grid    { display: grid; gap: 32px; }
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.18rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;     /* Alt Legal uses a modest border radius, not full pill */
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

/* Primary — Alt Legal solid teal */
.btn--primary {
  background: #37b882;
background: linear-gradient(130deg, rgba(55, 184, 130, 1) 0%, rgba(11, 150, 97, 1) 52%, rgba(6, 122, 78, 1) 100%);
  color: #ffffff;
  border-color: var(--color-brand);
}
.btn--primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  color: #ffffff;
  box-shadow: var(--shadow);
}

/* Ghost — Alt Legal indigo / secondary CTA */
.btn--ghost {
  background: rgba(255,255,255,.45);
  color: var(--purple-500);
  border-color: var(--purple-500);
}
.btn--ghost-2 {
  background: #fff;
  color: var(--teal-500);
  border-color: var(--teal-100);
}

.btn--ghost:hover {
  background: rgba(84, 102, 183, 0.07);
  color: var(--purple-500);
  box-shadow: var(--shadow);
}
.btn--ghost-2:hover {
  background: #fff;
  color: var(--teal-500);
  border-color: var(--teal-300);
  box-shadow: var(--shadow);
}

/* Inverse — white on dark bg */
.btn--inverse {
  background: rgba(255,255,255,.56);
  color: var(--teal-700);
  border-color: #ffffff;
}
.btn--inverse:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}
  .cta-btns-wrapper {
    display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px;
  }

.btn--ghost-inverse {background:transparent;color:rgba(255,255,255,.85);border-color:#fff;border-width:1.5px;padding:13px 50px;}
.btn--ghost-inverse:hover {
  background-color:rgba(255,255,255,.85);
  color: var(--teal-700);
}

@media (min-width: 900px) {
  /* Only target the button container and the buttons themselves */
  .cta-btns-wrapper {
    display: flex;
    gap: 20px;
    justify-content:center;
    margin-top:24px;
  }

  .cta-buttons-wrapper .btn--inverse,
  .cta-buttons-wrapper .btn--ghost-inverse {
    flex: 1;
    width: auto !important; /* Forces equal width regardless of text length */
  }
}

.btn.btn--ghost.px46 {padding-right:46px;padding-left:46px;}

/* ============================================================
   5. JOINT-BRAND HEADER
   ============================================================ */

.topbar {
  /* Alt Legal topbar gradient: teal → mid-teal → navy */
  background: #49ab9c;
background: linear-gradient(46deg, rgba(73, 171, 156, 1) 0%, rgba(46, 169, 176, 1) 38%, rgba(43, 85, 128, 1) 100%);
  color: var(--color-text-inverse);
  font-size: 0.85rem;
  padding: 10px 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.topbar { color: #fff;font-weight:500; }
.topbar a { color: #fff; text-decoration: underline;font-weight:500 }
.topbar a:hover { color: #ffffff; }

/* ============================================================
   NEW MODULAR NAVIGATION (Replaces old header styles)
   ============================================================ */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--color-border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 24px; max-width: var(--maxw); margin: 0 auto; }

.mobile-toggle { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 999; }
.hamburger-line { width: 100%; height: 3px; background-color: var(--teal-900); border-radius: 2px; transition: transform 0.3s ease-in-out; }

.nav-wrapper { 
  display: flex; /* Changed from none to ensure it renders */
  width: auto;
  padding: 0; 
  border:none; 
  box-shadow: none;
}
.nav-wrapper.is-open { display: flex; flex-direction: column; gap: 24px; }

.nav { 
  display: flex; 
  flex-direction: row; /* Horizontal alignment */
  align-items: center; 
  gap: 28px; 
  list-style: none; 
  padding: 0; 
  margin: 0 70px 0 0;
}
.nav > li > a { color: var(--color-text); font-weight: 500; font-size: 1.1rem; }
.nav-group__trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; background: transparent; border: 0; color: var(--color-text); font: inherit; font-weight: 500; font-size: 1.1rem; cursor: pointer; }
.nav-group__trigger::after { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform 160ms ease; }
.nav-group.is-open .nav-group__trigger::after { transform: rotate(180deg); }

.nav-menu { display: none; flex-direction: column; padding-left: 24px; margin-top: -10px; gap: 16px; }
.nav-group.is-open .nav-menu { display: flex; }
.nav-menu a { display: block; font-size: 1.05rem; font-weight: 500; color: var(--color-text); text-decoration: none;margin:0 0 16px 16px; }
.nav-menu a small { display: block; color: var(--color-text-muted); font-size: 0.85rem; font-weight: 400; margin-top: 4px; }

.header__cta { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.nav-group:hover .nav-menu {
  display: flex;
}

@media (max-width: 900px) {
  .nav-wrapper { display: none; position: absolute; width:100%; top: 100%; left: 0; background: #fff; padding: 24px; }
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nav > li,
  .nav-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 .nav-group__trigger {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }
 .nav-menu {
    display: none; /* Changed from !important to allow overrides */
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-left: 0;
    padding-top: 18px;
    margin: 0;
  }
  .nav-group.is-open > .nav-menu {
    display: flex !important; /* This uses the higher specificity to override the none */
  }
  .nav-menu a {
    margin: 0 0 10px 0 !important; /* Adds 6px space between items */text-align: center;
    display: block;      /* Ensures they behave like blocks for text-align */
    width: 100%;
  }
}
@media (min-width: 900px) {
  .mobile-toggle { display: none; }
  .nav-wrapper { display: flex; position: static; flex-direction: row; align-items: center; width: auto; background: transparent; padding: 0; box-shadow: none; border: none; }
  .nav { flex-direction: row; gap: 28px; }
  .header__cta { flex-direction: row; width: auto; }
  .nav-group { position: relative; }
  .nav-menu { position: absolute; top: calc(100% + 10px); left: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px; padding: 8px; box-shadow: var(--shadow-lg); min-width: 280px; display: block !important; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms ease, transform 160ms ease; }
  .nav-group:hover .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ============================================================
  Header Section
   ============================================================ */
.page-hero, .section-grad-01 {padding:0 0 50px;background: #fafafa;
background: linear-gradient(72deg, rgba(250, 250, 250, 1) 22%, rgba(170, 227, 219, 0.57) 62%, rgba(128, 163, 196, 0.63) 84%, rgba(0, 76, 148, 0.39) 100%);;border-bottom:1px solid var(--color-border)}
.page-hero .content-wrap {padding-left:3%;margin:0 auto 0 auto;}
.page-hero  {font-size:48px;}
.page-hero .lede {font-size:1.3rem;line-height:1.3em;color:var(--color-text-muted);max-width:58ch;margin-bottom:12px}

.hero {
  position: relative;
  padding: 96px 0 80px;
}
.home-hero .txt-wrap {
max-width:1200px;padding-left:3%;margin:0 auto;
}
h1 .grad-prp {
font-size: calc(48rem / 16);
background: #10605C;
background: linear-gradient(134deg, rgba(16, 96, 92, 1) 10%, rgba(1, 153, 134, 1) 35%, rgba(1, 153, 134, 1) 62%, rgba(66, 45, 204, 1) 100%);
-webkit-background-clip: text;
background-clip: text; /* Standard cross-browser compatibility */
    -webkit-text-fill-color: transparent;
    width: 100%;
}
.pre-title {font-size:.95em;}
.subtitle {font-size:.75em;}

.home-hero .txt-wrap ul {
    list-style: none !important;
    font-size: calc(21rem / 16);
	margin: 30px 0 30px 0;
    padding: 0;
}
.home-hero .txt-wrap ul li, .company-info ul li {
background: url('../img/list-arrow.svg') no-repeat 0 40% !important; 
    background-size: 25px auto !important;
    padding-left: 40px !important; 
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero__cta   { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.company-info ul {
    list-style: none !important;
    font-size:18px;
    padding: 0;
    margin-left:0;
}
.company-info ul li {
background: url('../img/list-arrow.svg') no-repeat 0 5% !important; 
    background-size: 25px auto !important;
    padding-left: 40px !important; 
    line-height: 1.7;
    margin-bottom: 12px;
}
/* ============================================================
  CTA Block
   ============================================================ */
.cta {padding:75px 24px 0;}

/* ============================================================
   9. TESTIMONIAL
   ============================================================ */

.quote {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  top: -16px;
  left: 24px;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-brand);
  font-family: Georgia, serif;
}
.quote p { font-size: 1.05rem; color: var(--color-text); margin-bottom: 16px; }
.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  font-size: 0.95rem;
}
.quote cite span {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ============================================================
PLATFORM TABS
   ============================================================ */

.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tabs__btn {
  background: transparent;
  border: 0;
  padding: 14px 20px;
  font: inherit;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tabs__btn[aria-selected="true"] {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}
@media (max-width: 800px) {
  .tabs {
  gap: 4px;
}
  .tabs__btn {
 padding: 14px 8px;
}
}


.tabpanel { display: none; }
.tabpanel[data-active="true"] { display: block; }

/* ============================================================
 FEATURE LIST (platform page)
   ============================================================ */

.features { columns: 2; column-gap: 48px; }
@media (max-width: 800px) { .features { columns: 1; } }
.features > div {
  break-inside: avoid;
  margin-bottom: 32px;
  padding:0 24px 0 12px;
}
.features h4, .company-info h4 {
  font-size: 1.4rem;
  color: var(--color-brand);
  margin: 0 0 6px;
  padding-bottom:8px;
  font-weight: 600;

}
.features p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* ============================================================
EVENTS / BLOG LIST
   ============================================================ */

.list-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.list-item__date {
  font-weight: 700;
  color: var(--color-brand);
  font-size: 0.92rem;
}

.list-item__title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
  margin: 0;
}

.list-item__title a { color: inherit; }
.list-item__title a:hover { color: var(--color-brand); text-decoration: none; }
.list-item__cta { font-size: 0.9rem; font-weight: 600; }

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

/* ============================================================
FOOTER
   ============================================================ */

.footer {
  background: #1f5d65;
  color: var(--color-text-inverse);
  padding: 72px 0 32px;
  margin-top: 88px;
}

.footer__cols {
  display: grid;
  /* 35% for the first, 1fr each for the middle two, 13% for the last */
  grid-template-columns: repeat(3, 1fr) 13%;
  gap: 40px;
}

.footer a { color: var(--teal-100); }
.footer a:hover { color: var(--color-text-inverse); }
.footer h4 {
  color: var(--color-text-inverse);
  font-size: 0.85rem;
  font-weight:600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color:#fff;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer__legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
.footer__cols {
  display: grid;
  grid-template-columns: 1fr; /* Stacks everything as one full-width column */
  gap: 30px;
}
}

/* ============================================================
  16. UTILITY
   ============================================================ */
/******** Basic Padding ************/
.p12 {padding:12px}
.p16 {padding:16px}
.p24 {padding:24px}
.p36 {padding:36px}

.pt18 {padding-top:18px;}
.pt24 {padding-top:24px;}
.pt36 {padding-top:36px;}
.pt50 {padding-top:50px;}
.pt75 {padding-top:75px;}

.pb18 {padding-bottom:18px;}
.pb24 {padding-bottom:24px;}
.pb36 {padding-bottom:36px;}
.pb50 {padding-bottom:50px;}
.pb75 {padding-bottom:75px;}

.py24 {padding:24px 0;}
.py36 {padding:36px 0;}
.py50 {padding:50px 0;}
.py75 {padding:50px 0;}

.pl16 {padding-left:16px !important;}
.pl18 {padding-left:18px !important;}
.pl24 {padding-left:24px !important;}
.pl36 {padding-left:36px !important;}
.pl48 {padding-left:48px !important;}
.pl68 {padding-left:68px !important;}

.pr16 {padding-right:16px !important;}
.pr18 {padding-right:18px !important;}
.pr24 {padding-right:24px !important;}
.pr36 {padding-right:36px !important;}
.pr48 {padding-right:48px !important;}
.pr68 {padding-right:68px !important;}


.mt18 {margin-top:18px;}
.mt24 {margin-top:24px;}
.mt36 {margin-top:36px;}
.mt50 {margin-top:50px;}
.mt75 {margin-top:75px;}

.mb18 {margin-bottom:18px;}
.mb24 {margin-bottom:24px;}
.mb36 {margin-bottom:36px;}
.mb50 {margin-bottom:50px;}
.mb75 {margin-bottom:75px;}


.tc {
  display: flex;          /* Activates Flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  text-align: center;
}
.text-center { text-align: center; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px;
  width: auto; height: auto;
  padding: 8px 14px;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  z-index: 999;
}

/* --- Section heading rhythm --- */
.section__head {
  text-align: center;padding-bottom:50px;
}
.section__head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
  letter-spacing: -0.015em;
}
.section__head p { color: var(--color-text-muted); margin: 0; font-size: 1.3rem;
}

@media (max-width: 800px) {
  .section__head { grid-template-columns: 1fr; gap: 16px; }
}

/**************************************************************
 --- BLOG OVERVIEW + ARTICLE ---
***************************************************************/
.feature-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--cream), var(--color-bg));
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.feature-post::before {
  content: '';
  position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,168,0.18), transparent 70%);
  pointer-events: none;
}
.feature-post__media {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-700));
  box-shadow: var(--shadow-lg);
  position: relative;
}
.feature-post__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-post h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  margin: 12px 0 16px;
}
.feature-post h2 a { color: inherit; }
.feature-post h2 a:hover { color: var(--color-brand); text-decoration: none; }
.feature-post p { color: var(--color-text-muted); }

@media (max-width: 800px) {
  .feature-post { grid-template-columns: 1fr; padding: 24px; }
}

/* --- Blog grid card --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {display:grid;grid-template-columns:repeat(2,1fr);gap:24px;}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  background: rgba(255, 255, 255,.35);
  border: 2px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 24px 26px 22px;
  gap: 12px;
  overflow: hidden;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

.post-card:hover {
  background:rgba(255,255,255,1);border-color:var(--teal-300);box-shadow: var(--shadow-lg);
}
.post-card.null:hover {
  border-color:var(--teal-100);box-shadow: none;
}
.post-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-500));
  position: relative;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__category {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--teal-700);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: flex; gap: 12px;
}
.post-card__meta span::after {
  content: '·';
  margin-left: 12px;
  color: var(--color-border);
}
.post-card__meta span:last-child::after { display: none; }
.post-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-brand); text-decoration: none; }
.post-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}
.post-card__more {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-brand);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
}

/* --- ARTICLE TEMPLATE STYLES --- */
.article {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 1000px) {
  .article { grid-template-columns: 1fr; }
  .article__rail, .article__aside { display: none; }
}

.article__hero {
  margin-bottom: 56px;
  padding: 56px 0 32px;
}
.article__hero .content-wrap { max-width: 1100px; margin: 0 auto; }
.article__crumb {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.article__crumb a { color: var(--color-brand); font-weight: 600; }

.article__title {
font-size:40px;
line-height:1.2em !important;
margin-right:15%;
}

.article__meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.article__meta strong { color: var(--color-text); }
.article__hero-image {
  margin: 40px auto 0;
  max-width: 920px;
  aspect-ratio: 16/8;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-700));
  box-shadow: var(--shadow-lg);
}
.article__hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky share rail */
.article__rail {
  top: 120px;
  align-self: start;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (min-width: 801px) {
  .article__rail {
    position: sticky;
  }
}

@media (max-width: 800px) {
.article__rail {
  top: 120px;
  align-self: start;
  display: flex; 
  flex-direction: row; /* Changed from column to row */
  align-items: center; /* Ensures vertical alignment when horizontal */
  gap: 12px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding:18px 0;
  border-top:1px solid var(--color-border);
  border-bottom:1px solid var(--color-border);
}
}
.share-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--mist);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  transition: all 120ms ease;
}
.share-btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
  color: var(--teal-700);
  text-decoration: none;
}
.share-btn-ftr {
  width: 20px; height: 20px;
  border-radius: 3px;
  display: grid; place-items: center;
  background-color: rgba(255,255,255,.2);
  color: var(--color-text);
  border: none;
  font-size: 0.5rem;
  transition: all 120ms ease;
}
.share-btn-ftr:hover {
  background: var(--teal-50);
  color: var(--teal-700);
  text-decoration: none;
}

/* Article aside */
.article__aside {
  display: grid; gap: 24px;
  align-self: start;
  position: sticky; top: 120px;
}

blockquote {
  border-left: 4px solid var(--color-brand);
  margin: 1.5em 0;
  padding: 12px 0 12px 24px;
  color: var(--color-text-muted);
  font-style: italic;
}

/****************************************************
 --- CTA STRIPE + ADDITIONAL COMPONENTS ---
****************************************************/

/* Dark teal→navy gradient CTA band (Alt Legal gradient applied) */
.cta-stripe {
 background: #49ab9c;
background: linear-gradient(48deg, rgba(73, 171, 156, 1) 0%, rgba(46, 169, 176, 1) 38%, rgba(43, 85, 128, 1) 100%);border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.cta-stripe::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-stripe h2 {
  color: #ffffff;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.cta-stripe p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 0;
  position: relative; z-index: 1;
}
.cta-stripe > * { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .cta-stripe { padding: 40px 24px; }
}

/* Eyebrow color tweak — ensure teal eyebrows stay legible */
.eyebrow {
  color: var(--color-brand);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Section-head eyebrow variant */
.section__head .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--color-brand);
}

/* ── Responsive fixes ── */
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%;}
}

/**************************************
 --- HOMEPAGE: START ---
 **************************************/
 .hero--v2 {
  position: relative;
  padding: 75px 0 80px;
  /* Keep ONLY the gradient here */
  background-image: linear-gradient(124deg, rgba(255, 255, 255, 1) 37%,  rgba(1, 155, 135, .2) 57%, rgba(1, 155, 135, .7) 80%, rgba(16, 96, 92, .6) 95%, rgba(16, 96, 92, .7) 100%);
  overflow: hidden;
}
.hero--v2 .content-wrap {
  position: relative; 
  z-index: 2; /* Pulls all your text and buttons to the very top! */
}
 .content-wrap .home-hero { padding-left:80px;max-width:1200px;position:relative;z-index:1;}


 /**********************************
 --- HOMEPAGE: STAT BAR ---
 ************************************/
.stats {
  background: linear-gradient(100deg, #019B87 4%, #128799 52%, #004C94 99%);
  color: var(--color-text-inverse);
  padding: 20px 0 30px 0;
  position: relative;
  overflow: hidden;
  border-top:1px solid #fff;
}
.stats__grid {
  display: grid;
 grid-template-columns:repeat(3,1fr);
  gap: 24px;
  text-align: center;
  position: relative; z-index: 1;
}
.stats__grid .hero--v2::before {
 font-weight: 800;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--color-text-inverse);
}
.stats h2 {
  font-family: var(--font-heading);font-size:48px;color:#fff;margin-bottom:8px;
}
.stats p {
 font-size: 1.1rem;
 letter-spacing: .1em;
 color: rgba(255,255,255,0.8);
 text-transform: uppercase;
  margin: 0;
  font-family: var(--font-body);
  font-weight:500;
}
.stat h2 sup { font-size: 0.55em; color: rgba(255,255,255,0.75); vertical-align: super; }

@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(1, 1fr); gap: 36px; }
}


/**************************************
 --- HOMEPAGE: MARQUEE CAROUSEL ---
 **************************************/
    .marquee-carousel {max-width:1200px;padding:25px 0 50px 0;margin:0 auto;}

    .marquee-wrap {
      overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    }
    .marquee-track {
      display: flex;
      gap: 64px;
      align-items: center;
      width: max-content;
      animation: al-marquee 22s linear infinite;
    }
    .marquee-track:hover { animation-play-state: paused; }
    .marquee-track img {
      max-height: 64px;
      width: auto;
      filter: grayscale(1);
      opacity: 0.65;
      transition: opacity 200ms ease, filter 200ms ease;
      flex-shrink: 0;
    }
    .marquee-track img:hover { opacity: 1; filter: grayscale(0); }
    @keyframes al-marquee {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

/**************************************
 --- HOMEPAGE: TESTIMONIALS ---
**************************************/
#testimonials {
  background:#f4f6f9;
}

.tq {
      max-width: 780px;
      margin: 0 auto;
      text-align: center;
      padding: 0 24px;
      position: relative; 
}
/* Shared styles to set the size and 30% transparency */
.tq::before {
  content: "";
  position: absolute;
  width: 40px; /* Adjust to match your SVG dimensions */
  height: 40px; /* Adjust to match your SVG dimensions */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.10;
  z-index: 0; /* Keeps them behind the sliding text */
  background-image: url('/assets/img/quote-start.svg');
  top: -20px;
  left: -10px;
}
    .tq__slides {
      position: relative;
      min-height: 140px;
    }
    .tq__slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.6s ease;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .tq__slide.is-active {
      opacity: 1;
      pointer-events: auto;
      position: relative;
    }
    .tq__text {
      font-size: 1.22rem;
      line-height: 1.65;
      color: var(--color-text);
      font-weight: 400;
      margin: 0 0 24px;
    }
    .tq__author {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }
    .tq__name {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--color-text);
    }
    .tq__role {
      font-size: 0.84rem;
      color: var(--color-text-muted);
    }
    .tq__dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 36px;
    }
    .tq__dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--color-border);
      border: none;
      padding: 0;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }
    .tq__dot.is-active {
      background: var(--teal-500);
      transform: scale(1.3);
    }
    .tq__nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      margin-top: 12px;
    }
    .tq__arrow {
      background: none;
      border: 1px solid var(--color-border);
      border-radius: 50%;
      width: 36px;
      height: 36px;
      cursor: pointer;
      font-size: 1rem;
      color: var(--color-text-muted);
      display: grid;
      place-items: center;
      transition: border-color 0.15s, color 0.15s;
    }
    .tq__arrow:hover {
      border-color: var(--teal-500);
      color: var(--teal-500);
    }
    .tq__reviews {
      margin-top: 40px;
      font-size: 0.84rem;
      color: var(--color-text-muted);
    }
    .tq__reviews a { color: var(--color-brand); }

/*************************************
 --- ABOUT US: STATS ---
 *************************************/

.about-stats-container {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* Space between content and the lines */
}

.about-stat-col {
  flex: 1; /* Makes all 3 columns equal width */
  padding: 0 20px;
  border-right: 1px solid var(--color-border); /* Creates the vertical line */
}
/* Remove the border from the last column so it doesn't have a trailing line */
.about-stat-col:last-child {
  border-right: none;
}

.about-stat-header {
  display: flex;
  align-items: flex-start; /* Keeps them aligned at the top */
  gap: 10px;
}
.about-stat-numeral {
  color:var(--color-brand);
  flex: 0 0 auto;        /* Keeps the numeral from shrinking */
  margin: 0;
}

.about-stat-numeral h3 {
    font-size:50px;
  font-weight:600;
  color:var(--teal-300);
  margin: 0;             /* Reset default margins for alignment */
}

.about-stat-title h3 {
  font-size:24px;
  font-weight:400;
  color:var(--teal-300);
  margin: 0;             /* Keep title flush left */
  line-height: 2.5;      /* Adjust if needed for vertical alignment */
}
.about-stat-title p {
 margin-right: 30px;             /* Keep title flush left */
}

/* Ensure the paragraph clears the header */
.about-stat-col p {
  margin-top: 10px;
}

/* Mobile: Stack them vertically and remove the borders */
@media (max-width: 768px) {
  .about-stats-container {
    flex-direction: column;
  }
  .about-stat-col {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
}

/***************************************************
 --- ABOUT US: DIRECTORS ---
 ****************************************************/
.director {
  display: flex; flex-direction: column;
  text-align: center;
}
.director__photo {
  width: 60%;
  aspect-ratio: 1;
  border:1px solid var(--color-border);
  border-radius: 50%;
  overflow: hidden;
  margin:0 auto 50px auto;
  position: relative;
}
.director__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  transition: filter 300ms ease;
}
.director__role {
  font-size:1em !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand) !important;
  font-weight: 500;
  padding-bottom: 18px;
}
.director__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text);
}
.director__contact {
  color: var(--color-text-muted);
  font-size:.9em !important;
  margin: 0;
}

/**************************************
 --- BLOG:INDEX ---
 **************************************/
    .home-blog {
      padding:50px 0;background:#fff;}
    .blog-list {
      display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
   
      @media (max-width:860px) {
    .blog-list { grid-template-columns:1fr; } }
    
        @media (max-width:860px) {
    .post-card {min-height:200px;}
        }
  
    .card-item__meta {
      display:flex;
      align-items:center;
      gap:18px;
      font-size:0.78rem;
      color:var(--color-text-muted);
      padding-bottom:6px;
    }
    .card-item__tag {
      font-size:0.72rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
      color:var(--teal-600); background:var(--teal-50);
      padding:2px 8px; border-radius:4px;
    }
     .card-item__tag.career {
     color:var(--deep-sky); background:var(--bg-sky);
    }
      .card-item__tag.industry {
     color:var(--deep-earth); background:var(--bg-earth);
    }
      .card-item__tag.news {
     color:var(--deep-red); background:var(--bg-red);
    }
      .card-item__tag.insight {
     color:var(--deep-purple); background:var(--bg-purple);
    }
      .card-item__tag.event {
     color:var(--deep-earth); background:var(--bg-earth);
    }

    .blog-item h3, .event-item h3 { font-size:1rem; font-weight:600; line-height:1.4; margin:0; }
    .blog-item h3 a { color:var(--color-text); text-decoration:none; }
    .blog-item h3 a:hover { color:var(--color-brand); }
    .blog-item p, .event-item p { font-size:0.88rem; color:var(--color-text-muted); line-height:1.6; flex:1; }
    .blog-item p.p2 { margin-top:67px;}
     .blog-item p.p3 { margin-top:46px;}   
    @media (max-width:860px) {
       .blog-item p.p2 { margin-top:0;}
     .blog-item p.p3 { margin-top:0;}   }

    .card-item__link { font-size:0.84rem; font-weight:600; color:var(--color-brand); text-decoration:none; margin-top:auto; }
    .card-item__link:hover { text-decoration:underline; }

.group-container {max-width: 1200px; margin: 0 auto; width: 90%;padding-left:0;}

.post-year {
  width: 100%;
  border-bottom:solid 2px var(--teal-300);
}
.group-year {
  display: flex;
  width: 100%;
  margin:0 auto;
  align-items: stretch; /* This forces both child divs to stretch vertically to match the tallest column */
}
.post-year h2 {color: var(--teal-300);}
.posts {
   width: 100%;
   padding-top:75px;
  flex-grow: 10; 
  border-top:2px solid var(--teal-300);
}


  /********************************
  FORM PAGE
   ********************************/
  .layout-container {
    max-width: 1100px;
    margin: 40px auto;
    display: flex;
    background: rgba(130, 157, 153, 0.4);
    border-radius: 20px;
    overflow: hidden;
  }

  /* Left Panel */
  .info-panel {
    background-color: var(--teal-500);
    color: #fff;
    padding: 50px 45px;
    flex: 1;
    max-width: 450px;
  }

  /* Right Panel / HubSpot Form Container */
  .form-panel {
    padding: 50px 60px;
    flex: 2;
  }
  .form-target {
    background-color:red;
  }

  /* Responsive Stacking */
  @media (max-width: 850px) {
    .layout-container {
      flex-direction: column;
      margin: 20px;
    }
    .info-panel {
      max-width: 100%;
      padding: 40px 30px;

    }
    .form-panel {
      padding: 40px 30px;
    }
    .title-bar {
      justify-content: center;
    }
  }