/* ============================================
   Røa Center Website - Custom Styles
   Norwegian Flag Color Scheme
   ============================================ */

/* CSS Variables - Norwegian Flag Colors */
:root {
  --norway-red: #BA0C2F;
  --norway-blue: #00205B;
  --pure-white: #FFFFFF;
  --snow-white: #F8F9FA;
  --text-dark: #00205B;
  --text-light: #FFFFFF;
  --shadow-light: rgba(0, 32, 91, 0.1);
  --shadow-medium: rgba(0, 32, 91, 0.2);
  --gradient-blue: linear-gradient(135deg, #00205B 0%, #003d8f 100%);
  --gradient-snow: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--pure-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Navigation Bar */
.navbar {
  background-color: var(--norway-blue) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow-medium);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pure-white) !important;
  display: flex;
  align-items: center;
}

.navbar-brand span {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.2em;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: var(--pure-white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--norway-red) !important;
}

.navbar-toggler {
  border-color: var(--pure-white);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 32, 91, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

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

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--snow-white);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--norway-blue);
  border-color: var(--norway-blue);
  color: var(--pure-white);
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-light);
}

.btn-primary-custom:hover {
  background-color: #003d8f;
  border-color: #003d8f;
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-medium);
}

.btn-danger-custom {
  background-color: var(--norway-red);
  border-color: var(--norway-red);
  color: var(--pure-white);
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-light);
}

.btn-danger-custom:hover {
  background-color: #9a0a26;
  border-color: #9a0a26;
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-medium);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--pure-white);
  color: var(--pure-white);
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--pure-white);
  color: var(--norway-blue);
  transform: translateY(-2px);
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: var(--pure-white);
  margin-bottom: 2rem;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--shadow-medium);
}

.card-custom .card-img-top {
  border-radius: 12px 12px 0 0;
  height: 200px;
  object-fit: cover;
}

.card-custom .card-body {
  padding: 1.5rem;
}

.card-custom .card-title {
  color: var(--norway-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.section-title {
  text-align: center;
  color: var(--norway-blue);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--norway-red);
  border-radius: 2px;
}

.section-blue {
  background: var(--gradient-blue);
  color: var(--pure-white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--pure-white);
}

.section-snow {
  background: var(--gradient-snow);
}

/* Page Header */
.page-header {
  background: var(--gradient-blue);
  color: var(--pure-white);
  padding: 4rem 0;
  text-align: center;
  margin-top: 70px; /* Add space for fixed navigation bar */
}

.page-header h1 {
  color: var(--pure-white);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--snow-white);
}

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all 0.3s ease;
  background-color: var(--pure-white);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--shadow-medium);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-caption {
  padding: 1rem;
  background-color: var(--pure-white);
  color: var(--text-dark);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.gallery-item-caption h4 {
  font-size: 1rem;
  color: var(--norway-blue);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.gallery-item-caption p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-light);
  margin: 2rem 0;
}

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

/* Footer */
.footer {
  background-color: var(--norway-blue);
  color: var(--pure-white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer h5 {
  color: var(--pure-white);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--snow-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--norway-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--snow-white);
}

/* Quick Facts */
.quick-facts {
  background: var(--snow-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.quick-facts-icon {
  font-size: 3rem;
  color: var(--norway-blue);
  margin-bottom: 1rem;
}

.quick-facts h3 {
  color: var(--norway-blue);
  margin-bottom: 1rem;
}

/* Three Pillars */
.pillar-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  border-radius: 12px;
  background: var(--pure-white);
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--shadow-medium);
}

.pillar-icon {
  font-size: 4rem;
  color: var(--norway-blue);
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  color: var(--norway-blue);
  margin-bottom: 1rem;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-light);
  margin: 2rem 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form */
.contact-form {
  background: var(--snow-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-light);
}

.form-label {
  font-weight: 600;
  color: var(--norway-blue);
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--norway-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 32, 91, 0.25);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-section {
    height: 500px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 400px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-primary-custom,
  .btn-danger-custom,
  .btn-outline-custom {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .page-header {
    padding: 2rem 0;
  }
}

/* Utility Classes */
.text-norway-blue {
  color: var(--norway-blue);
}

.text-norway-red {
  color: var(--norway-red);
}

.bg-norway-blue {
  background-color: var(--norway-blue);
}

.bg-norway-red {
  background-color: var(--norway-red);
}

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

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

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

