:root {
  --theme-color: #005249;
  --secondary-theme-color: #d4ad3a;
}

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

@media (min-width: 768px) {
  html {
    font-size: 20px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #005249 0%, var(--theme-color) 100%);
  min-height: 100vh;
  padding-top: 100px; /* Account for fixed navbar */
}

.min-vh-50 {
  min-height: 50vh;
}

/* Navbar Styles */
.navbar {
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.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, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Card Hover Effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

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

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-title {
  flex-shrink: 0;
}

.card-text {
  flex-grow: 1;
}

/* Section Spacing */
section {
  padding: 80px 0;
}

#contact {
  padding: 60px 0;
}

/* Button Styles */
.btn-primary {
  background: var(--secondary-theme-color);
  color: #005249;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #f0d25a;
  color: #005249;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-contact-submit {
  background: #d4ad3a !important;
  color: #005249 !important;
  border: none !important;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-contact-submit:hover {
  background: #005249 !important;
  color: #d4ad3a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-contact-submit:focus,
.btn-contact-submit:active {
  background: #005249 !important;
  color: #d4ad3a !important;
  border: none !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 173, 58, 0.5) !important;
}

.btn-contact-submit:disabled {
  background: #d4ad3a !important;
  color: #005249 !important;
  opacity: 0.65;
}

.btn-secondary {
  background: #005249;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--theme-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Form Styles */
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #005249;
  box-shadow: 0 0 0 0.2rem rgba(44,76,69,0.25);
}

/* Icon Animations */
.fas, .fab {
  transition: all 0.3s ease;
}

.card:hover .fas {
  transform: scale(1.1);
}

/* Footer Styles */
footer {
  background: #ffffff !important;
  color: #005249 !important;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: auto;
}

/* Theme Colors */
.text-primary-green {
  color: #005249 !important;
}

.bg-primary-green {
  background-color: #005249 !important;
}

.border-primary-green {
  border-color: #005249 !important;
}

/* Service Cards Theme */
.card .fas {
  color: #005249;
}

.card:hover .fas {
  color: var(--secondary-theme-color);
}

/* Navbar Theme */
.navbar-green {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Logo Styling */
.navbar-brand img {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

/* Hero Typography */
.hero-title {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsive Adjustments */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 120px 20px 40px 20px; /* Top padding for mobile navbar */
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-text {
    font-size: 0.9rem;
  }
  
  .navbar-brand span {
    font-size: 1.2rem !important;
  }
  
  .navbar-brand img {
    width: 35px !important;
    height: 35px !important;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    border: none;
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.5rem 2rem;
  }
  
  .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: white !important;
  }
  
  .navbar .btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 200px;
  }
  
  /* Contact Form Mobile */
  .row.g-0 {
    flex-direction: column;
  }
  
  .col-md-4, .col-md-8 {
    max-width: 100%;
  }
  
  .map-container {
    height: 250px !important;
    order: 1;
  }
  
  .bg-primary-green {
    order: 2;
    text-align: center;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
    min-height: 75vh;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Global Responsive Elements */
img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

table {
  width: 100%;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

/* Utility Classes for Responsive Design */
.text-responsive {
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

.heading-responsive {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Touch-friendly buttons for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
/* Success Modal Styles */
.success-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease-in-out;
}

.success-modal-content {
  position: relative;
  background-color: white;
  margin: 10% auto;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.5s ease-out;
}

.success-icon {
  font-size: 80px;
  color: #d4ad3a;
  animation: bounce 0.8s ease-in-out;
  display: inline-block;
  margin-bottom: 20px;
}

.success-title {
  color: #005249;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.success-message {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.success-close-btn {
  background: #d4ad3a;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-close-btn:hover {
  background: #005249;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-20px) scale(1.1);
  }
  50% {
    transform: translateY(0) scale(0.9);
  }
  75% {
    transform: translateY(-10px) scale(1.05);
  }
}

/* reCAPTCHA Badge - Hide completely */
.grecaptcha-badge {
  visibility: hidden !important;
}
