/* NFTNetworking.com - Global NFT Event & Community Directory */
/* Mobile-first responsive design */

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --accent: #00cec9;
  --accent-dark: #00b5b0;
  --bg-dark: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3e;
  --bg-section: #0e0e24;
  --text-primary: #ffffff;
  --text-secondary: #b2b2d0;
  --text-muted: #7a7a9e;
  --border: #2a2a4a;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #12122a 100%);
  --gradient-card: linear-gradient(145deg, #12122a 0%, #1a1a3e 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(108,92,231,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --header-height: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

ul, ol { list-style: none; }

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

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p { color: var(--text-secondary); margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.logo span { font-weight: 400; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,26,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.main-nav.open { transform: translateX(0); }

.main-nav a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.main-nav a.active { border-left: 3px solid var(--primary); }

.nav-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(108,92,231,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,206,201,0.1) 0%, transparent 60%),
              var(--bg-dark);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(108,92,231,0.15);
  border: 1px solid rgba(108,92,231,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(108,92,231,0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
}
.btn-accent:hover { background: var(--accent-dark); color: var(--bg-dark); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 40px;
}

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

/* ==================== SECTIONS ==================== */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(108,92,231,0.1);
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.section-alt { background: var(--bg-section); }

/* ==================== CARDS ==================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108,92,231,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(108,92,231,0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary-light);
  border: 1px solid rgba(108,92,231,0.2);
}

.card-tag.accent {
  background: rgba(0,206,201,0.1);
  color: var(--accent);
  border-color: rgba(0,206,201,0.2);
}

/* Event cards */
.event-card { padding: 0; }

.event-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-date {
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
  min-width: 56px;
}

.event-date-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.event-date-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.event-card-body { padding: 1.25rem 1.5rem; }

.event-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.event-detail svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary-light);
}

/* ==================== VIDEO EMBED ==================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  background: var(--bg-card);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ==================== FAQ SECTION ==================== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-main);
  min-height: 48px;
}

.faq-question:hover { background: rgba(108,92,231,0.05); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--primary-light);
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==================== SEARCH / FILTER BAR ==================== */
.search-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  min-height: 48px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}

.search-input::placeholder { color: var(--text-muted); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(108,92,231,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

select.filter-select {
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  min-height: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b2b2d0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  flex: 1;
  min-width: 0;
}

select.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==================== TABLE ==================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.data-table th {
  background: var(--bg-section);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table td { color: var(--text-secondary); }
.data-table tr:hover td { background: rgba(108,92,231,0.03); }

/* Responsive table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  padding: calc(var(--header-height) + 1rem) 0 0.5rem;
  font-size: 0.8rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.breadcrumb li { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb li + li::before { content: '/'; color: var(--text-muted); margin-right: 0.25rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .current { color: var(--text-secondary); }

/* ==================== PAGE HERO (inner pages) ==================== */
.page-hero {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,92,231,0.12) 0%, transparent 70%),
              var(--bg-dark);
  text-align: center;
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand .logo { font-size: 1.35rem; margin-bottom: 0.75rem; display: inline-block; }

.footer-brand p { font-size: 0.875rem; color: var(--text-muted); max-width: 300px; }

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a { color: var(--text-muted); font-size: 0.875rem; }
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

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

.footer-links a { color: var(--text-muted); font-size: 0.8rem; }

/* ==================== COMMUNITY CARDS ==================== */
.community-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.community-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.community-info h3 { font-size: 1rem; }
.community-info .community-type { font-size: 0.8rem; color: var(--text-muted); }

.community-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.community-stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.community-stat strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== CALENDAR ==================== */
.calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.calendar-month {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.calendar-month h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary-light);
}

.calendar-event {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(42,42,74,0.5);
}

.calendar-event:last-child { border-bottom: none; }

.calendar-event-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 60px;
  flex-shrink: 0;
}

.calendar-event-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.calendar-event-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==================== NEWSLETTER / CTA BANNER ==================== */
.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.cta-banner h2 { color: white; margin-bottom: 0.75rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; position: relative; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  font-family: var(--font-main);
  min-height: 48px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
}

.newsletter-form .btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
}

.newsletter-form .btn:hover { background: rgba(255,255,255,0.9); }

/* ==================== MAP PLACEHOLDER ==================== */
.map-container {
  width: 100%;
  height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
  position: relative;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.feature-item:hover { border-color: var(--primary); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(108,92,231,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature-content p { font-size: 0.85rem; margin: 0; }

/* ==================== PROFILE CARDS ==================== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.profile-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.profile-card h4 { margin-bottom: 0.25rem; }
.profile-card .role { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.75rem; }

/* ==================== CONTACT FORM ==================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  min-height: 48px;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}

/* ==================== PROSE (legal pages etc) ==================== */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.prose p { margin-bottom: 1rem; line-height: 1.8; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  list-style: disc;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose ol li { list-style: decimal; }

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--font-main);
  min-height: 40px;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ==================== LOADING / ANIMATION ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Small phones (320px+) - base styles above */

/* Medium phones (375px+) */
@media (min-width: 375px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .container { padding: 0 1.25rem; }
}

/* Large phones (425px+) */
@media (min-width: 425px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
  .stat-item { padding: 0.75rem 0.5rem; }
  .stat-number { font-size: 1.5rem; }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  section { padding: 5rem 0; }
  .container { padding: 0 2rem; }

  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    transform: none;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    padding: 0;
    gap: 0;
    overflow: visible;
    align-items: center;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .nav-cta {
    margin-top: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .hero { min-height: 90vh; padding-top: calc(var(--header-height) + 4rem); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 600px; }

  .search-bar { flex-direction: row; flex-wrap: wrap; }
  .search-input { flex: 1; min-width: 200px; }

  .newsletter-form { flex-direction: row; }
  .newsletter-form input { flex: 1; }

  .map-container { height: 500px; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  section { padding: 6rem 0; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
  .calendar-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .hero { min-height: 85vh; }

  .page-hero { padding-top: calc(var(--header-height) + 5rem); padding-bottom: 4rem; }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .profile-grid { grid-template-columns: repeat(4, 1fr); }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-banner, .btn { display: none !important; }
  body { background: white; color: black; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  a { color: black; text-decoration: underline; }
}

/* Dark mode preference (already dark, but ensure) */
@media (prefers-color-scheme: light) {
  /* Site stays dark per brand guidelines */
}

/* High contrast */
@media (forced-colors: active) {
  .btn { border: 2px solid; }
  .card { border: 2px solid; }
}
