@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary: #8b0d32;
  --primary-hover: #b01846;
  --secondary: #0d3885;
  --secondary-hover: #134db5;
  --accent: #348aaa;
  --text-dark: #2c2c2c;
  --text-light: #555555;
  --bg-light: #f5f6f7;
  --bg-white: #ffffff;
  --border-color: #e5e5e5;
  --heading-color: #06163a;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Header & Nav */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--heading-color);
  color: var(--bg-white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--bg-white);
  margin-left: 1rem;
}

.top-bar a:hover {
  color: var(--accent);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  max-height: 60px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
  margin-left: auto;
}

.mobile-toggle:hover {
  background: var(--primary-hover);
}

.mobile-toggle.active {
  background: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--heading-color);
  font-size: 0.95rem;
  text-transform: capitalize;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: #2b7a96;
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

.section-light {}

.section-white {
  background-color: var(--bg-white);
}

.section-dark {
  background-color: var(--heading-color);
  color: var(--bg-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--bg-white);
}

.text-center {
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(6, 22, 58, 0.7), rgba(6, 22, 58, 0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--bg-white);
  padding: 100px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  animation: slideUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
  animation: slideUp 1s ease 0.2s;
  animation-fill-mode: backwards;
}

.hero .btn-group {
  animation: slideUp 1s ease 0.4s;
  animation-fill-mode: backwards;
}

.hero .btn-group .btn {
  margin: 0 0.5rem;
}

.page-hero {
  min-height: 30vh;
  padding: 50px 0;
}

.page-hero .btn-group {
  margin-top: 0;
}

/* Services Features */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--bg-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* Slider/Carousel Structure */
.review-slider {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.review-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.review-slide {
  min-width: 100%;
  text-align: center;
  padding: 0 2rem;
}

.stars {
  color: #ffb400;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.review-author {
  font-weight: 600;
  color: var(--heading-color);
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--primary);
}

/* Footer */
footer {
  background-color: #040f29;
  color: #a0a8b9;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #a0a8b9;
}

.footer-col ul li a:hover {
  color: var(--bg-white);
}

.footer-partners {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a0a8b9;
  transition: var(--transition);
}

.footer-logos a:hover {
  color: var(--bg-white);
}

.footer-logo {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-logos a:hover .footer-logo {
  opacity: 1;
}

.footer-logo-fallback {
  font-size: 1rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #a0a8b9;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* Contact form – enhanced styling */
.contact-form-card {
  background: var(--bg-white);
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(139, 13, 50, 0.06) 0%, transparent 70%);
  border-radius: 0 12px 0 0;
  pointer-events: none;
}

.contact-form-card .form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-light);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.contact-form .form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-white);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 13, 50, 0.12);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.contact-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 13, 50, 0.35);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-container .logo {
    order: 1;
  }

  .mobile-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  nav.nav-open {
    max-height: 400px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 1rem 0;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  nav ul li a {
    display: block;
    padding: 1rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .top-bar {
    display: none;
  }
}