/*
 * Global Paints & Polymers
 *
 * This stylesheet provides the base styling for the Global Paints & Polymers
 * website. The colour palette is drawn from the company’s branding: a
 * combination of deep navy blues and vibrant orange accents. The design
 * prioritises clarity and professionalism while remaining fully responsive on
 * both desktop and mobile devices.
 */

/* CSS Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #063970; /* deep navy */
  background-color: #f5f7fa;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

/*
 * Brand logo sizing
 *
 * Increase the default size of the logo on larger screens so it has more
 * presence in the navigation bar. On smaller viewports the image scales
 * down slightly to fit the available space without dominating the header.
 */
.navbar-brand img {
 
  height: auto;
  object-fit: contain;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .navbar-brand img {
    width: 80%;
  }
}

.navbar-brand span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #063970;
}

.navbar-toggler {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: #063970;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin-left: 1.5rem;
  position: relative;
}

.navbar-nav a {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar-nav a:hover {
  background-color: rgba(245,114,36,0.1);
  color: #f57224;
}

.navbar-nav a.active {
  background-color: #f57224;
  color: #ffffff;
}

/* Dropdown submenu styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: none;
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  z-index: 2000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: #063970;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background-color: rgba(245,114,36,0.1);
  color: #f57224;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    display: none;
  }
  .navbar-nav.open {
    display: flex;
  }
  .navbar-nav li {
    margin: 0.5rem 0;
  }
  .navbar-toggler {
    display: block;
  }
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
  }
  .dropdown:hover .dropdown-menu {
    display: none; /* disable hover effect on mobile */
  }
}

/* Hero section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #f57224;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #c45a1d;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #f57224;
  color: #f57224;
}

.btn-outline:hover {
  background-color: #f57224;
  color: #ffffff;
}

/* Sections */
section {
  padding: 4rem 0;
}

/* Two column layout for about section */
.two-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

/* On medium and larger screens, keep the about section in a single row. */
@media (min-width: 768px) {
  .two-col {
    flex-wrap: nowrap;
  }
}

.two-col .col {
  flex: 1 1 50%;
}

/*
 * About photograph masking
 *
 * The about image on the home page is clipped into an organic
 * shape rather than a simple rectangle. Using CSS border‑radius
 * values on all four corners yields a custom mask that adds visual
 * interest without requiring SVGs or external assets. Overflow is
 * hidden so only the clipped portion of the photo is displayed.
 */
.about-photo {
  width: 100%;
  overflow: hidden;
  /* create an irregular blob shape */
  border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: #063970;
  color: #ffffff;
  padding: 2rem 0;
}

footer a {
  color: #f57224;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Product range grid */
.product-range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.product-card h4 {
  font-size: 1.1rem;
  color: #063970;
  margin-bottom: 0.25rem;
}

/* Testimonials section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: #063970;
  font-size: 0.95rem;
}

/* Footer columns layout */
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-col h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: #ffffff;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #f57224;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

/* Protective coatings grid */
.protective-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.protective-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s;
}

.protective-card:hover {
  transform: translateY(-5px);
}

.protective-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.protective-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #063970;
}

.protective-card p {
  font-size: 0.9rem;
  color: #444;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/*
 * Industry segments slider
 *
 * This section highlights the various market sectors served by the business.
 * Cards are presented in a horizontally scrollable track with gradients and
 * custom SVG icons. Navigation arrows allow users to scroll through the
 * content on desktop. On touch devices the track can be scrolled with a
 * swipe gesture.
 */
.industry-section {
  padding: 4rem 0;
}

.industry-slider {
  position: relative;
}

.industry-slider .industry-track {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.industry-card {
  flex: 0 0 260px;
  color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.industry-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  fill: currentColor;
}

.industry-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.industry-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Gradient backgrounds for each industry card */
.industry-card:nth-child(1) {
  background-image: linear-gradient(135deg, #4e54c8, #8f94fb);
}
.industry-card:nth-child(2) {
  background-image: linear-gradient(135deg, #11998e, #38ef7d);
}
.industry-card:nth-child(3) {
  background-image: linear-gradient(135deg, #ee0979, #ff6a00);
}
.industry-card:nth-child(4) {
  background-image: linear-gradient(135deg, #56ccf2, #2f80ed);
}
.industry-card:nth-child(5) {
  background-image: linear-gradient(135deg, #f7971e, #ffd200);
}
.industry-card:nth-child(6) {
  background-image: linear-gradient(135deg, #41295a, #2f0743);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6,57,112,0.1);
  color: #063970;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
}

.slider-arrow:hover {
  background: rgba(245,114,36,0.2);
  color: #f57224;
}

.slider-arrow.prev {
  left: -20px;
}

.slider-arrow.next {
  right: -20px;
}

/* Hide arrows on small screens where touch scrolling is preferred */
@media (max-width: 768px) {
  .slider-arrow {
    display: none;
  }
}