/* ================================================
   UBL — Uva Wellassa University  v4
   Playfair Display + Source Sans 3
   Primary #FF3115  |  Dark #252525
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ─── FONT & SIZE PARAMS (edit here) ─────────── */
:root {

  /* Brand colours */
  --red:        #FF3115;
  --red-dark:   #d42610;
  --red-light:  #ff6347;
  --dark:       #252525;
  --dark2:      #1a1a1a;
  --dark3:      #2e2e2e;
  --body-text:  #3a3a3a;
  --mid:        #5c5c5c;
  --muted:      #888;
  --border:     #e0e0e0;
  --bg-light:   #f8f7f5;
  --bg-cream:   #faf9f7;
  --white:      #ffffff;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:  0 3px 14px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.16);

  /* Radii */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Animation */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .28s cubic-bezier(.4,0,.2,1);

  /* ── FONT FAMILIES ── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  /* ── FONT SIZES — tweak all sizes here ── */
  --fs-body:        20px;   /* base body copy */
  --fs-body-sm:     15px;   /* secondary body copy */
  --fs-body-xs:     13.5px; /* captions, small labels */

  --fs-heading-xl:  clamp(44px, 6vw,  72px);  /* hero title main word */
  --fs-heading-lg:  clamp(34px, 4.5vw, 54px); /* section headings */
  --fs-heading-md:  clamp(24px, 3vw,  36px);  /* sub-section headings */
  --fs-heading-sm:  22px;                      /* card titles */
  --fs-heading-xs:  19px;                      /* small card / list titles */

  --fs-page-hero:   clamp(40px, 6vw,  68px);  /* page hero h1 */
  --fs-hero-title:  clamp(52px, 8vw,  96px);  /* homepage hero title */

  --fs-eyebrow:     12px;   /* eyebrow labels */
  --fs-label:       13px;   /* misc labels / roles */
  --fs-nav:         14px;   /* desktop nav links */
  --fs-logo-name:   17px;   /* logo text */

  --fs-testi:       17px;   /* testimonial quote text */
  --fs-vm:          16px;   /* vision / mission text */
  --fs-stat-num:    48px;   /* hero stat numbers */
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size:   var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--body-text);
  background: #fff;
  overflow-x: hidden;
}
a    { text-decoration: none; color: inherit; }
img  { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── LAYOUT ─────────────────────────────────── */
.container   { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section-pad { padding: 90px 0; }
.section-sm  { padding: 60px 0; }

/* ─── TYPOGRAPHY ─────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* Section heading — NO italic, NO em colour trick */
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-heading-lg);
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -.2px;
}
/* Any span/strong inside headings that needs accent colour */
.section-heading .accent { color: var(--red); }

.section-sub {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--mid);
  line-height: 1.8;
  max-width: 600px;
  margin-top: 16px;
}

.centered { text-align: center; }
.centered .section-sub { margin: 16px auto 0; }

/* Paragraph body copy */
.body-p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--body-text);
  line-height: 1.8;
}
.body-p + .body-p { margin-top: 14px; }

/* Utility */
.text-red   { color: var(--red); }
.text-muted { color: var(--muted); }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Two-column grids used in inner pages */
.two-col        { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col-center { align-items: center; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr !important; gap: 36px; } }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .4px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary  { background: var(--red);  color: #fff; border-color: var(--red); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,49,21,.3); }
.btn-ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover    { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-dark     { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover     { background: #000; transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover  { background: var(--red); color: #fff; transform: translateY(-2px); }
.btn-white    { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover    { background: var(--bg-light); }

/* ─── TOP BAR ─────────────────────────────────── */
.topbar {
  background: var(--dark2);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-body-xs);
  color: rgba(255,255,255,.52);
  font-family: var(--font-body);
}
.topbar-item a:hover { color: var(--red); }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .7; }
.topbar-right {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  font-family: var(--font-body);
}

/* ─── HEADER ──────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
  background: rgba(37,37,37,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}
.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-logo-name);
  color: #fff;
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}

/* Desktop nav */
.desktop-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-nav);
  color: rgba(255,255,255,.78);
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  position: relative; white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--red); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link .chevron { width: 11px; height: 11px; transition: transform var(--t); }
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--dark3); min-width: 220px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--t); z-index: 200;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 12px 18px;
  font-family: var(--font-body); font-weight: 500;
  font-size: var(--fs-body-sm);
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: all var(--t);
}
.dropdown a:hover { background: rgba(255,49,21,.1); color: #fff; padding-left: 24px; }
.dropdown a:last-child { border-bottom: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 1px;
  transition: all var(--t); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--dark2); overflow-y: auto;
  z-index: 950; padding: 24px 24px 48px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: none;
}
.mobile-nav.ready { display: block; }
.mobile-nav.open  { transform: translateX(0); }
.mob-link {
  display: block; padding: 16px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--t);
}
.mob-link:hover { color: var(--red); }
.mob-group-label {
  font-family: var(--font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red);
  margin: 22px 0 6px;
}
.mob-sub-link {
  display: block; padding: 10px 0 10px 14px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color var(--t);
}
.mob-sub-link:hover { color: var(--red); }

/* ─── HERO ────────────────────────────────────── */
.hero {
  background: var(--dark2);
  position: relative; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 54px 54px;
}
.hero-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 70% 50%, rgba(255,49,21,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 90%,  rgba(255,49,21,.05) 0%, transparent 50%);
}
.hero-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(255,49,21,.25) 60%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 60px 0; }
.hero-content { max-width: 700px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,49,21,.1); border: 1px solid rgba(255,49,21,.22);
  border-radius: var(--radius-sm); padding: 5px 14px;
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-hero-title);
  line-height: 1.02; color: #fff; letter-spacing: -.5px; margin-bottom: 8px;
}
.hero-title .line-red    { color: var(--red); }
.hero-title .line-muted  { color: rgba(255,255,255,.45); }
.hero-desc {
  font-family: var(--font-body); font-size: 18px;
  color: rgba(255,255,255,.62); line-height: 1.75;
  max-width: 540px; margin: 22px 0 34px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 52px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-stat-num); color: var(--red); line-height: 1; letter-spacing: -.5px;
}
.stat-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.38); margin-top: 4px;
}

/* ─── AREAS GRID (3+2 layout) ─────────────────── */
.key-areas { background: var(--bg-light); }
.area-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  border-bottom: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all var(--t); display: block;
  position: relative; overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-bottom-color: var(--red); }
.area-card:hover::before { transform: scaleX(1); }
.area-card-img {
  width: 100%; height: 150px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-light); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.area-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.area-card:hover .area-card-img img { transform: scale(1.06); }
.area-card-img-placeholder {
  width: 52px; height: 52px;
  background: rgba(255,49,21,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.area-card:hover .area-card-img-placeholder { background: rgba(255,49,21,.16); }
.area-card-img-placeholder svg { width: 24px; height: 24px; color: var(--red); }
.area-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-heading-sm); line-height: 1.25;
  color: var(--dark); margin-bottom: 10px;
}
.area-card p {
  font-family: var(--font-body); font-size: var(--fs-body-sm);
  color: var(--mid); line-height: 1.7;
}

/* ─── ABOUT SECTION ───────────────────────────── */
.about-section { background: var(--dark); }
.about-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-points  { display: flex; flex-direction: column; gap: 15px; margin-top: 28px; }
.about-point   { display: flex; gap: 13px; align-items: flex-start; }
.ap-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; margin-top: 9px; flex-shrink: 0; }
.ap-text { font-size: var(--fs-body); color: rgba(255,255,255,.70); line-height: 1.7; }

.vm-box {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.vm-label {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.vm-text {
  font-family: var(--font-display); font-size: var(--fs-vm);
  color: rgba(255,255,255,.75); line-height: 1.8;
}
.vm-divider { height: 1px; background: rgba(255,255,255,.07); }

/* ─── SERVICE CARDS ───────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 52px;
}
.service-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 30px;
  position: relative; overflow: hidden; transition: all var(--t);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 56px; color: rgba(255,49,21,.07); line-height: 1; margin-bottom: 14px;
}
.service-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-heading-xs); color: var(--dark); margin-bottom: 12px; line-height: 1.3;
}
.service-card p { font-size: var(--fs-body-sm); color: var(--mid); line-height: 1.75; }

/* ─── PATENT CARDS ────────────────────────────── */
.patents-section { background: var(--bg-light); }
.patents-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 52px;
}
.patent-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm); transition: all var(--t);
}
.patent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.patent-status {
  display: inline-block; background: rgba(255,49,21,.08); color: var(--red);
  font-family: var(--font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.patent-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-heading-xs); color: var(--dark); line-height: 1.3; margin-bottom: 7px;
}
.patent-num { font-size: var(--fs-body-xs); color: var(--muted); margin-bottom: 13px; }
.patent-feat { display: flex; flex-direction: column; gap: 6px; }
.patent-feat-item {
  font-size: var(--fs-body-xs); color: var(--mid);
  display: flex; gap: 8px; align-items: flex-start;
}
.patent-feat-item::before { content: '→'; color: var(--red); flex-shrink: 0; font-size: 12px; margin-top: 2px; }

/* ─── TESTIMONIALS ────────────────────────────── */
.testimonials-section { background: var(--dark); padding: 90px 0; }
.testi-header { margin-bottom: 56px; }
.testi-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testi-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl); padding: 44px;
  transition: all var(--t); position: relative;
}
.testi-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,49,21,.25); transform: translateY(-3px); }
.testi-quote {
  font-family: var(--font-display); font-size: 80px;
  line-height: .75; color: var(--red); opacity: .3;
  margin-bottom: 18px; display: block; user-select: none;
}
.testi-text {
  font-family: var(--font-body); font-size: var(--fs-testi);
  color: rgba(255,255,255,.82); line-height: 1.85; margin-bottom: 32px;
}
.testi-author { display: flex; align-items: center; gap: 16px; }
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: #fff; flex-shrink: 0;
}
.testi-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: #fff; line-height: 1.3;
}
.testi-role {
  font-family: var(--font-body); font-size: var(--fs-label);
  color: var(--red); font-weight: 700; margin-top: 4px; letter-spacing: .3px;
}

/* ─── DOWNLOADS ───────────────────────────────── */
.downloads-section { background: var(--dark2); padding: 80px 0; }
.downloads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.dl-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 14px; transition: all var(--t);
}
.dl-card:hover { background: rgba(255,255,255,.07); border-color: var(--red); transform: translateY(-2px); }
.dl-icon {
  width: 48px; height: 48px; background: rgba(255,49,21,.12);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.dl-icon svg { width: 22px; height: 22px; color: var(--red); }
.dl-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.dl-card p  { font-family: var(--font-body); font-size: var(--fs-body-sm); color: rgba(255,255,255,.48); flex: 1; line-height: 1.7; }
.dl-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-body-xs); letter-spacing: 1px; text-transform: uppercase;
  color: var(--red); transition: gap var(--t);
}
.dl-link:hover { gap: 12px; }
.dl-link svg { width: 13px; height: 13px; }

/* ─── CONTACT CTA ─────────────────────────────── */
.contact-cta { background: linear-gradient(135deg, var(--red) 0%, #c02400 100%); padding: 76px 0; }
.cta-inner   { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-content h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-heading-md); color: #fff; line-height: 1.1; margin-bottom: 14px;
}
.cta-content p { font-size: var(--fs-body); color: rgba(255,255,255,.82); line-height: 1.75; }
.cta-btns    { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta-contacts { display: flex; flex-direction: column; gap: 22px; }
.cta-contact-item { display: flex; gap: 14px; align-items: flex-start; }
.cta-contact-item svg { width: 18px; height: 18px; color: rgba(255,255,255,.7); margin-top: 3px; flex-shrink: 0; }
.cta-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 3px; }
.cta-value { font-size: var(--fs-body); color: #fff; line-height: 1.7; }
.cta-value a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }

/* ─── FOOTER ──────────────────────────────────── */
.site-footer { background: #111; padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 42px; }
.footer-brand p { font-size: var(--fs-body-sm); color: rgba(255,255,255,.42); line-height: 1.75; margin-bottom: 18px; }
.footer-col h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: var(--fs-body-sm); color: rgba(255,255,255,.45); transition: all var(--t); }
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: var(--fs-body-xs); color: rgba(255,255,255,.28);
}
.footer-bottom a { color: var(--red); }

/* ─── PAGE HERO ───────────────────────────────── */
.page-hero {
  background: var(--dark); padding: 68px 0 60px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(255,49,21,.055) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
}
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-body-xs); color: rgba(255,255,255,.38);
  font-weight: 500; margin-bottom: 18px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb span { color: rgba(255,255,255,.22); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-page-hero);
  color: #fff; line-height: 1.1; letter-spacing: -.3px; margin-bottom: 16px;
}
.page-hero h1 .accent { color: var(--red); }
.page-hero p {
  font-size: 18px; color: rgba(255,255,255,.58);
  max-width: 560px; line-height: 1.75;
}

/* ─── INNER PAGE HEADINGS ─────────────────────── */
/* h2 inside content sections */
.content-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-heading-md); color: var(--dark); line-height: 1.2;
  margin-bottom: 14px;
}
/* h3 sub-headings */
.content-h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-heading-sm); color: var(--dark); line-height: 1.25;
  margin-bottom: 10px;
}

/* ─── HIGHLIGHT BOX ───────────────────────────── */
.highlight-box {
  background: rgba(255,49,21,.05); border: 1px solid rgba(255,49,21,.14);
  border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 22px 26px; margin: 26px 0;
}
.highlight-box p { font-size: var(--fs-body); color: #444; line-height: 1.75; }
.highlight-box strong { color: var(--red); }

/* ─── ACCORDION ───────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: #fff; cursor: pointer;
  border: none; width: 100%; text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  color: var(--dark); transition: all var(--t);
}
.acc-header:hover,
.acc-header.open { background: rgba(255,49,21,.03); color: var(--red); }
.acc-header svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t); }
.acc-header.open svg { transform: rotate(180deg); color: var(--red); }
.acc-body { display: none; padding: 0 22px 22px; background: #fff; font-size: var(--fs-body); color: var(--mid); line-height: 1.8; }
.acc-body.open { display: block; }

/* ─── TABLE ───────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: #fff; }
thead { background: var(--dark); }
thead th {
  padding: 16px 18px; text-align: left;
  font-family: var(--font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
thead th:first-child { border-left: 3px solid var(--red); }
tbody tr { border-bottom: 1px solid #f0f0f0; transition: background var(--t); }
tbody tr:hover { background: rgba(255,49,21,.02); }
tbody td { padding: 15px 18px; vertical-align: top; font-size: var(--fs-body-sm); color: #444; }
tbody td:first-child { font-weight: 600; color: var(--dark); font-size: var(--fs-body); }
.td-ul { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.td-ul li { font-size: var(--fs-body-sm); color: var(--mid); }
.td-ul li::before { content: '• '; color: var(--red); }

/* ─── REVENUE TABLE ───────────────────────────── */
.rev-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rev-table th, .rev-table td { padding: 13px 18px; text-align: center; border: 1px solid #eee; }
.rev-table th { background: var(--dark); color: rgba(255,255,255,.8); font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.rev-table td { font-size: 16px; }
.rev-table td:first-child { text-align: left; color: var(--mid); font-weight: 400; font-size: var(--fs-body); }
.rev-highlight { background: rgba(255,49,21,.07); color: var(--red); font-weight: 700; }

/* ─── IPR GRID ────────────────────────────────── */
.ipr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ipr-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 24px; transition: all var(--t);
}
.ipr-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); transform: translateY(-3px); }
.ipr-glyph { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--red); opacity: .6; line-height: 1; margin-bottom: 12px; }
.ipr-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-heading-xs); color: var(--dark); margin-bottom: 9px; }
.ipr-card p  { font-size: var(--fs-body-sm); color: var(--mid); line-height: 1.7; }

/* ─── PERSON / TEAM CARDS ─────────────────────── */
.person-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 38px 28px;
  text-align: center; transition: all var(--t); box-shadow: var(--shadow-xs);
}
.person-card:hover { box-shadow: var(--shadow-md); border-color: rgba(255,49,21,.3); transform: translateY(-3px); }
.person-photo {
  width: 100px; height: 100px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: 4px solid rgba(255,49,21,.12);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff;
}
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--dark); margin-bottom: 5px; line-height: 1.3; }
.person-role { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-label); letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.person-contact { font-size: var(--fs-body-sm); color: var(--muted); line-height: 1.85; }
.person-contact a { color: var(--red); }

/* ─── GALLERY ─────────────────────────────────── */
.gallery-item {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding: 28px 16px 16px;
  font-size: var(--fs-body-sm); color: #fff; font-weight: 600; line-height: 1.4;
}

/* ─── SCROLL TOP ──────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all var(--t); z-index: 800;
  box-shadow: 0 4px 16px rgba(255,49,21,.4);
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ─── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu { opacity: 0; transform: translateY(24px); }
.fu.in { animation: fadeUp .6s var(--ease) forwards; }
.fu-d1.in { animation-delay: .08s; }
.fu-d2.in { animation-delay: .17s; }
.fu-d3.in { animation-delay: .26s; }
.fu-d4.in { animation-delay: .35s; }
.fu-d5.in { animation-delay: .44s; }

/* Hero entrance */
.hero-content > * { opacity: 0; }
.hero-content .hero-tag   { animation: fadeUp .5s var(--ease) .12s forwards; }
.hero-content .hero-title { animation: fadeUp .65s var(--ease) .24s forwards; }
.hero-content .hero-desc  { animation: fadeUp .55s var(--ease) .38s forwards; }
.hero-content .hero-btns  { animation: fadeUp .55s var(--ease) .52s forwards; }
.hero-content .hero-stats { animation: fadeUp .55s var(--ease) .64s forwards; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .hamburger   { display: flex; }
  .about-grid, .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .services-grid, .patents-grid { grid-template-columns: 1fr 1fr; }
  .ipr-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root {
    --fs-body:       16px;
    --fs-heading-lg: clamp(28px, 7vw, 38px);
    --fs-heading-md: clamp(22px, 6vw, 30px);
    --fs-stat-num:   38px;
  }
  .container   { padding: 0 18px; }
  .section-pad { padding: 64px 0; }
  .topbar      { display: none; }
  .hero        { min-height: auto; padding-top: 20px; padding-bottom: 20px; }
  .hero-desc   { font-size: 16px; }
  .hero-btns   { flex-direction: column; }
  .hero-stats  { gap: 20px; }
  .services-grid, .patents-grid, .ipr-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-inner   { gap: 36px; }
  .testi-card  { padding: 28px; }
  .vm-box      { padding: 26px; }
  .table-wrap::after {
    content: 'Scroll to see more →';
    display: block; text-align: center;
    font-size: 12px; color: #aaa; padding: 8px; letter-spacing: 1px;
  }
}
@media (max-width: 420px) {
  .hero-title { font-size: clamp(40px, 12vw, 58px); }
}

/* ─── MISC UTILITIES ──────────────────────────── */
body.nav-open { overflow: hidden; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
img { transition: opacity .3s ease; }
img.loaded { opacity: 1; }
@media print {
  .site-header, .topbar, .site-footer, .scroll-top, .hamburger, .mobile-nav { display: none !important; }
  .section-pad { padding: 30px 0; }
}

/* ═══════════════════════════════════════════════
   HERO SLIDER
   Full-width 1920×800 image slider replacing hero
   ═══════════════════════════════════════════════ */

/* Remove old hero background helpers when slider is used */
.slider-section .hero-bg-grid,
.slider-section .hero-bg-glow { display: none; }

/* ── SLIDER WRAPPER ── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dark2);
  /* Intrinsic ratio 1920×800 = 41.66% but we set min-height for small screens */
  min-height: 420px;
}

/* ── SLIDES TRACK ── */
.slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .75s cubic-bezier(.77,0,.175,1);
  will-change: transform;
}

/* ── INDIVIDUAL SLIDE ── */
.slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Slide image — always covers full width, 1920×800 ratio maintained */
.slide-img {
  display: block;
  width: 100%;
  /* Height: preserve 1920:800 aspect ratio = 41.67vw, with sensible min/max */
  height: clamp(320px, 41.67vw, 800px);
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

/* ── SLIDE OVERLAY ── */
.slide-overlay {
  position: absolute;
  inset: 0;
  /* Gradient: dark left → transparent right */
  background: linear-gradient(
    100deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.48) 40%,
    rgba(0,0,0,.18) 65%,
    transparent 100%
  );
}

/* ── SLIDE CAPTION (positioned over image) ── */
.slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 3;
}
.slide-caption-inner {
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: 700px;
}
.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.slide-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--red);
}
.slide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 62px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease .22s, transform .6s ease .22s;
}
.slide-subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease .36s, transform .55s ease .36s;
}
.slide-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease .5s, transform .5s ease .5s;
}

/* Animate caption elements when slide is active */
.slide.active .slide-eyebrow,
.slide.active .slide-title,
.slide.active .slide-subtitle,
.slide.active .slide-btns {
  opacity: 1;
  transform: translateY(0);
}

/* ── ACCENT LINE ON TOP ── */
.hero-slider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(255,49,21,.3) 55%, transparent 100%);
  z-index: 10;
}

/* ── NAVIGATION ARROWS ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background var(--t), transform var(--t), border-color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
}
.slider-arrow svg { width: 22px; height: 22px; pointer-events: none; }
.slider-arrow-prev { left: clamp(14px, 3vw, 36px); }
.slider-arrow-next { right: clamp(14px, 3vw, 36px); }

/* ── DOTS ── */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.slider-dot.active {
  background: var(--red);
  transform: scale(1.35);
}
.slider-dot:hover { background: rgba(255,255,255,.7); }

/* ── PROGRESS BAR ── */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--red);
  z-index: 10;
  width: 0%;
  transition: width linear;
  /* duration set via JS */
}

/* ── HERO STATS BELT (below slider) ── */
.hero-stats-belt {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 0;
}
.hero-stats-belt .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.stats-belt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 20px;
}
.stats-belt-item + .stats-belt-item {
  border-left: 1px solid rgba(255,255,255,.08);
}
.stats-belt-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-stat-num);
  color: var(--red);
  line-height: 1;
  letter-spacing: -.5px;
}
.stats-belt-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 5px;
}

/* ── RESPONSIVE SLIDER ── */
@media (max-width: 960px) {
  .slider-arrow { width: 42px; height: 42px; }
  .slider-arrow svg { width: 18px; height: 18px; }
  .slide-title   { font-size: clamp(24px, 5.5vw, 42px); }
}
@media (max-width: 680px) {
  .slide-img { height: clamp(260px, 55vw, 420px); }
  .slide-subtitle { display: none; }
  .stats-belt-item + .stats-belt-item { border-left: none; }
  .hero-stats-belt .container { gap: 8px; }
  .stats-belt-item { padding: 4px 10px; }
  .stats-belt-num  { font-size: 34px; }
  .slider-arrow    { display: none; }
}
