/* Oscar Schools Website - Comprehensive Styles */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #000;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}

/* Fade-in animations */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #000;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

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

p {
  margin-bottom: 1rem;
  color: #000;
  line-height: 1.6;
}

a {
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 800px;
}

/* Header Styles */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

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

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: #007bff;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Button Styles */
.button, .btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.button:hover, .btn:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.button.ghost {
  background: transparent;
  border: 2px solid currentColor;
}

.button.ghost:hover {
  background: currentColor;
  color: white;
}

.btn-primary {
  background: #007bff;
  color: white;
  border: 2px solid #007bff;
}

.btn-secondary {
  background: #28a745;
  color: white;
  border: 2px solid #28a745;
}

.btn-success {
  background: #28a745;
  color: white;
  border: 2px solid #28a745;
}

.btn-warning {
  background: #ffc107;
  color: #212529;
  border: 2px solid #ffc107;
  font-weight: 600;
}

/* Hero Section */
.hero {
  background: white;
  color: #333;
  padding: 5rem 0;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

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

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

/* Status Messages */
.status-message {
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-weight: 500;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.loading {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
}

/* Statistics Section */
.stats-section {
  background: white;
  color: #000;
  padding: 4rem 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #000;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Section Spacing */
section {
  padding: 4rem 0;
}

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

.section-header h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.section-header p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer Styles */
.site-footer {
  background: white;
  color: #000;
  padding: 3rem 0 2rem;
  border-top: 1px solid #e9ecef;
}

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

.site-footer h4 {
  color: #000;
  margin-bottom: 1rem;
}

.site-footer p {
  color: #000;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #007bff;
}

.site-footer a:hover {
  color: #0056b3;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }
.p-4 { padding: 3rem; }

/* Background Colors */
.bg-primary { background: #007bff; color: white; }
.bg-secondary { background: #28a745; color: white; }
.bg-success { background: #28a745; color: white; }
.bg-warning { background: #ffc107; color: #212529; }
.bg-light { background: white; color: #000; }
.bg-dark { background: white; color: #000; }

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: white;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .nav a {
    color: #000 !important;
    background: white;
  }
  
  .nav a:hover,
  .nav a.active {
    background: #007bff !important;
    color: white !important;
  }
  
  /* Typography - ensure black text on mobile */
  h1 { font-size: 2rem; color: #000 !important; }
  h2 { font-size: 1.75rem; color: #000 !important; }
  h3 { font-size: 1.25rem; color: #000 !important; }
  h4, h5, h6 { color: #000 !important; }
  p { color: #000 !important; }
  
  .hero {
    background: white !important;
    color: #000 !important;
  }
  
  .hero h1 {
    font-size: 2rem;
    color: #000 !important;
  }
  
  .hero p {
    font-size: 1.1rem;
    color: #000 !important;
  }
  
  /* Ensure all sections are white on mobile */
  section {
    background: white !important;
    color: #000 !important;
  }
  
  .stats-section {
    background: white !important;
    color: #000 !important;
  }
  
  .stats-section .stat-number {
    color: #000 !important;
  }
  
  /* Layout */
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Spacing */
  section {
    padding: 2rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Footer mobile */
  .site-footer {
    background: white !important;
    color: #000 !important;
  }
  
  .site-footer h4 {
    color: #000 !important;
  }
  
  .site-footer p {
    color: #000 !important;
  }
}

@media (max-width: 480px) {
  /* Ensure white theme on smallest screens */
  body {
    background: white !important;
    color: #000 !important;
  }
  
  .hero {
    background: white !important;
    color: #000 !important;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    color: #000 !important;
  }
  
  .hero p {
    font-size: 1rem;
    color: #000 !important;
  }
  
  .button, .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    background: #007bff !important;
    color: white !important;
    border: 2px solid #007bff !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Focus States for Accessibility */
*:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

button:focus,
.button:focus {
  outline: 2px solid #007bff;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 1.5rem;
}

.gallery-caption h3 {
  margin-bottom: 0.5rem;
  color: #000;
  font-size: 1.1rem;
}

.gallery-caption p {
  color: #000;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.virtual-tour-container {
  text-align: center;
  padding: 3rem 0;
}

.tour-placeholder {
  background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.tour-placeholder h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tour-placeholder p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.tour-placeholder .btn {
  background: white;
  color: #007bff;
  border: none;
  font-weight: 600;
}

.tour-placeholder .btn:hover {
  background: #f8f9fa;
  color: #0056b3;
}

/* Gallery responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .tour-placeholder {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 1rem;
  }
  
  .gallery-caption {
    padding: 1rem;
  }
  
  .gallery-item img {
    height: 180px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .cta,
  .button {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}