/* ========================================
   TEMPLATE A - CORPORATE PARALLAX STYLES
   Professional corporate design with parallax scrolling effects
   ======================================== */

/* ========== BASE & UTILITIES ========== */
:root {
  --primary-color: #1a5490;
  --secondary-color: #2874b8;
  --accent-color: #ffa500;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-muted: #6c757d;
  --white: #ffffff;
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.section-padding {
  padding: 50px 0;
}

/* ========== HEADER - TRANSPARENT OVERLAY ========== */
.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 84, 144, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.header-transparent.scrolled {
  background: rgba(26, 84, 144, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
  padding: 0;
}

.navbar-brand {
  transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.logo-image {
  width: auto;
}

.navbar-nav .nav-link,
.menu-item  a {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}

.navbar-nav .nav-link::after,
.menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after,
.menu-item > a:hover::after,
.current-menu-item > a::after,
.current_page_item > a::after {
  width: 80%;
}

.navbar-nav .nav-link:hover,
.menu-item > a:hover {
  color: var(--accent-color) !important;
}

/* WordPress current/active menu item */
.current-menu-item > a,
.current_page_item > a,
.current-menu-parent > a,
.current_page_parent > a {
  color: var(--accent-color) !important;
  text-decoration: none !important;
}

.dropdown-menu,
.sub-menu {
  background: rgba(26, 84, 144, 0.98);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
}

.dropdown-menu .dropdown-item,
.sub-menu .menu-item > a {
  color: var(--white);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-speed) ease;
}

.dropdown-menu .dropdown-item:hover,
.sub-menu .menu-item > a:hover {
  background: rgba(255, 165, 0, 0.2);
  color: var(--accent-color);
  padding-left: 2rem;
}

/* WordPress submenu positioning */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 200px;
}

.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* WordPress menu list reset */
.menu,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* WordPress menu item base */
.menu-item {
  position: relative;
}

/* Nested submenu support */
.sub-menu .menu-item-has-children > .sub-menu {
  left: 100%;
  top: 0;
}

/* ========== HERO SECTION - STATIC ========== */
.hero-parallax {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parallax-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 84, 144, 0.85) 0%,
    rgba(40, 116, 184, 0.75) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem 0;
}

.hero-text-wrapper {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-divider {
  width: 100px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.hero-subtitle {
  color:white;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.btn-hero:hover {
  background: #ff8c00;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* ========== SECTION COMMON STYLES ========== */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 1rem 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
}

.section-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-content .lead {
  font-size: 1.25rem;
  color: var(--text-color);
}

.section-content .text-muted {
  color: var(--text-muted) !important;
}

/* ========== SECTION 1 - INTRODUCTION ========== */
.section-intro {
  background: var(--white);
  position: relative;
}

.section-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* ========== SECTION 2 - IMAGE SHOWCASE ========== */
.section-images-parallax {
  position: relative;
  overflow: hidden;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease;
}

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

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.image-wrapper img {
  transition: transform 0.5s ease;
}

.image-card:hover .image-wrapper img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 84, 144, 0.9);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content i {
  font-size: 3rem;
  color: var(--white);
}

/* ========== CTA SECTION ========== */
.section-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.btn-cta {
  font-size: 1.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ========== SECTION 3 - DECORATED CONTENT ========== */
.content-card {
  background: var(--white);
  border-radius: var(--border-radius);
  position: relative;
  border-left: 5px solid var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.content-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-decoration {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-color), transparent);
  opacity: 0.1;
  border-radius: 50%;
}

/* ========== SECTION 4 - FINAL IMAGES ========== */
.section-images-final .image-card {
  transition: all var(--transition-speed) ease;
}

.section-images-final .image-card:hover {
  transform: scale(1.02);
}

/* ========== NAP & MAP SECTION ========== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  z-index: 0;
}

.nap-card {
  position: relative;
  z-index: 1;
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.nap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

.nap-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.nap-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nap-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.nap-content h4 {
  color: var(--primary-color);
}

.nap-content a {
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

.nap-content a:hover {
  color: var(--accent-color);
}

.nap-divider {
  height: 1px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.hours-text {
  white-space: pre-line;
  color: var(--text-muted);
}

.map-wrapper {
  position: relative;
  z-index: 1;
  transition: all var(--transition-speed) ease;
}

.map-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}

/* ========== FOOTER ========== */
.footer-corporate {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.footer-link {
  color: var(--light-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding-bottom: 2px;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-separator {
  color: var(--text-muted);
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-5px) rotate(360deg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .hero-parallax {
    height: 80vh;
    min-height: 500px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .navbar-collapse {
    background: rgba(26, 84, 144, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
  }

  .dropdown-menu,
  .sub-menu {
    background: rgba(40, 116, 184, 0.95);
    margin-left: 1rem;
  }

  /* WordPress mobile menu adjustments */
  .menu-item-has-children > .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
  }

  .menu-item-has-children.open > .sub-menu,
  .menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero-parallax {
    height: 70vh;
    min-height: 450px;
  }

  .section-padding {
    padding: 40px 0;
  }

  .nap-card {
    padding: 2rem !important;
  }

  .map-wrapper iframe {
    height: 350px !important;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========== CONTACT FORM STYLING ========== */
.form-container {
  background: var(--light-color);
  padding: 80px 0;
  position: relative;
}

.form-container .bg-secondary-subtle {
  background: rgba(26, 84, 144, 0.03) !important;
  padding: 60px 20px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  opacity: 0.05;
  border-radius: 50%;
}

.contact-form h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.contact-form h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
  transition: color var(--transition-speed) ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background: var(--white);
  transition: all var(--transition-speed) ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
  background: #fafbfc;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--secondary-color);
}

.form-group textarea {
  min-height: 140px;
  max-height: 300px;
}

/* Form validation states */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #dc3545;
}

/* Floating label effect when focused */
.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
  color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 84, 144, 0.4);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px) rotate(-15deg);
}

/* Focus styles for accessibility */
.submit-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Form success/error messages (if added via JS) */
.form-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

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

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

/* Responsive Form Styles */
@media (max-width: 767px) {
  .contact-form {
    padding: 40px 25px;
  }

  .contact-form h2 {
    font-size: 1.75rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .form-container {
    padding: 60px 0;
  }

  .form-container .bg-secondary-subtle {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 30px 20px;
    border-radius: 8px;
  }

  .contact-form h2 {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 20px;
  }
}