:root {
  --primary-color: #AFABAB;
  --primary-color-alpha: rgba(84, 80, 80, 0.75);
  --text-color: #545050;
  --bg-light: #f8f9fa;
  --highlight-color: #AD3029;
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  background: var(--highlight-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-brand .logo {
  height: 40px; 
  width: auto;
  display: block;
}

/* Responsive sizing */
@media (max-width: 768px) {
  .nav-brand .logo {
    height: 25px;
    border: 2px solid red; /* temporary - to confirm it's applying */
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  background: var(--highlight-color);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

/* Hero Section */
.hero {
  height: 40vh;
  min-height: 400px;
  background-size: cover;
  background-position: center bottom;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem; /* Add padding here instead */
}

.hero-content {
  background: var(--primary-color-alpha);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  max-width: 800px;
  width: 100%; /* Ensure it can shrink */
  box-sizing: border-box;
}

.hero-content h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em; 
}

.hero-description {
  color: white;
  font-size: 1rem;
  line-height: 1.8;
}

/* Desktop styles */
@media (min-width: 768px) {
  .hero-content {
    padding: 3rem 4rem;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
}

/* Services Section */
.services {
  padding: 4rem 0;
  background: #AFABAB;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 2rem;
  margin: 0;
  text-align: center;
}

.card-header h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.card-body {
  padding: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-subtitle {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1srem;
  font-weight: 600;
  text-align: center;
}

.card p {
  color: var(--text-color);
  line-height: 1.8;
}

.card-description p {
  margin-bottom: 1rem;
}

.card-description p:last-child {
  margin-bottom: 0;
}

/* Main Service Section */
.main-service {
  padding: 4rem 0;
  background: white;
}

.main-service h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 700; /* Make the main title bold */
}

.main-service .text-muted {
  color: #6c757d;
  font-weight: 300; /* Make the subtitle lighter */
}

.main-service .lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.main-service .content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.1rem; /* or 1.125rem for slightly larger */
}

/* About Panel */

.about-panel {
  background: #274C77;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.about-panel.open {
  max-height: 800px; /* Increased from 500px to allow smoother transition */
  padding: 3rem 0;
}

.about-panel h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  color: white;
}

.about-text h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.about-contact h4 {
  margin-bottom: 1rem;
}

.about-contact ul {
  list-style: none;
  padding: 0;
}

.about-contact li {
  margin-bottom: 0.5rem;
}

.about-contact a {
  color: white;
  text-decoration: none;
}

.about-contact a:hover {
  opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  transition: 0.3s;
}

.hamburger:hover span {
  background: rgba(255, 255, 255, 0.8);
}
