/* ==========================================================================
   OmnitechWorks Enterprise Design System (Stark, High-Contrast)
   ========================================================================== */

:root {
  /* Colors */
  --bg-page: #fafafa;        /* Subtle gray canvas */
  --bg-card: #ffffff;        /* Pure white for elevation cards */
  --border-color: #e5e7eb;   /* Crisp gray for 1px borders */
  
  --primary: #111827;        /* Near black for primary actions */
  --primary-hover: #374151;  
  --primary-light: #f3f4f6;  /* Subtle gray for tags */
  
  --accent: #2563eb;         /* Sharp tech blue for distinct CTAs */
  --accent-hover: #1d4ed8;   
  
  --text-primary: #111827;   /* Crisp, high-contrast black */
  --text-secondary: #4b5563; /* Medium gray */
  --text-muted: #9ca3af;     
  
  --success: #16a34a;        
  --warning: #ca8a04;        
  --danger: #dc2626;         
  
  /* Fonts - Inter for absolute clarity */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions - Fast, snappy, non-bouncy */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --transition-fast: 100ms var(--ease-out);
  --transition-normal: 200ms var(--ease-out);
  
  /* Shadows - Minimalist drop shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Border Radius - Sharper geometry */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Base 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);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 8rem 0; /* Increased for breathing room */
}

.text-gradient {
  /* Replaced gradient with stark primary color for enterprise feel */
  color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  color: #ffffff;
  background-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-accent {
  color: #ffffff;
  background-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-page);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hero Section */
.hero-sec {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(to bottom, #ffffff, var(--bg-page));
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup-frame {
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  padding: 8px;
}

.hero-mockup-inner {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
  aspect-ratio: 9/19;
  position: relative;
}

.hero-mockup-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bento Box Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Feature Cards Details */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mission & Alternating Grid Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.img-frame {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.img-frame img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  display: block;
}

.mission-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.mission-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 16px;
}

/* Institutions Section styles */
.table-wrapper {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: #f9fafb;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

tr:hover td {
  background-color: #f9fafb;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0.75rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-sm);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* Mobile Nav Burger Menu */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

/* Scroll Reveals */
.reveal, .reveal-l, .reveal-r {
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal { transform: translateY(20px); }
.reveal-l { transform: translateX(-30px); }
.reveal-r { transform: translateX(30px); }

.reveal.active, .reveal-l.active, .reveal-r.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Gallery Interactivity */
.gallery-display {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-color);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}
.gallery-display img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.gallery-display img.active {
  opacity: 1;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.gallery-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}
.gallery-thumb.active {
  border-color: var(--primary);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .span-4, .span-6, .span-8, .span-12 {
    grid-column: span 2;
  }
  
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
  
  .burger-btn {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-cta-desktop {
    display: none;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .span-4, .span-6, .span-8, .span-12 {
    grid-column: span 1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  table, thead, tbody, th, td, tr {
    display: block;
  }
  
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tr {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--bg-card);
  }
  
  td {
    border: none;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 50%;
  }
  
  td::before {
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  td:nth-of-type(1)::before { content: "Institution"; }
  td:nth-of-type(2)::before { content: "Why They Trust Us"; }
  td:nth-of-type(3)::before { content: "Status"; }
}
