/* ===== CSS Reset & Base Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --primary-dark: #142840;
  --secondary: #2a9d8f;
  --secondary-light: #40b3a5;
  --accent: #238b7e;
  --background: #f8fafb;
  --card: #ffffff;
  --foreground: #1a2b3c;
  --muted: #6b7c8d;
  --muted-bg: #f0f4f7;
  --border: #e1e8ed;
  --shadow-sm: 0 1px 2px rgba(26, 43, 60, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(26, 43, 60, 0.07), 0 2px 4px -2px rgba(26, 43, 60, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(26, 43, 60, 0.08), 0 4px 6px -4px rgba(26, 43, 60, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(26, 43, 60, 0.1), 0 8px 10px -6px rgba(26, 43, 60, 0.05);
  --transition: all 0.3s ease;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-hero {
  background: #fff;
  color: var(--primary);
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
  background: #f8fafb;
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
}

.top-bar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

/* ===== Navigation ===== */
.navbar {
  background: var(--card);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-text h1 {
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-text span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--foreground);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(42, 157, 143, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--secondary-light);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 40rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 28rem;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  margin-bottom: 0.5rem;
}

.stat-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--secondary-light);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--background), transparent);
  z-index: 10;
}

/* ===== Section Styles ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted);
}

.bg-muted {
  background: var(--muted-bg);
}

.bg-card {
  background: var(--card);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content .section-label {
  text-align: left;
}

.about-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-content p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-content p strong {
  color: var(--foreground);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.highlight-item span {
  font-size: 0.9375rem;
  color: var(--foreground);
}

.stats-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 1rem;
  padding: 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.stats-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stats-item {
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
}

.stats-item .value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}

.stats-item .label {
  opacity: 0.8;
  font-size: 0.9375rem;
}

/* ===== Research Areas ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.research-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.research-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 157, 143, 0.3);
}

.research-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(42, 157, 143, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.research-card:hover .research-icon {
  background: rgba(42, 157, 143, 0.2);
}

.research-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--secondary);
}

.research-card h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.research-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 157, 143, 0.4);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(30, 58, 95, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.team-card {
  background: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-xl);
}

.team-photo {
  height: 14rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-initials {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.team-info .title {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.team-info p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  gap: 0.75rem;
}

.team-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: #fff;
}

.team-social svg {
  width: 1rem;
  height: 1rem;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info .section-label {
  text-align: left;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-info > p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(30, 58, 95, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-item h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form-wrapper {
  background: var(--muted-bg);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group textarea {
  resize: none;
  min-height: 8rem;
}

.contact-form .btn {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: #fff;
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-brand {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-logo-text h3 {
  font-size: 1.25rem;
}

.footer-logo-text span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  font-family: var(--font-sans);
}

.footer-brand > p {
  opacity: 0.8;
  line-height: 1.7;
  max-width: 24rem;
  margin-bottom: 1rem;
}

.footer-npi {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-column h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary-light);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item span,
.footer-contact-item a {
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-contact-item a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.6;
}

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

.footer-legal a {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-legal a:hover {
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta .btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .top-bar-links span,
  .top-bar-hours span {
    display: none;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Page Header (for legal pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.8;
  font-size: 1rem;
}

/* ===== Legal Content ===== */
.legal-content {
  background: var(--card);
}

.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.125rem;
  color: var(--foreground);
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  margin: 1rem 0;
  padding-left: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.legal-section a {
  color: var(--secondary);
}

.legal-section a:hover {
  text-decoration: underline;
}

/* ===== Team Photos ===== */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
