/* === TYPOGRAPHY & GLOBAL SPACING === */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --base-size: 16px;
  --line-height: 1.6;
  --section-pad: 2.5rem;
  --nav-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--base-size);
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height);
  color: #1e1e1e;
  padding-top: var(--nav-offset);
}

section {
  padding: var(--section-pad) 0;
}

@media (min-width: 992px) {
  section {
    padding: calc(var(--section-pad) * 1.5) 0;
  }
}


/* === BUTTONS & CTAs === */
.btn-primary {
  --bs-btn-bg: #00527c;
  --bs-btn-border-color: #00527c;
  --bs-btn-hover-bg: #0073a6;
  --bs-btn-hover-border-color: #0073a6;
  border-radius: 50rem;
  padding: 0.75rem 2.25rem;
  font-weight: 500;
  transition: transform 0.15s ease;
}

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

.btn-gmcs {
  --bs-btn-bg: #33a02c;
  --bs-btn-border: #33a02c;
  --bs-btn-hover-bg: #279020;
  --bs-btn-hover-border: #279020;
  --bs-btn-active-bg: #1f7d1a;
  --bs-btn-active-border: #1f7d1a;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  background-color: var(--bs-btn-bg);
  color: var(--bs-btn-color);
  border: 1px solid var(--bs-btn-border);
  padding: 0.75rem 2.25rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn-gmcs:hover {
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border);
  color: var(--bs-btn-hover-color);
}

.btn-gmcs:active {
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border);
}


/* === NAVIGATION MICRO-INTERACTION & POSITIONING === */
.nav-link {
  position: relative;
  --underline-h: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: var(--underline-h);
  background-color: currentColor;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

/* NAVBAR FIXED */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(2px);
}

/* === HERO CAROUSEL STYLING === */
.hero-carousel {
  height: calc(90vh - 75px);
  min-height: 500px;
}

.hero-carousel .carousel-item {
  height: 100%;
  min-height: 500px;
  position: relative;
}

.hero-carousel .carousel-item img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-carousel .card {
  max-width: 540px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  z-index: 2;
  position: relative;
}

#heroCarousel .carousel-caption {
  max-width: 35rem;
  width: 60%;
  padding: 2.25rem 3rem;
  z-index: 3;
  position: relative;
}

@media (max-width: 767.98px) {
  .hero-carousel {
    height: 75vh;
  }
}

.hero-carousel {
  margin-top: 92px;
}

.hero-carousel .card {
  transition: transform 0.3s ease-in-out;
  transform-origin: center center;
}

.hero-carousel .card:hover {
  transform: scale(1.03);
}

/* === NAV TEXT & HERO TEXT SCALING === */
.navbar-nav .nav-link {
  font-size: 1.5rem;
  font-weight: 500;
}

.hero-carousel .card h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

.hero-carousel .card p {
  font-size: 1.25rem;
}


/* === MODAL & SCROLL TO TOP === */
#ukraineModal {
  opacity: 0;
  transition: opacity 0.4s ease;
  display: none;
}

#ukraineModal.show {
  display: flex;
  opacity: 1;
}

#ukraineModal.hide {
  opacity: 0;
  pointer-events: none;
}

.scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #00527c;
  color: white;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

/* HERO – caption container */
@media (min-width: 992px){
  #heroCarousel .carousel-caption{
    left: 40%;                 /* sit in the middle… */
    transform: translateX(-50%);/* …and pull back half its own width   */
    max-width: 45rem;          /*  ≈720 px, tweak if you like          */
    width: 90%;
  }
}

/* Footer styling */
.site-footer{
  background:#1d1f21;
  color:#cfd2d6;
  font-size:.95rem;
  padding:3rem 0;
}

.site-footer a{color:#fff;text-decoration:none;}
.site-footer a:hover{text-decoration:underline;}

.scroll-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #33a02c;
  color: white;
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 9999;
}

.scroll-to-top-btn:hover {
  background-color: #279020;
  transform: scale(1.05);
}
/* ✨ Service tiles – subtle zoom on hover */
.service-tile{
  background:#f8f9fa;
  transition:transform .25s ease, box-shadow .25s ease;
}

.service-tile:hover{
  transform:scale(1.03);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
