/**
 * Pharma HealthTech - Main Stylesheet
 * Custom design system for pharma digital health conference
 * Version: 1.0
 */

/* ===========================
   CSS Variables (Design Tokens)
   =========================== */
:root {
  /* Colors - Professional pharma palette */
  --color-primary: #0066CC;        /* Trust blue */
  --color-secondary: #00A3E0;      /* Healthcare cyan */
  --color-accent: #FF6B35;         /* Energy orange (CTAs) */
  --color-dark: #1A1A1A;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E0E0E0;
  --color-background: #FFFFFF;
  --color-background-light: #F8F9FA;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-headings: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Layout */
  --container-width: 1200px;
  --container-padding: 2rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

/* ===========================
   Reset & Base Styles
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-background);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.25rem;
  color: var(--color-text-light);
  line-height: 1.6;
  font-weight: 400;
}

/* ===========================
   Links
   =========================== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-xl) 0;
}

/* ===========================
   Header
   =========================== */
.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo img {
  height: 48px;
  width: auto;
}

.logo {
  display: block;
  line-height: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition-fast);
}

/* ===========================
   Navigation
   =========================== */
.main-navigation {
  margin-top: var(--space-sm);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  display: block;
}

.main-navigation a:hover {
  background: var(--color-background-light);
  color: var(--color-primary);
}

.main-navigation .cta-button {
  background: var(--color-accent);
  color: white;
  font-weight: 600;
}

.main-navigation .cta-button:hover {
  background: #E05525;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  background: linear-gradient(135deg,
              var(--color-primary) 0%,
              var(--color-secondary) 100%);
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  opacity: 0.95;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* ===========================
   Buttons & CTAs
   =========================== */
.cta-button,
.cta-button-large {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}

.cta-button:hover,
.cta-button-large:hover {
  background: #E05525;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.cta-button:active,
.cta-button-large:active {
  transform: translateY(0);
}

.button-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.button-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* ===========================
   Grid Systems
   =========================== */
.topics-grid,
.speakers-grid,
.partners-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* ===========================
   Card Components
   =========================== */
.card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Specific card types */
.topic-card,
.speaker-card,
.article-card,
.partner-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.speaker-card img,
.article-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: var(--space-sm);
}

.speaker-card h3,
.article-card h3 {
  margin-top: var(--space-sm);
  font-size: 1.1rem;
}

.speaker-card .title {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.article-card .meta {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

/* ===========================
   Partner Logos
   =========================== */
.partners-overview {
  background: var(--color-background-light);
  padding: var(--space-xl) 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

.partner-logo {
  padding: var(--space-md);
  background: white;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===========================
   Forms
   =========================== */
.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: var(--space-md) auto 0;
}

.newsletter-form input {
  flex: 1;
}

.newsletter-form button {
  white-space: nowrap;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--color-dark);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-about img {
  height: 40px;
  margin-bottom: var(--space-sm);
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.site-footer h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: var(--space-xs);
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ===========================
   Page Headers
   =========================== */
.page-header {
  background: linear-gradient(135deg,
              var(--color-primary) 0%,
              var(--color-secondary) 100%);
  color: white;
  padding: var(--space-lg) 0;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  color: white;
  margin-bottom: var(--space-sm);
}

.page-header .lead {
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--color-text-light);
}

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

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.view-all {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
}

.view-all:hover {
  color: var(--color-secondary);
}

/* ===========================
   Section Backgrounds
   =========================== */
.bg-light {
  background: var(--color-background-light);
}

.bg-primary {
  background: var(--color-primary);
  color: white;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4 {
  color: white;
}

/* ===========================
   Special Content
   =========================== */
.highlight-box {
  background: var(--color-background-light);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.stat-box {
  text-align: center;
  padding: var(--space-md);
}

.stat-box .number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-box .label {
  display: block;
  font-size: 1rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
