/*
|--------------------------------------------------------------------------
| AmmTek Global Application Styles
|--------------------------------------------------------------------------
| 
| This file contains all global CSS styles for the AmmTek website.
| It includes custom button styles, layout utilities, typography,
| and responsive design components.
|
| File Location: /public/css/app.css
| Loaded in: Layout.astro
| 
*/

/* Global Application Styles */

/* CSS Custom Properties */
:root {
  --bs-primary: #0066cc;
  --bs-secondary: #6c757d;
  --bs-navy: #003380;
  --navbar-height: 80px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Global Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 600;
  line-height: 1.2;
  color: #003380 !important;
}

/* Custom Button Styles */
.btn-navy {
  background-color: #003380 !important;
  border-color: #003380 !important;
  color: white !important;
  transition: all var(--transition-normal);
}

.btn-navy:hover,
.btn-navy:focus {
  background-color: #002266 !important;
  border-color: #002266 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 128, 0.3);
}

.btn-navy:active {
  background-color: #001a4d !important;
  border-color: #001a4d !important;
  color: white !important;
  transform: translateY(0);
}

.btn-outline-navy {
  background-color: transparent !important;
  border-color: #003380 !important;
  color: #003380 !important;
  transition: all var(--transition-normal);
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background-color: #003380 !important;
  border-color: #003380 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 128, 0.2);
}

.btn-outline-navy:active {
  background-color: #002266 !important;
  border-color: #002266 !important;
  color: white !important;
  transform: translateY(0);
}

/* Global Layout Utilities */
.hero-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-container .navbar:first-child {
  flex-shrink: 0;
}

.hero-container header {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}

.hero-container #servicesNav {
  flex-shrink: 0;
  position: relative;
  z-index: 1020;
}

/* Global Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Global Button Styles */
.btn {
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all var(--transition-normal);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bs-primary), #0052a3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3, var(--bs-primary));
}

/* Service Tab Utilities */
.service-tab-base {
  border-radius: var(--border-radius-md) !important;
  margin: 0 5px;
  font-weight: 600;
  color: #495057;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  padding: 0.5rem 1rem;
}

.service-tab-base:hover {
  background-color: rgba(0, 102, 204, 0.1);
  color: #0066cc;
  transform: translateY(-2px);
}

.service-tab-base.active {
  background-color: #0066cc !important;
  color: white !important;
  border-color: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Sticky Navbar Utilities */
.sticky-navbar {
  z-index: 1020;
  transition: all var(--transition-normal);
  position: relative;
  height: var(--navbar-height);
}

.sticky-navbar.sticky-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(227, 242, 253, 0.98) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 25px rgba(0, 102, 204, 0.15);
  border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

/* Tab Pane Utilities */
.tab-pane-custom {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.tab-pane-custom.show.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
  .service-tab-base {
    font-size: 0.9rem;
    margin: 2px;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .service-tab-base {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin: 1px;
  }
}

/* Padding compensation for sticky navbar */
.sticky-navbar-active #services-content {
  padding-top: 6rem;
}

#services-content {
  scroll-margin-top: 80px;
  transition: padding-top var(--transition-normal);
}

/* Smooth scroll links */
.smooth-scroll {
  transition: all var(--transition-normal);
}

.smooth-scroll:hover {
  transform: translateY(-2px);
}
