/*
 * Custom styles for the MGS Gutter website mock‑up.  The palette and
 * layout draw inspiration from the blue/orange tones of The Brothers
 * Gutters and the green/orange accents of Leaf Free while keeping
 * the structure simple and responsive.  Bootstrap 5 handles most
 * responsive behaviour; these rules add branding and spacing.
 */

/* Colour palette variables for easy theming */
:root {
  --primary-color: #2C3E97 ;    /* #004e8c */
  --secondary-color: #289ACF;  /* muted green borrowed from Leaf Free */
  --accent-color: #f58025;     /* orange used for calls‑to‑action */
  --dark-color: #1f1f1f;       /* dark shade for footers */
  --light-color: #f9f9f9;      /* light grey for section backgrounds */
  --text-color: #333333;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
}

p {
  text-align: justify;
}

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 700;
}

/* Navbar customisation */
.navbar {
  background-color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin-right: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--accent-color) !important;
}

/* Top info bar (phone and email) */
.top-bar {
  /* background-color: var(--secondary-color); */
  background-color: #f58025;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

/* Hero section */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero .hero-content {
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.btn-accent {
  background-color: var(--accent-color);
  border: none;
  color: #ffffff;
  font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #d36e20;
  color: #ffffff;
}

/* Section headings */
.section-title {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

/* Feature (why choose us) icons */
.feature-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Service cards */
.service-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Call to action section */
.cta-section {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--light-color);
  padding: 3rem 0;
}

.testimonial {
  background-color: #ffffff;
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial .author {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Contact section */
.contact-section {
  background-color: var(--light-color);
  padding: 3rem 0;
}

.contact-info {
  font-size: 1rem;
  line-height: 1.5;
}

.contact-info i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #cccccc;
  padding: 2rem 0;
}

.footer a {
  color: #cccccc;
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-color);
}

.footer .footer-heading {
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1000;
}

.whatsapp-float:hover {
  color: #fff;
  text-decoration: none;
}

/* Bottom contact bar for mobile */
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 999;
}

.contact-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero {
    padding: 2rem 0;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}

/* Expert Gutter Repair Services section */
.expert-services {
  background-color: var(--light-color);
}

.expert-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
}

/* Reveal animation for images */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Instagram images */
.insta-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Hero video inside card */
.hero .ratio video {
  border-radius: 8px;
}