/* =========================================
   TX MEDICAL INTEGRATED RESEARCH CENTER
   GLOBAL STYLES
========================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");


/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================================
   VARIABLES
========================================= */

:root {
  --primary: #123a63;
  --primary-dark: #0b2742;
  --secondary: #2f6f6d;
  --accent: #c47a44;

  --text-dark: #1f2937;
  --text-light: #64748b;

  --white: #ffffff;
  --light-bg: #f6f8fb;
  --border: #e5e7eb;

  --container: 1200px;
}


/* =========================================
   CONTAINER
========================================= */

.container {
  width: min(92%, var(--container));
  margin: auto;
}


/* =========================================
   HEADER
========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  transition: 0.3s ease;
}

.nav-container {
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================
   LOGO
========================================= */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-logo {
  width: 190px;
  height: auto;
  max-height: 75px;
  object-fit: contain;
  display: block;
}

.logo-mark-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 4px;
}


/* =========================================
   NAVIGATION
========================================= */

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;

  font-size: 0.92rem;
  font-weight: 500;

  color: var(--text-dark);

  transition: 0.3s ease;
}

.nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: var(--accent);

  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.nav-toggle {
  display: none;

  background: transparent;
  border: none;

  cursor: pointer;
}

.nav-toggle span {
  display: block;

  width: 26px;
  height: 2px;

  background: var(--primary);

  margin: 5px 0;

  transition: 0.3s ease;
}


/* =========================================
   HERO
========================================= */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 150px 0 100px;

  color: var(--white);

  background:
    linear-gradient(
      90deg,
      rgba(11, 39, 66, 0.94),
      rgba(18, 58, 99, 0.75)
    ),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=85");

  background-size: cover;
  background-position: center;
}

.hero-bg {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 75% 50%,
      rgba(196, 122, 68, 0.18),
      transparent 35%
    );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 850px;
}

.hero-badge {
  display: inline-flex;

  padding: 9px 16px;

  margin-bottom: 25px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.08);

  font-size: 0.8rem;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.hero h1 {
  font-family: "Playfair Display", serif;

  font-size: clamp(3.2rem, 7vw, 6.3rem);

  line-height: 1.05;

  margin-bottom: 28px;
}

.hero-lead {
  max-width: 700px;

  font-size: 1.15rem;

  color: rgba(255, 255, 255, 0.88);

  margin-bottom: 38px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 15px 28px;

  border-radius: 4px;

  font-size: 0.9rem;
  font-weight: 600;

  transition: all 0.3s ease;

  cursor: pointer;
}

.btn-primary {
  background: var(--accent);

  color: var(--white);

  border: 1px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-3px);

  background: #a96235;

  border-color: #a96235;
}

.btn-outline {
  margin-left: 12px;

  border: 1px solid rgba(255, 255, 255, 0.7);

  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);

  color: var(--primary);
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
  padding: 110px 0;
}

.section-header {
  margin-bottom: 60px;

  max-width: 750px;
}

.section-header.center {
  text-align: center;

  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;

  color: var(--accent);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  margin-bottom: 16px;
}

.section h2 {
  font-family: "Playfair Display", serif;

  color: var(--primary);

  font-size: clamp(2.3rem, 4vw, 3.7rem);

  line-height: 1.15;

  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-light);

  max-width: 650px;

  margin: auto;
}


/* =========================================
   ABOUT
========================================= */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;

  height: 550px;

  object-fit: cover;
}

.about-image-caption {
  position: absolute;

  bottom: 25px;
  left: 25px;

  max-width: 320px;

  padding: 18px 20px;

  background: var(--primary);

  color: var(--white);

  font-size: 0.85rem;
}

.about-text p {
  color: var(--text-light);

  margin-bottom: 22px;
}

.about-highlights {
  list-style: none;

  margin-top: 30px;
}

.about-highlights li {
  position: relative;

  padding: 10px 0 10px 30px;

  font-weight: 500;
}

.about-highlights li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--accent);

  font-weight: 700;
}


/* =========================================
   ABOUT STATS
========================================= */

.about-stats-row {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;

  margin-top: 90px;
}

.stat-card {
  padding: 38px;

  background: var(--light-bg);

  border-top: 3px solid var(--accent);

  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stat-number {
  display: block;

  color: var(--accent);

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 0.1em;

  margin-bottom: 16px;
}

.stat-card h3 {
  font-family: "Playfair Display", serif;

  color: var(--primary);

  font-size: 1.5rem;

  margin-bottom: 12px;
}

.stat-card p {
  color: var(--text-light);

  font-size: 0.92rem;
}


/* =========================================
   RESEARCH
========================================= */

.research {
  background: var(--light-bg);
}

.research-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.research-card {
  background: var(--white);

  overflow: hidden;

  transition: 0.35s ease;
}

.research-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.research-img {
  overflow: hidden;

  height: 240px;
}

.research-img img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s ease;
}

.research-card:hover img {
  transform: scale(1.08);
}

.research-body {
  padding: 28px;
}

.research-body h3 {
  font-family: "Playfair Display", serif;

  color: var(--primary);

  font-size: 1.45rem;

  margin-bottom: 12px;
}

.research-body p {
  color: var(--text-light);

  font-size: 0.92rem;
}


/* =========================================
   LEADERSHIP
========================================= */

.leadership {
  background: var(--white);
}

.founder-card {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  background: var(--primary);

  color: var(--white);

  margin-bottom: 70px;
}

.founder-img img {
  width: 100%;
  height: 100%;

  min-height: 500px;

  object-fit: cover;
}

.founder-content {
  padding: 70px;
}

.founder-label {
  color: var(--accent);

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.founder-content h3 {
  font-family: "Playfair Display", serif;

  font-size: 2.5rem;

  line-height: 1.2;

  margin: 15px 0;
}

.founder-title {
  color: rgba(255, 255, 255, 0.7);

  margin-bottom: 25px;
}

.founder-content p:not(.founder-title) {
  color: rgba(255, 255, 255, 0.82);

  margin-bottom: 20px;
}


/* =========================================
   TEAM
========================================= */

.team-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}

.team-card {
  background: var(--light-bg);

  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-img {
  height: 300px;

  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.team-info {
  padding: 25px;
}

.team-info h4 {
  color: var(--primary);

  font-size: 1.05rem;

  margin-bottom: 8px;
}

.team-role {
  display: block;

  color: var(--accent);

  font-size: 0.8rem;

  font-weight: 600;

  margin-bottom: 14px;
}

.team-info p {
  color: var(--text-light);

  font-size: 0.88rem;
}


/* =========================================
   APPROACH
========================================= */

.approach {
  background: var(--primary);

  color: var(--white);
}

.approach-content {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.approach h2 {
  color: var(--white);
}

.approach-text > p {
  color: rgba(255, 255, 255, 0.75);

  margin-bottom: 35px;
}

.approach-img {
  width: 100%;

  min-height: 500px;

  object-fit: cover;
}

.approach-points {
  display: grid;

  gap: 22px;
}

.point {
  border-left: 2px solid var(--accent);

  padding-left: 20px;
}

.point strong {
  display: block;

  margin-bottom: 5px;
}

.point span {
  color: rgba(255, 255, 255, 0.7);

  font-size: 0.9rem;
}


/* =========================================
   CAREERS
========================================= */

.careers {
  background: var(--light-bg);
}

.careers-grid {
  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr;

  gap: 25px;
}

.career-card {
  background: var(--white);

  padding: 38px;

  border: 1px solid var(--border);
}

.career-card.featured {
  border-top: 4px solid var(--accent);
}

.career-badge {
  display: inline-block;

  background: var(--accent);

  color: var(--white);

  padding: 6px 12px;

  font-size: 0.72rem;

  font-weight: 700;

  text-transform: uppercase;

  margin-bottom: 20px;
}

.career-card h3 {
  font-family: "Playfair Display", serif;

  color: var(--primary);

  font-size: 1.65rem;

  margin-bottom: 10px;
}

.career-meta {
  color: var(--accent);

  font-size: 0.82rem;

  font-weight: 600;

  margin-bottom: 20px;
}

.career-card p {
  color: var(--text-light);

  font-size: 0.9rem;

  margin-bottom: 20px;
}

.career-reqs {
  padding-left: 18px;

  margin-bottom: 28px;
}

.career-reqs li {
  margin-bottom: 9px;

  color: var(--text-light);

  font-size: 0.87rem;
}

.career-status {
  display: block;

  color: var(--text-light);

  font-size: 0.85rem;

  font-style: italic;
}

.careers-note {
  max-width: 750px;

  margin: 50px auto 0;

  text-align: center;

  color: var(--text-light);
}

.careers-note a {
  color: var(--primary);

  font-weight: 600;
}


/* =========================================
   CONTACT
========================================= */

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 70px;
}

.info-item {
  display: flex;

  gap: 20px;

  padding: 25px 0;

  border-bottom: 1px solid var(--border);
}

.info-icon {
  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--light-bg);

  color: var(--accent);

  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
}

.info-item h4 {
  color: var(--primary);

  margin-bottom: 5px;
}

.info-item p {
  color: var(--text-light);

  font-size: 0.9rem;
}

.contact-form {
  background: var(--light-bg);

  padding: 45px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  color: var(--primary);

  font-size: 0.85rem;

  font-weight: 600;

  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  padding: 14px;

  border: 1px solid var(--border);

  background: var(--white);

  font-family: inherit;

  font-size: 0.9rem;

  outline: none;

  transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);

  box-shadow: 0 0 0 3px rgba(196, 122, 68, 0.1);
}

.btn-full {
  width: 100%;

  border: none;
}


/* Staggered card animation */

.reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal:nth-child(5) {
  transition-delay: 0.5s;
}

.reveal:nth-child(6) {
  transition-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: var(--primary-dark);

  color: var(--white);

  padding-top: 75px;
}

.footer-content {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 70px;

  padding-bottom: 60px;
}

.footer-brand p,
.footer-address p {
  color: rgba(255, 255, 255, 0.65);

  font-size: 0.9rem;

  margin-top: 20px;
}

.footer-logo-img {
  width: 130px;

  height: auto;
}

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.footer h4 {
  margin-bottom: 12px;

  font-family: "Playfair Display", serif;

  font-size: 1.2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);

  font-size: 0.9rem;

  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: 20px 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);

  font-size: 0.8rem;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

  .nav {
    gap: 18px;
  }

  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .approach-content,
  .contact-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .careers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .career-card.featured {
    grid-column: span 2;
  }

  .founder-content {
    padding: 45px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .header {
    backdrop-filter: none;
  }

  .nav-container {
    height: 72px;
  }

  .nav-toggle {
    display: block;

    z-index: 1001;
  }

  .nav {
    position: fixed;

    top: 72px;
    left: 0;

    width: 100%;

    background: var(--white);

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    padding: 20px;

    border-top: 1px solid var(--border);

    transform: translateY(-130%);

    opacity: 0;

    visibility: hidden;

    transition: 0.35s ease;
  }

  .nav.active {
    transform: translateY(0);

    opacity: 1;

    visibility: visible;
  }

  .nav a {
    width: 100%;

    padding: 14px 0;
  }

  .nav a::after {
    display: none;
  }

  .hero {
    min-height: 760px;

    padding-top: 120px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-cta {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 15px;
  }

  .btn-outline {
    margin-left: 0;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    gap: 35px;
  }

  .about-img {
    height: 420px;
  }

  .about-stats-row,
  .research-grid,
  .careers-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .career-card.featured {
    grid-column: auto;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-img img {
    min-height: 400px;
  }

  .founder-content {
    padding: 35px 25px;
  }

  .founder-content h3 {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .approach-img {
    min-height: 380px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .container {
    width: min(90%, var(--container));
  }

  .logo-name {
    font-size: 1.1rem;
  }

  .logo-sub {
    font-size: 0.55rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section h2 {
    font-size: 2.2rem;
  }

  .about-image-caption {
    left: 15px;
    bottom: 15px;

    right: 15px;
  }

  @media (max-width: 768px) {
  .main-logo {
    width: 150px;
    max-height: 58px;
  }
}


/* =========================================
   SCROLL REVEAL ANIMATION
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* Reveal from left */

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}


/* Reveal from right */

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}



/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* Reveal from left */

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}


/* Reveal from right */

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}


/* Stagger animation for cards */

.reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal:nth-child(5) {
  transition-delay: 0.5s;
}

.reveal:nth-child(6) {
  transition-delay: 0.6s;
}


/* Accessibility: Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

}