/* ============================================
   MTA Inc - Red Theme Overrides
   Primary: #c2231c | Dark: #a21d17 | Light: #e84038
   ============================================ */

:root {
  --mta-red: #c2231c;
  --mta-red-dark: #a21d17;
  --mta-red-light: #e84038;
  --mta-gray: #2c3e50;
  --mta-gray-light: #ecf0f1;
}

/* --- Bootstrap overrides --- */
.bg-primary {
  background-color: var(--mta-red) !important;
}

.btn-primary {
  background-color: var(--mta-red);
  border-color: var(--mta-red);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--mta-red-dark);
  border-color: var(--mta-red-dark);
}

.btn-outline-primary {
  color: var(--mta-red);
  border-color: var(--mta-red);
}

.btn-outline-primary:hover {
  background-color: var(--mta-red);
  border-color: var(--mta-red);
  color: #fff;
}

.text-primary {
  color: var(--mta-red) !important;
}

a {
  color: var(--mta-red);
}

a:hover {
  color: var(--mta-red-dark);
}

/* --- Navbar --- */
.navbar {
  background-color: var(--mta-red) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.navbar-brand img,
.navbar-brand-icon {
  border: none !important;
  border-style: none !important;
  outline: none !important;
  border-radius: 0 !important;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* --- Hero / Jumbotron --- */
.hero-section,
.jumbotron,
.mod-hero {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(192, 57, 43, 0.7)),
    url('/user/images/hero/hero-kitchen.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero-section h1,
.jumbotron h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-section .lead {
  font-size: 1.4rem;
  font-weight: 300;
  margin-top: 1rem;
}

/* MTA Logo Text Styling */
.mta-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.mta-logo-icon {
  font-size: 5rem;
  color: var(--mta-red);
  display: block;
  line-height: 1;
}

/* --- Carousel / Showcase Section with Angled Overlay --- */
.carousel-section,
.mod-showcase {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(160deg, transparent 0%, rgba(192, 57, 43, 0.9) 30%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.carousel-section .value-prop {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
}

/* --- Services Section --- */
.services-section h2 {
  color: var(--mta-red);
  font-weight: 700;
}

.services-section hr {
  border-color: var(--mta-red);
  width: 80px;
  border-width: 3px;
  margin: 1rem auto;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--mta-gray-light);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section .btn {
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
}

/* --- Gallery: Before/After Cards --- */
.gallery-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

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

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-card .badge-before {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--mta-red);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.gallery-card .badge-after {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #27ae60;
  color: #fff;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.gallery-pair-label {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* --- Contact Form --- */
.form-control:focus {
  border-color: var(--mta-red);
  box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
}

.contact-info i {
  color: var(--mta-red);
  margin-right: 0.5rem;
}

/* --- Footer --- */
footer,
.footer {
  background-color: var(--mta-gray);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

footer h5,
.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5::after,
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--mta-red);
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

footer a:hover {
  color: var(--mta-red-light);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section h1,
  .jumbotron h1 {
    font-size: 2.2rem;
  }

  .carousel-section::before {
    width: 100%;
    clip-path: polygon(0 40%, 100% 20%, 100% 100%, 0% 100%);
  }

  .gallery-card img {
    height: 200px;
  }
}

/* --- Utility --- */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--mta-red);
  font-weight: 700;
}

.section-title hr {
  border-color: var(--mta-red);
  width: 80px;
  border-width: 3px;
  margin: 1rem auto;
}

/* --- Footer gap fix --- */
.footer {
  margin-top: 0 !important;
  padding: 2.5rem 1rem 0;
  border: none !important;
}

.footer .row {
  border: none !important;
}

.footer hr {
  display: none;
}

.footer .border-top {
  border-top-color: rgba(255,255,255,0.2) !important;
}

/* Remove any colored accents on footer bottom */
.footer::after,
.footer::before {
  display: none !important;
}

#body {
  padding-bottom: 0;
}

/* --- Contact form container fix --- */
form#contact-form {
  max-width: 100%;
}

form#contact-form .form-group {
  margin-bottom: 1.25rem;
}

form#contact-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

form#contact-form .form-control {
  border-radius: 6px;
}

form#contact-form .buttons {
  margin-top: 1.5rem;
}
