.card-btn {
  margin-top: auto;
  width: 100%;
  max-width: 220px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 0;
}
.nav-toggle-checkbox {
  display: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 1001;
}
.nav-toggle .bar {
  width: 28px;
  height: 3px;
  background: var(--secondary-blue);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }
  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--white);
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(16,32,64,0.10);
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: 999;
    gap: 0;
    transition: max-height 0.3s ease, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle + ul,
  .nav-toggle-checkbox:checked + .nav-toggle + ul {
    max-height: 400px;
    padding: 1rem 0;
    opacity: 1;
    pointer-events: auto;
  }
}
/* IBR Group Corporate Website CSS */
/* IBR Group Corporate Website CSS - Optimized for All Devices */
:root {
  --primary-blue: #1DA1D2;
  --secondary-blue: #0A3D62;
  --white: #FFFFFF;
  --light-grey: #F5F7FA;
  --accent-black: #111111;
}

body {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  background: var(--light-grey);
  color: var(--accent-black);
  margin: 0;
  padding: 0;
}

header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(16,32,64,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  position: relative;
}

.navbar .logo {
  height: 48px;
  border-radius: 12px;
  background: #fff;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(16,32,64,0.06);
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 1001;
}
.nav-toggle .bar {
  width: 28px;
  height: 3px;
  background: var(--secondary-blue);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.navbar a {
  color: var(--secondary-blue);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: block;
}

.navbar a:hover, .navbar a:focus {
  background: var(--primary-blue);
  color: var(--white);
  outline: none;
}

.hero {
  background: linear-gradient(120deg, var(--primary-blue) 60%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 5rem 2rem 3rem 2rem;
  text-align: center;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 32px rgba(29,161,210,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  word-break: break-word;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero .btn {
  margin-top: 1rem;
}

.btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,32,64,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
  min-width: 140px;
  text-align: center;
}
.btn:hover, .btn:focus {
  background: var(--secondary-blue);
  box-shadow: 0 4px 16px rgba(16,32,64,0.12);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}


.card {
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(16,32,64,0.08);
  padding: 2rem;
  margin: 1rem 0;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 420px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(29,161,210,0.12);
  transform: translateY(-4px) scale(1.02);
}

.card .btn {
  margin-top: auto;
  width: 100%;
  max-width: 220px;
}

.card img {
  display: block;
  margin: 0 auto 1rem auto;
  height: 65px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16,32,64,0.10);
  padding: 0.5rem;
}

/* Map Pin Button Styling */
.map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-blue);
  color: var(--white) !important;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0 0;
  box-shadow: 0 2px 8px rgba(16,32,64,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none !important;
  cursor: pointer;
}
.map-button:hover, .map-button:focus {
  background: var(--secondary-blue);
  color: var(--white) !important;
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

/* Remove underline from all .btn and .map-button links */
a.btn, a.map-button {
  text-decoration: none !important;
}

/* About page grid refinement */
.about-section {
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(16,32,64,0.08);
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
}
.about-section h1 {
  color: var(--primary-blue);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-section p {
  color: var(--secondary-blue);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-grid .card {
  min-height: 160px;
  background: var(--light-grey);
  box-shadow: none;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  color: var(--accent-black);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

input, textarea {
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus {
  outline: 2px solid var(--primary-blue);
  border-color: var(--primary-blue);
}

footer {
  background: var(--secondary-blue);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  border-radius: 2rem 2rem 0 0;
  margin-top: 4rem;
}

@media (max-width: 1100px) {
  .companies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: row;
    padding: 1rem;
  }
  .navbar ul {
    gap: 1rem;
  }
  .companies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .navbar .logo {
    height: 40px;
    padding: 2px 8px;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--white);
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(16,32,64,0.10);
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: 999;
    gap: 0;
    transition: max-height 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }
  .navbar ul.show {
    max-height: 400px;
    padding: 1rem 0;
    opacity: 1;
    pointer-events: auto;
  }
  .navbar ul li {
    margin: 0.5rem 0;
    text-align: center;
  }
  .navbar ul li a {
    display: block;
    padding: 1rem 0;
    color: var(--secondary-blue);
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    background: none;
  }
  .navbar ul li:last-child a {
    border-bottom: none;
  }
  .hero {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
  }
  .btn {
    width: 100%;
    min-width: unset;
    font-size: 1rem;
    margin: 0.5rem 0;
    padding: 0.75rem 0;
  }
  .card {
    padding: 1.2rem;
    margin: 0.5rem 0;
  }
}
