/* 
 * GOMIDA Global Medical Platform Design System (styles.css)
 * Premium Medical-Grade, Minimalist, Enterprise, and Responsive Stylings
 */

:root {
  /* Premium Palette */
  --navy: #0b132b;          /* Deep Slate Navy (Brand focus) */
  --navy-light: #1c2541;    /* Lighter mid-tone navy */
  --navy-dark: #070b19;     /* Deepest dark slate navy */
  --ink: #1e293b;           /* Slate gray for body text */
  --blue: #0284c7;          /* Medical Blue */
  --blue-hover: #0369a1;    /* Medical Blue Hover */
  --teal: #0d9488;          /* Teal accent */
  --cyan: #38bdf8;          /* High contrast cyan for dark backgrounds */
  --gold: #d97706;          /* Sophisticated amber gold */
  --gold-light: #fef3c7;    /* Light gold background tint */
  --cream: #f8fafc;         /* Premium light neutral background */
  --white: #ffffff;
  --muted: #475569;         /* Contrast-compliant muted text */
  --line: #e2e8f0;          /* Soft border color */
  --red: #dc2626;           /* Danger color */
  --green: #16a34a;         /* Success/Safe color */
  --green-bg: #f0fdf4;      /* Green tint */
  --red-bg: #fef2f2;        /* Red tint */

  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
  --radius: 16px;
  --radius-lg: 24px;
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

img, video {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Containers */
.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Premium Top Navigation Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Mobile Hamburger Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

/* Responsive Navigation for tablets & mobiles */
@media (max-width: 900px) {
  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Drawer navigation */
  .links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 12px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .links a:not(.btn) {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .links .btn {
    width: 100%;
    justify-content: center;
  }
}

.menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--navy);
  border-radius: 4px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}


.brand {
  display: flex;
  align-items: center;
  transition: opacity 200ms ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.links a:not(.btn) {
  position: relative;
  padding: 8px 0;
  transition: color 250ms ease, transform 250ms ease;
}

.links a:not(.btn):hover,
.links a:not(.btn).active {
  color: var(--blue);
}

.links a:not(.btn):hover {
  transform: translateY(-1px);
}

.links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.links a:not(.btn):hover::after,
.links a:not(.btn).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.links .btn {
  padding: 10px 22px;
  margin-left: 8px;
  align-self: center;
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  background-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11, 19, 43, 0.15);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 19, 43, 0.2);
}

.btn.alt {
  background-color: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn.alt:hover {
  background-color: var(--cream);
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.btn.gold {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn.gold:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.btn.disabled,
.btn.disabled:hover {
  background: #e5e7eb;
  color: #64748b;
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.15), transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.08), transparent 40%),
              linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.hero:after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  max-width: 600px;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  transition: transform 300ms ease;
}

.hero-card:hover {
  transform: translateY(-4px);
}

.hero-card video, .hero-card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background-color: var(--navy-dark);
}

/* Hero Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 200ms ease;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.stat span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  line-height: 1.4;
}

/* Sections Structure */
section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 800px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 800;
}

.section-head p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Grids Layout */
.grid {
  display: grid;
  gap: 24px;
}

.cards4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Premium Card Design */
.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* Badges / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background-color: #f0f9ff;
  color: #0369a1;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  margin: 0 8px 8px 0;
}

.pill.gold {
  background-color: var(--gold-light);
  color: #92400e;
}

.pill.green {
  background-color: var(--green-bg);
  color: #166534;
}

/* Product Specific Cards */
.product-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.98));
  z-index: 0;
  transition: opacity 250ms ease;
}

.product-card:hover:before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95));
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card b {
  display: block;
  margin-top: auto;
  font-size: 14px;
  color: var(--blue);
  transition: transform 200ms ease;
}

.product-card:hover b {
  transform: translateX(4px);
  color: var(--blue-hover);
}

.visual {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, var(--white));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.visual img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 300ms ease;
}

.product-card:hover .visual img {
  transform: scale(1.05);
}

/* Section Split Styles */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 20px;
}

.split p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Dark Mode Sections (e.g. Leadership alternate style context if any) */
.dark {
  background-color: var(--navy);
  color: var(--white);
}

.dark .section-head h2, .dark h3 {
  color: var(--white);
}

.dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.dark .card p, .dark p {
  color: rgba(255, 255, 255, 0.75);
}

.dark .card h3 {
  color: var(--white);
}

/* Foley & Comparison Tables styling */
.compare {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare th, .compare td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
}

.compare th {
  background-color: #f1f5f9;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare tr:last-child td {
  border-bottom: none;
}

.compare tr {
  transition: background-color 150ms ease;
}

.compare tr:hover:not(:first-child) {
  background-color: #f8fafc;
}

/* Table bad/good states */
.compare td.good {
  color: #15803d;
  background-color: rgba(240, 253, 244, 0.7);
  font-weight: 600;
}

.compare td.bad {
  color: #b91c1c;
  background-color: rgba(254, 242, 242, 0.7);
  font-weight: 600;
}

.bad {
  color: var(--red);
  font-weight: 700;
}

.good {
  color: var(--green);
  font-weight: 700;
}

/* Page Hero layout styling */
.page-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, var(--white) 50%, var(--gold-light) 100%);
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.15;
  margin: 12px 0 24px;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 30px;
}

.page-hero .eyebrow {
  color: var(--blue);
}

.page-hero .hero-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 300ms ease;
}

.page-hero .hero-card:hover {
  transform: translateY(-4px);
}

.page-hero .hero-card video, .page-hero .hero-card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background-color: var(--white);
}

/* Page Hero Stats (for index.html light theme) */
.page-hero .stat {
  background: rgba(2, 132, 199, 0.04);
  border: 1px solid rgba(2, 132, 199, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 200ms ease;
}

.page-hero .stat:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}

.page-hero .stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.page-hero .stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.hero-img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
  transition: transform 300ms ease;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-img:hover {
  transform: translateY(-2px);
}

.hero-img img, .hero-img video {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--white);
}

/* Clinical Evidence Info Box styling */
.evidence-box {
  border: 1px dashed #0ea5e9;
  background-color: #f0f9ff;
  border-radius: var(--radius);
  padding: 32px;
}

.evidence-box h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

/* Premium Footer */
.footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.footer b {
  color: var(--white);
  font-size: 16px;
}

/* Lock screen & Portal CSS */
.lock {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 40%),
              linear-gradient(135deg, #f8fafc, var(--white));
}

.login {
  width: min(480px, 92vw);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.login h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 16px;
  letter-spacing: -0.01em;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  margin: 12px 0 20px;
  outline: none;
  transition: all 200ms ease;
  background-color: #f8fafc;
}

input:focus {
  border-color: var(--blue);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.portal {
  display: none;
}

.portal.active {
  display: block;
  animation: fadeIn 350ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.notice {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 18px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 24px;
}

.mini {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Leadership Team Grid styling */
.team-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  overflow: hidden;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #f0f9ff, var(--white));
  border: 4px solid var(--white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  transition: transform 250ms ease;
}

.team-card:hover img {
  transform: scale(1.03);
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 700;
}

.team-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Compare page columns settings */
.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.visual-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.visual-card img, .page-hero-img {
  width: 100%;
  display: block;
  border-radius: 12px;
  max-height: 400px;
  object-fit: contain;
  background-color: var(--white);
}

.compare-section .section-head h2 {
  text-transform: uppercase;
}

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

.compare-card {
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background-color: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.compare-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background-color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0 24px;
}

/* Styling comparison lists with beautiful premium SVG bullets */
.compare-card ul {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
}

.compare-card li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
}

.danger-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.safe-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l5-5z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.tag {
  display: inline-block;
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: var(--teal);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(180deg, var(--white) 0%, #fffbfe 100%);
}

.safe-card {
  border-color: rgba(22, 163, 74, 0.25);
  background: linear-gradient(180deg, var(--white) 0%, #f7fdf9 100%);
}

.danger-card .tag {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.safe-card .tag {
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--green);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-box {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.info-box li {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.6;
}

.evidence-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
}

.placeholder {
  border: 1px dashed #38bdf8;
  border-radius: 12px;
  padding: 20px;
  background-color: #f0f9ff;
  color: #0369a1;
  font-size: 14px;
  line-height: 1.6;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 250ms ease;
}

.photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

/* Foley vs amSafeX table specific section layout adjustments */
.foley-table-section {
  padding-top: 48px;
  background-color: #f8fafc;
}

.table-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 800px;
}

.table-title-row h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.table-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.foley-table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.foley-compare-table {
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
}

.foley-compare-table th {
  background-color: #f1f5f9;
  font-size: 15px;
}

.foley-compare-table td {
  font-size: 15px;
}

.foley-compare-table td:first-child {
  font-weight: 700;
  color: var(--navy);
}

/* Responsive Media Queries breakpoint refinements */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }
  .hero-grid {
    gap: 40px;
    padding: 80px 0;
  }
}

@media (max-width: 900px) {
  .hero-grid, .page-hero .wrap, .split {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    text-align: center;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-card {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .page-hero {
    text-align: center;
    padding: 60px 0;
  }
  
  .page-hero .wrap {
    gap: 40px;
  }
  
  .hero-img {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .cards4, .cards3, .cards2, .stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .menu-toggle {
    display: flex;
  }

  .links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 24px 6%;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    z-index: 49;
    align-items: stretch;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .links a:not(.btn) {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
    transition: color 200ms ease;
  }

  .links a:not(.btn).active {
    color: var(--blue);
    font-weight: 700;
  }

  .links a:not(.btn)::after {
    display: none;
  }

  .links a.btn {
    border-bottom: none;
    margin-top: 12px;
    margin-left: 0;
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  
  .section-head {
    margin-bottom: 32px;
  }
  
  .footer .wrap {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .compare-grid, .info-grid, .photo-grid {
    grid-template-columns: 1fr;
  }
  
  .compare-card img {
    height: 240px;
  }
  
  .table-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .cards4, .cards3, .cards2, .stats, .team-grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    height: 72px;
  }
  
  .links {
    top: 72px;
  }
  
  .brand img {
    height: 24px;
  }
  
  .hero h1 {
    font-size: 34px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .page-hero h1 {
    font-size: 30px;
  }
  
  .page-hero p {
    font-size: 16px;
  }
  
  .foley-table-card {
    overflow-x: auto;
  }
  
  .foley-compare-table {
    min-width: 680px;
  }
  
  section {
    padding: 60px 0;
  }
}
